configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mpc 1.3.1.
4 #
5 # Report bugs to <mpc-discuss (at] inria.fr>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: mpc-discuss (at] inria.fr about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='mpc'
592 PACKAGE_TARNAME='mpc'
593 PACKAGE_VERSION='1.3.1'
594 PACKAGE_STRING='mpc 1.3.1'
595 PACKAGE_BUGREPORT='mpc-discuss (at] inria.fr'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/mpc-impl.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 GITVERSION
639 HASGIT
640 GCC_VERSION
641 MPC_LDFLAGS
642 MPC_LOG_H
643 LIBOBJS
644 CPP
645 LT_SYS_LIBRARY_PATH
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 FILECMD
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 LIBTOOL
661 OBJDUMP
662 DLLTOOL
663 AS
664 ac_ct_AR
665 AR
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 SED
683 EGREP
684 GREP
685 VALGRIND_OPTS
686 VALGRIND
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 CSCOPE
703 ETAGS
704 CTAGS
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL
766 am__quote'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_maintainer_mode
772 with_mpfr_include
773 with_mpfr_lib
774 with_mpfr
775 with_gmp_include
776 with_gmp_lib
777 with_gmp
778 enable_logging
779 enable_valgrind_tests
780 enable_dependency_tracking
781 enable_shared
782 enable_static
783 with_pic
784 enable_fast_install
785 with_aix_soname
786 with_gnu_ld
787 with_sysroot
788 enable_libtool_lock
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 LT_SYS_LIBRARY_PATH
799 CPP'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
897
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
930
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures mpc 1.3.1 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/mpc]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 _ACEOF
1406 fi
1407
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of mpc 1.3.1:";;
1411 esac
1412 cat <<\_ACEOF
1413
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-silent-rules less verbose build output (undo: "make V=1")
1419 --disable-silent-rules verbose build output (undo: "make V=0")
1420 --enable-maintainer-mode
1421 enable make rules and dependencies not useful (and
1422 sometimes confusing) to the casual installer
1423 --enable-logging enable logging of function calls to stderr (default
1424 = no)
1425 --enable-valgrind-tests run checks through valgrind (default = no)
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-mpfr-include=DIR MPFR include directory
1440 --with-mpfr-lib=DIR MPFR lib directory
1441 --with-mpfr=DIR MPFR install directory
1442 --with-gmp-include=DIR GMP include directory
1443 --with-gmp-lib=DIR GMP lib directory
1444 --with-gmp=DIR GMP install directory
1445 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1446 both]
1447 --with-aix-soname=aix|svr4|both
1448 shared library versioning (aka "SONAME") variant to
1449 provide on AIX, [default=aix].
1450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1451 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1452 compiler's sysroot if not specified).
1453
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 LT_SYS_LIBRARY_PATH
1463 User-defined run-time library search path.
1464 CPP C preprocessor
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to <mpc-discuss (at] inria.fr>.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
1480 ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1522 else
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1526 done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531 cat <<\_ACEOF
1532 mpc configure 1.3.1
1533 generated by GNU Autoconf 2.69
1534
1535 Copyright (C) 2012 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538 _ACEOF
1539 exit
1540 fi
1541
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1545
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1572 ac_retval=0
1573 else
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_c_try_link LINENO
1585 # -----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_link ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest$ac_exeext
1591 if { { ac_try="$ac_link"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest$ac_exeext && {
1610 test "$cross_compiling" = yes ||
1611 test -x conftest$ac_exeext
1612 }; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619 fi
1620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622 # interfere with the next link command; also delete a directory that is
1623 # left behind by Apple's compiler. We do this before executing the actions.
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_link
1629
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1641 else
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 $4
1645 #include <$2>
1646 _ACEOF
1647 if ac_fn_c_try_compile "$LINENO"; then :
1648 eval "$3=yes"
1649 else
1650 eval "$3=no"
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 fi
1654 eval ac_res=\$$3
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659 } # ac_fn_c_check_header_compile
1660
1661 # ac_fn_c_try_cpp LINENO
1662 # ----------------------
1663 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_cpp ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_cpp conftest.$ac_ext"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } > conftest.i && {
1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 }; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692 fi
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_cpp
1697
1698 # ac_fn_c_try_run LINENO
1699 # ----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701 # that executables *can* be run.
1702 ac_fn_c_try_run ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_link"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716 { { case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_try") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; }; }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: program exited with status $ac_status" >&5
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=$ac_status
1733 fi
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_run
1739
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1755 #define $2 innocuous_$2
1756
1757 /* System header to define __stub macros and hopefully few prototypes,
1758 which can conflict with char $2 (); below.
1759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760 <limits.h> exists even on freestanding compilers. */
1761
1762 #ifdef __STDC__
1763 # include <limits.h>
1764 #else
1765 # include <assert.h>
1766 #endif
1767
1768 #undef $2
1769
1770 /* Override any GCC internal prototype to avoid an error.
1771 Use char because int might match the return type of a GCC
1772 builtin and then its argument prototype would still apply. */
1773 #ifdef __cplusplus
1774 extern "C"
1775 #endif
1776 char $2 ();
1777 /* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780 #if defined __stub_$2 || defined __stub___$2
1781 choke me
1782 #endif
1783
1784 int
1785 main ()
1786 {
1787 return $2 ();
1788 ;
1789 return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_link "$LINENO"; then :
1793 eval "$3=yes"
1794 else
1795 eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext \
1798 conftest$ac_exeext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_func
1806
1807 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1810 # the include files in INCLUDES and setting the cache variable VAR
1811 # accordingly.
1812 ac_fn_c_check_header_mongrel ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if eval \${$3+:} false; then :
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1820 fi
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 else
1825 # Is the header compilable?
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1827 $as_echo_n "checking $2 usability... " >&6; }
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $4
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 ac_header_compiler=yes
1835 else
1836 ac_header_compiler=no
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1840 $as_echo "$ac_header_compiler" >&6; }
1841
1842 # Is the header present?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1844 $as_echo_n "checking $2 presence... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_cpp "$LINENO"; then :
1850 ac_header_preproc=yes
1851 else
1852 ac_header_preproc=no
1853 fi
1854 rm -f conftest.err conftest.i conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1856 $as_echo "$ac_header_preproc" >&6; }
1857
1858 # So? What about this header?
1859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1860 yes:no: )
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1862 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 ;;
1866 no:yes:* )
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1868 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1870 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1872 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1874 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877 ( $as_echo "## ----------------------------------- ##
1878 ## Report this to mpc-discuss (at] inria.fr ##
1879 ## ----------------------------------- ##"
1880 ) | sed "s/^/$as_me: WARNING: /" >&2
1881 ;;
1882 esac
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 eval "$3=\$ac_header_compiler"
1889 fi
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 fi
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_header_mongrel
1897
1898 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1899 # -------------------------------------------
1900 # Tests whether TYPE exists after having included INCLUDES, setting cache
1901 # variable VAR accordingly.
1902 ac_fn_c_check_type ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 eval "$3=no"
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 int
1915 main ()
1916 {
1917 if (sizeof ($2))
1918 return 0;
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 int
1928 main ()
1929 {
1930 if (sizeof (($2)))
1931 return 0;
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937
1938 else
1939 eval "$3=yes"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_type
1951 cat >config.log <<_ACEOF
1952 This file contains any messages produced by compilers while
1953 running configure, to aid debugging if configure makes a mistake.
1954
1955 It was created by mpc $as_me 1.3.1, which was
1956 generated by GNU Autoconf 2.69. Invocation command line was
1957
1958 $ $0 $@
1959
1960 _ACEOF
1961 exec 5>>config.log
1962 {
1963 cat <<_ASUNAME
1964 ## --------- ##
1965 ## Platform. ##
1966 ## --------- ##
1967
1968 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973
1974 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976
1977 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1978 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1979 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1980 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1981 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1982 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1983 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984
1985 _ASUNAME
1986
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 $as_echo "PATH: $as_dir"
1993 done
1994 IFS=$as_save_IFS
1995
1996 } >&5
1997
1998 cat >&5 <<_ACEOF
1999
2000
2001 ## ----------- ##
2002 ## Core tests. ##
2003 ## ----------- ##
2004
2005 _ACEOF
2006
2007
2008 # Keep a trace of the command line.
2009 # Strip out --no-create and --no-recursion so they do not pile up.
2010 # Strip out --silent because we don't want to record it for future runs.
2011 # Also quote any args containing shell meta-characters.
2012 # Make two passes to allow for proper duplicate-argument suppression.
2013 ac_configure_args=
2014 ac_configure_args0=
2015 ac_configure_args1=
2016 ac_must_keep_next=false
2017 for ac_pass in 1 2
2018 do
2019 for ac_arg
2020 do
2021 case $ac_arg in
2022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024 | -silent | --silent | --silen | --sile | --sil)
2025 continue ;;
2026 *\'*)
2027 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 esac
2029 case $ac_pass in
2030 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031 2)
2032 as_fn_append ac_configure_args1 " '$ac_arg'"
2033 if test $ac_must_keep_next = true; then
2034 ac_must_keep_next=false # Got value, back to normal.
2035 else
2036 case $ac_arg in
2037 *=* | --config-cache | -C | -disable-* | --disable-* \
2038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040 | -with-* | --with-* | -without-* | --without-* | --x)
2041 case "$ac_configure_args0 " in
2042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043 esac
2044 ;;
2045 -* ) ac_must_keep_next=true ;;
2046 esac
2047 fi
2048 as_fn_append ac_configure_args " '$ac_arg'"
2049 ;;
2050 esac
2051 done
2052 done
2053 { ac_configure_args0=; unset ac_configure_args0;}
2054 { ac_configure_args1=; unset ac_configure_args1;}
2055
2056 # When interrupted or exit'd, cleanup temporary files, and complete
2057 # config.log. We remove comments because anyway the quotes in there
2058 # would cause problems or look ugly.
2059 # WARNING: Use '\'' to represent an apostrophe within the trap.
2060 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2061 trap 'exit_status=$?
2062 # Save into config.log some information that might help in debugging.
2063 {
2064 echo
2065
2066 $as_echo "## ---------------- ##
2067 ## Cache variables. ##
2068 ## ---------------- ##"
2069 echo
2070 # The following way of writing the cache mishandles newlines in values,
2071 (
2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in #(
2075 *${as_nl}*)
2076 case $ac_var in #(
2077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079 esac
2080 case $ac_var in #(
2081 _ | IFS | as_nl) ;; #(
2082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083 *) { eval $ac_var=; unset $ac_var;} ;;
2084 esac ;;
2085 esac
2086 done
2087 (set) 2>&1 |
2088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089 *${as_nl}ac_space=\ *)
2090 sed -n \
2091 "s/'\''/'\''\\\\'\'''\''/g;
2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093 ;; #(
2094 *)
2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 ;;
2097 esac |
2098 sort
2099 )
2100 echo
2101
2102 $as_echo "## ----------------- ##
2103 ## Output variables. ##
2104 ## ----------------- ##"
2105 echo
2106 for ac_var in $ac_subst_vars
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115
2116 if test -n "$ac_subst_files"; then
2117 $as_echo "## ------------------- ##
2118 ## File substitutions. ##
2119 ## ------------------- ##"
2120 echo
2121 for ac_var in $ac_subst_files
2122 do
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 $as_echo "$ac_var='\''$ac_val'\''"
2128 done | sort
2129 echo
2130 fi
2131
2132 if test -s confdefs.h; then
2133 $as_echo "## ----------- ##
2134 ## confdefs.h. ##
2135 ## ----------- ##"
2136 echo
2137 cat confdefs.h
2138 echo
2139 fi
2140 test "$ac_signal" != 0 &&
2141 $as_echo "$as_me: caught signal $ac_signal"
2142 $as_echo "$as_me: exit $exit_status"
2143 } >&5
2144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146 exit $exit_status
2147 ' 0
2148 for ac_signal in 1 2 13 15; do
2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150 done
2151 ac_signal=0
2152
2153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2154 rm -f -r conftest* confdefs.h
2155
2156 $as_echo "/* confdefs.h */" > confdefs.h
2157
2158 # Predefined preprocessor variables.
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_NAME "$PACKAGE_NAME"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_STRING "$PACKAGE_STRING"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_URL "$PACKAGE_URL"
2182 _ACEOF
2183
2184
2185 # Let the site file select an alternate cache file if it wants to.
2186 # Prefer an explicitly selected file to automatically selected ones.
2187 ac_site_file1=NONE
2188 ac_site_file2=NONE
2189 if test -n "$CONFIG_SITE"; then
2190 # We do not want a PATH search for config.site.
2191 case $CONFIG_SITE in #((
2192 -*) ac_site_file1=./$CONFIG_SITE;;
2193 */*) ac_site_file1=$CONFIG_SITE;;
2194 *) ac_site_file1=./$CONFIG_SITE;;
2195 esac
2196 elif test "x$prefix" != xNONE; then
2197 ac_site_file1=$prefix/share/config.site
2198 ac_site_file2=$prefix/etc/config.site
2199 else
2200 ac_site_file1=$ac_default_prefix/share/config.site
2201 ac_site_file2=$ac_default_prefix/etc/config.site
2202 fi
2203 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204 do
2205 test "x$ac_site_file" = xNONE && continue
2206 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2209 sed 's/^/| /' "$ac_site_file" >&5
2210 . "$ac_site_file" \
2211 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 as_fn_error $? "failed to load site script $ac_site_file
2214 See \`config.log' for more details" "$LINENO" 5; }
2215 fi
2216 done
2217
2218 if test -r "$cache_file"; then
2219 # Some versions of bash will fail to source /dev/null (special files
2220 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223 $as_echo "$as_me: loading cache $cache_file" >&6;}
2224 case $cache_file in
2225 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226 *) . "./$cache_file";;
2227 esac
2228 fi
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231 $as_echo "$as_me: creating cache $cache_file" >&6;}
2232 >$cache_file
2233 fi
2234
2235 # Check that the precious variables saved in the cache have kept the same
2236 # value.
2237 ac_cache_corrupted=false
2238 for ac_var in $ac_precious_vars; do
2239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240 eval ac_new_set=\$ac_env_${ac_var}_set
2241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242 eval ac_new_val=\$ac_env_${ac_var}_value
2243 case $ac_old_set,$ac_new_set in
2244 set,)
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2248 ,set)
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2252 ,);;
2253 *)
2254 if test "x$ac_old_val" != "x$ac_new_val"; then
2255 # differences in whitespace do not lead to failure.
2256 ac_old_val_w=`echo x $ac_old_val`
2257 ac_new_val_w=`echo x $ac_new_val`
2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261 ac_cache_corrupted=:
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265 eval $ac_var=\$ac_old_val
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2271 fi;;
2272 esac
2273 # Pass precious variables to config.status.
2274 if test "$ac_new_set" = set; then
2275 case $ac_new_val in
2276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 *) ac_arg=$ac_var=$ac_new_val ;;
2278 esac
2279 case " $ac_configure_args " in
2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2282 esac
2283 fi
2284 done
2285 if $ac_cache_corrupted; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291 fi
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2295
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303
2304 ac_aux_dir=
2305 for ac_dir in build-aux "$srcdir"/build-aux; do
2306 if test -f "$ac_dir/install-sh"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/install-sh -c"
2309 break
2310 elif test -f "$ac_dir/install.sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install.sh -c"
2313 break
2314 elif test -f "$ac_dir/shtool"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/shtool install -c"
2317 break
2318 fi
2319 done
2320 if test -z "$ac_aux_dir"; then
2321 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2322 fi
2323
2324 # These three variables are undocumented and unsupported,
2325 # and are intended to be withdrawn in a future Autoconf release.
2326 # They can cause serious problems if a builder's source tree is in a directory
2327 # whose full name contains unusual characters.
2328 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2329 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2330 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331
2332
2333 ac_config_headers="$ac_config_headers config.h"
2334
2335
2336 am__api_version='1.16'
2337
2338 # Find a good install program. We prefer a C program (faster),
2339 # so one script is as good as another. But avoid the broken or
2340 # incompatible versions:
2341 # SysV /etc/install, /usr/sbin/install
2342 # SunOS /usr/etc/install
2343 # IRIX /sbin/install
2344 # AIX /bin/install
2345 # AmigaOS /C/install, which installs bootblocks on floppy discs
2346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2349 # OS/2's system install, which has a completely different semantic
2350 # ./install, which can be erroneously created by make from ./install.sh.
2351 # Reject install programs that cannot install multiple files.
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2353 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2354 if test -z "$INSTALL"; then
2355 if ${ac_cv_path_install+:} false; then :
2356 $as_echo_n "(cached) " >&6
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 # Account for people who put trailing slashes in PATH elements.
2364 case $as_dir/ in #((
2365 ./ | .// | /[cC]/* | \
2366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2367 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2368 /usr/ucb/* ) ;;
2369 *)
2370 # OSF1 and SCO ODT 3.0 have their own names for install.
2371 # Don't use installbsd from OSF since it installs stuff as root
2372 # by default.
2373 for ac_prog in ginstall scoinst install; do
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2376 if test $ac_prog = install &&
2377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2378 # AIX install. It has an incompatible calling convention.
2379 :
2380 elif test $ac_prog = install &&
2381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382 # program-specific install script used by HP pwplus--don't use.
2383 :
2384 else
2385 rm -rf conftest.one conftest.two conftest.dir
2386 echo one > conftest.one
2387 echo two > conftest.two
2388 mkdir conftest.dir
2389 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2390 test -s conftest.one && test -s conftest.two &&
2391 test -s conftest.dir/conftest.one &&
2392 test -s conftest.dir/conftest.two
2393 then
2394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2395 break 3
2396 fi
2397 fi
2398 fi
2399 done
2400 done
2401 ;;
2402 esac
2403
2404 done
2405 IFS=$as_save_IFS
2406
2407 rm -rf conftest.one conftest.two conftest.dir
2408
2409 fi
2410 if test "${ac_cv_path_install+set}" = set; then
2411 INSTALL=$ac_cv_path_install
2412 else
2413 # As a last resort, use the slow shell script. Don't cache a
2414 # value for INSTALL within a source directory, because that will
2415 # break other packages using the cache if that directory is
2416 # removed, or if the value is a relative name.
2417 INSTALL=$ac_install_sh
2418 fi
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2421 $as_echo "$INSTALL" >&6; }
2422
2423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2424 # It thinks the first close brace ends the variable substitution.
2425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2426
2427 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2428
2429 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2430
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2432 $as_echo_n "checking whether build environment is sane... " >&6; }
2433 # Reject unsafe characters in $srcdir or the absolute working directory
2434 # name. Accept space and tab only in the latter.
2435 am_lf='
2436 '
2437 case `pwd` in
2438 *[\\\"\#\$\&\'\`$am_lf]*)
2439 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2440 esac
2441 case $srcdir in
2442 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2443 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2444 esac
2445
2446 # Do 'set' in a subshell so we don't clobber the current shell's
2447 # arguments. Must try -L first in case configure is actually a
2448 # symlink; some systems play weird games with the mod time of symlinks
2449 # (eg FreeBSD returns the mod time of the symlink's containing
2450 # directory).
2451 if (
2452 am_has_slept=no
2453 for am_try in 1 2; do
2454 echo "timestamp, slept: $am_has_slept" > conftest.file
2455 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2456 if test "$*" = "X"; then
2457 # -L didn't work.
2458 set X `ls -t "$srcdir/configure" conftest.file`
2459 fi
2460 if test "$*" != "X $srcdir/configure conftest.file" \
2461 && test "$*" != "X conftest.file $srcdir/configure"; then
2462
2463 # If neither matched, then we have a broken ls. This can happen
2464 # if, for instance, CONFIG_SHELL is bash and it inherits a
2465 # broken ls alias from the environment. This has actually
2466 # happened. Such a system could not be considered "sane".
2467 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2468 alias in your environment" "$LINENO" 5
2469 fi
2470 if test "$2" = conftest.file || test $am_try -eq 2; then
2471 break
2472 fi
2473 # Just in case.
2474 sleep 1
2475 am_has_slept=yes
2476 done
2477 test "$2" = conftest.file
2478 )
2479 then
2480 # Ok.
2481 :
2482 else
2483 as_fn_error $? "newly created file is older than distributed files!
2484 Check your system clock" "$LINENO" 5
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2487 $as_echo "yes" >&6; }
2488 # If we didn't sleep, we still need to ensure time stamps of config.status and
2489 # generated files are strictly newer.
2490 am_sleep_pid=
2491 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2492 ( sleep 1 ) &
2493 am_sleep_pid=$!
2494 fi
2495
2496 rm -f conftest.file
2497
2498 test "$program_prefix" != NONE &&
2499 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2500 # Use a double $ so make ignores it.
2501 test "$program_suffix" != NONE &&
2502 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2503 # Double any \ or $.
2504 # By default was `s,x,x', remove it if useless.
2505 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2506 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2507
2508 # Expand $ac_aux_dir to an absolute path.
2509 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2510
2511 if test x"${MISSING+set}" != xset; then
2512 MISSING="\${SHELL} '$am_aux_dir/missing'"
2513 fi
2514 # Use eval to expand $SHELL
2515 if eval "$MISSING --is-lightweight"; then
2516 am_missing_run="$MISSING "
2517 else
2518 am_missing_run=
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2520 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2521 fi
2522
2523 if test x"${install_sh+set}" != xset; then
2524 case $am_aux_dir in
2525 *\ * | *\ *)
2526 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2527 *)
2528 install_sh="\${SHELL} $am_aux_dir/install-sh"
2529 esac
2530 fi
2531
2532 # Installed binaries are usually stripped using 'strip' when the user
2533 # run "make install-strip". However 'strip' might not be the right
2534 # tool to use in cross-compilation environments, therefore Automake
2535 # will honor the 'STRIP' environment variable to overrule this program.
2536 if test "$cross_compiling" != no; then
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}strip; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_STRIP+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$STRIP"; then
2546 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 STRIP=$ac_cv_prog_STRIP
2566 if test -n "$STRIP"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2568 $as_echo "$STRIP" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574
2575 fi
2576 if test -z "$ac_cv_prog_STRIP"; then
2577 ac_ct_STRIP=$STRIP
2578 # Extract the first word of "strip", so it can be a program name with args.
2579 set dummy strip; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$ac_ct_STRIP"; then
2586 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_ac_ct_STRIP="strip"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2606 if test -n "$ac_ct_STRIP"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2608 $as_echo "$ac_ct_STRIP" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2612 fi
2613
2614 if test "x$ac_ct_STRIP" = x; then
2615 STRIP=":"
2616 else
2617 case $cross_compiling:$ac_tool_warned in
2618 yes:)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621 ac_tool_warned=yes ;;
2622 esac
2623 STRIP=$ac_ct_STRIP
2624 fi
2625 else
2626 STRIP="$ac_cv_prog_STRIP"
2627 fi
2628
2629 fi
2630 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2633 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2634 if test -z "$MKDIR_P"; then
2635 if ${ac_cv_path_mkdir+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2640 do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_prog in mkdir gmkdir; do
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2646 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2647 'mkdir (GNU coreutils) '* | \
2648 'mkdir (coreutils) '* | \
2649 'mkdir (fileutils) '4.1*)
2650 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2651 break 3;;
2652 esac
2653 done
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659
2660 test -d ./--version && rmdir ./--version
2661 if test "${ac_cv_path_mkdir+set}" = set; then
2662 MKDIR_P="$ac_cv_path_mkdir -p"
2663 else
2664 # As a last resort, use the slow shell script. Don't cache a
2665 # value for MKDIR_P within a source directory, because that will
2666 # break other packages using the cache if that directory is
2667 # removed, or if the value is a relative name.
2668 MKDIR_P="$ac_install_sh -d"
2669 fi
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2672 $as_echo "$MKDIR_P" >&6; }
2673
2674 for ac_prog in gawk mawk nawk awk
2675 do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_AWK+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test -n "$AWK"; then
2684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_AWK="$ac_prog"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 AWK=$ac_cv_prog_AWK
2704 if test -n "$AWK"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2706 $as_echo "$AWK" >&6; }
2707 else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 test -n "$AWK" && break
2714 done
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2718 set x ${MAKE-make}
2719 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2720 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 cat >conftest.make <<\_ACEOF
2724 SHELL = /bin/sh
2725 all:
2726 @echo '@@@%%%=$(MAKE)=@@@%%%'
2727 _ACEOF
2728 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2729 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2730 *@@@%%%=?*=@@@%%%*)
2731 eval ac_cv_prog_make_${ac_make}_set=yes;;
2732 *)
2733 eval ac_cv_prog_make_${ac_make}_set=no;;
2734 esac
2735 rm -f conftest.make
2736 fi
2737 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 SET_MAKE=
2741 else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2744 SET_MAKE="MAKE=${MAKE-make}"
2745 fi
2746
2747 rm -rf .tst 2>/dev/null
2748 mkdir .tst 2>/dev/null
2749 if test -d .tst; then
2750 am__leading_dot=.
2751 else
2752 am__leading_dot=_
2753 fi
2754 rmdir .tst 2>/dev/null
2755
2756 # Check whether --enable-silent-rules was given.
2757 if test "${enable_silent_rules+set}" = set; then :
2758 enableval=$enable_silent_rules;
2759 fi
2760
2761 case $enable_silent_rules in # (((
2762 yes) AM_DEFAULT_VERBOSITY=0;;
2763 no) AM_DEFAULT_VERBOSITY=1;;
2764 *) AM_DEFAULT_VERBOSITY=1;;
2765 esac
2766 am_make=${MAKE-make}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2768 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2769 if ${am_cv_make_support_nested_variables+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if $as_echo 'TRUE=$(BAR$(V))
2773 BAR0=false
2774 BAR1=true
2775 V=1
2776 am__doit:
2777 @$(TRUE)
2778 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2779 am_cv_make_support_nested_variables=yes
2780 else
2781 am_cv_make_support_nested_variables=no
2782 fi
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2785 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2786 if test $am_cv_make_support_nested_variables = yes; then
2787 AM_V='$(V)'
2788 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2789 else
2790 AM_V=$AM_DEFAULT_VERBOSITY
2791 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2792 fi
2793 AM_BACKSLASH='\'
2794
2795 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2796 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2797 # is not polluted with repeated "-I."
2798 am__isrc=' -I$(srcdir)'
2799 # test to see if srcdir already configured
2800 if test -f $srcdir/config.status; then
2801 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2802 fi
2803 fi
2804
2805 # test whether we have cygpath
2806 if test -z "$CYGPATH_W"; then
2807 if (cygpath --version) >/dev/null 2>/dev/null; then
2808 CYGPATH_W='cygpath -w'
2809 else
2810 CYGPATH_W=echo
2811 fi
2812 fi
2813
2814
2815 # Define the identity of the package.
2816 PACKAGE='mpc'
2817 VERSION='1.3.1'
2818
2819
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE "$PACKAGE"
2822 _ACEOF
2823
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define VERSION "$VERSION"
2827 _ACEOF
2828
2829 # Some tools Automake needs.
2830
2831 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2832
2833
2834 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2835
2836
2837 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2838
2839
2840 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2841
2842
2843 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2844
2845 # For better backward compatibility. To be removed once Automake 1.9.x
2846 # dies out for good. For more background, see:
2847 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2848 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2849 mkdir_p='$(MKDIR_P)'
2850
2851 # We need awk for the "check" target (and possibly the TAP driver). The
2852 # system "awk" is bad on some platforms.
2853 # Always define AMTAR for backward compatibility. Yes, it's still used
2854 # in the wild :-( We should find a proper way to deprecate it ...
2855 AMTAR='$${TAR-tar}'
2856
2857
2858 # We'll loop over all known methods to create a tar archive until one works.
2859 _am_tools='gnutar pax cpio none'
2860
2861 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2862
2863
2864
2865
2866
2867 # Variables for tags utilities; see am/tags.am
2868 if test -z "$CTAGS"; then
2869 CTAGS=ctags
2870 fi
2871
2872 if test -z "$ETAGS"; then
2873 ETAGS=etags
2874 fi
2875
2876 if test -z "$CSCOPE"; then
2877 CSCOPE=cscope
2878 fi
2879
2880
2881
2882 # POSIX will say in a future version that running "rm -f" with no argument
2883 # is OK; and we want to be able to make that assumption in our Makefile
2884 # recipes. So use an aggressive probe to check that the usage we want is
2885 # actually supported "in the wild" to an acceptable degree.
2886 # See automake bug#10828.
2887 # To make any issue more visible, cause the running configure to be aborted
2888 # by default if the 'rm' program in use doesn't match our expectations; the
2889 # user can still override this though.
2890 if rm -f && rm -fr && rm -rf; then : OK; else
2891 cat >&2 <<'END'
2892 Oops!
2893
2894 Your 'rm' program seems unable to run without file operands specified
2895 on the command line, even when the '-f' option is present. This is contrary
2896 to the behaviour of most rm programs out there, and not conforming with
2897 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2898
2899 Please tell bug-automake@gnu.org about your system, including the value
2900 of your $PATH and any error possibly output before this message. This
2901 can help us improve future automake versions.
2902
2903 END
2904 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2905 echo 'Configuration will proceed anyway, since you have set the' >&2
2906 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2907 echo >&2
2908 else
2909 cat >&2 <<'END'
2910 Aborting the configuration process, to ensure you take notice of the issue.
2911
2912 You can download and install GNU coreutils to get an 'rm' implementation
2913 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2914
2915 If you want to complete the configuration process using your problematic
2916 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2917 to "yes", and re-run configure.
2918
2919 END
2920 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2921 fi
2922 fi
2923
2924
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2926 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2927 # Check whether --enable-maintainer-mode was given.
2928 if test "${enable_maintainer_mode+set}" = set; then :
2929 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2930 else
2931 USE_MAINTAINER_MODE=no
2932 fi
2933
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2935 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2936 if test $USE_MAINTAINER_MODE = yes; then
2937 MAINTAINER_MODE_TRUE=
2938 MAINTAINER_MODE_FALSE='#'
2939 else
2940 MAINTAINER_MODE_TRUE='#'
2941 MAINTAINER_MODE_FALSE=
2942 fi
2943
2944 MAINT=$MAINTAINER_MODE_TRUE
2945
2946
2947
2948 USER_CC=$CC
2949 USER_CFLAGS=$CFLAGS
2950
2951 # Make sure we can run config.sub.
2952 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2953 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2956 $as_echo_n "checking build system type... " >&6; }
2957 if ${ac_cv_build+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 ac_build_alias=$build_alias
2961 test "x$ac_build_alias" = x &&
2962 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2963 test "x$ac_build_alias" = x &&
2964 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2965 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2966 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2967
2968 fi
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2970 $as_echo "$ac_cv_build" >&6; }
2971 case $ac_cv_build in
2972 *-*-*) ;;
2973 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2974 esac
2975 build=$ac_cv_build
2976 ac_save_IFS=$IFS; IFS='-'
2977 set x $ac_cv_build
2978 shift
2979 build_cpu=$1
2980 build_vendor=$2
2981 shift; shift
2982 # Remember, the first character of IFS is used to create $*,
2983 # except with old shells:
2984 build_os=$*
2985 IFS=$ac_save_IFS
2986 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2987
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2990 $as_echo_n "checking host system type... " >&6; }
2991 if ${ac_cv_host+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test "x$host_alias" = x; then
2995 ac_cv_host=$ac_cv_build
2996 else
2997 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2998 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2999 fi
3000
3001 fi
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3003 $as_echo "$ac_cv_host" >&6; }
3004 case $ac_cv_host in
3005 *-*-*) ;;
3006 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3007 esac
3008 host=$ac_cv_host
3009 ac_save_IFS=$IFS; IFS='-'
3010 set x $ac_cv_host
3011 shift
3012 host_cpu=$1
3013 host_vendor=$2
3014 shift; shift
3015 # Remember, the first character of IFS is used to create $*,
3016 # except with old shells:
3017 host_os=$*
3018 IFS=$ac_save_IFS
3019 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3020
3021
3022
3023
3024
3025 # Extra arguments to configure
3026
3027 # Check whether --with-mpfr_include was given.
3028 if test "${with_mpfr_include+set}" = set; then :
3029 withval=$with_mpfr_include; CPPFLAGS="-I$withval $CPPFLAGS"
3030 fi
3031
3032
3033 # Check whether --with-mpfr_lib was given.
3034 if test "${with_mpfr_lib+set}" = set; then :
3035 withval=$with_mpfr_lib; LDFLAGS="-L$withval $LDFLAGS"
3036 fi
3037
3038
3039 # Check whether --with-mpfr was given.
3040 if test "${with_mpfr+set}" = set; then :
3041 withval=$with_mpfr;
3042 if test -z "$with_mpfr_include" -a -z "$with_mpfr_lib" ; then
3043 CPPFLAGS="-I$withval/include $CPPFLAGS"
3044 LDFLAGS="-L$withval/lib $LDFLAGS"
3045 else
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "Do not use --with-mpfr and --with-mpfr-include/--with-mpfr-lib options simultaneously.
3049 See \`config.log' for more details" "$LINENO" 5; }
3050 fi
3051
3052 fi
3053
3054
3055 # Check whether --with-gmp_include was given.
3056 if test "${with_gmp_include+set}" = set; then :
3057 withval=$with_gmp_include; CPPFLAGS="-I$withval $CPPFLAGS"
3058 fi
3059
3060
3061 # Check whether --with-gmp_lib was given.
3062 if test "${with_gmp_lib+set}" = set; then :
3063 withval=$with_gmp_lib; LDFLAGS="-L$withval $LDFLAGS"
3064 fi
3065
3066
3067 # Check whether --with-gmp was given.
3068 if test "${with_gmp+set}" = set; then :
3069 withval=$with_gmp;
3070 if test -z "$with_gmp_lib" -a -z "$with_gmp_include" ; then
3071 CPPFLAGS="-I$withval/include $CPPFLAGS"
3072 LDFLAGS="-L$withval/lib $LDFLAGS"
3073 else
3074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3077 See \`config.log' for more details" "$LINENO" 5; }
3078 fi
3079
3080 fi
3081
3082 # Check whether --enable-logging was given.
3083 if test "${enable_logging+set}" = set; then :
3084 enableval=$enable_logging; case $enableval in
3085 yes) if test "x$enable_shared" = "xno"; then :
3086 as_fn_error $? "Logging works only with shared libraries; do not mix --enable-logging and --disable-shared" "$LINENO" 5
3087 fi ;;
3088 no) ;;
3089 *) as_fn_error $? "Bad value for --enable-logging: Use yes or no" "$LINENO" 5 ;;
3090 esac
3091
3092
3093 fi
3094
3095 # Check whether --enable-valgrind-tests was given.
3096 if test "${enable_valgrind_tests+set}" = set; then :
3097 enableval=$enable_valgrind_tests; case $enableval in
3098 yes)
3099 # Run self-tests under valgrind?
3100 if test "$cross_compiling" = no; then
3101 for ac_prog in valgrind
3102 do
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_VALGRIND+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$VALGRIND"; then
3111 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_VALGRIND="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 VALGRIND=$ac_cv_prog_VALGRIND
3131 if test -n "$VALGRIND"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
3133 $as_echo "$VALGRIND" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 test -n "$VALGRIND" && break
3141 done
3142
3143 fi
3144
3145 VALGRIND_OPTS="-q --error-exitcode=1 --leak-check=full"
3146
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is working" >&5
3148 $as_echo_n "checking whether valgrind is working... " >&6; }
3149 if test -n "$VALGRIND" \
3150 && $VALGRIND $VALGRIND_OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152 $as_echo "yes" >&6; }
3153
3154 $as_echo "#define MPC_USE_VALGRIND 1" >>confdefs.h
3155
3156 # Addition AE: enable suppression file through a shell variable
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind suppression file" >&5
3158 $as_echo_n "checking for valgrind suppression file... " >&6; }
3159 if test -n "$VALGRIND_SUPPRESSION"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_SUPPRESSION" >&5
3161 $as_echo "$VALGRIND_SUPPRESSION" >&6; }
3162 VALGRIND_OPTS="$VALGRIND_OPTS --suppressions=$VALGRIND_SUPPRESSION"
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167 else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 VALGRIND=
3171 VALGRIND_OPTS=
3172 fi
3173
3174
3175 ;;
3176 no) ;;
3177 *) as_fn_error $? "Bad value for --enable-valgrind-tests: Use yes or no" "$LINENO" 5 ;;
3178 esac
3179
3180
3181 fi
3182
3183
3184 # Check for CC and CFLAGS in gmp.h unless the user specified one of them
3185 # look for EGREP and SED here, see continued problem
3186 # at https://sympa.inria.fr/sympa/arc/mpc-discuss/2012-01/msg00001.html
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3188 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3189 if ${ac_cv_path_GREP+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -z "$GREP"; then
3193 ac_path_GREP_found=false
3194 # Loop through the user's path and test for each of PROGNAME-LIST
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_prog in grep ggrep; do
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3203 as_fn_executable_p "$ac_path_GREP" || continue
3204 # Check for GNU ac_path_GREP and select it if it is found.
3205 # Check for GNU $ac_path_GREP
3206 case `"$ac_path_GREP" --version 2>&1` in
3207 *GNU*)
3208 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3209 *)
3210 ac_count=0
3211 $as_echo_n 0123456789 >"conftest.in"
3212 while :
3213 do
3214 cat "conftest.in" "conftest.in" >"conftest.tmp"
3215 mv "conftest.tmp" "conftest.in"
3216 cp "conftest.in" "conftest.nl"
3217 $as_echo 'GREP' >> "conftest.nl"
3218 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3220 as_fn_arith $ac_count + 1 && ac_count=$as_val
3221 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3222 # Best one so far, save it but keep looking for a better one
3223 ac_cv_path_GREP="$ac_path_GREP"
3224 ac_path_GREP_max=$ac_count
3225 fi
3226 # 10*(2^10) chars as input seems more than enough
3227 test $ac_count -gt 10 && break
3228 done
3229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3230 esac
3231
3232 $ac_path_GREP_found && break 3
3233 done
3234 done
3235 done
3236 IFS=$as_save_IFS
3237 if test -z "$ac_cv_path_GREP"; then
3238 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3239 fi
3240 else
3241 ac_cv_path_GREP=$GREP
3242 fi
3243
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3246 $as_echo "$ac_cv_path_GREP" >&6; }
3247 GREP="$ac_cv_path_GREP"
3248
3249
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3251 $as_echo_n "checking for egrep... " >&6; }
3252 if ${ac_cv_path_EGREP+:} false; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3256 then ac_cv_path_EGREP="$GREP -E"
3257 else
3258 if test -z "$EGREP"; then
3259 ac_path_EGREP_found=false
3260 # Loop through the user's path and test for each of PROGNAME-LIST
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_prog in egrep; do
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3269 as_fn_executable_p "$ac_path_EGREP" || continue
3270 # Check for GNU ac_path_EGREP and select it if it is found.
3271 # Check for GNU $ac_path_EGREP
3272 case `"$ac_path_EGREP" --version 2>&1` in
3273 *GNU*)
3274 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3275 *)
3276 ac_count=0
3277 $as_echo_n 0123456789 >"conftest.in"
3278 while :
3279 do
3280 cat "conftest.in" "conftest.in" >"conftest.tmp"
3281 mv "conftest.tmp" "conftest.in"
3282 cp "conftest.in" "conftest.nl"
3283 $as_echo 'EGREP' >> "conftest.nl"
3284 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3286 as_fn_arith $ac_count + 1 && ac_count=$as_val
3287 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3288 # Best one so far, save it but keep looking for a better one
3289 ac_cv_path_EGREP="$ac_path_EGREP"
3290 ac_path_EGREP_max=$ac_count
3291 fi
3292 # 10*(2^10) chars as input seems more than enough
3293 test $ac_count -gt 10 && break
3294 done
3295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3296 esac
3297
3298 $ac_path_EGREP_found && break 3
3299 done
3300 done
3301 done
3302 IFS=$as_save_IFS
3303 if test -z "$ac_cv_path_EGREP"; then
3304 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3305 fi
3306 else
3307 ac_cv_path_EGREP=$EGREP
3308 fi
3309
3310 fi
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3313 $as_echo "$ac_cv_path_EGREP" >&6; }
3314 EGREP="$ac_cv_path_EGREP"
3315
3316
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3318 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3319 if ${ac_cv_path_SED+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3323 for ac_i in 1 2 3 4 5 6 7; do
3324 ac_script="$ac_script$as_nl$ac_script"
3325 done
3326 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3327 { ac_script=; unset ac_script;}
3328 if test -z "$SED"; then
3329 ac_path_SED_found=false
3330 # Loop through the user's path and test for each of PROGNAME-LIST
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_prog in sed gsed; do
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3339 as_fn_executable_p "$ac_path_SED" || continue
3340 # Check for GNU ac_path_SED and select it if it is found.
3341 # Check for GNU $ac_path_SED
3342 case `"$ac_path_SED" --version 2>&1` in
3343 *GNU*)
3344 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3345 *)
3346 ac_count=0
3347 $as_echo_n 0123456789 >"conftest.in"
3348 while :
3349 do
3350 cat "conftest.in" "conftest.in" >"conftest.tmp"
3351 mv "conftest.tmp" "conftest.in"
3352 cp "conftest.in" "conftest.nl"
3353 $as_echo '' >> "conftest.nl"
3354 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3356 as_fn_arith $ac_count + 1 && ac_count=$as_val
3357 if test $ac_count -gt ${ac_path_SED_max-0}; then
3358 # Best one so far, save it but keep looking for a better one
3359 ac_cv_path_SED="$ac_path_SED"
3360 ac_path_SED_max=$ac_count
3361 fi
3362 # 10*(2^10) chars as input seems more than enough
3363 test $ac_count -gt 10 && break
3364 done
3365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3366 esac
3367
3368 $ac_path_SED_found && break 3
3369 done
3370 done
3371 done
3372 IFS=$as_save_IFS
3373 if test -z "$ac_cv_path_SED"; then
3374 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3375 fi
3376 else
3377 ac_cv_path_SED=$SED
3378 fi
3379
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3382 $as_echo "$ac_cv_path_SED" >&6; }
3383 SED="$ac_cv_path_SED"
3384 rm -f conftest.sed
3385
3386 if test -z "$USER_CC" && test -z "$USER_CFLAGS"; then
3387
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3389 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3390 GMP_CC=
3391 GMP_CFLAGS=
3392 # AC_PROG_CPP triggers the search for a C compiler; use hack instead
3393 for cpp in "$CPP" cpp "gcc -E" /lib/cpp "cc -E" "c99 -E"
3394 do
3395 echo foo > conftest.c
3396 if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3397 # Get CC
3398 echo "#include \"gmp.h\"" > conftest.c
3399 echo "MPFR_OPTION __GMP_CC" >> conftest.c
3400 GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3401 # Get CFLAGS
3402 echo "#include \"gmp.h\"" > conftest.c
3403 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
3404 GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3405 break
3406 fi
3407 done
3408
3409 if test -z "$GMP_CC$GMP_CFLAGS" ; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3414 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3415 # Check for validity of CC and CFLAGS obtained from gmp.h
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3417 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3418 echo "int main (void) { return 0; }" > conftest.c
3419 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421 $as_echo "yes" >&6; }
3422 CC=$GMP_CC
3423 CFLAGS=$GMP_CFLAGS
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428 fi
3429
3430 rm -f conftest*
3431
3432 fi
3433
3434 # Setup CC and CFLAGS
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 if test -n "$ac_tool_prefix"; then
3441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if ${ac_cv_prog_CC+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 CC=$ac_cv_prog_CC
3469 if test -n "$CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 $as_echo "$CC" >&6; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 fi
3476
3477
3478 fi
3479 if test -z "$ac_cv_prog_CC"; then
3480 ac_ct_CC=$CC
3481 # Extract the first word of "gcc", so it can be a program name with args.
3482 set dummy gcc; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_ac_ct_CC="gcc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 fi
3507 fi
3508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509 if test -n "$ac_ct_CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511 $as_echo "$ac_ct_CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3515 fi
3516
3517 if test "x$ac_ct_CC" = x; then
3518 CC=""
3519 else
3520 case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3525 esac
3526 CC=$ac_ct_CC
3527 fi
3528 else
3529 CC="$ac_cv_prog_CC"
3530 fi
3531
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3535 set dummy ${ac_tool_prefix}cc; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_CC+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$CC"; then
3542 ac_cv_prog_CC="$CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_CC="${ac_tool_prefix}cc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555 done
3556 done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 CC=$ac_cv_prog_CC
3562 if test -n "$CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564 $as_echo "$CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570
3571 fi
3572 fi
3573 if test -z "$CC"; then
3574 # Extract the first word of "cc", so it can be a program name with args.
3575 set dummy cc; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_CC+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 else
3584 ac_prog_rejected=no
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3593 ac_prog_rejected=yes
3594 continue
3595 fi
3596 ac_cv_prog_CC="cc"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600 done
3601 done
3602 IFS=$as_save_IFS
3603
3604 if test $ac_prog_rejected = yes; then
3605 # We found a bogon in the path, so make sure we never use it.
3606 set dummy $ac_cv_prog_CC
3607 shift
3608 if test $# != 0; then
3609 # We chose a different compiler from the bogus one.
3610 # However, it has the same basename, so the bogon will be chosen
3611 # first if we set CC to just the basename; use the full file name.
3612 shift
3613 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3614 fi
3615 fi
3616 fi
3617 fi
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3625 fi
3626
3627
3628 fi
3629 if test -z "$CC"; then
3630 if test -n "$ac_tool_prefix"; then
3631 for ac_prog in cl.exe
3632 do
3633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if ${ac_cv_prog_CC+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3657
3658 fi
3659 fi
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 fi
3668
3669
3670 test -n "$CC" && break
3671 done
3672 fi
3673 if test -z "$CC"; then
3674 ac_ct_CC=$CC
3675 for ac_prog in cl.exe
3676 do
3677 # Extract the first word of "$ac_prog", so it can be a program name with args.
3678 set dummy $ac_prog; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -n "$ac_ct_CC"; then
3685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_ac_ct_CC="$ac_prog"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698 done
3699 done
3700 IFS=$as_save_IFS
3701
3702 fi
3703 fi
3704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3705 if test -n "$ac_ct_CC"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3707 $as_echo "$ac_ct_CC" >&6; }
3708 else
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 fi
3712
3713
3714 test -n "$ac_ct_CC" && break
3715 done
3716
3717 if test "x$ac_ct_CC" = x; then
3718 CC=""
3719 else
3720 case $cross_compiling:$ac_tool_warned in
3721 yes:)
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3724 ac_tool_warned=yes ;;
3725 esac
3726 CC=$ac_ct_CC
3727 fi
3728 fi
3729
3730 fi
3731
3732
3733 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error $? "no acceptable C compiler found in \$PATH
3736 See \`config.log' for more details" "$LINENO" 5; }
3737
3738 # Provide some information about the compiler.
3739 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3740 set X $ac_compile
3741 ac_compiler=$2
3742 for ac_option in --version -v -V -qversion; do
3743 { { ac_try="$ac_compiler $ac_option >&5"
3744 case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3751 ac_status=$?
3752 if test -s conftest.err; then
3753 sed '10a\
3754 ... rest of stderr output deleted ...
3755 10q' conftest.err >conftest.er1
3756 cat conftest.er1 >&5
3757 fi
3758 rm -f conftest.er1 conftest.err
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3761 done
3762
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765
3766 int
3767 main ()
3768 {
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 ac_clean_files_save=$ac_clean_files
3775 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3776 # Try to create an executable without -o first, disregard a.out.
3777 # It will help us diagnose broken compilers, and finding out an intuition
3778 # of exeext.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3780 $as_echo_n "checking whether the C compiler works... " >&6; }
3781 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3782
3783 # The possible output files:
3784 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3785
3786 ac_rmfiles=
3787 for ac_file in $ac_files
3788 do
3789 case $ac_file in
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3792 esac
3793 done
3794 rm -f $ac_rmfiles
3795
3796 if { { ac_try="$ac_link_default"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_link_default") 2>&5
3804 ac_status=$?
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; then :
3807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3808 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3809 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3810 # so that the user can short-circuit this test for compilers unknown to
3811 # Autoconf.
3812 for ac_file in $ac_files ''
3813 do
3814 test -f "$ac_file" || continue
3815 case $ac_file in
3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3817 ;;
3818 [ab].out )
3819 # We found the default executable, but exeext='' is most
3820 # certainly right.
3821 break;;
3822 *.* )
3823 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3824 then :; else
3825 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3826 fi
3827 # We set ac_cv_exeext here because the later test for it is not
3828 # safe: cross compilers may not add the suffix if given an `-o'
3829 # argument, so we may need to know it at that point already.
3830 # Even if this section looks crufty: it has the advantage of
3831 # actually working.
3832 break;;
3833 * )
3834 break;;
3835 esac
3836 done
3837 test "$ac_cv_exeext" = no && ac_cv_exeext=
3838
3839 else
3840 ac_file=''
3841 fi
3842 if test -z "$ac_file"; then :
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 $as_echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850 as_fn_error 77 "C compiler cannot create executables
3851 See \`config.log' for more details" "$LINENO" 5; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854 $as_echo "yes" >&6; }
3855 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3859 $as_echo "$ac_file" >&6; }
3860 ac_exeext=$ac_cv_exeext
3861
3862 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3863 ac_clean_files=$ac_clean_files_save
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3865 $as_echo_n "checking for suffix of executables... " >&6; }
3866 if { { ac_try="$ac_link"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_link") 2>&5
3874 ac_status=$?
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3878 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3879 # work properly (i.e., refer to `conftest.exe'), while it won't with
3880 # `rm'.
3881 for ac_file in conftest.exe conftest conftest.*; do
3882 test -f "$ac_file" || continue
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3886 break;;
3887 * ) break;;
3888 esac
3889 done
3890 else
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3894 See \`config.log' for more details" "$LINENO" 5; }
3895 fi
3896 rm -f conftest conftest$ac_cv_exeext
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3898 $as_echo "$ac_cv_exeext" >&6; }
3899
3900 rm -f conftest.$ac_ext
3901 EXEEXT=$ac_cv_exeext
3902 ac_exeext=$EXEEXT
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #include <stdio.h>
3906 int
3907 main ()
3908 {
3909 FILE *f = fopen ("conftest.out", "w");
3910 return ferror (f) || fclose (f) != 0;
3911
3912 ;
3913 return 0;
3914 }
3915 _ACEOF
3916 ac_clean_files="$ac_clean_files conftest.out"
3917 # Check that the compiler produces executables we can run. If not, either
3918 # the compiler is broken, or we cross compile.
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3920 $as_echo_n "checking whether we are cross compiling... " >&6; }
3921 if test "$cross_compiling" != yes; then
3922 { { ac_try="$ac_link"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_link") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }
3933 if { ac_try='./conftest$ac_cv_exeext'
3934 { { case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_try") 2>&5
3941 ac_status=$?
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; }; then
3944 cross_compiling=no
3945 else
3946 if test "$cross_compiling" = maybe; then
3947 cross_compiling=yes
3948 else
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error $? "cannot run C compiled programs.
3952 If you meant to cross compile, use \`--host'.
3953 See \`config.log' for more details" "$LINENO" 5; }
3954 fi
3955 fi
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3959
3960 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3961 ac_clean_files=$ac_clean_files_save
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3963 $as_echo_n "checking for suffix of object files... " >&6; }
3964 if ${ac_cv_objext+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969
3970 int
3971 main ()
3972 {
3973
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.o conftest.obj
3979 if { { ac_try="$ac_compile"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_compile") 2>&5
3987 ac_status=$?
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }; then :
3990 for ac_file in conftest.o conftest.obj conftest.*; do
3991 test -f "$ac_file" || continue;
3992 case $ac_file in
3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3995 break;;
3996 esac
3997 done
3998 else
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error $? "cannot compute suffix of object files: cannot compile
4005 See \`config.log' for more details" "$LINENO" 5; }
4006 fi
4007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4010 $as_echo "$ac_cv_objext" >&6; }
4011 OBJEXT=$ac_cv_objext
4012 ac_objext=$OBJEXT
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4014 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4015 if ${ac_cv_c_compiler_gnu+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main ()
4023 {
4024 #ifndef __GNUC__
4025 choke me
4026 #endif
4027
4028 ;
4029 return 0;
4030 }
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_compiler_gnu=yes
4034 else
4035 ac_compiler_gnu=no
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4039
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4042 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4043 if test $ac_compiler_gnu = yes; then
4044 GCC=yes
4045 else
4046 GCC=
4047 fi
4048 ac_test_CFLAGS=${CFLAGS+set}
4049 ac_save_CFLAGS=$CFLAGS
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4051 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4052 if ${ac_cv_prog_cc_g+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4057 ac_cv_prog_cc_g=no
4058 CFLAGS="-g"
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061
4062 int
4063 main ()
4064 {
4065
4066 ;
4067 return 0;
4068 }
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071 ac_cv_prog_cc_g=yes
4072 else
4073 CFLAGS=""
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main ()
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086
4087 else
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4089 CFLAGS="-g"
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main ()
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_prog_cc_g=yes
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 fi
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4112 $as_echo "$ac_cv_prog_cc_g" >&6; }
4113 if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4117 CFLAGS="-g -O2"
4118 else
4119 CFLAGS="-g"
4120 fi
4121 else
4122 if test "$GCC" = yes; then
4123 CFLAGS="-O2"
4124 else
4125 CFLAGS=
4126 fi
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4130 if ${ac_cv_prog_cc_c89+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 ac_cv_prog_cc_c89=no
4134 ac_save_CC=$CC
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <stdarg.h>
4138 #include <stdio.h>
4139 struct stat;
4140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4141 struct buf { int x; };
4142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4143 static char *e (p, i)
4144 char **p;
4145 int i;
4146 {
4147 return p[i];
4148 }
4149 static char *f (char * (*g) (char **, int), char **p, ...)
4150 {
4151 char *s;
4152 va_list v;
4153 va_start (v,p);
4154 s = g (p, va_arg (v,int));
4155 va_end (v);
4156 return s;
4157 }
4158
4159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4160 function prototypes and stuff, but not '\xHH' hex character constants.
4161 These don't provoke an error unfortunately, instead are silently treated
4162 as 'x'. The following induces an error, until -std is added to get
4163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4164 array size at least. It's necessary to write '\x00'==0 to get something
4165 that's true only with -std. */
4166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4167
4168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4169 inside strings and character constants. */
4170 #define FOO(x) 'x'
4171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4172
4173 int test (int i, double x);
4174 struct s1 {int (*f) (int a);};
4175 struct s2 {int (*f) (double a);};
4176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4177 int argc;
4178 char **argv;
4179 int
4180 main ()
4181 {
4182 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4189 do
4190 CC="$ac_save_CC $ac_arg"
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_cv_prog_cc_c89=$ac_arg
4193 fi
4194 rm -f core conftest.err conftest.$ac_objext
4195 test "x$ac_cv_prog_cc_c89" != "xno" && break
4196 done
4197 rm -f conftest.$ac_ext
4198 CC=$ac_save_CC
4199
4200 fi
4201 # AC_CACHE_VAL
4202 case "x$ac_cv_prog_cc_c89" in
4203 x)
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4205 $as_echo "none needed" >&6; } ;;
4206 xno)
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208 $as_echo "unsupported" >&6; } ;;
4209 *)
4210 CC="$CC $ac_cv_prog_cc_c89"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4212 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4213 esac
4214 if test "x$ac_cv_prog_cc_c89" != xno; then :
4215
4216 fi
4217
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4230 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4231 if ${am_cv_prog_cc_c_o+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236
4237 int
4238 main ()
4239 {
4240
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 # Make sure it works both with $CC and with simple cc.
4246 # Following AC_PROG_CC_C_O, we do the test twice because some
4247 # compilers refuse to overwrite an existing .o file with -o,
4248 # though they will create one.
4249 am_cv_prog_cc_c_o=yes
4250 for am_i in 1 2; do
4251 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4252 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } \
4256 && test -f conftest2.$ac_objext; then
4257 : OK
4258 else
4259 am_cv_prog_cc_c_o=no
4260 break
4261 fi
4262 done
4263 rm -f core conftest*
4264 unset am_i
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4267 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4268 if test "$am_cv_prog_cc_c_o" != yes; then
4269 # Losing compiler, so override with the script.
4270 # FIXME: It is wrong to rewrite CC.
4271 # But if we don't then we get into trouble of one sort or another.
4272 # A longer-term fix would be to have automake use am__CC in this case,
4273 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4274 CC="$am_aux_dir/compile $CC"
4275 fi
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282 DEPDIR="${am__leading_dot}deps"
4283
4284 ac_config_commands="$ac_config_commands depfiles"
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4287 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4288 cat > confinc.mk << 'END'
4289 am__doit:
4290 @echo this is the am__doit target >confinc.out
4291 .PHONY: am__doit
4292 END
4293 am__include="#"
4294 am__quote=
4295 # BSD make does it like this.
4296 echo '.include "confinc.mk" # ignored' > confmf.BSD
4297 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4298 echo 'include confinc.mk # ignored' > confmf.GNU
4299 _am_result=no
4300 for s in GNU BSD; do
4301 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4302 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }
4306 case $?:`cat confinc.out 2>/dev/null` in #(
4307 '0:this is the am__doit target') :
4308 case $s in #(
4309 BSD) :
4310 am__include='.include' am__quote='"' ;; #(
4311 *) :
4312 am__include='include' am__quote='' ;;
4313 esac ;; #(
4314 *) :
4315 ;;
4316 esac
4317 if test "$am__include" != "#"; then
4318 _am_result="yes ($s style)"
4319 break
4320 fi
4321 done
4322 rm -f confinc.* confmf.*
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4324 $as_echo "${_am_result}" >&6; }
4325
4326 # Check whether --enable-dependency-tracking was given.
4327 if test "${enable_dependency_tracking+set}" = set; then :
4328 enableval=$enable_dependency_tracking;
4329 fi
4330
4331 if test "x$enable_dependency_tracking" != xno; then
4332 am_depcomp="$ac_aux_dir/depcomp"
4333 AMDEPBACKSLASH='\'
4334 am__nodep='_no'
4335 fi
4336 if test "x$enable_dependency_tracking" != xno; then
4337 AMDEP_TRUE=
4338 AMDEP_FALSE='#'
4339 else
4340 AMDEP_TRUE='#'
4341 AMDEP_FALSE=
4342 fi
4343
4344
4345
4346 depcc="$CC" am_compiler_list=
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4349 $as_echo_n "checking dependency style of $depcc... " >&6; }
4350 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4354 # We make a subdir and do the tests there. Otherwise we can end up
4355 # making bogus files that we don't know about and never remove. For
4356 # instance it was reported that on HP-UX the gcc test will end up
4357 # making a dummy file named 'D' -- because '-MD' means "put the output
4358 # in D".
4359 rm -rf conftest.dir
4360 mkdir conftest.dir
4361 # Copy depcomp to subdir because otherwise we won't find it if we're
4362 # using a relative directory.
4363 cp "$am_depcomp" conftest.dir
4364 cd conftest.dir
4365 # We will build objects and dependencies in a subdirectory because
4366 # it helps to detect inapplicable dependency modes. For instance
4367 # both Tru64's cc and ICC support -MD to output dependencies as a
4368 # side effect of compilation, but ICC will put the dependencies in
4369 # the current directory while Tru64 will put them in the object
4370 # directory.
4371 mkdir sub
4372
4373 am_cv_CC_dependencies_compiler_type=none
4374 if test "$am_compiler_list" = ""; then
4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4376 fi
4377 am__universal=false
4378 case " $depcc " in #(
4379 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4380 esac
4381
4382 for depmode in $am_compiler_list; do
4383 # Setup a source with many dependencies, because some compilers
4384 # like to wrap large dependency lists on column 80 (with \), and
4385 # we should not choose a depcomp mode which is confused by this.
4386 #
4387 # We need to recreate these files for each test, as the compiler may
4388 # overwrite some of them when testing with obscure command lines.
4389 # This happens at least with the AIX C compiler.
4390 : > sub/conftest.c
4391 for i in 1 2 3 4 5 6; do
4392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4393 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4394 # Solaris 10 /bin/sh.
4395 echo '/* dummy */' > sub/conftst$i.h
4396 done
4397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4398
4399 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4400 # mode. It turns out that the SunPro C++ compiler does not properly
4401 # handle '-M -o', and we need to detect this. Also, some Intel
4402 # versions had trouble with output in subdirs.
4403 am__obj=sub/conftest.${OBJEXT-o}
4404 am__minus_obj="-o $am__obj"
4405 case $depmode in
4406 gcc)
4407 # This depmode causes a compiler race in universal mode.
4408 test "$am__universal" = false || continue
4409 ;;
4410 nosideeffect)
4411 # After this tag, mechanisms are not by side-effect, so they'll
4412 # only be used when explicitly requested.
4413 if test "x$enable_dependency_tracking" = xyes; then
4414 continue
4415 else
4416 break
4417 fi
4418 ;;
4419 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4420 # This compiler won't grok '-c -o', but also, the minuso test has
4421 # not run yet. These depmodes are late enough in the game, and
4422 # so weak that their functioning should not be impacted.
4423 am__obj=conftest.${OBJEXT-o}
4424 am__minus_obj=
4425 ;;
4426 none) break ;;
4427 esac
4428 if depmode=$depmode \
4429 source=sub/conftest.c object=$am__obj \
4430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4431 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4432 >/dev/null 2>conftest.err &&
4433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4435 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4437 # icc doesn't choke on unknown options, it will just issue warnings
4438 # or remarks (even with -Werror). So we grep stderr for any message
4439 # that says an option was ignored or not supported.
4440 # When given -MP, icc 7.0 and 7.1 complain thusly:
4441 # icc: Command line warning: ignoring option '-M'; no argument required
4442 # The diagnosis changed in icc 8.0:
4443 # icc: Command line remark: option '-MP' not supported
4444 if (grep 'ignoring option' conftest.err ||
4445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4446 am_cv_CC_dependencies_compiler_type=$depmode
4447 break
4448 fi
4449 fi
4450 done
4451
4452 cd ..
4453 rm -rf conftest.dir
4454 else
4455 am_cv_CC_dependencies_compiler_type=none
4456 fi
4457
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4460 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4461 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4462
4463 if
4464 test "x$enable_dependency_tracking" != xno \
4465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4466 am__fastdepCC_TRUE=
4467 am__fastdepCC_FALSE='#'
4468 else
4469 am__fastdepCC_TRUE='#'
4470 am__fastdepCC_FALSE=
4471 fi
4472
4473
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479
4480
4481 # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
4482
4483 if test -n "$ac_tool_prefix"; then
4484 for ac_prog in ar lib "link -lib"
4485 do
4486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if ${ac_cv_prog_AR+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -n "$AR"; then
4494 ac_cv_prog_AR="$AR" # Let the user override the test.
4495 else
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511 fi
4512 fi
4513 AR=$ac_cv_prog_AR
4514 if test -n "$AR"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4516 $as_echo "$AR" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522
4523 test -n "$AR" && break
4524 done
4525 fi
4526 if test -z "$AR"; then
4527 ac_ct_AR=$AR
4528 for ac_prog in ar lib "link -lib"
4529 do
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531 set dummy $ac_prog; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$ac_ct_AR"; then
4538 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_ac_ct_AR="$ac_prog"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4553 IFS=$as_save_IFS
4554
4555 fi
4556 fi
4557 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4558 if test -n "$ac_ct_AR"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4560 $as_echo "$ac_ct_AR" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4564 fi
4565
4566
4567 test -n "$ac_ct_AR" && break
4568 done
4569
4570 if test "x$ac_ct_AR" = x; then
4571 AR="false"
4572 else
4573 case $cross_compiling:$ac_tool_warned in
4574 yes:)
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577 ac_tool_warned=yes ;;
4578 esac
4579 AR=$ac_ct_AR
4580 fi
4581 fi
4582
4583 : ${AR=ar}
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4586 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4587 if ${am_cv_ar_interface+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 ac_ext=c
4591 ac_cpp='$CPP $CPPFLAGS'
4592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4595
4596 am_cv_ar_interface=ar
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 int some_variable = 0;
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4604 (eval $am_ar_try) 2>&5
4605 ac_status=$?
4606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607 test $ac_status = 0; }
4608 if test "$ac_status" -eq 0; then
4609 am_cv_ar_interface=ar
4610 else
4611 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4613 (eval $am_ar_try) 2>&5
4614 ac_status=$?
4615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4616 test $ac_status = 0; }
4617 if test "$ac_status" -eq 0; then
4618 am_cv_ar_interface=lib
4619 else
4620 am_cv_ar_interface=unknown
4621 fi
4622 fi
4623 rm -f conftest.lib libconftest.a
4624
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 ac_ext=c
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4635 $as_echo "$am_cv_ar_interface" >&6; }
4636
4637 case $am_cv_ar_interface in
4638 ar)
4639 ;;
4640 lib)
4641 # Microsoft lib, so override with the ar-lib wrapper script.
4642 # FIXME: It is wrong to rewrite AR.
4643 # But if we don't then we get into trouble of one sort or another.
4644 # A longer-term fix would be to have automake use am__AR in this case,
4645 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4646 # similar.
4647 AR="$am_aux_dir/ar-lib $AR"
4648 ;;
4649 unknown)
4650 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4651 ;;
4652 esac
4653
4654
4655 # Set up LibTool
4656 case `pwd` in
4657 *\ * | *\ *)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4659 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4660 esac
4661
4662
4663
4664 macro_version='2.4.7'
4665 macro_revision='2.4.7'
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679 ltmain=$ac_aux_dir/ltmain.sh
4680
4681 # Backslashify metacharacters that are still active within
4682 # double-quoted strings.
4683 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4684
4685 # Same as above, but do not quote variable references.
4686 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4687
4688 # Sed substitution to delay expansion of an escaped shell variable in a
4689 # double_quote_subst'ed string.
4690 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4691
4692 # Sed substitution to delay expansion of an escaped single quote.
4693 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4694
4695 # Sed substitution to avoid accidental globbing in evaled expressions
4696 no_glob_subst='s/\*/\\\*/g'
4697
4698 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4699 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4700 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4701
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4703 $as_echo_n "checking how to print strings... " >&6; }
4704 # Test print first, because it will be a builtin if present.
4705 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4706 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4707 ECHO='print -r --'
4708 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4709 ECHO='printf %s\n'
4710 else
4711 # Use this function as a fallback that always works.
4712 func_fallback_echo ()
4713 {
4714 eval 'cat <<_LTECHO_EOF
4715 $1
4716 _LTECHO_EOF'
4717 }
4718 ECHO='func_fallback_echo'
4719 fi
4720
4721 # func_echo_all arg...
4722 # Invoke $ECHO with all args, space-separated.
4723 func_echo_all ()
4724 {
4725 $ECHO ""
4726 }
4727
4728 case $ECHO in
4729 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4730 $as_echo "printf" >&6; } ;;
4731 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4732 $as_echo "print -r" >&6; } ;;
4733 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4734 $as_echo "cat" >&6; } ;;
4735 esac
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4751 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4752 if ${ac_cv_path_SED+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4756 for ac_i in 1 2 3 4 5 6 7; do
4757 ac_script="$ac_script$as_nl$ac_script"
4758 done
4759 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4760 { ac_script=; unset ac_script;}
4761 if test -z "$SED"; then
4762 ac_path_SED_found=false
4763 # Loop through the user's path and test for each of PROGNAME-LIST
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_prog in sed gsed; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4772 as_fn_executable_p "$ac_path_SED" || continue
4773 # Check for GNU ac_path_SED and select it if it is found.
4774 # Check for GNU $ac_path_SED
4775 case `"$ac_path_SED" --version 2>&1` in
4776 *GNU*)
4777 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4778 *)
4779 ac_count=0
4780 $as_echo_n 0123456789 >"conftest.in"
4781 while :
4782 do
4783 cat "conftest.in" "conftest.in" >"conftest.tmp"
4784 mv "conftest.tmp" "conftest.in"
4785 cp "conftest.in" "conftest.nl"
4786 $as_echo '' >> "conftest.nl"
4787 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789 as_fn_arith $ac_count + 1 && ac_count=$as_val
4790 if test $ac_count -gt ${ac_path_SED_max-0}; then
4791 # Best one so far, save it but keep looking for a better one
4792 ac_cv_path_SED="$ac_path_SED"
4793 ac_path_SED_max=$ac_count
4794 fi
4795 # 10*(2^10) chars as input seems more than enough
4796 test $ac_count -gt 10 && break
4797 done
4798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799 esac
4800
4801 $ac_path_SED_found && break 3
4802 done
4803 done
4804 done
4805 IFS=$as_save_IFS
4806 if test -z "$ac_cv_path_SED"; then
4807 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4808 fi
4809 else
4810 ac_cv_path_SED=$SED
4811 fi
4812
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4815 $as_echo "$ac_cv_path_SED" >&6; }
4816 SED="$ac_cv_path_SED"
4817 rm -f conftest.sed
4818
4819 test -z "$SED" && SED=sed
4820 Xsed="$SED -e 1s/^X//"
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4833 $as_echo_n "checking for fgrep... " >&6; }
4834 if ${ac_cv_path_FGREP+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4838 then ac_cv_path_FGREP="$GREP -F"
4839 else
4840 if test -z "$FGREP"; then
4841 ac_path_FGREP_found=false
4842 # Loop through the user's path and test for each of PROGNAME-LIST
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4845 do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_prog in fgrep; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4851 as_fn_executable_p "$ac_path_FGREP" || continue
4852 # Check for GNU ac_path_FGREP and select it if it is found.
4853 # Check for GNU $ac_path_FGREP
4854 case `"$ac_path_FGREP" --version 2>&1` in
4855 *GNU*)
4856 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4857 *)
4858 ac_count=0
4859 $as_echo_n 0123456789 >"conftest.in"
4860 while :
4861 do
4862 cat "conftest.in" "conftest.in" >"conftest.tmp"
4863 mv "conftest.tmp" "conftest.in"
4864 cp "conftest.in" "conftest.nl"
4865 $as_echo 'FGREP' >> "conftest.nl"
4866 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868 as_fn_arith $ac_count + 1 && ac_count=$as_val
4869 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4870 # Best one so far, save it but keep looking for a better one
4871 ac_cv_path_FGREP="$ac_path_FGREP"
4872 ac_path_FGREP_max=$ac_count
4873 fi
4874 # 10*(2^10) chars as input seems more than enough
4875 test $ac_count -gt 10 && break
4876 done
4877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4878 esac
4879
4880 $ac_path_FGREP_found && break 3
4881 done
4882 done
4883 done
4884 IFS=$as_save_IFS
4885 if test -z "$ac_cv_path_FGREP"; then
4886 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4887 fi
4888 else
4889 ac_cv_path_FGREP=$FGREP
4890 fi
4891
4892 fi
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4895 $as_echo "$ac_cv_path_FGREP" >&6; }
4896 FGREP="$ac_cv_path_FGREP"
4897
4898
4899 test -z "$GREP" && GREP=grep
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 # Check whether --with-gnu-ld was given.
4920 if test "${with_gnu_ld+set}" = set; then :
4921 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4922 else
4923 with_gnu_ld=no
4924 fi
4925
4926 ac_prog=ld
4927 if test yes = "$GCC"; then
4928 # Check if gcc -print-prog-name=ld gives a path.
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4930 $as_echo_n "checking for ld used by $CC... " >&6; }
4931 case $host in
4932 *-*-mingw*)
4933 # gcc leaves a trailing carriage return, which upsets mingw
4934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4935 *)
4936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4937 esac
4938 case $ac_prog in
4939 # Accept absolute paths.
4940 [\\/]* | ?:[\\/]*)
4941 re_direlt='/[^/][^/]*/\.\./'
4942 # Canonicalize the pathname of ld
4943 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4944 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4945 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4946 done
4947 test -z "$LD" && LD=$ac_prog
4948 ;;
4949 "")
4950 # If it fails, then pretend we aren't using GCC.
4951 ac_prog=ld
4952 ;;
4953 *)
4954 # If it is relative, then search for the first ld in PATH.
4955 with_gnu_ld=unknown
4956 ;;
4957 esac
4958 elif test yes = "$with_gnu_ld"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4960 $as_echo_n "checking for GNU ld... " >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4963 $as_echo_n "checking for non-GNU ld... " >&6; }
4964 fi
4965 if ${lt_cv_path_LD+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -z "$LD"; then
4969 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4970 for ac_dir in $PATH; do
4971 IFS=$lt_save_ifs
4972 test -z "$ac_dir" && ac_dir=.
4973 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4974 lt_cv_path_LD=$ac_dir/$ac_prog
4975 # Check to see if the program is GNU ld. I'd rather use --version,
4976 # but apparently some variants of GNU ld only accept -v.
4977 # Break only if it was the GNU/non-GNU ld that we prefer.
4978 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4979 *GNU* | *'with BFD'*)
4980 test no != "$with_gnu_ld" && break
4981 ;;
4982 *)
4983 test yes != "$with_gnu_ld" && break
4984 ;;
4985 esac
4986 fi
4987 done
4988 IFS=$lt_save_ifs
4989 else
4990 lt_cv_path_LD=$LD # Let the user override the test with a path.
4991 fi
4992 fi
4993
4994 LD=$lt_cv_path_LD
4995 if test -n "$LD"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4997 $as_echo "$LD" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 fi
5002 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5004 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5005 if ${lt_cv_prog_gnu_ld+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5009 case `$LD -v 2>&1 </dev/null` in
5010 *GNU* | *'with BFD'*)
5011 lt_cv_prog_gnu_ld=yes
5012 ;;
5013 *)
5014 lt_cv_prog_gnu_ld=no
5015 ;;
5016 esac
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5019 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5020 with_gnu_ld=$lt_cv_prog_gnu_ld
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5031 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5032 if ${lt_cv_path_NM+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$NM"; then
5036 # Let the user override the test.
5037 lt_cv_path_NM=$NM
5038 else
5039 lt_nm_to_check=${ac_tool_prefix}nm
5040 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5041 lt_nm_to_check="$lt_nm_to_check nm"
5042 fi
5043 for lt_tmp_nm in $lt_nm_to_check; do
5044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5045 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5046 IFS=$lt_save_ifs
5047 test -z "$ac_dir" && ac_dir=.
5048 tmp_nm=$ac_dir/$lt_tmp_nm
5049 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5050 # Check to see if the nm accepts a BSD-compat flag.
5051 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5052 # nm: unknown option "B" ignored
5053 # Tru64's nm complains that /dev/null is an invalid object file
5054 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5055 case $build_os in
5056 mingw*) lt_bad_file=conftest.nm/nofile ;;
5057 *) lt_bad_file=/dev/null ;;
5058 esac
5059 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5060 *$lt_bad_file* | *'Invalid file or object type'*)
5061 lt_cv_path_NM="$tmp_nm -B"
5062 break 2
5063 ;;
5064 *)
5065 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5066 */dev/null*)
5067 lt_cv_path_NM="$tmp_nm -p"
5068 break 2
5069 ;;
5070 *)
5071 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5072 continue # so that we can try to find one that supports BSD flags
5073 ;;
5074 esac
5075 ;;
5076 esac
5077 fi
5078 done
5079 IFS=$lt_save_ifs
5080 done
5081 : ${lt_cv_path_NM=no}
5082 fi
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5085 $as_echo "$lt_cv_path_NM" >&6; }
5086 if test no != "$lt_cv_path_NM"; then
5087 NM=$lt_cv_path_NM
5088 else
5089 # Didn't find any BSD compatible name lister, look for dumpbin.
5090 if test -n "$DUMPBIN"; then :
5091 # Let the user override the test.
5092 else
5093 if test -n "$ac_tool_prefix"; then
5094 for ac_prog in dumpbin "link -dump"
5095 do
5096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_DUMPBIN+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$DUMPBIN"; then
5104 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 fi
5122 fi
5123 DUMPBIN=$ac_cv_prog_DUMPBIN
5124 if test -n "$DUMPBIN"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5126 $as_echo "$DUMPBIN" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 test -n "$DUMPBIN" && break
5134 done
5135 fi
5136 if test -z "$DUMPBIN"; then
5137 ac_ct_DUMPBIN=$DUMPBIN
5138 for ac_prog in dumpbin "link -dump"
5139 do
5140 # Extract the first word of "$ac_prog", so it can be a program name with args.
5141 set dummy $ac_prog; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$ac_ct_DUMPBIN"; then
5148 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 fi
5166 fi
5167 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5168 if test -n "$ac_ct_DUMPBIN"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5170 $as_echo "$ac_ct_DUMPBIN" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176
5177 test -n "$ac_ct_DUMPBIN" && break
5178 done
5179
5180 if test "x$ac_ct_DUMPBIN" = x; then
5181 DUMPBIN=":"
5182 else
5183 case $cross_compiling:$ac_tool_warned in
5184 yes:)
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187 ac_tool_warned=yes ;;
5188 esac
5189 DUMPBIN=$ac_ct_DUMPBIN
5190 fi
5191 fi
5192
5193 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5194 *COFF*)
5195 DUMPBIN="$DUMPBIN -symbols -headers"
5196 ;;
5197 *)
5198 DUMPBIN=:
5199 ;;
5200 esac
5201 fi
5202
5203 if test : != "$DUMPBIN"; then
5204 NM=$DUMPBIN
5205 fi
5206 fi
5207 test -z "$NM" && NM=nm
5208
5209
5210
5211
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5215 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5216 if ${lt_cv_nm_interface+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 lt_cv_nm_interface="BSD nm"
5220 echo "int some_variable = 0;" > conftest.$ac_ext
5221 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5222 (eval "$ac_compile" 2>conftest.err)
5223 cat conftest.err >&5
5224 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5225 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5226 cat conftest.err >&5
5227 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5228 cat conftest.out >&5
5229 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5230 lt_cv_nm_interface="MS dumpbin"
5231 fi
5232 rm -f conftest*
5233 fi
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5235 $as_echo "$lt_cv_nm_interface" >&6; }
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5238 $as_echo_n "checking whether ln -s works... " >&6; }
5239 LN_S=$as_ln_s
5240 if test "$LN_S" = "ln -s"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242 $as_echo "yes" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5245 $as_echo "no, using $LN_S" >&6; }
5246 fi
5247
5248 # find the maximum length of command line arguments
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5250 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5251 if ${lt_cv_sys_max_cmd_len+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 i=0
5255 teststring=ABCD
5256
5257 case $build_os in
5258 msdosdjgpp*)
5259 # On DJGPP, this test can blow up pretty badly due to problems in libc
5260 # (any single argument exceeding 2000 bytes causes a buffer overrun
5261 # during glob expansion). Even if it were fixed, the result of this
5262 # check would be larger than it should be.
5263 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5264 ;;
5265
5266 gnu*)
5267 # Under GNU Hurd, this test is not required because there is
5268 # no limit to the length of command line arguments.
5269 # Libtool will interpret -1 as no limit whatsoever
5270 lt_cv_sys_max_cmd_len=-1;
5271 ;;
5272
5273 cygwin* | mingw* | cegcc*)
5274 # On Win9x/ME, this test blows up -- it succeeds, but takes
5275 # about 5 minutes as the teststring grows exponentially.
5276 # Worse, since 9x/ME are not pre-emptively multitasking,
5277 # you end up with a "frozen" computer, even though with patience
5278 # the test eventually succeeds (with a max line length of 256k).
5279 # Instead, let's just punt: use the minimum linelength reported by
5280 # all of the supported platforms: 8192 (on NT/2K/XP).
5281 lt_cv_sys_max_cmd_len=8192;
5282 ;;
5283
5284 mint*)
5285 # On MiNT this can take a long time and run out of memory.
5286 lt_cv_sys_max_cmd_len=8192;
5287 ;;
5288
5289 amigaos*)
5290 # On AmigaOS with pdksh, this test takes hours, literally.
5291 # So we just punt and use a minimum line length of 8192.
5292 lt_cv_sys_max_cmd_len=8192;
5293 ;;
5294
5295 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5296 # This has been around since 386BSD, at least. Likely further.
5297 if test -x /sbin/sysctl; then
5298 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5299 elif test -x /usr/sbin/sysctl; then
5300 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5301 else
5302 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5303 fi
5304 # And add a safety zone
5305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5307 ;;
5308
5309 interix*)
5310 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5311 lt_cv_sys_max_cmd_len=196608
5312 ;;
5313
5314 os2*)
5315 # The test takes a long time on OS/2.
5316 lt_cv_sys_max_cmd_len=8192
5317 ;;
5318
5319 osf*)
5320 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5321 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5322 # nice to cause kernel panics so lets avoid the loop below.
5323 # First set a reasonable default.
5324 lt_cv_sys_max_cmd_len=16384
5325 #
5326 if test -x /sbin/sysconfig; then
5327 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5328 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5329 esac
5330 fi
5331 ;;
5332 sco3.2v5*)
5333 lt_cv_sys_max_cmd_len=102400
5334 ;;
5335 sysv5* | sco5v6* | sysv4.2uw2*)
5336 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5337 if test -n "$kargmax"; then
5338 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5339 else
5340 lt_cv_sys_max_cmd_len=32768
5341 fi
5342 ;;
5343 *)
5344 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5345 if test -n "$lt_cv_sys_max_cmd_len" && \
5346 test undefined != "$lt_cv_sys_max_cmd_len"; then
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5349 else
5350 # Make teststring a little bigger before we do anything with it.
5351 # a 1K string should be a reasonable start.
5352 for i in 1 2 3 4 5 6 7 8; do
5353 teststring=$teststring$teststring
5354 done
5355 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5356 # If test is not a shell built-in, we'll probably end up computing a
5357 # maximum length that is only half of the actual maximum length, but
5358 # we can't tell.
5359 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5360 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5361 test 17 != "$i" # 1/2 MB should be enough
5362 do
5363 i=`expr $i + 1`
5364 teststring=$teststring$teststring
5365 done
5366 # Only check the string length outside the loop.
5367 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5368 teststring=
5369 # Add a significant safety factor because C++ compilers can tack on
5370 # massive amounts of additional arguments before passing them to the
5371 # linker. It appears as though 1/2 is a usable value.
5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5373 fi
5374 ;;
5375 esac
5376
5377 fi
5378
5379 if test -n "$lt_cv_sys_max_cmd_len"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5381 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5384 $as_echo "none" >&6; }
5385 fi
5386 max_cmd_len=$lt_cv_sys_max_cmd_len
5387
5388
5389
5390
5391
5392
5393 : ${CP="cp -f"}
5394 : ${MV="mv -f"}
5395 : ${RM="rm -f"}
5396
5397 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5398 lt_unset=unset
5399 else
5400 lt_unset=false
5401 fi
5402
5403
5404
5405
5406
5407 # test EBCDIC or ASCII
5408 case `echo X|tr X '\101'` in
5409 A) # ASCII based system
5410 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5411 lt_SP2NL='tr \040 \012'
5412 lt_NL2SP='tr \015\012 \040\040'
5413 ;;
5414 *) # EBCDIC based system
5415 lt_SP2NL='tr \100 \n'
5416 lt_NL2SP='tr \r\n \100\100'
5417 ;;
5418 esac
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5429 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5430 if ${lt_cv_to_host_file_cmd+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 case $host in
5434 *-*-mingw* )
5435 case $build in
5436 *-*-mingw* ) # actually msys
5437 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5438 ;;
5439 *-*-cygwin* )
5440 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5441 ;;
5442 * ) # otherwise, assume *nix
5443 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5444 ;;
5445 esac
5446 ;;
5447 *-*-cygwin* )
5448 case $build in
5449 *-*-mingw* ) # actually msys
5450 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5451 ;;
5452 *-*-cygwin* )
5453 lt_cv_to_host_file_cmd=func_convert_file_noop
5454 ;;
5455 * ) # otherwise, assume *nix
5456 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5457 ;;
5458 esac
5459 ;;
5460 * ) # unhandled hosts (and "normal" native builds)
5461 lt_cv_to_host_file_cmd=func_convert_file_noop
5462 ;;
5463 esac
5464
5465 fi
5466
5467 to_host_file_cmd=$lt_cv_to_host_file_cmd
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5469 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5470
5471
5472
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5476 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5477 if ${lt_cv_to_tool_file_cmd+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 #assume ordinary cross tools, or native build.
5481 lt_cv_to_tool_file_cmd=func_convert_file_noop
5482 case $host in
5483 *-*-mingw* )
5484 case $build in
5485 *-*-mingw* ) # actually msys
5486 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5487 ;;
5488 esac
5489 ;;
5490 esac
5491
5492 fi
5493
5494 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5496 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5497
5498
5499
5500
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5503 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5504 if ${lt_cv_ld_reload_flag+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 lt_cv_ld_reload_flag='-r'
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5510 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5511 reload_flag=$lt_cv_ld_reload_flag
5512 case $reload_flag in
5513 "" | " "*) ;;
5514 *) reload_flag=" $reload_flag" ;;
5515 esac
5516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5517 case $host_os in
5518 cygwin* | mingw* | pw32* | cegcc*)
5519 if test yes != "$GCC"; then
5520 reload_cmds=false
5521 fi
5522 ;;
5523 darwin*)
5524 if test yes = "$GCC"; then
5525 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5526 else
5527 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5528 fi
5529 ;;
5530 esac
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 if test -n "$ac_tool_prefix"; then
5541 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}file; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_FILECMD+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -n "$FILECMD"; then
5549 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5561 fi
5562 done
5563 done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 FILECMD=$ac_cv_prog_FILECMD
5569 if test -n "$FILECMD"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5571 $as_echo "$FILECMD" >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578 fi
5579 if test -z "$ac_cv_prog_FILECMD"; then
5580 ac_ct_FILECMD=$FILECMD
5581 # Extract the first word of "file", so it can be a program name with args.
5582 set dummy file; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_FILECMD+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if test -n "$ac_ct_FILECMD"; then
5589 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_ac_ct_FILECMD="file"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5601 fi
5602 done
5603 done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5609 if test -n "$ac_ct_FILECMD"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5611 $as_echo "$ac_ct_FILECMD" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617 if test "x$ac_ct_FILECMD" = x; then
5618 FILECMD=":"
5619 else
5620 case $cross_compiling:$ac_tool_warned in
5621 yes:)
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5625 esac
5626 FILECMD=$ac_ct_FILECMD
5627 fi
5628 else
5629 FILECMD="$ac_cv_prog_FILECMD"
5630 fi
5631
5632
5633
5634
5635
5636
5637
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_OBJDUMP+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$OBJDUMP"; then
5647 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660 done
5661 done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 OBJDUMP=$ac_cv_prog_OBJDUMP
5667 if test -n "$OBJDUMP"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5669 $as_echo "$OBJDUMP" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675
5676 fi
5677 if test -z "$ac_cv_prog_OBJDUMP"; then
5678 ac_ct_OBJDUMP=$OBJDUMP
5679 # Extract the first word of "objdump", so it can be a program name with args.
5680 set dummy objdump; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$ac_ct_OBJDUMP"; then
5687 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700 done
5701 done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5707 if test -n "$ac_ct_OBJDUMP"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5709 $as_echo "$ac_ct_OBJDUMP" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715 if test "x$ac_ct_OBJDUMP" = x; then
5716 OBJDUMP="false"
5717 else
5718 case $cross_compiling:$ac_tool_warned in
5719 yes:)
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722 ac_tool_warned=yes ;;
5723 esac
5724 OBJDUMP=$ac_ct_OBJDUMP
5725 fi
5726 else
5727 OBJDUMP="$ac_cv_prog_OBJDUMP"
5728 fi
5729
5730 test -z "$OBJDUMP" && OBJDUMP=objdump
5731
5732
5733
5734
5735
5736
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5738 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5739 if ${lt_cv_deplibs_check_method+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 lt_cv_file_magic_cmd='$MAGIC_CMD'
5743 lt_cv_file_magic_test_file=
5744 lt_cv_deplibs_check_method='unknown'
5745 # Need to set the preceding variable on all platforms that support
5746 # interlibrary dependencies.
5747 # 'none' -- dependencies not supported.
5748 # 'unknown' -- same as none, but documents that we really don't know.
5749 # 'pass_all' -- all dependencies passed with no checks.
5750 # 'test_compile' -- check by making test program.
5751 # 'file_magic [[regex]]' -- check by looking for files in library path
5752 # that responds to the $file_magic_cmd with a given extended regex.
5753 # If you have 'file' or equivalent on your system and you're not sure
5754 # whether 'pass_all' will *always* work, you probably want this one.
5755
5756 case $host_os in
5757 aix[4-9]*)
5758 lt_cv_deplibs_check_method=pass_all
5759 ;;
5760
5761 beos*)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764
5765 bsdi[45]*)
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5767 lt_cv_file_magic_cmd='$FILECMD -L'
5768 lt_cv_file_magic_test_file=/shlib/libc.so
5769 ;;
5770
5771 cygwin*)
5772 # func_win32_libid is a shell function defined in ltmain.sh
5773 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5774 lt_cv_file_magic_cmd='func_win32_libid'
5775 ;;
5776
5777 mingw* | pw32*)
5778 # Base MSYS/MinGW do not provide the 'file' command needed by
5779 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5780 # unless we find 'file', for example because we are cross-compiling.
5781 if ( file / ) >/dev/null 2>&1; then
5782 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5783 lt_cv_file_magic_cmd='func_win32_libid'
5784 else
5785 # Keep this pattern in sync with the one in func_win32_libid.
5786 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5787 lt_cv_file_magic_cmd='$OBJDUMP -f'
5788 fi
5789 ;;
5790
5791 cegcc*)
5792 # use the weaker test based on 'objdump'. See mingw*.
5793 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5794 lt_cv_file_magic_cmd='$OBJDUMP -f'
5795 ;;
5796
5797 darwin* | rhapsody*)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800
5801 freebsd* | dragonfly* | midnightbsd*)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 case $host_cpu in
5804 i*86 )
5805 # Not sure whether the presence of OpenBSD here was a mistake.
5806 # Let's accept both of them until this is cleared up.
5807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5808 lt_cv_file_magic_cmd=$FILECMD
5809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5810 ;;
5811 esac
5812 else
5813 lt_cv_deplibs_check_method=pass_all
5814 fi
5815 ;;
5816
5817 haiku*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820
5821 hpux10.20* | hpux11*)
5822 lt_cv_file_magic_cmd=$FILECMD
5823 case $host_cpu in
5824 ia64*)
5825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5826 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5827 ;;
5828 hppa*64*)
5829 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]'
5830 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5831 ;;
5832 *)
5833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5835 ;;
5836 esac
5837 ;;
5838
5839 interix[3-9]*)
5840 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5842 ;;
5843
5844 irix5* | irix6* | nonstopux*)
5845 case $LD in
5846 *-32|*"-32 ") libmagic=32-bit;;
5847 *-n32|*"-n32 ") libmagic=N32;;
5848 *-64|*"-64 ") libmagic=64-bit;;
5849 *) libmagic=never-match;;
5850 esac
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853
5854 # This must be glibc/ELF.
5855 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 netbsd*)
5860 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5862 else
5863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5864 fi
5865 ;;
5866
5867 newos6*)
5868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5869 lt_cv_file_magic_cmd=$FILECMD
5870 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5871 ;;
5872
5873 *nto* | *qnx*)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876
5877 openbsd* | bitrig*)
5878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5880 else
5881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5882 fi
5883 ;;
5884
5885 osf3* | osf4* | osf5*)
5886 lt_cv_deplibs_check_method=pass_all
5887 ;;
5888
5889 rdos*)
5890 lt_cv_deplibs_check_method=pass_all
5891 ;;
5892
5893 solaris*)
5894 lt_cv_deplibs_check_method=pass_all
5895 ;;
5896
5897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
5900
5901 sysv4 | sysv4.3*)
5902 case $host_vendor in
5903 motorola)
5904 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]'
5905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5906 ;;
5907 ncr)
5908 lt_cv_deplibs_check_method=pass_all
5909 ;;
5910 sequent)
5911 lt_cv_file_magic_cmd='/bin/file'
5912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5913 ;;
5914 sni)
5915 lt_cv_file_magic_cmd='/bin/file'
5916 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5917 lt_cv_file_magic_test_file=/lib/libc.so
5918 ;;
5919 siemens)
5920 lt_cv_deplibs_check_method=pass_all
5921 ;;
5922 pc)
5923 lt_cv_deplibs_check_method=pass_all
5924 ;;
5925 esac
5926 ;;
5927
5928 tpf*)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931 os2*)
5932 lt_cv_deplibs_check_method=pass_all
5933 ;;
5934 esac
5935
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5938 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5939
5940 file_magic_glob=
5941 want_nocaseglob=no
5942 if test "$build" = "$host"; then
5943 case $host_os in
5944 mingw* | pw32*)
5945 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5946 want_nocaseglob=yes
5947 else
5948 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5949 fi
5950 ;;
5951 esac
5952 fi
5953
5954 file_magic_cmd=$lt_cv_file_magic_cmd
5955 deplibs_check_method=$lt_cv_deplibs_check_method
5956 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979 if test -n "$ac_tool_prefix"; then
5980 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5981 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if ${ac_cv_prog_DLLTOOL+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 if test -n "$DLLTOOL"; then
5988 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001 done
6002 done
6003 IFS=$as_save_IFS
6004
6005 fi
6006 fi
6007 DLLTOOL=$ac_cv_prog_DLLTOOL
6008 if test -n "$DLLTOOL"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6010 $as_echo "$DLLTOOL" >&6; }
6011 else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013 $as_echo "no" >&6; }
6014 fi
6015
6016
6017 fi
6018 if test -z "$ac_cv_prog_DLLTOOL"; then
6019 ac_ct_DLLTOOL=$DLLTOOL
6020 # Extract the first word of "dlltool", so it can be a program name with args.
6021 set dummy dlltool; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -n "$ac_ct_DLLTOOL"; then
6028 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6048 if test -n "$ac_ct_DLLTOOL"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6050 $as_echo "$ac_ct_DLLTOOL" >&6; }
6051 else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6054 fi
6055
6056 if test "x$ac_ct_DLLTOOL" = x; then
6057 DLLTOOL="false"
6058 else
6059 case $cross_compiling:$ac_tool_warned in
6060 yes:)
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6063 ac_tool_warned=yes ;;
6064 esac
6065 DLLTOOL=$ac_ct_DLLTOOL
6066 fi
6067 else
6068 DLLTOOL="$ac_cv_prog_DLLTOOL"
6069 fi
6070
6071 test -z "$DLLTOOL" && DLLTOOL=dlltool
6072
6073
6074
6075
6076
6077
6078
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6080 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6081 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 lt_cv_sharedlib_from_linklib_cmd='unknown'
6085
6086 case $host_os in
6087 cygwin* | mingw* | pw32* | cegcc*)
6088 # two different shell functions defined in ltmain.sh;
6089 # decide which one to use based on capabilities of $DLLTOOL
6090 case `$DLLTOOL --help 2>&1` in
6091 *--identify-strict*)
6092 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6093 ;;
6094 *)
6095 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6096 ;;
6097 esac
6098 ;;
6099 *)
6100 # fallback: assume linklib IS sharedlib
6101 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6102 ;;
6103 esac
6104
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6107 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6108 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6109 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6110
6111
6112
6113
6114
6115
6116
6117 if test -n "$ac_tool_prefix"; then
6118 for ac_prog in ar
6119 do
6120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_AR+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if test -n "$AR"; then
6128 ac_cv_prog_AR="$AR" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 AR=$ac_cv_prog_AR
6148 if test -n "$AR"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6150 $as_echo "$AR" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156
6157 test -n "$AR" && break
6158 done
6159 fi
6160 if test -z "$AR"; then
6161 ac_ct_AR=$AR
6162 for ac_prog in ar
6163 do
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$ac_ct_AR"; then
6172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_AR="$ac_prog"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6194 $as_echo "$ac_ct_AR" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200
6201 test -n "$ac_ct_AR" && break
6202 done
6203
6204 if test "x$ac_ct_AR" = x; then
6205 AR="false"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 AR=$ac_ct_AR
6214 fi
6215 fi
6216
6217 : ${AR=ar}
6218
6219
6220
6221
6222
6223
6224 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6225 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6226 # higher priority because thats what people were doing historically (setting
6227 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6228 # variable obsoleted/removed.
6229
6230 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6231 lt_ar_flags=$AR_FLAGS
6232
6233
6234
6235
6236
6237
6238 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6239 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6240
6241
6242
6243
6244
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6247 $as_echo_n "checking for archiver @FILE support... " >&6; }
6248 if ${lt_cv_ar_at_file+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 lt_cv_ar_at_file=no
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254
6255 int
6256 main ()
6257 {
6258
6259 ;
6260 return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"; then :
6264 echo conftest.$ac_objext > conftest.lst
6265 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6267 (eval $lt_ar_try) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; }
6271 if test 0 -eq "$ac_status"; then
6272 # Ensure the archiver fails upon bogus file names.
6273 rm -f conftest.$ac_objext libconftest.a
6274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6275 (eval $lt_ar_try) 2>&5
6276 ac_status=$?
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }
6279 if test 0 -ne "$ac_status"; then
6280 lt_cv_ar_at_file=@
6281 fi
6282 fi
6283 rm -f conftest.* libconftest.a
6284
6285 fi
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287
6288 fi
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6290 $as_echo "$lt_cv_ar_at_file" >&6; }
6291
6292 if test no = "$lt_cv_ar_at_file"; then
6293 archiver_list_spec=
6294 else
6295 archiver_list_spec=$lt_cv_ar_at_file
6296 fi
6297
6298
6299
6300
6301
6302
6303
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}strip; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_STRIP+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$STRIP"; then
6313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 STRIP=$ac_cv_prog_STRIP
6333 if test -n "$STRIP"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6335 $as_echo "$STRIP" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_STRIP"; then
6344 ac_ct_STRIP=$STRIP
6345 # Extract the first word of "strip", so it can be a program name with args.
6346 set dummy strip; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_STRIP"; then
6353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_STRIP="strip"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6373 if test -n "$ac_ct_STRIP"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6375 $as_echo "$ac_ct_STRIP" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381 if test "x$ac_ct_STRIP" = x; then
6382 STRIP=":"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 STRIP=$ac_ct_STRIP
6391 fi
6392 else
6393 STRIP="$ac_cv_prog_STRIP"
6394 fi
6395
6396 test -z "$STRIP" && STRIP=:
6397
6398
6399
6400
6401
6402
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_RANLIB+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$RANLIB"; then
6412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 RANLIB=$ac_cv_prog_RANLIB
6432 if test -n "$RANLIB"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6434 $as_echo "$RANLIB" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440
6441 fi
6442 if test -z "$ac_cv_prog_RANLIB"; then
6443 ac_ct_RANLIB=$RANLIB
6444 # Extract the first word of "ranlib", so it can be a program name with args.
6445 set dummy ranlib; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_RANLIB"; then
6452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_ac_ct_RANLIB="ranlib"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6472 if test -n "$ac_ct_RANLIB"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6474 $as_echo "$ac_ct_RANLIB" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480 if test "x$ac_ct_RANLIB" = x; then
6481 RANLIB=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 RANLIB=$ac_ct_RANLIB
6490 fi
6491 else
6492 RANLIB="$ac_cv_prog_RANLIB"
6493 fi
6494
6495 test -z "$RANLIB" && RANLIB=:
6496
6497
6498
6499
6500
6501
6502 # Determine commands to create old-style static archives.
6503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6504 old_postinstall_cmds='chmod 644 $oldlib'
6505 old_postuninstall_cmds=
6506
6507 if test -n "$RANLIB"; then
6508 case $host_os in
6509 bitrig* | openbsd*)
6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6511 ;;
6512 *)
6513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6514 ;;
6515 esac
6516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6517 fi
6518
6519 case $host_os in
6520 darwin*)
6521 lock_old_archive_extraction=yes ;;
6522 *)
6523 lock_old_archive_extraction=no ;;
6524 esac
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 # If no C compiler was specified, use CC.
6565 LTCC=${LTCC-"$CC"}
6566
6567 # If no C compiler flags were specified, use CFLAGS.
6568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6569
6570 # Allow CC to be a program name with arguments.
6571 compiler=$CC
6572
6573
6574 # Check for command to grab the raw symbol name followed by C symbol from nm.
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6576 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6577 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580
6581 # These are sane defaults that work on at least a few old systems.
6582 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6583
6584 # Character class describing NM global symbol codes.
6585 symcode='[BCDEGRST]'
6586
6587 # Regexp to match symbols that can be accessed directly from C.
6588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6589
6590 # Define system-specific variables.
6591 case $host_os in
6592 aix*)
6593 symcode='[BCDT]'
6594 ;;
6595 cygwin* | mingw* | pw32* | cegcc*)
6596 symcode='[ABCDGISTW]'
6597 ;;
6598 hpux*)
6599 if test ia64 = "$host_cpu"; then
6600 symcode='[ABCDEGRST]'
6601 fi
6602 ;;
6603 irix* | nonstopux*)
6604 symcode='[BCDEGRST]'
6605 ;;
6606 osf*)
6607 symcode='[BCDEGQRST]'
6608 ;;
6609 solaris*)
6610 symcode='[BDRT]'
6611 ;;
6612 sco3.2v5*)
6613 symcode='[DT]'
6614 ;;
6615 sysv4.2uw2*)
6616 symcode='[DT]'
6617 ;;
6618 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6619 symcode='[ABDT]'
6620 ;;
6621 sysv4)
6622 symcode='[DFNSTU]'
6623 ;;
6624 esac
6625
6626 # If we're using GNU nm, then use its standard symbol codes.
6627 case `$NM -V 2>&1` in
6628 *GNU* | *'with BFD'*)
6629 symcode='[ABCDGIRSTW]' ;;
6630 esac
6631
6632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6633 # Gets list of data symbols to import.
6634 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6635 # Adjust the below global symbol transforms to fixup imported variables.
6636 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6637 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6638 lt_c_name_lib_hook="\
6639 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6640 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6641 else
6642 # Disable hooks by default.
6643 lt_cv_sys_global_symbol_to_import=
6644 lt_cdecl_hook=
6645 lt_c_name_hook=
6646 lt_c_name_lib_hook=
6647 fi
6648
6649 # Transform an extracted symbol line into a proper C declaration.
6650 # Some systems (esp. on ia64) link data and code symbols differently,
6651 # so use this general approach.
6652 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6653 $lt_cdecl_hook\
6654 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6655 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6656
6657 # Transform an extracted symbol line into symbol name and symbol address
6658 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6659 $lt_c_name_hook\
6660 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6661 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6662
6663 # Transform an extracted symbol line into symbol name with lib prefix and
6664 # symbol address.
6665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6666 $lt_c_name_lib_hook\
6667 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6668 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6669 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6670
6671 # Handle CRLF in mingw tool chain
6672 opt_cr=
6673 case $build_os in
6674 mingw*)
6675 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676 ;;
6677 esac
6678
6679 # Try without a prefix underscore, then with it.
6680 for ac_symprfx in "" "_"; do
6681
6682 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6683 symxfrm="\\1 $ac_symprfx\\2 \\2"
6684
6685 # Write the raw and C identifiers.
6686 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6687 # Fake it for dumpbin and say T for any non-static function,
6688 # D for any global variable and I for any imported variable.
6689 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6690 # which start with @ or ?.
6691 lt_cv_sys_global_symbol_pipe="$AWK '"\
6692 " {last_section=section; section=\$ 3};"\
6693 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6694 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6695 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6696 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6697 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6698 " \$ 0!~/External *\|/{next};"\
6699 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6700 " {if(hide[section]) next};"\
6701 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6702 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6703 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6704 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6705 " ' prfx=^$ac_symprfx"
6706 else
6707 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6708 fi
6709 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6710
6711 # Check to see that the pipe works correctly.
6712 pipe_works=no
6713
6714 rm -f conftest*
6715 cat > conftest.$ac_ext <<_LT_EOF
6716 #ifdef __cplusplus
6717 extern "C" {
6718 #endif
6719 char nm_test_var;
6720 void nm_test_func(void);
6721 void nm_test_func(void){}
6722 #ifdef __cplusplus
6723 }
6724 #endif
6725 int main(){nm_test_var='a';nm_test_func();return(0);}
6726 _LT_EOF
6727
6728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729 (eval $ac_compile) 2>&5
6730 ac_status=$?
6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732 test $ac_status = 0; }; then
6733 # Now try to grab the symbols.
6734 nlist=conftest.nm
6735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6736 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6737 ac_status=$?
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; } && test -s "$nlist"; then
6740 # Try sorting and uniquifying the output.
6741 if sort "$nlist" | uniq > "$nlist"T; then
6742 mv -f "$nlist"T "$nlist"
6743 else
6744 rm -f "$nlist"T
6745 fi
6746
6747 # Make sure that we snagged all the symbols we need.
6748 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6749 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6750 cat <<_LT_EOF > conftest.$ac_ext
6751 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6752 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6753 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6754 relocations are performed -- see ld's documentation on pseudo-relocs. */
6755 # define LT_DLSYM_CONST
6756 #elif defined __osf__
6757 /* This system does not cope well with relocations in const data. */
6758 # define LT_DLSYM_CONST
6759 #else
6760 # define LT_DLSYM_CONST const
6761 #endif
6762
6763 #ifdef __cplusplus
6764 extern "C" {
6765 #endif
6766
6767 _LT_EOF
6768 # Now generate the symbol file.
6769 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6770
6771 cat <<_LT_EOF >> conftest.$ac_ext
6772
6773 /* The mapping between symbol names and symbols. */
6774 LT_DLSYM_CONST struct {
6775 const char *name;
6776 void *address;
6777 }
6778 lt__PROGRAM__LTX_preloaded_symbols[] =
6779 {
6780 { "@PROGRAM@", (void *) 0 },
6781 _LT_EOF
6782 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6783 cat <<\_LT_EOF >> conftest.$ac_ext
6784 {0, (void *) 0}
6785 };
6786
6787 /* This works around a problem in FreeBSD linker */
6788 #ifdef FREEBSD_WORKAROUND
6789 static const void *lt_preloaded_setup() {
6790 return lt__PROGRAM__LTX_preloaded_symbols;
6791 }
6792 #endif
6793
6794 #ifdef __cplusplus
6795 }
6796 #endif
6797 _LT_EOF
6798 # Now try linking the two files.
6799 mv conftest.$ac_objext conftstm.$ac_objext
6800 lt_globsym_save_LIBS=$LIBS
6801 lt_globsym_save_CFLAGS=$CFLAGS
6802 LIBS=conftstm.$ac_objext
6803 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6805 (eval $ac_link) 2>&5
6806 ac_status=$?
6807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6808 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6809 pipe_works=yes
6810 fi
6811 LIBS=$lt_globsym_save_LIBS
6812 CFLAGS=$lt_globsym_save_CFLAGS
6813 else
6814 echo "cannot find nm_test_func in $nlist" >&5
6815 fi
6816 else
6817 echo "cannot find nm_test_var in $nlist" >&5
6818 fi
6819 else
6820 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6821 fi
6822 else
6823 echo "$progname: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6825 fi
6826 rm -rf conftest* conftst*
6827
6828 # Do not use the global_symbol_pipe unless it works.
6829 if test yes = "$pipe_works"; then
6830 break
6831 else
6832 lt_cv_sys_global_symbol_pipe=
6833 fi
6834 done
6835
6836 fi
6837
6838 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6839 lt_cv_sys_global_symbol_to_cdecl=
6840 fi
6841 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6843 $as_echo "failed" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6846 $as_echo "ok" >&6; }
6847 fi
6848
6849 # Response file support.
6850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6851 nm_file_list_spec='@'
6852 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6853 nm_file_list_spec='@'
6854 fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6893 $as_echo_n "checking for sysroot... " >&6; }
6894
6895 # Check whether --with-sysroot was given.
6896 if test "${with_sysroot+set}" = set; then :
6897 withval=$with_sysroot;
6898 else
6899 with_sysroot=no
6900 fi
6901
6902
6903 lt_sysroot=
6904 case $with_sysroot in #(
6905 yes)
6906 if test yes = "$GCC"; then
6907 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6908 fi
6909 ;; #(
6910 /*)
6911 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6912 ;; #(
6913 no|'')
6914 ;; #(
6915 *)
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6917 $as_echo "$with_sysroot" >&6; }
6918 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6919 ;;
6920 esac
6921
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6923 $as_echo "${lt_sysroot:-no}" >&6; }
6924
6925
6926
6927
6928
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6930 $as_echo_n "checking for a working dd... " >&6; }
6931 if ${ac_cv_path_lt_DD+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 printf 0123456789abcdef0123456789abcdef >conftest.i
6935 cat conftest.i conftest.i >conftest2.i
6936 : ${lt_DD:=$DD}
6937 if test -z "$lt_DD"; then
6938 ac_path_lt_DD_found=false
6939 # Loop through the user's path and test for each of PROGNAME-LIST
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_prog in dd; do
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6948 as_fn_executable_p "$ac_path_lt_DD" || continue
6949 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6950 cmp -s conftest.i conftest.out \
6951 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6952 fi
6953 $ac_path_lt_DD_found && break 3
6954 done
6955 done
6956 done
6957 IFS=$as_save_IFS
6958 if test -z "$ac_cv_path_lt_DD"; then
6959 :
6960 fi
6961 else
6962 ac_cv_path_lt_DD=$lt_DD
6963 fi
6964
6965 rm -f conftest.i conftest2.i conftest.out
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6968 $as_echo "$ac_cv_path_lt_DD" >&6; }
6969
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6972 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6973 if ${lt_cv_truncate_bin+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 printf 0123456789abcdef0123456789abcdef >conftest.i
6977 cat conftest.i conftest.i >conftest2.i
6978 lt_cv_truncate_bin=
6979 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6980 cmp -s conftest.i conftest.out \
6981 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6982 fi
6983 rm -f conftest.i conftest2.i conftest.out
6984 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6987 $as_echo "$lt_cv_truncate_bin" >&6; }
6988
6989
6990
6991
6992
6993
6994
6995 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6996 func_cc_basename ()
6997 {
6998 for cc_temp in $*""; do
6999 case $cc_temp in
7000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7002 \-*) ;;
7003 *) break;;
7004 esac
7005 done
7006 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7007 }
7008
7009 # Check whether --enable-libtool-lock was given.
7010 if test "${enable_libtool_lock+set}" = set; then :
7011 enableval=$enable_libtool_lock;
7012 fi
7013
7014 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7015
7016 # Some flags need to be propagated to the compiler or linker for good
7017 # libtool support.
7018 case $host in
7019 ia64-*-hpux*)
7020 # Find out what ABI is being produced by ac_compile, and set mode
7021 # options accordingly.
7022 echo 'int i;' > conftest.$ac_ext
7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7024 (eval $ac_compile) 2>&5
7025 ac_status=$?
7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027 test $ac_status = 0; }; then
7028 case `$FILECMD conftest.$ac_objext` in
7029 *ELF-32*)
7030 HPUX_IA64_MODE=32
7031 ;;
7032 *ELF-64*)
7033 HPUX_IA64_MODE=64
7034 ;;
7035 esac
7036 fi
7037 rm -rf conftest*
7038 ;;
7039 *-*-irix6*)
7040 # Find out what ABI is being produced by ac_compile, and set linker
7041 # options accordingly.
7042 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7044 (eval $ac_compile) 2>&5
7045 ac_status=$?
7046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047 test $ac_status = 0; }; then
7048 if test yes = "$lt_cv_prog_gnu_ld"; then
7049 case `$FILECMD conftest.$ac_objext` in
7050 *32-bit*)
7051 LD="${LD-ld} -melf32bsmip"
7052 ;;
7053 *N32*)
7054 LD="${LD-ld} -melf32bmipn32"
7055 ;;
7056 *64-bit*)
7057 LD="${LD-ld} -melf64bmip"
7058 ;;
7059 esac
7060 else
7061 case `$FILECMD conftest.$ac_objext` in
7062 *32-bit*)
7063 LD="${LD-ld} -32"
7064 ;;
7065 *N32*)
7066 LD="${LD-ld} -n32"
7067 ;;
7068 *64-bit*)
7069 LD="${LD-ld} -64"
7070 ;;
7071 esac
7072 fi
7073 fi
7074 rm -rf conftest*
7075 ;;
7076
7077 mips64*-*linux*)
7078 # Find out what ABI is being produced by ac_compile, and set linker
7079 # options accordingly.
7080 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082 (eval $ac_compile) 2>&5
7083 ac_status=$?
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; }; then
7086 emul=elf
7087 case `$FILECMD conftest.$ac_objext` in
7088 *32-bit*)
7089 emul="${emul}32"
7090 ;;
7091 *64-bit*)
7092 emul="${emul}64"
7093 ;;
7094 esac
7095 case `$FILECMD conftest.$ac_objext` in
7096 *MSB*)
7097 emul="${emul}btsmip"
7098 ;;
7099 *LSB*)
7100 emul="${emul}ltsmip"
7101 ;;
7102 esac
7103 case `$FILECMD conftest.$ac_objext` in
7104 *N32*)
7105 emul="${emul}n32"
7106 ;;
7107 esac
7108 LD="${LD-ld} -m $emul"
7109 fi
7110 rm -rf conftest*
7111 ;;
7112
7113 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7114 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7115 # Find out what ABI is being produced by ac_compile, and set linker
7116 # options accordingly. Note that the listed cases only cover the
7117 # situations where additional linker options are needed (such as when
7118 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7119 # vice versa); the common cases where no linker options are needed do
7120 # not appear in the list.
7121 echo 'int i;' > conftest.$ac_ext
7122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7123 (eval $ac_compile) 2>&5
7124 ac_status=$?
7125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126 test $ac_status = 0; }; then
7127 case `$FILECMD conftest.o` in
7128 *32-bit*)
7129 case $host in
7130 x86_64-*kfreebsd*-gnu)
7131 LD="${LD-ld} -m elf_i386_fbsd"
7132 ;;
7133 x86_64-*linux*)
7134 case `$FILECMD conftest.o` in
7135 *x86-64*)
7136 LD="${LD-ld} -m elf32_x86_64"
7137 ;;
7138 *)
7139 LD="${LD-ld} -m elf_i386"
7140 ;;
7141 esac
7142 ;;
7143 powerpc64le-*linux*)
7144 LD="${LD-ld} -m elf32lppclinux"
7145 ;;
7146 powerpc64-*linux*)
7147 LD="${LD-ld} -m elf32ppclinux"
7148 ;;
7149 s390x-*linux*)
7150 LD="${LD-ld} -m elf_s390"
7151 ;;
7152 sparc64-*linux*)
7153 LD="${LD-ld} -m elf32_sparc"
7154 ;;
7155 esac
7156 ;;
7157 *64-bit*)
7158 case $host in
7159 x86_64-*kfreebsd*-gnu)
7160 LD="${LD-ld} -m elf_x86_64_fbsd"
7161 ;;
7162 x86_64-*linux*)
7163 LD="${LD-ld} -m elf_x86_64"
7164 ;;
7165 powerpcle-*linux*)
7166 LD="${LD-ld} -m elf64lppc"
7167 ;;
7168 powerpc-*linux*)
7169 LD="${LD-ld} -m elf64ppc"
7170 ;;
7171 s390*-*linux*|s390*-*tpf*)
7172 LD="${LD-ld} -m elf64_s390"
7173 ;;
7174 sparc*-*linux*)
7175 LD="${LD-ld} -m elf64_sparc"
7176 ;;
7177 esac
7178 ;;
7179 esac
7180 fi
7181 rm -rf conftest*
7182 ;;
7183
7184 *-*-sco3.2v5*)
7185 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7186 SAVE_CFLAGS=$CFLAGS
7187 CFLAGS="$CFLAGS -belf"
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7189 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7190 if ${lt_cv_cc_needs_belf+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 ac_ext=c
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201
7202 int
7203 main ()
7204 {
7205
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 if ac_fn_c_try_link "$LINENO"; then :
7211 lt_cv_cc_needs_belf=yes
7212 else
7213 lt_cv_cc_needs_belf=no
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext \
7216 conftest$ac_exeext conftest.$ac_ext
7217 ac_ext=c
7218 ac_cpp='$CPP $CPPFLAGS'
7219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7225 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7226 if test yes != "$lt_cv_cc_needs_belf"; then
7227 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7228 CFLAGS=$SAVE_CFLAGS
7229 fi
7230 ;;
7231 *-*solaris*)
7232 # Find out what ABI is being produced by ac_compile, and set linker
7233 # options accordingly.
7234 echo 'int i;' > conftest.$ac_ext
7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7236 (eval $ac_compile) 2>&5
7237 ac_status=$?
7238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239 test $ac_status = 0; }; then
7240 case `$FILECMD conftest.o` in
7241 *64-bit*)
7242 case $lt_cv_prog_gnu_ld in
7243 yes*)
7244 case $host in
7245 i?86-*-solaris*|x86_64-*-solaris*)
7246 LD="${LD-ld} -m elf_x86_64"
7247 ;;
7248 sparc*-*-solaris*)
7249 LD="${LD-ld} -m elf64_sparc"
7250 ;;
7251 esac
7252 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7253 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7254 LD=${LD-ld}_sol2
7255 fi
7256 ;;
7257 *)
7258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7259 LD="${LD-ld} -64"
7260 fi
7261 ;;
7262 esac
7263 ;;
7264 esac
7265 fi
7266 rm -rf conftest*
7267 ;;
7268 esac
7269
7270 need_locks=$enable_libtool_lock
7271
7272 if test -n "$ac_tool_prefix"; then
7273 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7274 set dummy ${ac_tool_prefix}mt; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$MANIFEST_TOOL"; then
7281 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7301 if test -n "$MANIFEST_TOOL"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7303 $as_echo "$MANIFEST_TOOL" >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309
7310 fi
7311 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7312 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7313 # Extract the first word of "mt", so it can be a program name with args.
7314 set dummy mt; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$ac_ct_MANIFEST_TOOL"; then
7321 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338 fi
7339 fi
7340 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7341 if test -n "$ac_ct_MANIFEST_TOOL"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7343 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7347 fi
7348
7349 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7350 MANIFEST_TOOL=":"
7351 else
7352 case $cross_compiling:$ac_tool_warned in
7353 yes:)
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7356 ac_tool_warned=yes ;;
7357 esac
7358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7359 fi
7360 else
7361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7362 fi
7363
7364 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7366 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7367 if ${lt_cv_path_mainfest_tool+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 lt_cv_path_mainfest_tool=no
7371 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7372 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7373 cat conftest.err >&5
7374 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7375 lt_cv_path_mainfest_tool=yes
7376 fi
7377 rm -f conftest*
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7380 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7381 if test yes != "$lt_cv_path_mainfest_tool"; then
7382 MANIFEST_TOOL=:
7383 fi
7384
7385
7386
7387
7388
7389
7390 case $host_os in
7391 rhapsody* | darwin*)
7392 if test -n "$ac_tool_prefix"; then
7393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7394 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 if test -n "$DSYMUTIL"; then
7401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 break 2
7413 fi
7414 done
7415 done
7416 IFS=$as_save_IFS
7417
7418 fi
7419 fi
7420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7421 if test -n "$DSYMUTIL"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7423 $as_echo "$DSYMUTIL" >&6; }
7424 else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429
7430 fi
7431 if test -z "$ac_cv_prog_DSYMUTIL"; then
7432 ac_ct_DSYMUTIL=$DSYMUTIL
7433 # Extract the first word of "dsymutil", so it can be a program name with args.
7434 set dummy dsymutil; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 if test -n "$ac_ct_DSYMUTIL"; then
7441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7453 fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7461 if test -n "$ac_ct_DSYMUTIL"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7463 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469 if test "x$ac_ct_DSYMUTIL" = x; then
7470 DSYMUTIL=":"
7471 else
7472 case $cross_compiling:$ac_tool_warned in
7473 yes:)
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7476 ac_tool_warned=yes ;;
7477 esac
7478 DSYMUTIL=$ac_ct_DSYMUTIL
7479 fi
7480 else
7481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7482 fi
7483
7484 if test -n "$ac_tool_prefix"; then
7485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_NMEDIT+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 if test -n "$NMEDIT"; then
7493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 NMEDIT=$ac_cv_prog_NMEDIT
7513 if test -n "$NMEDIT"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7515 $as_echo "$NMEDIT" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521
7522 fi
7523 if test -z "$ac_cv_prog_NMEDIT"; then
7524 ac_ct_NMEDIT=$NMEDIT
7525 # Extract the first word of "nmedit", so it can be a program name with args.
7526 set dummy nmedit; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$ac_ct_NMEDIT"; then
7533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7553 if test -n "$ac_ct_NMEDIT"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7555 $as_echo "$ac_ct_NMEDIT" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561 if test "x$ac_ct_NMEDIT" = x; then
7562 NMEDIT=":"
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570 NMEDIT=$ac_ct_NMEDIT
7571 fi
7572 else
7573 NMEDIT="$ac_cv_prog_NMEDIT"
7574 fi
7575
7576 if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7578 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_LIPO+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$LIPO"; then
7585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 LIPO=$ac_cv_prog_LIPO
7605 if test -n "$LIPO"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7607 $as_echo "$LIPO" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613
7614 fi
7615 if test -z "$ac_cv_prog_LIPO"; then
7616 ac_ct_LIPO=$LIPO
7617 # Extract the first word of "lipo", so it can be a program name with args.
7618 set dummy lipo; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$ac_ct_LIPO"; then
7625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_ac_ct_LIPO="lipo"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7645 if test -n "$ac_ct_LIPO"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7647 $as_echo "$ac_ct_LIPO" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653 if test "x$ac_ct_LIPO" = x; then
7654 LIPO=":"
7655 else
7656 case $cross_compiling:$ac_tool_warned in
7657 yes:)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660 ac_tool_warned=yes ;;
7661 esac
7662 LIPO=$ac_ct_LIPO
7663 fi
7664 else
7665 LIPO="$ac_cv_prog_LIPO"
7666 fi
7667
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7670 set dummy ${ac_tool_prefix}otool; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_OTOOL+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$OTOOL"; then
7677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 OTOOL=$ac_cv_prog_OTOOL
7697 if test -n "$OTOOL"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7699 $as_echo "$OTOOL" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705
7706 fi
7707 if test -z "$ac_cv_prog_OTOOL"; then
7708 ac_ct_OTOOL=$OTOOL
7709 # Extract the first word of "otool", so it can be a program name with args.
7710 set dummy otool; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$ac_ct_OTOOL"; then
7717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_ac_ct_OTOOL="otool"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7737 if test -n "$ac_ct_OTOOL"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7739 $as_echo "$ac_ct_OTOOL" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745 if test "x$ac_ct_OTOOL" = x; then
7746 OTOOL=":"
7747 else
7748 case $cross_compiling:$ac_tool_warned in
7749 yes:)
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752 ac_tool_warned=yes ;;
7753 esac
7754 OTOOL=$ac_ct_OTOOL
7755 fi
7756 else
7757 OTOOL="$ac_cv_prog_OTOOL"
7758 fi
7759
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_OTOOL64+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$OTOOL64"; then
7769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 OTOOL64=$ac_cv_prog_OTOOL64
7789 if test -n "$OTOOL64"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7791 $as_echo "$OTOOL64" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798 fi
7799 if test -z "$ac_cv_prog_OTOOL64"; then
7800 ac_ct_OTOOL64=$OTOOL64
7801 # Extract the first word of "otool64", so it can be a program name with args.
7802 set dummy otool64; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$ac_ct_OTOOL64"; then
7809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_ac_ct_OTOOL64="otool64"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7829 if test -n "$ac_ct_OTOOL64"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7831 $as_echo "$ac_ct_OTOOL64" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836
7837 if test "x$ac_ct_OTOOL64" = x; then
7838 OTOOL64=":"
7839 else
7840 case $cross_compiling:$ac_tool_warned in
7841 yes:)
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7844 ac_tool_warned=yes ;;
7845 esac
7846 OTOOL64=$ac_ct_OTOOL64
7847 fi
7848 else
7849 OTOOL64="$ac_cv_prog_OTOOL64"
7850 fi
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7879 $as_echo_n "checking for -single_module linker flag... " >&6; }
7880 if ${lt_cv_apple_cc_single_mod+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 lt_cv_apple_cc_single_mod=no
7884 if test -z "$LT_MULTI_MODULE"; then
7885 # By default we will add the -single_module flag. You can override
7886 # by either setting the environment variable LT_MULTI_MODULE
7887 # non-empty at configure time, or by adding -multi_module to the
7888 # link flags.
7889 rm -rf libconftest.dylib*
7890 echo "int foo(void){return 1;}" > conftest.c
7891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7892 -dynamiclib -Wl,-single_module conftest.c" >&5
7893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7895 _lt_result=$?
7896 # If there is a non-empty error log, and "single_module"
7897 # appears in it, assume the flag caused a linker warning
7898 if test -s conftest.err && $GREP single_module conftest.err; then
7899 cat conftest.err >&5
7900 # Otherwise, if the output was created with a 0 exit code from
7901 # the compiler, it worked.
7902 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7903 lt_cv_apple_cc_single_mod=yes
7904 else
7905 cat conftest.err >&5
7906 fi
7907 rm -rf libconftest.dylib*
7908 rm -f conftest.*
7909 fi
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7912 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7913
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7915 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7916 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 lt_cv_ld_exported_symbols_list=no
7920 save_LDFLAGS=$LDFLAGS
7921 echo "_main" > conftest.sym
7922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925
7926 int
7927 main ()
7928 {
7929
7930 ;
7931 return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_link "$LINENO"; then :
7935 lt_cv_ld_exported_symbols_list=yes
7936 else
7937 lt_cv_ld_exported_symbols_list=no
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7941 LDFLAGS=$save_LDFLAGS
7942
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7946
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7948 $as_echo_n "checking for -force_load linker flag... " >&6; }
7949 if ${lt_cv_ld_force_load+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 lt_cv_ld_force_load=no
7953 cat > conftest.c << _LT_EOF
7954 int forced_loaded() { return 2;}
7955 _LT_EOF
7956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7958 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7959 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7960 echo "$RANLIB libconftest.a" >&5
7961 $RANLIB libconftest.a 2>&5
7962 cat > conftest.c << _LT_EOF
7963 int main() { return 0;}
7964 _LT_EOF
7965 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7966 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7967 _lt_result=$?
7968 if test -s conftest.err && $GREP force_load conftest.err; then
7969 cat conftest.err >&5
7970 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7971 lt_cv_ld_force_load=yes
7972 else
7973 cat conftest.err >&5
7974 fi
7975 rm -f conftest.err libconftest.a conftest conftest.c
7976 rm -rf conftest.dSYM
7977
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7980 $as_echo "$lt_cv_ld_force_load" >&6; }
7981 case $host_os in
7982 rhapsody* | darwin1.[012])
7983 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7984 darwin1.*)
7985 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7986 darwin*)
7987 case $MACOSX_DEPLOYMENT_TARGET,$host in
7988 10.[012],*|,*powerpc*-darwin[5-8]*)
7989 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7990 *)
7991 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7992 esac
7993 ;;
7994 esac
7995 if test yes = "$lt_cv_apple_cc_single_mod"; then
7996 _lt_dar_single_mod='$single_module'
7997 fi
7998 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7999 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8000 else
8001 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8002 fi
8003 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8004 _lt_dsymutil='~$DSYMUTIL $lib || :'
8005 else
8006 _lt_dsymutil=
8007 fi
8008 ;;
8009 esac
8010
8011 # func_munge_path_list VARIABLE PATH
8012 # -----------------------------------
8013 # VARIABLE is name of variable containing _space_ separated list of
8014 # directories to be munged by the contents of PATH, which is string
8015 # having a format:
8016 # "DIR[:DIR]:"
8017 # string "DIR[ DIR]" will be prepended to VARIABLE
8018 # ":DIR[:DIR]"
8019 # string "DIR[ DIR]" will be appended to VARIABLE
8020 # "DIRP[:DIRP]::[DIRA:]DIRA"
8021 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8022 # "DIRA[ DIRA]" will be appended to VARIABLE
8023 # "DIR[:DIR]"
8024 # VARIABLE will be replaced by "DIR[ DIR]"
8025 func_munge_path_list ()
8026 {
8027 case x$2 in
8028 x)
8029 ;;
8030 *:)
8031 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8032 ;;
8033 x:*)
8034 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8035 ;;
8036 *::*)
8037 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8038 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8039 ;;
8040 *)
8041 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8042 ;;
8043 esac
8044 }
8045
8046 ac_ext=c
8047 ac_cpp='$CPP $CPPFLAGS'
8048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8052 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8053 # On Suns, sometimes $CPP names a directory.
8054 if test -n "$CPP" && test -d "$CPP"; then
8055 CPP=
8056 fi
8057 if test -z "$CPP"; then
8058 if ${ac_cv_prog_CPP+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 # Double quotes because CPP needs to be expanded
8062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8063 do
8064 ac_preproc_ok=false
8065 for ac_c_preproc_warn_flag in '' yes
8066 do
8067 # Use a header file that comes with gcc, so configuring glibc
8068 # with a fresh cross-compiler works.
8069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8070 # <limits.h> exists even on freestanding compilers.
8071 # On the NeXT, cc -E runs the code through the compiler's parser,
8072 # not just through cpp. "Syntax error" is here to catch this case.
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #ifdef __STDC__
8076 # include <limits.h>
8077 #else
8078 # include <assert.h>
8079 #endif
8080 Syntax error
8081 _ACEOF
8082 if ac_fn_c_try_cpp "$LINENO"; then :
8083
8084 else
8085 # Broken: fails on valid input.
8086 continue
8087 fi
8088 rm -f conftest.err conftest.i conftest.$ac_ext
8089
8090 # OK, works on sane cases. Now check whether nonexistent headers
8091 # can be detected and how.
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <ac_nonexistent.h>
8095 _ACEOF
8096 if ac_fn_c_try_cpp "$LINENO"; then :
8097 # Broken: success on invalid input.
8098 continue
8099 else
8100 # Passes both tests.
8101 ac_preproc_ok=:
8102 break
8103 fi
8104 rm -f conftest.err conftest.i conftest.$ac_ext
8105
8106 done
8107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8108 rm -f conftest.i conftest.err conftest.$ac_ext
8109 if $ac_preproc_ok; then :
8110 break
8111 fi
8112
8113 done
8114 ac_cv_prog_CPP=$CPP
8115
8116 fi
8117 CPP=$ac_cv_prog_CPP
8118 else
8119 ac_cv_prog_CPP=$CPP
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8122 $as_echo "$CPP" >&6; }
8123 ac_preproc_ok=false
8124 for ac_c_preproc_warn_flag in '' yes
8125 do
8126 # Use a header file that comes with gcc, so configuring glibc
8127 # with a fresh cross-compiler works.
8128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129 # <limits.h> exists even on freestanding compilers.
8130 # On the NeXT, cc -E runs the code through the compiler's parser,
8131 # not just through cpp. "Syntax error" is here to catch this case.
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 #ifdef __STDC__
8135 # include <limits.h>
8136 #else
8137 # include <assert.h>
8138 #endif
8139 Syntax error
8140 _ACEOF
8141 if ac_fn_c_try_cpp "$LINENO"; then :
8142
8143 else
8144 # Broken: fails on valid input.
8145 continue
8146 fi
8147 rm -f conftest.err conftest.i conftest.$ac_ext
8148
8149 # OK, works on sane cases. Now check whether nonexistent headers
8150 # can be detected and how.
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 #include <ac_nonexistent.h>
8154 _ACEOF
8155 if ac_fn_c_try_cpp "$LINENO"; then :
8156 # Broken: success on invalid input.
8157 continue
8158 else
8159 # Passes both tests.
8160 ac_preproc_ok=:
8161 break
8162 fi
8163 rm -f conftest.err conftest.i conftest.$ac_ext
8164
8165 done
8166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8167 rm -f conftest.i conftest.err conftest.$ac_ext
8168 if $ac_preproc_ok; then :
8169
8170 else
8171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8173 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8174 See \`config.log' for more details" "$LINENO" 5; }
8175 fi
8176
8177 ac_ext=c
8178 ac_cpp='$CPP $CPPFLAGS'
8179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182
8183
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8185 $as_echo_n "checking for ANSI C header files... " >&6; }
8186 if ${ac_cv_header_stdc+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 #include <stdlib.h>
8192 #include <stdarg.h>
8193 #include <string.h>
8194 #include <float.h>
8195
8196 int
8197 main ()
8198 {
8199
8200 ;
8201 return 0;
8202 }
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205 ac_cv_header_stdc=yes
8206 else
8207 ac_cv_header_stdc=no
8208 fi
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210
8211 if test $ac_cv_header_stdc = yes; then
8212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215 #include <string.h>
8216
8217 _ACEOF
8218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219 $EGREP "memchr" >/dev/null 2>&1; then :
8220
8221 else
8222 ac_cv_header_stdc=no
8223 fi
8224 rm -f conftest*
8225
8226 fi
8227
8228 if test $ac_cv_header_stdc = yes; then
8229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 #include <stdlib.h>
8233
8234 _ACEOF
8235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236 $EGREP "free" >/dev/null 2>&1; then :
8237
8238 else
8239 ac_cv_header_stdc=no
8240 fi
8241 rm -f conftest*
8242
8243 fi
8244
8245 if test $ac_cv_header_stdc = yes; then
8246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8247 if test "$cross_compiling" = yes; then :
8248 :
8249 else
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 #include <ctype.h>
8253 #include <stdlib.h>
8254 #if ((' ' & 0x0FF) == 0x020)
8255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8257 #else
8258 # define ISLOWER(c) \
8259 (('a' <= (c) && (c) <= 'i') \
8260 || ('j' <= (c) && (c) <= 'r') \
8261 || ('s' <= (c) && (c) <= 'z'))
8262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8263 #endif
8264
8265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8266 int
8267 main ()
8268 {
8269 int i;
8270 for (i = 0; i < 256; i++)
8271 if (XOR (islower (i), ISLOWER (i))
8272 || toupper (i) != TOUPPER (i))
8273 return 2;
8274 return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_run "$LINENO"; then :
8278
8279 else
8280 ac_cv_header_stdc=no
8281 fi
8282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8283 conftest.$ac_objext conftest.beam conftest.$ac_ext
8284 fi
8285
8286 fi
8287 fi
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8289 $as_echo "$ac_cv_header_stdc" >&6; }
8290 if test $ac_cv_header_stdc = yes; then
8291
8292 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8293
8294 fi
8295
8296 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8298 inttypes.h stdint.h unistd.h
8299 do :
8300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8301 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8302 "
8303 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8304 cat >>confdefs.h <<_ACEOF
8305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306 _ACEOF
8307
8308 fi
8309
8310 done
8311
8312
8313 for ac_header in dlfcn.h
8314 do :
8315 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8316 "
8317 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8318 cat >>confdefs.h <<_ACEOF
8319 #define HAVE_DLFCN_H 1
8320 _ACEOF
8321
8322 fi
8323
8324 done
8325
8326
8327
8328
8329
8330 # Set options
8331 enable_win32_dll=yes
8332
8333 case $host in
8334 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8335 if test -n "$ac_tool_prefix"; then
8336 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8337 set dummy ${ac_tool_prefix}as; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_AS+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$AS"; then
8344 ac_cv_prog_AS="$AS" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_AS="${ac_tool_prefix}as"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8356 fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 AS=$ac_cv_prog_AS
8364 if test -n "$AS"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8366 $as_echo "$AS" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 fi
8371
8372
8373 fi
8374 if test -z "$ac_cv_prog_AS"; then
8375 ac_ct_AS=$AS
8376 # Extract the first word of "as", so it can be a program name with args.
8377 set dummy as; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 if test -n "$ac_ct_AS"; then
8384 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8385 else
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8388 do
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8393 ac_cv_prog_ac_ct_AS="as"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8396 fi
8397 done
8398 done
8399 IFS=$as_save_IFS
8400
8401 fi
8402 fi
8403 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8404 if test -n "$ac_ct_AS"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8406 $as_echo "$ac_ct_AS" >&6; }
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 fi
8411
8412 if test "x$ac_ct_AS" = x; then
8413 AS="false"
8414 else
8415 case $cross_compiling:$ac_tool_warned in
8416 yes:)
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8419 ac_tool_warned=yes ;;
8420 esac
8421 AS=$ac_ct_AS
8422 fi
8423 else
8424 AS="$ac_cv_prog_AS"
8425 fi
8426
8427 if test -n "$ac_tool_prefix"; then
8428 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8429 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_DLLTOOL+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test -n "$DLLTOOL"; then
8436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 fi
8454 fi
8455 DLLTOOL=$ac_cv_prog_DLLTOOL
8456 if test -n "$DLLTOOL"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8458 $as_echo "$DLLTOOL" >&6; }
8459 else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463
8464
8465 fi
8466 if test -z "$ac_cv_prog_DLLTOOL"; then
8467 ac_ct_DLLTOOL=$DLLTOOL
8468 # Extract the first word of "dlltool", so it can be a program name with args.
8469 set dummy dlltool; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 if test -n "$ac_ct_DLLTOOL"; then
8476 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493 fi
8494 fi
8495 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8496 if test -n "$ac_ct_DLLTOOL"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8498 $as_echo "$ac_ct_DLLTOOL" >&6; }
8499 else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8502 fi
8503
8504 if test "x$ac_ct_DLLTOOL" = x; then
8505 DLLTOOL="false"
8506 else
8507 case $cross_compiling:$ac_tool_warned in
8508 yes:)
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8511 ac_tool_warned=yes ;;
8512 esac
8513 DLLTOOL=$ac_ct_DLLTOOL
8514 fi
8515 else
8516 DLLTOOL="$ac_cv_prog_DLLTOOL"
8517 fi
8518
8519 if test -n "$ac_tool_prefix"; then
8520 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8521 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_prog_OBJDUMP+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 if test -n "$OBJDUMP"; then
8528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8540 fi
8541 done
8542 done
8543 IFS=$as_save_IFS
8544
8545 fi
8546 fi
8547 OBJDUMP=$ac_cv_prog_OBJDUMP
8548 if test -n "$OBJDUMP"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8550 $as_echo "$OBJDUMP" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 fi
8555
8556
8557 fi
8558 if test -z "$ac_cv_prog_OBJDUMP"; then
8559 ac_ct_OBJDUMP=$OBJDUMP
8560 # Extract the first word of "objdump", so it can be a program name with args.
8561 set dummy objdump; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 if test -n "$ac_ct_OBJDUMP"; then
8568 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8569 else
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8572 do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581 done
8582 done
8583 IFS=$as_save_IFS
8584
8585 fi
8586 fi
8587 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8588 if test -n "$ac_ct_OBJDUMP"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8590 $as_echo "$ac_ct_OBJDUMP" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 fi
8595
8596 if test "x$ac_ct_OBJDUMP" = x; then
8597 OBJDUMP="false"
8598 else
8599 case $cross_compiling:$ac_tool_warned in
8600 yes:)
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603 ac_tool_warned=yes ;;
8604 esac
8605 OBJDUMP=$ac_ct_OBJDUMP
8606 fi
8607 else
8608 OBJDUMP="$ac_cv_prog_OBJDUMP"
8609 fi
8610
8611 ;;
8612 esac
8613
8614 test -z "$AS" && AS=as
8615
8616
8617
8618
8619
8620 test -z "$DLLTOOL" && DLLTOOL=dlltool
8621
8622
8623
8624
8625
8626 test -z "$OBJDUMP" && OBJDUMP=objdump
8627
8628
8629
8630
8631
8632
8633
8634 enable_dlopen=no
8635
8636
8637
8638 # Check whether --enable-shared was given.
8639 if test "${enable_shared+set}" = set; then :
8640 enableval=$enable_shared; p=${PACKAGE-default}
8641 case $enableval in
8642 yes) enable_shared=yes ;;
8643 no) enable_shared=no ;;
8644 *)
8645 enable_shared=no
8646 # Look at the argument we got. We use all the common list separators.
8647 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8648 for pkg in $enableval; do
8649 IFS=$lt_save_ifs
8650 if test "X$pkg" = "X$p"; then
8651 enable_shared=yes
8652 fi
8653 done
8654 IFS=$lt_save_ifs
8655 ;;
8656 esac
8657 else
8658 enable_shared=yes
8659 fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669 # Check whether --enable-static was given.
8670 if test "${enable_static+set}" = set; then :
8671 enableval=$enable_static; p=${PACKAGE-default}
8672 case $enableval in
8673 yes) enable_static=yes ;;
8674 no) enable_static=no ;;
8675 *)
8676 enable_static=no
8677 # Look at the argument we got. We use all the common list separators.
8678 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8679 for pkg in $enableval; do
8680 IFS=$lt_save_ifs
8681 if test "X$pkg" = "X$p"; then
8682 enable_static=yes
8683 fi
8684 done
8685 IFS=$lt_save_ifs
8686 ;;
8687 esac
8688 else
8689 enable_static=yes
8690 fi
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701 # Check whether --with-pic was given.
8702 if test "${with_pic+set}" = set; then :
8703 withval=$with_pic; lt_p=${PACKAGE-default}
8704 case $withval in
8705 yes|no) pic_mode=$withval ;;
8706 *)
8707 pic_mode=default
8708 # Look at the argument we got. We use all the common list separators.
8709 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8710 for lt_pkg in $withval; do
8711 IFS=$lt_save_ifs
8712 if test "X$lt_pkg" = "X$lt_p"; then
8713 pic_mode=yes
8714 fi
8715 done
8716 IFS=$lt_save_ifs
8717 ;;
8718 esac
8719 else
8720 pic_mode=default
8721 fi
8722
8723
8724
8725
8726
8727
8728
8729
8730 # Check whether --enable-fast-install was given.
8731 if test "${enable_fast_install+set}" = set; then :
8732 enableval=$enable_fast_install; p=${PACKAGE-default}
8733 case $enableval in
8734 yes) enable_fast_install=yes ;;
8735 no) enable_fast_install=no ;;
8736 *)
8737 enable_fast_install=no
8738 # Look at the argument we got. We use all the common list separators.
8739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8740 for pkg in $enableval; do
8741 IFS=$lt_save_ifs
8742 if test "X$pkg" = "X$p"; then
8743 enable_fast_install=yes
8744 fi
8745 done
8746 IFS=$lt_save_ifs
8747 ;;
8748 esac
8749 else
8750 enable_fast_install=yes
8751 fi
8752
8753
8754
8755
8756
8757
8758
8759
8760 shared_archive_member_spec=
8761 case $host,$enable_shared in
8762 power*-*-aix[5-9]*,yes)
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8764 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8765
8766 # Check whether --with-aix-soname was given.
8767 if test "${with_aix_soname+set}" = set; then :
8768 withval=$with_aix_soname; case $withval in
8769 aix|svr4|both)
8770 ;;
8771 *)
8772 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8773 ;;
8774 esac
8775 lt_cv_with_aix_soname=$with_aix_soname
8776 else
8777 if ${lt_cv_with_aix_soname+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 lt_cv_with_aix_soname=aix
8781 fi
8782
8783 with_aix_soname=$lt_cv_with_aix_soname
8784 fi
8785
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8787 $as_echo "$with_aix_soname" >&6; }
8788 if test aix != "$with_aix_soname"; then
8789 # For the AIX way of multilib, we name the shared archive member
8790 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8791 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8792 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8793 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8794 if test 64 = "${OBJECT_MODE-32}"; then
8795 shared_archive_member_spec=shr_64
8796 else
8797 shared_archive_member_spec=shr
8798 fi
8799 fi
8800 ;;
8801 *)
8802 with_aix_soname=aix
8803 ;;
8804 esac
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815 # This can be used to rebuild libtool when needed
8816 LIBTOOL_DEPS=$ltmain
8817
8818 # Always use our own libtool.
8819 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850 test -z "$LN_S" && LN_S="ln -s"
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865 if test -n "${ZSH_VERSION+set}"; then
8866 setopt NO_GLOB_SUBST
8867 fi
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8870 $as_echo_n "checking for objdir... " >&6; }
8871 if ${lt_cv_objdir+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 rm -f .libs 2>/dev/null
8875 mkdir .libs 2>/dev/null
8876 if test -d .libs; then
8877 lt_cv_objdir=.libs
8878 else
8879 # MS-DOS does not allow filenames that begin with a dot.
8880 lt_cv_objdir=_libs
8881 fi
8882 rmdir .libs 2>/dev/null
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8885 $as_echo "$lt_cv_objdir" >&6; }
8886 objdir=$lt_cv_objdir
8887
8888
8889
8890
8891
8892 cat >>confdefs.h <<_ACEOF
8893 #define LT_OBJDIR "$lt_cv_objdir/"
8894 _ACEOF
8895
8896
8897
8898
8899 case $host_os in
8900 aix3*)
8901 # AIX sometimes has problems with the GCC collect2 program. For some
8902 # reason, if we set the COLLECT_NAMES environment variable, the problems
8903 # vanish in a puff of smoke.
8904 if test set != "${COLLECT_NAMES+set}"; then
8905 COLLECT_NAMES=
8906 export COLLECT_NAMES
8907 fi
8908 ;;
8909 esac
8910
8911 # Global variables:
8912 ofile=libtool
8913 can_build_shared=yes
8914
8915 # All known linkers require a '.a' archive for static linking (except MSVC and
8916 # ICC, which need '.lib').
8917 libext=a
8918
8919 with_gnu_ld=$lt_cv_prog_gnu_ld
8920
8921 old_CC=$CC
8922 old_CFLAGS=$CFLAGS
8923
8924 # Set sane defaults for various variables
8925 test -z "$CC" && CC=cc
8926 test -z "$LTCC" && LTCC=$CC
8927 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8928 test -z "$LD" && LD=ld
8929 test -z "$ac_objext" && ac_objext=o
8930
8931 func_cc_basename $compiler
8932 cc_basename=$func_cc_basename_result
8933
8934
8935 # Only perform the check for file, if the check method requires it
8936 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8937 case $deplibs_check_method in
8938 file_magic*)
8939 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8941 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8942 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 case $MAGIC_CMD in
8946 [\\/*] | ?:[\\/]*)
8947 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8948 ;;
8949 *)
8950 lt_save_MAGIC_CMD=$MAGIC_CMD
8951 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8953 for ac_dir in $ac_dummy; do
8954 IFS=$lt_save_ifs
8955 test -z "$ac_dir" && ac_dir=.
8956 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8957 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8958 if test -n "$file_magic_test_file"; then
8959 case $deplibs_check_method in
8960 "file_magic "*)
8961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8962 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8964 $EGREP "$file_magic_regex" > /dev/null; then
8965 :
8966 else
8967 cat <<_LT_EOF 1>&2
8968
8969 *** Warning: the command libtool uses to detect shared libraries,
8970 *** $file_magic_cmd, produces output that libtool cannot recognize.
8971 *** The result is that libtool may fail to recognize shared libraries
8972 *** as such. This will affect the creation of libtool libraries that
8973 *** depend on shared libraries, but programs linked with such libtool
8974 *** libraries will work regardless of this problem. Nevertheless, you
8975 *** may want to report the problem to your system manager and/or to
8976 *** bug-libtool (at] gnu.org
8977
8978 _LT_EOF
8979 fi ;;
8980 esac
8981 fi
8982 break
8983 fi
8984 done
8985 IFS=$lt_save_ifs
8986 MAGIC_CMD=$lt_save_MAGIC_CMD
8987 ;;
8988 esac
8989 fi
8990
8991 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8992 if test -n "$MAGIC_CMD"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8994 $as_echo "$MAGIC_CMD" >&6; }
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8998 fi
8999
9000
9001
9002
9003
9004 if test -z "$lt_cv_path_MAGIC_CMD"; then
9005 if test -n "$ac_tool_prefix"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9007 $as_echo_n "checking for file... " >&6; }
9008 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 case $MAGIC_CMD in
9012 [\\/*] | ?:[\\/]*)
9013 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9014 ;;
9015 *)
9016 lt_save_MAGIC_CMD=$MAGIC_CMD
9017 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9018 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9019 for ac_dir in $ac_dummy; do
9020 IFS=$lt_save_ifs
9021 test -z "$ac_dir" && ac_dir=.
9022 if test -f "$ac_dir/file"; then
9023 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9024 if test -n "$file_magic_test_file"; then
9025 case $deplibs_check_method in
9026 "file_magic "*)
9027 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9028 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9030 $EGREP "$file_magic_regex" > /dev/null; then
9031 :
9032 else
9033 cat <<_LT_EOF 1>&2
9034
9035 *** Warning: the command libtool uses to detect shared libraries,
9036 *** $file_magic_cmd, produces output that libtool cannot recognize.
9037 *** The result is that libtool may fail to recognize shared libraries
9038 *** as such. This will affect the creation of libtool libraries that
9039 *** depend on shared libraries, but programs linked with such libtool
9040 *** libraries will work regardless of this problem. Nevertheless, you
9041 *** may want to report the problem to your system manager and/or to
9042 *** bug-libtool (at] gnu.org
9043
9044 _LT_EOF
9045 fi ;;
9046 esac
9047 fi
9048 break
9049 fi
9050 done
9051 IFS=$lt_save_ifs
9052 MAGIC_CMD=$lt_save_MAGIC_CMD
9053 ;;
9054 esac
9055 fi
9056
9057 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9058 if test -n "$MAGIC_CMD"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9060 $as_echo "$MAGIC_CMD" >&6; }
9061 else
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9064 fi
9065
9066
9067 else
9068 MAGIC_CMD=:
9069 fi
9070 fi
9071
9072 fi
9073 ;;
9074 esac
9075
9076 # Use C for the default configuration in the libtool script
9077
9078 lt_save_CC=$CC
9079 ac_ext=c
9080 ac_cpp='$CPP $CPPFLAGS'
9081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9084
9085
9086 # Source file extension for C test sources.
9087 ac_ext=c
9088
9089 # Object file extension for compiled C test sources.
9090 objext=o
9091 objext=$objext
9092
9093 # Code to be used in simple compile tests
9094 lt_simple_compile_test_code="int some_variable = 0;"
9095
9096 # Code to be used in simple link tests
9097 lt_simple_link_test_code='int main(){return(0);}'
9098
9099
9100
9101
9102
9103
9104
9105 # If no C compiler was specified, use CC.
9106 LTCC=${LTCC-"$CC"}
9107
9108 # If no C compiler flags were specified, use CFLAGS.
9109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9110
9111 # Allow CC to be a program name with arguments.
9112 compiler=$CC
9113
9114 # Save the default compiler, since it gets overwritten when the other
9115 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9116 compiler_DEFAULT=$CC
9117
9118 # save warnings/boilerplate of simple test code
9119 ac_outfile=conftest.$ac_objext
9120 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9121 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9122 _lt_compiler_boilerplate=`cat conftest.err`
9123 $RM conftest*
9124
9125 ac_outfile=conftest.$ac_objext
9126 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9127 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9128 _lt_linker_boilerplate=`cat conftest.err`
9129 $RM -r conftest*
9130
9131
9132 ## CAVEAT EMPTOR:
9133 ## There is no encapsulation within the following macros, do not change
9134 ## the running order or otherwise move them around unless you know exactly
9135 ## what you are doing...
9136 if test -n "$compiler"; then
9137
9138 lt_prog_compiler_no_builtin_flag=
9139
9140 if test yes = "$GCC"; then
9141 case $cc_basename in
9142 nvcc*)
9143 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9144 *)
9145 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9146 esac
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9149 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9150 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 lt_cv_prog_compiler_rtti_exceptions=no
9154 ac_outfile=conftest.$ac_objext
9155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9156 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9157 # Insert the option either (1) after the last *FLAGS variable, or
9158 # (2) before a word containing "conftest.", or (3) at the end.
9159 # Note that $ac_compile itself does not contain backslashes and begins
9160 # with a dollar sign (not a hyphen), so the echo should work correctly.
9161 # The option is referenced via a variable to avoid confusing sed.
9162 lt_compile=`echo "$ac_compile" | $SED \
9163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9165 -e 's:$: $lt_compiler_flag:'`
9166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9167 (eval "$lt_compile" 2>conftest.err)
9168 ac_status=$?
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 if (exit $ac_status) && test -s "$ac_outfile"; then
9172 # The compiler can only warn and ignore the option if not recognized
9173 # So say no if there are warnings other than the usual output.
9174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9176 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9177 lt_cv_prog_compiler_rtti_exceptions=yes
9178 fi
9179 fi
9180 $RM conftest*
9181
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9184 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9185
9186 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9187 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9188 else
9189 :
9190 fi
9191
9192 fi
9193
9194
9195
9196
9197
9198
9199 lt_prog_compiler_wl=
9200 lt_prog_compiler_pic=
9201 lt_prog_compiler_static=
9202
9203
9204 if test yes = "$GCC"; then
9205 lt_prog_compiler_wl='-Wl,'
9206 lt_prog_compiler_static='-static'
9207
9208 case $host_os in
9209 aix*)
9210 # All AIX code is PIC.
9211 if test ia64 = "$host_cpu"; then
9212 # AIX 5 now supports IA64 processor
9213 lt_prog_compiler_static='-Bstatic'
9214 fi
9215 lt_prog_compiler_pic='-fPIC'
9216 ;;
9217
9218 amigaos*)
9219 case $host_cpu in
9220 powerpc)
9221 # see comment about AmigaOS4 .so support
9222 lt_prog_compiler_pic='-fPIC'
9223 ;;
9224 m68k)
9225 # FIXME: we need at least 68020 code to build shared libraries, but
9226 # adding the '-m68020' flag to GCC prevents building anything better,
9227 # like '-m68040'.
9228 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9229 ;;
9230 esac
9231 ;;
9232
9233 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9234 # PIC is the default for these OSes.
9235 ;;
9236
9237 mingw* | cygwin* | pw32* | os2* | cegcc*)
9238 # This hack is so that the source file can tell whether it is being
9239 # built for inclusion in a dll (and should export symbols for example).
9240 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9241 # (--disable-auto-import) libraries
9242 lt_prog_compiler_pic='-DDLL_EXPORT'
9243 case $host_os in
9244 os2*)
9245 lt_prog_compiler_static='$wl-static'
9246 ;;
9247 esac
9248 ;;
9249
9250 darwin* | rhapsody*)
9251 # PIC is the default on this platform
9252 # Common symbols not allowed in MH_DYLIB files
9253 lt_prog_compiler_pic='-fno-common'
9254 ;;
9255
9256 haiku*)
9257 # PIC is the default for Haiku.
9258 # The "-static" flag exists, but is broken.
9259 lt_prog_compiler_static=
9260 ;;
9261
9262 hpux*)
9263 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9264 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9265 # sets the default TLS model and affects inlining.
9266 case $host_cpu in
9267 hppa*64*)
9268 # +Z the default
9269 ;;
9270 *)
9271 lt_prog_compiler_pic='-fPIC'
9272 ;;
9273 esac
9274 ;;
9275
9276 interix[3-9]*)
9277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9278 # Instead, we relocate shared libraries at runtime.
9279 ;;
9280
9281 msdosdjgpp*)
9282 # Just because we use GCC doesn't mean we suddenly get shared libraries
9283 # on systems that don't support them.
9284 lt_prog_compiler_can_build_shared=no
9285 enable_shared=no
9286 ;;
9287
9288 *nto* | *qnx*)
9289 # QNX uses GNU C++, but need to define -shared option too, otherwise
9290 # it will coredump.
9291 lt_prog_compiler_pic='-fPIC -shared'
9292 ;;
9293
9294 sysv4*MP*)
9295 if test -d /usr/nec; then
9296 lt_prog_compiler_pic=-Kconform_pic
9297 fi
9298 ;;
9299
9300 *)
9301 lt_prog_compiler_pic='-fPIC'
9302 ;;
9303 esac
9304
9305 case $cc_basename in
9306 nvcc*) # Cuda Compiler Driver 2.2
9307 lt_prog_compiler_wl='-Xlinker '
9308 if test -n "$lt_prog_compiler_pic"; then
9309 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9310 fi
9311 ;;
9312 esac
9313 else
9314 # PORTME Check for flag to pass linker flags through the system compiler.
9315 case $host_os in
9316 aix*)
9317 lt_prog_compiler_wl='-Wl,'
9318 if test ia64 = "$host_cpu"; then
9319 # AIX 5 now supports IA64 processor
9320 lt_prog_compiler_static='-Bstatic'
9321 else
9322 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9323 fi
9324 ;;
9325
9326 darwin* | rhapsody*)
9327 # PIC is the default on this platform
9328 # Common symbols not allowed in MH_DYLIB files
9329 lt_prog_compiler_pic='-fno-common'
9330 case $cc_basename in
9331 nagfor*)
9332 # NAG Fortran compiler
9333 lt_prog_compiler_wl='-Wl,-Wl,,'
9334 lt_prog_compiler_pic='-PIC'
9335 lt_prog_compiler_static='-Bstatic'
9336 ;;
9337 esac
9338 ;;
9339
9340 mingw* | cygwin* | pw32* | os2* | cegcc*)
9341 # This hack is so that the source file can tell whether it is being
9342 # built for inclusion in a dll (and should export symbols for example).
9343 lt_prog_compiler_pic='-DDLL_EXPORT'
9344 case $host_os in
9345 os2*)
9346 lt_prog_compiler_static='$wl-static'
9347 ;;
9348 esac
9349 ;;
9350
9351 hpux9* | hpux10* | hpux11*)
9352 lt_prog_compiler_wl='-Wl,'
9353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9354 # not for PA HP-UX.
9355 case $host_cpu in
9356 hppa*64*|ia64*)
9357 # +Z the default
9358 ;;
9359 *)
9360 lt_prog_compiler_pic='+Z'
9361 ;;
9362 esac
9363 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9364 lt_prog_compiler_static='$wl-a ${wl}archive'
9365 ;;
9366
9367 irix5* | irix6* | nonstopux*)
9368 lt_prog_compiler_wl='-Wl,'
9369 # PIC (with -KPIC) is the default.
9370 lt_prog_compiler_static='-non_shared'
9371 ;;
9372
9373 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9374 case $cc_basename in
9375 # old Intel for x86_64, which still supported -KPIC.
9376 ecc*)
9377 lt_prog_compiler_wl='-Wl,'
9378 lt_prog_compiler_pic='-KPIC'
9379 lt_prog_compiler_static='-static'
9380 ;;
9381 # icc used to be incompatible with GCC.
9382 # ICC 10 doesn't accept -KPIC any more.
9383 icc* | ifort*)
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='-fPIC'
9386 lt_prog_compiler_static='-static'
9387 ;;
9388 # Lahey Fortran 8.1.
9389 lf95*)
9390 lt_prog_compiler_wl='-Wl,'
9391 lt_prog_compiler_pic='--shared'
9392 lt_prog_compiler_static='--static'
9393 ;;
9394 nagfor*)
9395 # NAG Fortran compiler
9396 lt_prog_compiler_wl='-Wl,-Wl,,'
9397 lt_prog_compiler_pic='-PIC'
9398 lt_prog_compiler_static='-Bstatic'
9399 ;;
9400 tcc*)
9401 # Fabrice Bellard et al's Tiny C Compiler
9402 lt_prog_compiler_wl='-Wl,'
9403 lt_prog_compiler_pic='-fPIC'
9404 lt_prog_compiler_static='-static'
9405 ;;
9406 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9407 # Portland Group compilers (*not* the Pentium gcc compiler,
9408 # which looks to be a dead project)
9409 lt_prog_compiler_wl='-Wl,'
9410 lt_prog_compiler_pic='-fpic'
9411 lt_prog_compiler_static='-Bstatic'
9412 ;;
9413 ccc*)
9414 lt_prog_compiler_wl='-Wl,'
9415 # All Alpha code is PIC.
9416 lt_prog_compiler_static='-non_shared'
9417 ;;
9418 xl* | bgxl* | bgf* | mpixl*)
9419 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='-qpic'
9422 lt_prog_compiler_static='-qstaticlink'
9423 ;;
9424 *)
9425 case `$CC -V 2>&1 | $SED 5q` in
9426 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9427 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9428 lt_prog_compiler_pic='-KPIC'
9429 lt_prog_compiler_static='-Bstatic'
9430 lt_prog_compiler_wl=''
9431 ;;
9432 *Sun\ F* | *Sun*Fortran*)
9433 lt_prog_compiler_pic='-KPIC'
9434 lt_prog_compiler_static='-Bstatic'
9435 lt_prog_compiler_wl='-Qoption ld '
9436 ;;
9437 *Sun\ C*)
9438 # Sun C 5.9
9439 lt_prog_compiler_pic='-KPIC'
9440 lt_prog_compiler_static='-Bstatic'
9441 lt_prog_compiler_wl='-Wl,'
9442 ;;
9443 *Intel*\ [CF]*Compiler*)
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='-fPIC'
9446 lt_prog_compiler_static='-static'
9447 ;;
9448 *Portland\ Group*)
9449 lt_prog_compiler_wl='-Wl,'
9450 lt_prog_compiler_pic='-fpic'
9451 lt_prog_compiler_static='-Bstatic'
9452 ;;
9453 esac
9454 ;;
9455 esac
9456 ;;
9457
9458 newsos6)
9459 lt_prog_compiler_pic='-KPIC'
9460 lt_prog_compiler_static='-Bstatic'
9461 ;;
9462
9463 *nto* | *qnx*)
9464 # QNX uses GNU C++, but need to define -shared option too, otherwise
9465 # it will coredump.
9466 lt_prog_compiler_pic='-fPIC -shared'
9467 ;;
9468
9469 osf3* | osf4* | osf5*)
9470 lt_prog_compiler_wl='-Wl,'
9471 # All OSF/1 code is PIC.
9472 lt_prog_compiler_static='-non_shared'
9473 ;;
9474
9475 rdos*)
9476 lt_prog_compiler_static='-non_shared'
9477 ;;
9478
9479 solaris*)
9480 lt_prog_compiler_pic='-KPIC'
9481 lt_prog_compiler_static='-Bstatic'
9482 case $cc_basename in
9483 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9484 lt_prog_compiler_wl='-Qoption ld ';;
9485 *)
9486 lt_prog_compiler_wl='-Wl,';;
9487 esac
9488 ;;
9489
9490 sunos4*)
9491 lt_prog_compiler_wl='-Qoption ld '
9492 lt_prog_compiler_pic='-PIC'
9493 lt_prog_compiler_static='-Bstatic'
9494 ;;
9495
9496 sysv4 | sysv4.2uw2* | sysv4.3*)
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_pic='-KPIC'
9499 lt_prog_compiler_static='-Bstatic'
9500 ;;
9501
9502 sysv4*MP*)
9503 if test -d /usr/nec; then
9504 lt_prog_compiler_pic='-Kconform_pic'
9505 lt_prog_compiler_static='-Bstatic'
9506 fi
9507 ;;
9508
9509 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9510 lt_prog_compiler_wl='-Wl,'
9511 lt_prog_compiler_pic='-KPIC'
9512 lt_prog_compiler_static='-Bstatic'
9513 ;;
9514
9515 unicos*)
9516 lt_prog_compiler_wl='-Wl,'
9517 lt_prog_compiler_can_build_shared=no
9518 ;;
9519
9520 uts4*)
9521 lt_prog_compiler_pic='-pic'
9522 lt_prog_compiler_static='-Bstatic'
9523 ;;
9524
9525 *)
9526 lt_prog_compiler_can_build_shared=no
9527 ;;
9528 esac
9529 fi
9530
9531 case $host_os in
9532 # For platforms that do not support PIC, -DPIC is meaningless:
9533 *djgpp*)
9534 lt_prog_compiler_pic=
9535 ;;
9536 *)
9537 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9538 ;;
9539 esac
9540
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9542 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9543 if ${lt_cv_prog_compiler_pic+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9549 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9550 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9551
9552 #
9553 # Check to make sure the PIC flag actually works.
9554 #
9555 if test -n "$lt_prog_compiler_pic"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9557 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9558 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 lt_cv_prog_compiler_pic_works=no
9562 ac_outfile=conftest.$ac_objext
9563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9564 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9565 # Insert the option either (1) after the last *FLAGS variable, or
9566 # (2) before a word containing "conftest.", or (3) at the end.
9567 # Note that $ac_compile itself does not contain backslashes and begins
9568 # with a dollar sign (not a hyphen), so the echo should work correctly.
9569 # The option is referenced via a variable to avoid confusing sed.
9570 lt_compile=`echo "$ac_compile" | $SED \
9571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9573 -e 's:$: $lt_compiler_flag:'`
9574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9575 (eval "$lt_compile" 2>conftest.err)
9576 ac_status=$?
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 if (exit $ac_status) && test -s "$ac_outfile"; then
9580 # The compiler can only warn and ignore the option if not recognized
9581 # So say no if there are warnings other than the usual output.
9582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9585 lt_cv_prog_compiler_pic_works=yes
9586 fi
9587 fi
9588 $RM conftest*
9589
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9592 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9593
9594 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9595 case $lt_prog_compiler_pic in
9596 "" | " "*) ;;
9597 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9598 esac
9599 else
9600 lt_prog_compiler_pic=
9601 lt_prog_compiler_can_build_shared=no
9602 fi
9603
9604 fi
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616 #
9617 # Check to make sure the static flag actually works.
9618 #
9619 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9621 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9622 if ${lt_cv_prog_compiler_static_works+:} false; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 lt_cv_prog_compiler_static_works=no
9626 save_LDFLAGS=$LDFLAGS
9627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9628 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9630 # The linker can only warn and ignore the option if not recognized
9631 # So say no if there are warnings
9632 if test -s conftest.err; then
9633 # Append any errors to the config.log.
9634 cat conftest.err 1>&5
9635 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9637 if diff conftest.exp conftest.er2 >/dev/null; then
9638 lt_cv_prog_compiler_static_works=yes
9639 fi
9640 else
9641 lt_cv_prog_compiler_static_works=yes
9642 fi
9643 fi
9644 $RM -r conftest*
9645 LDFLAGS=$save_LDFLAGS
9646
9647 fi
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9649 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9650
9651 if test yes = "$lt_cv_prog_compiler_static_works"; then
9652 :
9653 else
9654 lt_prog_compiler_static=
9655 fi
9656
9657
9658
9659
9660
9661
9662
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9665 if ${lt_cv_prog_compiler_c_o+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 lt_cv_prog_compiler_c_o=no
9669 $RM -r conftest 2>/dev/null
9670 mkdir conftest
9671 cd conftest
9672 mkdir out
9673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9674
9675 lt_compiler_flag="-o out/conftest2.$ac_objext"
9676 # Insert the option either (1) after the last *FLAGS variable, or
9677 # (2) before a word containing "conftest.", or (3) at the end.
9678 # Note that $ac_compile itself does not contain backslashes and begins
9679 # with a dollar sign (not a hyphen), so the echo should work correctly.
9680 lt_compile=`echo "$ac_compile" | $SED \
9681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9683 -e 's:$: $lt_compiler_flag:'`
9684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9685 (eval "$lt_compile" 2>out/conftest.err)
9686 ac_status=$?
9687 cat out/conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9690 then
9691 # The compiler can only warn and ignore the option if not recognized
9692 # So say no if there are warnings
9693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9696 lt_cv_prog_compiler_c_o=yes
9697 fi
9698 fi
9699 chmod u+w . 2>&5
9700 $RM conftest*
9701 # SGI C++ compiler will create directory out/ii_files/ for
9702 # template instantiation
9703 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9704 $RM out/* && rmdir out
9705 cd ..
9706 $RM -r conftest
9707 $RM conftest*
9708
9709 fi
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9711 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9712
9713
9714
9715
9716
9717
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9719 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9720 if ${lt_cv_prog_compiler_c_o+:} false; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 lt_cv_prog_compiler_c_o=no
9724 $RM -r conftest 2>/dev/null
9725 mkdir conftest
9726 cd conftest
9727 mkdir out
9728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9729
9730 lt_compiler_flag="-o out/conftest2.$ac_objext"
9731 # Insert the option either (1) after the last *FLAGS variable, or
9732 # (2) before a word containing "conftest.", or (3) at the end.
9733 # Note that $ac_compile itself does not contain backslashes and begins
9734 # with a dollar sign (not a hyphen), so the echo should work correctly.
9735 lt_compile=`echo "$ac_compile" | $SED \
9736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9738 -e 's:$: $lt_compiler_flag:'`
9739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9740 (eval "$lt_compile" 2>out/conftest.err)
9741 ac_status=$?
9742 cat out/conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9745 then
9746 # The compiler can only warn and ignore the option if not recognized
9747 # So say no if there are warnings
9748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9751 lt_cv_prog_compiler_c_o=yes
9752 fi
9753 fi
9754 chmod u+w . 2>&5
9755 $RM conftest*
9756 # SGI C++ compiler will create directory out/ii_files/ for
9757 # template instantiation
9758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9759 $RM out/* && rmdir out
9760 cd ..
9761 $RM -r conftest
9762 $RM conftest*
9763
9764 fi
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9766 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9767
9768
9769
9770
9771 hard_links=nottested
9772 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9773 # do not overwrite the value of need_locks provided by the user
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9775 $as_echo_n "checking if we can lock with hard links... " >&6; }
9776 hard_links=yes
9777 $RM conftest*
9778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9779 touch conftest.a
9780 ln conftest.a conftest.b 2>&5 || hard_links=no
9781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9783 $as_echo "$hard_links" >&6; }
9784 if test no = "$hard_links"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9786 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9787 need_locks=warn
9788 fi
9789 else
9790 need_locks=no
9791 fi
9792
9793
9794
9795
9796
9797
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9799 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9800
9801 runpath_var=
9802 allow_undefined_flag=
9803 always_export_symbols=no
9804 archive_cmds=
9805 archive_expsym_cmds=
9806 compiler_needs_object=no
9807 enable_shared_with_static_runtimes=no
9808 export_dynamic_flag_spec=
9809 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9810 hardcode_automatic=no
9811 hardcode_direct=no
9812 hardcode_direct_absolute=no
9813 hardcode_libdir_flag_spec=
9814 hardcode_libdir_separator=
9815 hardcode_minus_L=no
9816 hardcode_shlibpath_var=unsupported
9817 inherit_rpath=no
9818 link_all_deplibs=unknown
9819 module_cmds=
9820 module_expsym_cmds=
9821 old_archive_from_new_cmds=
9822 old_archive_from_expsyms_cmds=
9823 thread_safe_flag_spec=
9824 whole_archive_flag_spec=
9825 # include_expsyms should be a list of space-separated symbols to be *always*
9826 # included in the symbol list
9827 include_expsyms=
9828 # exclude_expsyms can be an extended regexp of symbols to exclude
9829 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9830 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9831 # as well as any symbol that contains 'd'.
9832 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9833 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9834 # platforms (ab)use it in PIC code, but their linkers get confused if
9835 # the symbol is explicitly referenced. Since portable code cannot
9836 # rely on this symbol name, it's probably fine to never include it in
9837 # preloaded symbol tables.
9838 # Exclude shared library initialization/finalization symbols.
9839 extract_expsyms_cmds=
9840
9841 case $host_os in
9842 cygwin* | mingw* | pw32* | cegcc*)
9843 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9844 # When not using gcc, we currently assume that we are using
9845 # Microsoft Visual C++ or Intel C++ Compiler.
9846 if test yes != "$GCC"; then
9847 with_gnu_ld=no
9848 fi
9849 ;;
9850 interix*)
9851 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9852 with_gnu_ld=yes
9853 ;;
9854 openbsd* | bitrig*)
9855 with_gnu_ld=no
9856 ;;
9857 esac
9858
9859 ld_shlibs=yes
9860
9861 # On some targets, GNU ld is compatible enough with the native linker
9862 # that we're better off using the native interface for both.
9863 lt_use_gnu_ld_interface=no
9864 if test yes = "$with_gnu_ld"; then
9865 case $host_os in
9866 aix*)
9867 # The AIX port of GNU ld has always aspired to compatibility
9868 # with the native linker. However, as the warning in the GNU ld
9869 # block says, versions before 2.19.5* couldn't really create working
9870 # shared libraries, regardless of the interface used.
9871 case `$LD -v 2>&1` in
9872 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9873 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9874 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9875 *)
9876 lt_use_gnu_ld_interface=yes
9877 ;;
9878 esac
9879 ;;
9880 *)
9881 lt_use_gnu_ld_interface=yes
9882 ;;
9883 esac
9884 fi
9885
9886 if test yes = "$lt_use_gnu_ld_interface"; then
9887 # If archive_cmds runs LD, not CC, wlarc should be empty
9888 wlarc='$wl'
9889
9890 # Set some defaults for GNU ld with shared library support. These
9891 # are reset later if shared libraries are not supported. Putting them
9892 # here allows them to be overridden if necessary.
9893 runpath_var=LD_RUN_PATH
9894 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9895 export_dynamic_flag_spec='$wl--export-dynamic'
9896 # ancient GNU ld didn't support --whole-archive et. al.
9897 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9898 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9899 else
9900 whole_archive_flag_spec=
9901 fi
9902 supports_anon_versioning=no
9903 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9904 *GNU\ gold*) supports_anon_versioning=yes ;;
9905 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9906 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9907 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9908 *\ 2.11.*) ;; # other 2.11 versions
9909 *) supports_anon_versioning=yes ;;
9910 esac
9911
9912 # See if GNU ld supports shared libraries.
9913 case $host_os in
9914 aix[3-9]*)
9915 # On AIX/PPC, the GNU linker is very broken
9916 if test ia64 != "$host_cpu"; then
9917 ld_shlibs=no
9918 cat <<_LT_EOF 1>&2
9919
9920 *** Warning: the GNU linker, at least up to release 2.19, is reported
9921 *** to be unable to reliably create shared libraries on AIX.
9922 *** Therefore, libtool is disabling shared libraries support. If you
9923 *** really care for shared libraries, you may want to install binutils
9924 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9925 *** You will then need to restart the configuration process.
9926
9927 _LT_EOF
9928 fi
9929 ;;
9930
9931 amigaos*)
9932 case $host_cpu in
9933 powerpc)
9934 # see comment about AmigaOS4 .so support
9935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9936 archive_expsym_cmds=''
9937 ;;
9938 m68k)
9939 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)'
9940 hardcode_libdir_flag_spec='-L$libdir'
9941 hardcode_minus_L=yes
9942 ;;
9943 esac
9944 ;;
9945
9946 beos*)
9947 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9948 allow_undefined_flag=unsupported
9949 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9950 # support --undefined. This deserves some investigation. FIXME
9951 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9952 else
9953 ld_shlibs=no
9954 fi
9955 ;;
9956
9957 cygwin* | mingw* | pw32* | cegcc*)
9958 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9959 # as there is no search path for DLLs.
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 export_dynamic_flag_spec='$wl--export-all-symbols'
9962 allow_undefined_flag=unsupported
9963 always_export_symbols=no
9964 enable_shared_with_static_runtimes=yes
9965 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'
9966 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9967
9968 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9970 # If the export-symbols file already is a .def file, use it as
9971 # is; otherwise, prepend EXPORTS...
9972 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9973 cp $export_symbols $output_objdir/$soname.def;
9974 else
9975 echo EXPORTS > $output_objdir/$soname.def;
9976 cat $export_symbols >> $output_objdir/$soname.def;
9977 fi~
9978 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9979 else
9980 ld_shlibs=no
9981 fi
9982 ;;
9983
9984 haiku*)
9985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9986 link_all_deplibs=yes
9987 ;;
9988
9989 os2*)
9990 hardcode_libdir_flag_spec='-L$libdir'
9991 hardcode_minus_L=yes
9992 allow_undefined_flag=unsupported
9993 shrext_cmds=.dll
9994 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9995 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9996 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9997 $ECHO EXPORTS >> $output_objdir/$libname.def~
9998 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9999 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10000 emximp -o $lib $output_objdir/$libname.def'
10001 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10002 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10003 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10004 $ECHO EXPORTS >> $output_objdir/$libname.def~
10005 prefix_cmds="$SED"~
10006 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10007 prefix_cmds="$prefix_cmds -e 1d";
10008 fi~
10009 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10010 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10011 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10012 emximp -o $lib $output_objdir/$libname.def'
10013 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10014 enable_shared_with_static_runtimes=yes
10015 file_list_spec='@'
10016 ;;
10017
10018 interix[3-9]*)
10019 hardcode_direct=no
10020 hardcode_shlibpath_var=no
10021 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10022 export_dynamic_flag_spec='$wl-E'
10023 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10024 # Instead, shared libraries are loaded at an image base (0x10000000 by
10025 # default) and relocated if they conflict, which is a slow very memory
10026 # consuming and fragmenting process. To avoid this, we pick a random,
10027 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10028 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10030 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'
10031 ;;
10032
10033 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10034 tmp_diet=no
10035 if test linux-dietlibc = "$host_os"; then
10036 case $cc_basename in
10037 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10038 esac
10039 fi
10040 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10041 && test no = "$tmp_diet"
10042 then
10043 tmp_addflag=' $pic_flag'
10044 tmp_sharedflag='-shared'
10045 case $cc_basename,$host_cpu in
10046 pgcc*) # Portland Group C compiler
10047 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'
10048 tmp_addflag=' $pic_flag'
10049 ;;
10050 pgf77* | pgf90* | pgf95* | pgfortran*)
10051 # Portland Group f77 and f90 compilers
10052 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'
10053 tmp_addflag=' $pic_flag -Mnomain' ;;
10054 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10055 tmp_addflag=' -i_dynamic' ;;
10056 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10057 tmp_addflag=' -i_dynamic -nofor_main' ;;
10058 ifc* | ifort*) # Intel Fortran compiler
10059 tmp_addflag=' -nofor_main' ;;
10060 lf95*) # Lahey Fortran 8.1
10061 whole_archive_flag_spec=
10062 tmp_sharedflag='--shared' ;;
10063 nagfor*) # NAGFOR 5.3
10064 tmp_sharedflag='-Wl,-shared' ;;
10065 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10066 tmp_sharedflag='-qmkshrobj'
10067 tmp_addflag= ;;
10068 nvcc*) # Cuda Compiler Driver 2.2
10069 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'
10070 compiler_needs_object=yes
10071 ;;
10072 esac
10073 case `$CC -V 2>&1 | $SED 5q` in
10074 *Sun\ C*) # Sun C 5.9
10075 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'
10076 compiler_needs_object=yes
10077 tmp_sharedflag='-G' ;;
10078 *Sun\ F*) # Sun Fortran 8.3
10079 tmp_sharedflag='-G' ;;
10080 esac
10081 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10082
10083 if test yes = "$supports_anon_versioning"; then
10084 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10085 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10086 echo "local: *; };" >> $output_objdir/$libname.ver~
10087 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10088 fi
10089
10090 case $cc_basename in
10091 tcc*)
10092 export_dynamic_flag_spec='-rdynamic'
10093 ;;
10094 xlf* | bgf* | bgxlf* | mpixlf*)
10095 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10096 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10097 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10098 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10099 if test yes = "$supports_anon_versioning"; then
10100 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10101 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10102 echo "local: *; };" >> $output_objdir/$libname.ver~
10103 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10104 fi
10105 ;;
10106 esac
10107 else
10108 ld_shlibs=no
10109 fi
10110 ;;
10111
10112 netbsd*)
10113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10114 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10115 wlarc=
10116 else
10117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10118 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10119 fi
10120 ;;
10121
10122 solaris*)
10123 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10124 ld_shlibs=no
10125 cat <<_LT_EOF 1>&2
10126
10127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10128 *** create shared libraries on Solaris systems. Therefore, libtool
10129 *** is disabling shared libraries support. We urge you to upgrade GNU
10130 *** binutils to release 2.9.1 or newer. Another option is to modify
10131 *** your PATH or compiler configuration so that the native linker is
10132 *** used, and then restart.
10133
10134 _LT_EOF
10135 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10137 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10138 else
10139 ld_shlibs=no
10140 fi
10141 ;;
10142
10143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10144 case `$LD -v 2>&1` in
10145 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10146 ld_shlibs=no
10147 cat <<_LT_EOF 1>&2
10148
10149 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10150 *** reliably create shared libraries on SCO systems. Therefore, libtool
10151 *** is disabling shared libraries support. We urge you to upgrade GNU
10152 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10153 *** your PATH or compiler configuration so that the native linker is
10154 *** used, and then restart.
10155
10156 _LT_EOF
10157 ;;
10158 *)
10159 # For security reasons, it is highly recommended that you always
10160 # use absolute paths for naming shared libraries, and exclude the
10161 # DT_RUNPATH tag from executables and libraries. But doing so
10162 # requires that you compile everything twice, which is a pain.
10163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10164 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10167 else
10168 ld_shlibs=no
10169 fi
10170 ;;
10171 esac
10172 ;;
10173
10174 sunos4*)
10175 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10176 wlarc=
10177 hardcode_direct=yes
10178 hardcode_shlibpath_var=no
10179 ;;
10180
10181 *)
10182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10184 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10185 else
10186 ld_shlibs=no
10187 fi
10188 ;;
10189 esac
10190
10191 if test no = "$ld_shlibs"; then
10192 runpath_var=
10193 hardcode_libdir_flag_spec=
10194 export_dynamic_flag_spec=
10195 whole_archive_flag_spec=
10196 fi
10197 else
10198 # PORTME fill in a description of your system's linker (not GNU ld)
10199 case $host_os in
10200 aix3*)
10201 allow_undefined_flag=unsupported
10202 always_export_symbols=yes
10203 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'
10204 # Note: this linker hardcodes the directories in LIBPATH if there
10205 # are no directories specified by -L.
10206 hardcode_minus_L=yes
10207 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10208 # Neither direct hardcoding nor static linking is supported with a
10209 # broken collect2.
10210 hardcode_direct=unsupported
10211 fi
10212 ;;
10213
10214 aix[4-9]*)
10215 if test ia64 = "$host_cpu"; then
10216 # On IA64, the linker does run time linking by default, so we don't
10217 # have to do anything special.
10218 aix_use_runtimelinking=no
10219 exp_sym_flag='-Bexport'
10220 no_entry_flag=
10221 else
10222 # If we're using GNU nm, then we don't want the "-C" option.
10223 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10224 # Without the "-l" option, or with the "-B" option, AIX nm treats
10225 # weak defined symbols like other global defined symbols, whereas
10226 # GNU nm marks them as "W".
10227 # While the 'weak' keyword is ignored in the Export File, we need
10228 # it in the Import File for the 'aix-soname' feature, so we have
10229 # to replace the "-B" option with "-P" for AIX nm.
10230 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10231 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'
10232 else
10233 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10234 fi
10235 aix_use_runtimelinking=no
10236
10237 # Test if we are trying to use run time linking or normal
10238 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10239 # have runtime linking enabled, and use it for executables.
10240 # For shared libraries, we enable/disable runtime linking
10241 # depending on the kind of the shared library created -
10242 # when "with_aix_soname,aix_use_runtimelinking" is:
10243 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10244 # "aix,yes" lib.so shared, rtl:yes, for executables
10245 # lib.a static archive
10246 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10247 # lib.a(lib.so.V) shared, rtl:no, for executables
10248 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10249 # lib.a(lib.so.V) shared, rtl:no
10250 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10251 # lib.a static archive
10252 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10253 for ld_flag in $LDFLAGS; do
10254 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10255 aix_use_runtimelinking=yes
10256 break
10257 fi
10258 done
10259 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10260 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10261 # so we don't have lib.a shared libs to link our executables.
10262 # We have to force runtime linking in this case.
10263 aix_use_runtimelinking=yes
10264 LDFLAGS="$LDFLAGS -Wl,-brtl"
10265 fi
10266 ;;
10267 esac
10268
10269 exp_sym_flag='-bexport'
10270 no_entry_flag='-bnoentry'
10271 fi
10272
10273 # When large executables or shared objects are built, AIX ld can
10274 # have problems creating the table of contents. If linking a library
10275 # or program results in "error TOC overflow" add -mminimal-toc to
10276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10278
10279 archive_cmds=''
10280 hardcode_direct=yes
10281 hardcode_direct_absolute=yes
10282 hardcode_libdir_separator=':'
10283 link_all_deplibs=yes
10284 file_list_spec='$wl-f,'
10285 case $with_aix_soname,$aix_use_runtimelinking in
10286 aix,*) ;; # traditional, no import file
10287 svr4,* | *,yes) # use import file
10288 # The Import File defines what to hardcode.
10289 hardcode_direct=no
10290 hardcode_direct_absolute=no
10291 ;;
10292 esac
10293
10294 if test yes = "$GCC"; then
10295 case $host_os in aix4.[012]|aix4.[012].*)
10296 # We only want to do this on AIX 4.2 and lower, the check
10297 # below for broken collect2 doesn't work under 4.3+
10298 collect2name=`$CC -print-prog-name=collect2`
10299 if test -f "$collect2name" &&
10300 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10301 then
10302 # We have reworked collect2
10303 :
10304 else
10305 # We have old collect2
10306 hardcode_direct=unsupported
10307 # It fails to find uninstalled libraries when the uninstalled
10308 # path is not listed in the libpath. Setting hardcode_minus_L
10309 # to unsupported forces relinking
10310 hardcode_minus_L=yes
10311 hardcode_libdir_flag_spec='-L$libdir'
10312 hardcode_libdir_separator=
10313 fi
10314 ;;
10315 esac
10316 shared_flag='-shared'
10317 if test yes = "$aix_use_runtimelinking"; then
10318 shared_flag="$shared_flag "'$wl-G'
10319 fi
10320 # Need to ensure runtime linking is disabled for the traditional
10321 # shared library, or the linker may eventually find shared libraries
10322 # /with/ Import File - we do not want to mix them.
10323 shared_flag_aix='-shared'
10324 shared_flag_svr4='-shared $wl-G'
10325 else
10326 # not using gcc
10327 if test ia64 = "$host_cpu"; then
10328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10329 # chokes on -Wl,-G. The following line is correct:
10330 shared_flag='-G'
10331 else
10332 if test yes = "$aix_use_runtimelinking"; then
10333 shared_flag='$wl-G'
10334 else
10335 shared_flag='$wl-bM:SRE'
10336 fi
10337 shared_flag_aix='$wl-bM:SRE'
10338 shared_flag_svr4='$wl-G'
10339 fi
10340 fi
10341
10342 export_dynamic_flag_spec='$wl-bexpall'
10343 # It seems that -bexpall does not export symbols beginning with
10344 # underscore (_), so it is better to generate a list of symbols to export.
10345 always_export_symbols=yes
10346 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10347 # Warning - without using the other runtime loading flags (-brtl),
10348 # -berok will link without error, but may produce a broken library.
10349 allow_undefined_flag='-berok'
10350 # Determine the default libpath from the value encoded in an
10351 # empty executable.
10352 if test set = "${lt_cv_aix_libpath+set}"; then
10353 aix_libpath=$lt_cv_aix_libpath
10354 else
10355 if ${lt_cv_aix_libpath_+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360
10361 int
10362 main ()
10363 {
10364
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_c_try_link "$LINENO"; then :
10370
10371 lt_aix_libpath_sed='
10372 /Import File Strings/,/^$/ {
10373 /^0/ {
10374 s/^0 *\([^ ]*\) *$/\1/
10375 p
10376 }
10377 }'
10378 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10379 # Check for a 64-bit object if we didn't find anything.
10380 if test -z "$lt_cv_aix_libpath_"; then
10381 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10382 fi
10383 fi
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386 if test -z "$lt_cv_aix_libpath_"; then
10387 lt_cv_aix_libpath_=/usr/lib:/lib
10388 fi
10389
10390 fi
10391
10392 aix_libpath=$lt_cv_aix_libpath_
10393 fi
10394
10395 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10396 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
10397 else
10398 if test ia64 = "$host_cpu"; then
10399 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10400 allow_undefined_flag="-z nodefs"
10401 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"
10402 else
10403 # Determine the default libpath from the value encoded in an
10404 # empty executable.
10405 if test set = "${lt_cv_aix_libpath+set}"; then
10406 aix_libpath=$lt_cv_aix_libpath
10407 else
10408 if ${lt_cv_aix_libpath_+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413
10414 int
10415 main ()
10416 {
10417
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 if ac_fn_c_try_link "$LINENO"; then :
10423
10424 lt_aix_libpath_sed='
10425 /Import File Strings/,/^$/ {
10426 /^0/ {
10427 s/^0 *\([^ ]*\) *$/\1/
10428 p
10429 }
10430 }'
10431 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10432 # Check for a 64-bit object if we didn't find anything.
10433 if test -z "$lt_cv_aix_libpath_"; then
10434 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10435 fi
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 if test -z "$lt_cv_aix_libpath_"; then
10440 lt_cv_aix_libpath_=/usr/lib:/lib
10441 fi
10442
10443 fi
10444
10445 aix_libpath=$lt_cv_aix_libpath_
10446 fi
10447
10448 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10449 # Warning - without using the other run time loading flags,
10450 # -berok will link without error, but may produce a broken library.
10451 no_undefined_flag=' $wl-bernotok'
10452 allow_undefined_flag=' $wl-berok'
10453 if test yes = "$with_gnu_ld"; then
10454 # We only use this code for GNU lds that support --whole-archive.
10455 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10456 else
10457 # Exported symbols can be pulled into shared objects from archives
10458 whole_archive_flag_spec='$convenience'
10459 fi
10460 archive_cmds_need_lc=yes
10461 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10462 # -brtl affects multiple linker settings, -berok does not and is overridden later
10463 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10464 if test svr4 != "$with_aix_soname"; then
10465 # This is similar to how AIX traditionally builds its shared libraries.
10466 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'
10467 fi
10468 if test aix != "$with_aix_soname"; then
10469 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'
10470 else
10471 # used by -dlpreopen to get the symbols
10472 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10473 fi
10474 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10475 fi
10476 fi
10477 ;;
10478
10479 amigaos*)
10480 case $host_cpu in
10481 powerpc)
10482 # see comment about AmigaOS4 .so support
10483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10484 archive_expsym_cmds=''
10485 ;;
10486 m68k)
10487 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)'
10488 hardcode_libdir_flag_spec='-L$libdir'
10489 hardcode_minus_L=yes
10490 ;;
10491 esac
10492 ;;
10493
10494 bsdi[45]*)
10495 export_dynamic_flag_spec=-rdynamic
10496 ;;
10497
10498 cygwin* | mingw* | pw32* | cegcc*)
10499 # When not using gcc, we currently assume that we are using
10500 # Microsoft Visual C++ or Intel C++ Compiler.
10501 # hardcode_libdir_flag_spec is actually meaningless, as there is
10502 # no search path for DLLs.
10503 case $cc_basename in
10504 cl* | icl*)
10505 # Native MSVC or ICC
10506 hardcode_libdir_flag_spec=' '
10507 allow_undefined_flag=unsupported
10508 always_export_symbols=yes
10509 file_list_spec='@'
10510 # Tell ltmain to make .lib files, not .a files.
10511 libext=lib
10512 # Tell ltmain to make .dll files, not .so files.
10513 shrext_cmds=.dll
10514 # FIXME: Setting linknames here is a bad hack.
10515 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10516 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10517 cp "$export_symbols" "$output_objdir/$soname.def";
10518 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10519 else
10520 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10521 fi~
10522 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10523 linknames='
10524 # The linker will not automatically build a static lib if we build a DLL.
10525 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10526 enable_shared_with_static_runtimes=yes
10527 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10528 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10529 # Don't use ranlib
10530 old_postinstall_cmds='chmod 644 $oldlib'
10531 postlink_cmds='lt_outputfile="@OUTPUT@"~
10532 lt_tool_outputfile="@TOOL_OUTPUT@"~
10533 case $lt_outputfile in
10534 *.exe|*.EXE) ;;
10535 *)
10536 lt_outputfile=$lt_outputfile.exe
10537 lt_tool_outputfile=$lt_tool_outputfile.exe
10538 ;;
10539 esac~
10540 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10541 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10542 $RM "$lt_outputfile.manifest";
10543 fi'
10544 ;;
10545 *)
10546 # Assume MSVC and ICC wrapper
10547 hardcode_libdir_flag_spec=' '
10548 allow_undefined_flag=unsupported
10549 # Tell ltmain to make .lib files, not .a files.
10550 libext=lib
10551 # Tell ltmain to make .dll files, not .so files.
10552 shrext_cmds=.dll
10553 # FIXME: Setting linknames here is a bad hack.
10554 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10555 # The linker will automatically build a .lib file if we build a DLL.
10556 old_archive_from_new_cmds='true'
10557 # FIXME: Should let the user specify the lib program.
10558 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10559 enable_shared_with_static_runtimes=yes
10560 ;;
10561 esac
10562 ;;
10563
10564 darwin* | rhapsody*)
10565
10566
10567 archive_cmds_need_lc=no
10568 hardcode_direct=no
10569 hardcode_automatic=yes
10570 hardcode_shlibpath_var=unsupported
10571 if test yes = "$lt_cv_ld_force_load"; then
10572 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\"`'
10573
10574 else
10575 whole_archive_flag_spec=''
10576 fi
10577 link_all_deplibs=yes
10578 allow_undefined_flag=$_lt_dar_allow_undefined
10579 case $cc_basename in
10580 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10581 *) _lt_dar_can_shared=$GCC ;;
10582 esac
10583 if test yes = "$_lt_dar_can_shared"; then
10584 output_verbose_link_cmd=func_echo_all
10585 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10586 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10587 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"
10588 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"
10589
10590 else
10591 ld_shlibs=no
10592 fi
10593
10594 ;;
10595
10596 dgux*)
10597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10598 hardcode_libdir_flag_spec='-L$libdir'
10599 hardcode_shlibpath_var=no
10600 ;;
10601
10602 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10603 # support. Future versions do this automatically, but an explicit c++rt0.o
10604 # does not break anything, and helps significantly (at the cost of a little
10605 # extra space).
10606 freebsd2.2*)
10607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10608 hardcode_libdir_flag_spec='-R$libdir'
10609 hardcode_direct=yes
10610 hardcode_shlibpath_var=no
10611 ;;
10612
10613 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10614 freebsd2.*)
10615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10616 hardcode_direct=yes
10617 hardcode_minus_L=yes
10618 hardcode_shlibpath_var=no
10619 ;;
10620
10621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10622 freebsd* | dragonfly* | midnightbsd*)
10623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10624 hardcode_libdir_flag_spec='-R$libdir'
10625 hardcode_direct=yes
10626 hardcode_shlibpath_var=no
10627 ;;
10628
10629 hpux9*)
10630 if test yes = "$GCC"; then
10631 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'
10632 else
10633 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'
10634 fi
10635 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10636 hardcode_libdir_separator=:
10637 hardcode_direct=yes
10638
10639 # hardcode_minus_L: Not really in the search PATH,
10640 # but as the default location of the library.
10641 hardcode_minus_L=yes
10642 export_dynamic_flag_spec='$wl-E'
10643 ;;
10644
10645 hpux10*)
10646 if test yes,no = "$GCC,$with_gnu_ld"; then
10647 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10648 else
10649 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10650 fi
10651 if test no = "$with_gnu_ld"; then
10652 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10653 hardcode_libdir_separator=:
10654 hardcode_direct=yes
10655 hardcode_direct_absolute=yes
10656 export_dynamic_flag_spec='$wl-E'
10657 # hardcode_minus_L: Not really in the search PATH,
10658 # but as the default location of the library.
10659 hardcode_minus_L=yes
10660 fi
10661 ;;
10662
10663 hpux11*)
10664 if test yes,no = "$GCC,$with_gnu_ld"; then
10665 case $host_cpu in
10666 hppa*64*)
10667 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 ;;
10669 ia64*)
10670 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10671 ;;
10672 *)
10673 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10674 ;;
10675 esac
10676 else
10677 case $host_cpu in
10678 hppa*64*)
10679 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 ;;
10681 ia64*)
10682 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10683 ;;
10684 *)
10685
10686 # Older versions of the 11.00 compiler do not understand -b yet
10687 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10689 $as_echo_n "checking if $CC understands -b... " >&6; }
10690 if ${lt_cv_prog_compiler__b+:} false; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 lt_cv_prog_compiler__b=no
10694 save_LDFLAGS=$LDFLAGS
10695 LDFLAGS="$LDFLAGS -b"
10696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10698 # The linker can only warn and ignore the option if not recognized
10699 # So say no if there are warnings
10700 if test -s conftest.err; then
10701 # Append any errors to the config.log.
10702 cat conftest.err 1>&5
10703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10705 if diff conftest.exp conftest.er2 >/dev/null; then
10706 lt_cv_prog_compiler__b=yes
10707 fi
10708 else
10709 lt_cv_prog_compiler__b=yes
10710 fi
10711 fi
10712 $RM -r conftest*
10713 LDFLAGS=$save_LDFLAGS
10714
10715 fi
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10717 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10718
10719 if test yes = "$lt_cv_prog_compiler__b"; then
10720 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10721 else
10722 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10723 fi
10724
10725 ;;
10726 esac
10727 fi
10728 if test no = "$with_gnu_ld"; then
10729 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10730 hardcode_libdir_separator=:
10731
10732 case $host_cpu in
10733 hppa*64*|ia64*)
10734 hardcode_direct=no
10735 hardcode_shlibpath_var=no
10736 ;;
10737 *)
10738 hardcode_direct=yes
10739 hardcode_direct_absolute=yes
10740 export_dynamic_flag_spec='$wl-E'
10741
10742 # hardcode_minus_L: Not really in the search PATH,
10743 # but as the default location of the library.
10744 hardcode_minus_L=yes
10745 ;;
10746 esac
10747 fi
10748 ;;
10749
10750 irix5* | irix6* | nonstopux*)
10751 if test yes = "$GCC"; then
10752 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'
10753 # Try to use the -exported_symbol ld option, if it does not
10754 # work, assume that -exports_file does not work either and
10755 # implicitly export all symbols.
10756 # This should be the same for all languages, so no per-tag cache variable.
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10758 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10759 if ${lt_cv_irix_exported_symbol+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 save_LDFLAGS=$LDFLAGS
10763 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 int foo (void) { return 0; }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 lt_cv_irix_exported_symbol=yes
10770 else
10771 lt_cv_irix_exported_symbol=no
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LDFLAGS=$save_LDFLAGS
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10778 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10779 if test yes = "$lt_cv_irix_exported_symbol"; then
10780 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'
10781 fi
10782 else
10783 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'
10784 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'
10785 fi
10786 archive_cmds_need_lc='no'
10787 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10788 hardcode_libdir_separator=:
10789 inherit_rpath=yes
10790 link_all_deplibs=yes
10791 ;;
10792
10793 linux*)
10794 case $cc_basename in
10795 tcc*)
10796 # Fabrice Bellard et al's Tiny C Compiler
10797 ld_shlibs=yes
10798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10799 ;;
10800 esac
10801 ;;
10802
10803 netbsd*)
10804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10806 else
10807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10808 fi
10809 hardcode_libdir_flag_spec='-R$libdir'
10810 hardcode_direct=yes
10811 hardcode_shlibpath_var=no
10812 ;;
10813
10814 newsos6)
10815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10816 hardcode_direct=yes
10817 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10818 hardcode_libdir_separator=:
10819 hardcode_shlibpath_var=no
10820 ;;
10821
10822 *nto* | *qnx*)
10823 ;;
10824
10825 openbsd* | bitrig*)
10826 if test -f /usr/libexec/ld.so; then
10827 hardcode_direct=yes
10828 hardcode_shlibpath_var=no
10829 hardcode_direct_absolute=yes
10830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10832 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10833 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10834 export_dynamic_flag_spec='$wl-E'
10835 else
10836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10837 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10838 fi
10839 else
10840 ld_shlibs=no
10841 fi
10842 ;;
10843
10844 os2*)
10845 hardcode_libdir_flag_spec='-L$libdir'
10846 hardcode_minus_L=yes
10847 allow_undefined_flag=unsupported
10848 shrext_cmds=.dll
10849 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10850 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10851 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10852 $ECHO EXPORTS >> $output_objdir/$libname.def~
10853 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10854 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10855 emximp -o $lib $output_objdir/$libname.def'
10856 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10857 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10858 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10859 $ECHO EXPORTS >> $output_objdir/$libname.def~
10860 prefix_cmds="$SED"~
10861 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10862 prefix_cmds="$prefix_cmds -e 1d";
10863 fi~
10864 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10865 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10866 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10867 emximp -o $lib $output_objdir/$libname.def'
10868 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10869 enable_shared_with_static_runtimes=yes
10870 file_list_spec='@'
10871 ;;
10872
10873 osf3*)
10874 if test yes = "$GCC"; then
10875 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10876 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'
10877 else
10878 allow_undefined_flag=' -expect_unresolved \*'
10879 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'
10880 fi
10881 archive_cmds_need_lc='no'
10882 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10883 hardcode_libdir_separator=:
10884 ;;
10885
10886 osf4* | osf5*) # as osf3* with the addition of -msym flag
10887 if test yes = "$GCC"; then
10888 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10889 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'
10890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10891 else
10892 allow_undefined_flag=' -expect_unresolved \*'
10893 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'
10894 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~
10895 $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'
10896
10897 # Both c and cxx compiler support -rpath directly
10898 hardcode_libdir_flag_spec='-rpath $libdir'
10899 fi
10900 archive_cmds_need_lc='no'
10901 hardcode_libdir_separator=:
10902 ;;
10903
10904 solaris*)
10905 no_undefined_flag=' -z defs'
10906 if test yes = "$GCC"; then
10907 wlarc='$wl'
10908 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910 $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'
10911 else
10912 case `$CC -V 2>&1` in
10913 *"Compilers 5.0"*)
10914 wlarc=''
10915 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10918 ;;
10919 *)
10920 wlarc='$wl'
10921 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10924 ;;
10925 esac
10926 fi
10927 hardcode_libdir_flag_spec='-R$libdir'
10928 hardcode_shlibpath_var=no
10929 case $host_os in
10930 solaris2.[0-5] | solaris2.[0-5].*) ;;
10931 *)
10932 # The compiler driver will combine and reorder linker options,
10933 # but understands '-z linker_flag'. GCC discards it without '$wl',
10934 # but is careful enough not to reorder.
10935 # Supported since Solaris 2.6 (maybe 2.5.1?)
10936 if test yes = "$GCC"; then
10937 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10938 else
10939 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10940 fi
10941 ;;
10942 esac
10943 link_all_deplibs=yes
10944 ;;
10945
10946 sunos4*)
10947 if test sequent = "$host_vendor"; then
10948 # Use $CC to link under sequent, because it throws in some extra .o
10949 # files that make .init and .fini sections work.
10950 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10951 else
10952 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10953 fi
10954 hardcode_libdir_flag_spec='-L$libdir'
10955 hardcode_direct=yes
10956 hardcode_minus_L=yes
10957 hardcode_shlibpath_var=no
10958 ;;
10959
10960 sysv4)
10961 case $host_vendor in
10962 sni)
10963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964 hardcode_direct=yes # is this really true???
10965 ;;
10966 siemens)
10967 ## LD is ld it makes a PLAMLIB
10968 ## CC just makes a GrossModule.
10969 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10970 reload_cmds='$CC -r -o $output$reload_objs'
10971 hardcode_direct=no
10972 ;;
10973 motorola)
10974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10976 ;;
10977 esac
10978 runpath_var='LD_RUN_PATH'
10979 hardcode_shlibpath_var=no
10980 ;;
10981
10982 sysv4.3*)
10983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984 hardcode_shlibpath_var=no
10985 export_dynamic_flag_spec='-Bexport'
10986 ;;
10987
10988 sysv4*MP*)
10989 if test -d /usr/nec; then
10990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991 hardcode_shlibpath_var=no
10992 runpath_var=LD_RUN_PATH
10993 hardcode_runpath_var=yes
10994 ld_shlibs=yes
10995 fi
10996 ;;
10997
10998 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10999 no_undefined_flag='$wl-z,text'
11000 archive_cmds_need_lc=no
11001 hardcode_shlibpath_var=no
11002 runpath_var='LD_RUN_PATH'
11003
11004 if test yes = "$GCC"; then
11005 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 else
11008 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 fi
11011 ;;
11012
11013 sysv5* | sco3.2v5* | sco5v6*)
11014 # Note: We CANNOT use -z defs as we might desire, because we do not
11015 # link with -lc, and that would cause any symbols used from libc to
11016 # always be unresolved, which means just about no library would
11017 # ever link correctly. If we're not using GNU ld we use -z text
11018 # though, which does catch some bad symbols but isn't as heavy-handed
11019 # as -z defs.
11020 no_undefined_flag='$wl-z,text'
11021 allow_undefined_flag='$wl-z,nodefs'
11022 archive_cmds_need_lc=no
11023 hardcode_shlibpath_var=no
11024 hardcode_libdir_flag_spec='$wl-R,$libdir'
11025 hardcode_libdir_separator=':'
11026 link_all_deplibs=yes
11027 export_dynamic_flag_spec='$wl-Bexport'
11028 runpath_var='LD_RUN_PATH'
11029
11030 if test yes = "$GCC"; then
11031 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 else
11034 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036 fi
11037 ;;
11038
11039 uts4*)
11040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041 hardcode_libdir_flag_spec='-L$libdir'
11042 hardcode_shlibpath_var=no
11043 ;;
11044
11045 *)
11046 ld_shlibs=no
11047 ;;
11048 esac
11049
11050 if test sni = "$host_vendor"; then
11051 case $host in
11052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11053 export_dynamic_flag_spec='$wl-Blargedynsym'
11054 ;;
11055 esac
11056 fi
11057 fi
11058
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11060 $as_echo "$ld_shlibs" >&6; }
11061 test no = "$ld_shlibs" && can_build_shared=no
11062
11063 with_gnu_ld=$with_gnu_ld
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079 #
11080 # Do we need to explicitly link libc?
11081 #
11082 case "x$archive_cmds_need_lc" in
11083 x|xyes)
11084 # Assume -lc should be added
11085 archive_cmds_need_lc=yes
11086
11087 if test yes,yes = "$GCC,$enable_shared"; then
11088 case $archive_cmds in
11089 *'~'*)
11090 # FIXME: we may have to deal with multi-command sequences.
11091 ;;
11092 '$CC '*)
11093 # Test whether the compiler implicitly links with -lc since on some
11094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11095 # to ld, don't add -lc before -lgcc.
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11097 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11098 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 $RM conftest*
11102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11103
11104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11105 (eval $ac_compile) 2>&5
11106 ac_status=$?
11107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11108 test $ac_status = 0; } 2>conftest.err; then
11109 soname=conftest
11110 lib=conftest
11111 libobjs=conftest.$ac_objext
11112 deplibs=
11113 wl=$lt_prog_compiler_wl
11114 pic_flag=$lt_prog_compiler_pic
11115 compiler_flags=-v
11116 linker_flags=-v
11117 verstring=
11118 output_objdir=.
11119 libname=conftest
11120 lt_save_allow_undefined_flag=$allow_undefined_flag
11121 allow_undefined_flag=
11122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11123 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11124 ac_status=$?
11125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11126 test $ac_status = 0; }
11127 then
11128 lt_cv_archive_cmds_need_lc=no
11129 else
11130 lt_cv_archive_cmds_need_lc=yes
11131 fi
11132 allow_undefined_flag=$lt_save_allow_undefined_flag
11133 else
11134 cat conftest.err 1>&5
11135 fi
11136 $RM conftest*
11137
11138 fi
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11140 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11141 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11142 ;;
11143 esac
11144 fi
11145 ;;
11146 esac
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11300 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11301
11302 if test yes = "$GCC"; then
11303 case $host_os in
11304 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11305 *) lt_awk_arg='/^libraries:/' ;;
11306 esac
11307 case $host_os in
11308 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11309 *) lt_sed_strip_eq='s|=/|/|g' ;;
11310 esac
11311 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11312 case $lt_search_path_spec in
11313 *\;*)
11314 # if the path contains ";" then we assume it to be the separator
11315 # otherwise default to the standard path separator (i.e. ":") - it is
11316 # assumed that no part of a normal pathname contains ";" but that should
11317 # okay in the real world where ";" in dirpaths is itself problematic.
11318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11319 ;;
11320 *)
11321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11322 ;;
11323 esac
11324 # Ok, now we have the path, separated by spaces, we can step through it
11325 # and add multilib dir if necessary...
11326 lt_tmp_lt_search_path_spec=
11327 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11328 # ...but if some path component already ends with the multilib dir we assume
11329 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11330 case "$lt_multi_os_dir; $lt_search_path_spec " in
11331 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11332 lt_multi_os_dir=
11333 ;;
11334 esac
11335 for lt_sys_path in $lt_search_path_spec; do
11336 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11337 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11338 elif test -n "$lt_multi_os_dir"; then
11339 test -d "$lt_sys_path" && \
11340 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11341 fi
11342 done
11343 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11344 BEGIN {RS = " "; FS = "/|\n";} {
11345 lt_foo = "";
11346 lt_count = 0;
11347 for (lt_i = NF; lt_i > 0; lt_i--) {
11348 if ($lt_i != "" && $lt_i != ".") {
11349 if ($lt_i == "..") {
11350 lt_count++;
11351 } else {
11352 if (lt_count == 0) {
11353 lt_foo = "/" $lt_i lt_foo;
11354 } else {
11355 lt_count--;
11356 }
11357 }
11358 }
11359 }
11360 if (lt_foo != "") { lt_freq[lt_foo]++; }
11361 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11362 }'`
11363 # AWK program above erroneously prepends '/' to C:/dos/paths
11364 # for these hosts.
11365 case $host_os in
11366 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11367 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11368 esac
11369 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11370 else
11371 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11372 fi
11373 library_names_spec=
11374 libname_spec='lib$name'
11375 soname_spec=
11376 shrext_cmds=.so
11377 postinstall_cmds=
11378 postuninstall_cmds=
11379 finish_cmds=
11380 finish_eval=
11381 shlibpath_var=
11382 shlibpath_overrides_runpath=unknown
11383 version_type=none
11384 dynamic_linker="$host_os ld.so"
11385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11386 need_lib_prefix=unknown
11387 hardcode_into_libs=no
11388
11389 # when you set need_version to no, make sure it does not cause -set_version
11390 # flags to be left without arguments
11391 need_version=unknown
11392
11393
11394
11395 case $host_os in
11396 aix3*)
11397 version_type=linux # correct to gnu/linux during the next big refactor
11398 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11399 shlibpath_var=LIBPATH
11400
11401 # AIX 3 has no versioning support, so we append a major version to the name.
11402 soname_spec='$libname$release$shared_ext$major'
11403 ;;
11404
11405 aix[4-9]*)
11406 version_type=linux # correct to gnu/linux during the next big refactor
11407 need_lib_prefix=no
11408 need_version=no
11409 hardcode_into_libs=yes
11410 if test ia64 = "$host_cpu"; then
11411 # AIX 5 supports IA64
11412 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11413 shlibpath_var=LD_LIBRARY_PATH
11414 else
11415 # With GCC up to 2.95.x, collect2 would create an import file
11416 # for dependence libraries. The import file would start with
11417 # the line '#! .'. This would cause the generated library to
11418 # depend on '.', always an invalid library. This was fixed in
11419 # development snapshots of GCC prior to 3.0.
11420 case $host_os in
11421 aix4 | aix4.[01] | aix4.[01].*)
11422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11423 echo ' yes '
11424 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11425 :
11426 else
11427 can_build_shared=no
11428 fi
11429 ;;
11430 esac
11431 # Using Import Files as archive members, it is possible to support
11432 # filename-based versioning of shared library archives on AIX. While
11433 # this would work for both with and without runtime linking, it will
11434 # prevent static linking of such archives. So we do filename-based
11435 # shared library versioning with .so extension only, which is used
11436 # when both runtime linking and shared linking is enabled.
11437 # Unfortunately, runtime linking may impact performance, so we do
11438 # not want this to be the default eventually. Also, we use the
11439 # versioned .so libs for executables only if there is the -brtl
11440 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11441 # To allow for filename-based versioning support, we need to create
11442 # libNAME.so.V as an archive file, containing:
11443 # *) an Import File, referring to the versioned filename of the
11444 # archive as well as the shared archive member, telling the
11445 # bitwidth (32 or 64) of that shared object, and providing the
11446 # list of exported symbols of that shared object, eventually
11447 # decorated with the 'weak' keyword
11448 # *) the shared object with the F_LOADONLY flag set, to really avoid
11449 # it being seen by the linker.
11450 # At run time we better use the real file rather than another symlink,
11451 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11452
11453 case $with_aix_soname,$aix_use_runtimelinking in
11454 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11455 # soname into executable. Probably we can add versioning support to
11456 # collect2, so additional links can be useful in future.
11457 aix,yes) # traditional libtool
11458 dynamic_linker='AIX unversionable lib.so'
11459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11460 # instead of lib<name>.a to let people know that these are not
11461 # typical AIX shared libraries.
11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463 ;;
11464 aix,no) # traditional AIX only
11465 dynamic_linker='AIX lib.a(lib.so.V)'
11466 # We preserve .a as extension for shared libraries through AIX4.2
11467 # and later when we are not doing run time linking.
11468 library_names_spec='$libname$release.a $libname.a'
11469 soname_spec='$libname$release$shared_ext$major'
11470 ;;
11471 svr4,*) # full svr4 only
11472 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11473 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11474 # We do not specify a path in Import Files, so LIBPATH fires.
11475 shlibpath_overrides_runpath=yes
11476 ;;
11477 *,yes) # both, prefer svr4
11478 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11479 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11480 # unpreferred sharedlib libNAME.a needs extra handling
11481 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"'
11482 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"'
11483 # We do not specify a path in Import Files, so LIBPATH fires.
11484 shlibpath_overrides_runpath=yes
11485 ;;
11486 *,no) # both, prefer aix
11487 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11488 library_names_spec='$libname$release.a $libname.a'
11489 soname_spec='$libname$release$shared_ext$major'
11490 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11491 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)'
11492 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"'
11493 ;;
11494 esac
11495 shlibpath_var=LIBPATH
11496 fi
11497 ;;
11498
11499 amigaos*)
11500 case $host_cpu in
11501 powerpc)
11502 # Since July 2007 AmigaOS4 officially supports .so libraries.
11503 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11505 ;;
11506 m68k)
11507 library_names_spec='$libname.ixlibrary $libname.a'
11508 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11509 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'
11510 ;;
11511 esac
11512 ;;
11513
11514 beos*)
11515 library_names_spec='$libname$shared_ext'
11516 dynamic_linker="$host_os ld.so"
11517 shlibpath_var=LIBRARY_PATH
11518 ;;
11519
11520 bsdi[45]*)
11521 version_type=linux # correct to gnu/linux during the next big refactor
11522 need_version=no
11523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11524 soname_spec='$libname$release$shared_ext$major'
11525 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11528 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11529 # the default ld.so.conf also contains /usr/contrib/lib and
11530 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11531 # libtool to hard-code these into programs
11532 ;;
11533
11534 cygwin* | mingw* | pw32* | cegcc*)
11535 version_type=windows
11536 shrext_cmds=.dll
11537 need_version=no
11538 need_lib_prefix=no
11539
11540 case $GCC,$cc_basename in
11541 yes,*)
11542 # gcc
11543 library_names_spec='$libname.dll.a'
11544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11545 postinstall_cmds='base_file=`basename \$file`~
11546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11547 dldir=$destdir/`dirname \$dlpath`~
11548 test -d \$dldir || mkdir -p \$dldir~
11549 $install_prog $dir/$dlname \$dldir/$dlname~
11550 chmod a+x \$dldir/$dlname~
11551 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11552 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11553 fi'
11554 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11555 dlpath=$dir/\$dldll~
11556 $RM \$dlpath'
11557 shlibpath_overrides_runpath=yes
11558
11559 case $host_os in
11560 cygwin*)
11561 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11562 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11563
11564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11565 ;;
11566 mingw* | cegcc*)
11567 # MinGW DLLs use traditional 'lib' prefix
11568 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11569 ;;
11570 pw32*)
11571 # pw32 DLLs use 'pw' prefix rather than 'lib'
11572 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11573 ;;
11574 esac
11575 dynamic_linker='Win32 ld.exe'
11576 ;;
11577
11578 *,cl* | *,icl*)
11579 # Native MSVC or ICC
11580 libname_spec='$name'
11581 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11582 library_names_spec='$libname.dll.lib'
11583
11584 case $build_os in
11585 mingw*)
11586 sys_lib_search_path_spec=
11587 lt_save_ifs=$IFS
11588 IFS=';'
11589 for lt_path in $LIB
11590 do
11591 IFS=$lt_save_ifs
11592 # Let DOS variable expansion print the short 8.3 style file name.
11593 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11594 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11595 done
11596 IFS=$lt_save_ifs
11597 # Convert to MSYS style.
11598 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11599 ;;
11600 cygwin*)
11601 # Convert to unix form, then to dos form, then back to unix form
11602 # but this time dos style (no spaces!) so that the unix form looks
11603 # like /cygdrive/c/PROGRA~1:/cygdr...
11604 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11605 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11606 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11607 ;;
11608 *)
11609 sys_lib_search_path_spec=$LIB
11610 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11611 # It is most probably a Windows format PATH.
11612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11613 else
11614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11615 fi
11616 # FIXME: find the short name or the path components, as spaces are
11617 # common. (e.g. "Program Files" -> "PROGRA~1")
11618 ;;
11619 esac
11620
11621 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11622 postinstall_cmds='base_file=`basename \$file`~
11623 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11624 dldir=$destdir/`dirname \$dlpath`~
11625 test -d \$dldir || mkdir -p \$dldir~
11626 $install_prog $dir/$dlname \$dldir/$dlname'
11627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11628 dlpath=$dir/\$dldll~
11629 $RM \$dlpath'
11630 shlibpath_overrides_runpath=yes
11631 dynamic_linker='Win32 link.exe'
11632 ;;
11633
11634 *)
11635 # Assume MSVC and ICC wrapper
11636 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11637 dynamic_linker='Win32 ld.exe'
11638 ;;
11639 esac
11640 # FIXME: first we should search . and the directory the executable is in
11641 shlibpath_var=PATH
11642 ;;
11643
11644 darwin* | rhapsody*)
11645 dynamic_linker="$host_os dyld"
11646 version_type=darwin
11647 need_lib_prefix=no
11648 need_version=no
11649 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11650 soname_spec='$libname$release$major$shared_ext'
11651 shlibpath_overrides_runpath=yes
11652 shlibpath_var=DYLD_LIBRARY_PATH
11653 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11654
11655 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11656 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11657 ;;
11658
11659 dgux*)
11660 version_type=linux # correct to gnu/linux during the next big refactor
11661 need_lib_prefix=no
11662 need_version=no
11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11664 soname_spec='$libname$release$shared_ext$major'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 ;;
11667
11668 freebsd* | dragonfly* | midnightbsd*)
11669 # DragonFly does not have aout. When/if they implement a new
11670 # versioning mechanism, adjust this.
11671 if test -x /usr/bin/objformat; then
11672 objformat=`/usr/bin/objformat`
11673 else
11674 case $host_os in
11675 freebsd[23].*) objformat=aout ;;
11676 *) objformat=elf ;;
11677 esac
11678 fi
11679 version_type=freebsd-$objformat
11680 case $version_type in
11681 freebsd-elf*)
11682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11683 soname_spec='$libname$release$shared_ext$major'
11684 need_version=no
11685 need_lib_prefix=no
11686 ;;
11687 freebsd-*)
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11689 need_version=yes
11690 ;;
11691 esac
11692 shlibpath_var=LD_LIBRARY_PATH
11693 case $host_os in
11694 freebsd2.*)
11695 shlibpath_overrides_runpath=yes
11696 ;;
11697 freebsd3.[01]* | freebsdelf3.[01]*)
11698 shlibpath_overrides_runpath=yes
11699 hardcode_into_libs=yes
11700 ;;
11701 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11702 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11703 shlibpath_overrides_runpath=no
11704 hardcode_into_libs=yes
11705 ;;
11706 *) # from 4.6 on, and DragonFly
11707 shlibpath_overrides_runpath=yes
11708 hardcode_into_libs=yes
11709 ;;
11710 esac
11711 ;;
11712
11713 haiku*)
11714 version_type=linux # correct to gnu/linux during the next big refactor
11715 need_lib_prefix=no
11716 need_version=no
11717 dynamic_linker="$host_os runtime_loader"
11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11719 soname_spec='$libname$release$shared_ext$major'
11720 shlibpath_var=LIBRARY_PATH
11721 shlibpath_overrides_runpath=no
11722 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11723 hardcode_into_libs=yes
11724 ;;
11725
11726 hpux9* | hpux10* | hpux11*)
11727 # Give a soname corresponding to the major version so that dld.sl refuses to
11728 # link against other versions.
11729 version_type=sunos
11730 need_lib_prefix=no
11731 need_version=no
11732 case $host_cpu in
11733 ia64*)
11734 shrext_cmds='.so'
11735 hardcode_into_libs=yes
11736 dynamic_linker="$host_os dld.so"
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11740 soname_spec='$libname$release$shared_ext$major'
11741 if test 32 = "$HPUX_IA64_MODE"; then
11742 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11743 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11744 else
11745 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11746 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11747 fi
11748 ;;
11749 hppa*64*)
11750 shrext_cmds='.sl'
11751 hardcode_into_libs=yes
11752 dynamic_linker="$host_os dld.sl"
11753 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756 soname_spec='$libname$release$shared_ext$major'
11757 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11759 ;;
11760 *)
11761 shrext_cmds='.sl'
11762 dynamic_linker="$host_os dld.sl"
11763 shlibpath_var=SHLIB_PATH
11764 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11766 soname_spec='$libname$release$shared_ext$major'
11767 ;;
11768 esac
11769 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11770 postinstall_cmds='chmod 555 $lib'
11771 # or fails outright, so override atomically:
11772 install_override_mode=555
11773 ;;
11774
11775 interix[3-9]*)
11776 version_type=linux # correct to gnu/linux during the next big refactor
11777 need_lib_prefix=no
11778 need_version=no
11779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11780 soname_spec='$libname$release$shared_ext$major'
11781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=no
11784 hardcode_into_libs=yes
11785 ;;
11786
11787 irix5* | irix6* | nonstopux*)
11788 case $host_os in
11789 nonstopux*) version_type=nonstopux ;;
11790 *)
11791 if test yes = "$lt_cv_prog_gnu_ld"; then
11792 version_type=linux # correct to gnu/linux during the next big refactor
11793 else
11794 version_type=irix
11795 fi ;;
11796 esac
11797 need_lib_prefix=no
11798 need_version=no
11799 soname_spec='$libname$release$shared_ext$major'
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11801 case $host_os in
11802 irix5* | nonstopux*)
11803 libsuff= shlibsuff=
11804 ;;
11805 *)
11806 case $LD in # libtool.m4 will add one of these switches to LD
11807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11808 libsuff= shlibsuff= libmagic=32-bit;;
11809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11810 libsuff=32 shlibsuff=N32 libmagic=N32;;
11811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11813 *) libsuff= shlibsuff= libmagic=never-match;;
11814 esac
11815 ;;
11816 esac
11817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11818 shlibpath_overrides_runpath=no
11819 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11820 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11821 hardcode_into_libs=yes
11822 ;;
11823
11824 # No shared lib support for Linux oldld, aout, or coff.
11825 linux*oldld* | linux*aout* | linux*coff*)
11826 dynamic_linker=no
11827 ;;
11828
11829 linux*android*)
11830 version_type=none # Android doesn't support versioned libraries.
11831 need_lib_prefix=no
11832 need_version=no
11833 library_names_spec='$libname$release$shared_ext'
11834 soname_spec='$libname$release$shared_ext'
11835 finish_cmds=
11836 shlibpath_var=LD_LIBRARY_PATH
11837 shlibpath_overrides_runpath=yes
11838
11839 # This implies no fast_install, which is unacceptable.
11840 # Some rework will be needed to allow for fast_install
11841 # before this can be enabled.
11842 hardcode_into_libs=yes
11843
11844 dynamic_linker='Android linker'
11845 # Don't embed -rpath directories since the linker doesn't support them.
11846 hardcode_libdir_flag_spec='-L$libdir'
11847 ;;
11848
11849 # This must be glibc/ELF.
11850 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11851 version_type=linux # correct to gnu/linux during the next big refactor
11852 need_lib_prefix=no
11853 need_version=no
11854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11855 soname_spec='$libname$release$shared_ext$major'
11856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11857 shlibpath_var=LD_LIBRARY_PATH
11858 shlibpath_overrides_runpath=no
11859
11860 # Some binutils ld are patched to set DT_RUNPATH
11861 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 lt_cv_shlibpath_overrides_runpath=no
11865 save_LDFLAGS=$LDFLAGS
11866 save_libdir=$libdir
11867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871
11872 int
11873 main ()
11874 {
11875
11876 ;
11877 return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_c_try_link "$LINENO"; then :
11881 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11882 lt_cv_shlibpath_overrides_runpath=yes
11883 fi
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887 LDFLAGS=$save_LDFLAGS
11888 libdir=$save_libdir
11889
11890 fi
11891
11892 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11893
11894 # This implies no fast_install, which is unacceptable.
11895 # Some rework will be needed to allow for fast_install
11896 # before this can be enabled.
11897 hardcode_into_libs=yes
11898
11899 # Ideally, we could use ldconfig to report *all* directores which are
11900 # searched for libraries, however this is still not possible. Aside from not
11901 # being certain /sbin/ldconfig is available, command
11902 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11903 # even though it is searched at run-time. Try to do the best guess by
11904 # appending ld.so.conf contents (and includes) to the search path.
11905 if test -f /etc/ld.so.conf; then
11906 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' ' '`
11907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11908 fi
11909
11910 # We used to test for /lib/ld.so.1 and disable shared libraries on
11911 # powerpc, because MkLinux only supported shared libraries with the
11912 # GNU dynamic linker. Since this was broken with cross compilers,
11913 # most powerpc-linux boxes support dynamic linking these days and
11914 # people can always --disable-shared, the test was removed, and we
11915 # assume the GNU/Linux dynamic linker is in use.
11916 dynamic_linker='GNU/Linux ld.so'
11917 ;;
11918
11919 netbsd*)
11920 version_type=sunos
11921 need_lib_prefix=no
11922 need_version=no
11923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11926 dynamic_linker='NetBSD (a.out) ld.so'
11927 else
11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11929 soname_spec='$libname$release$shared_ext$major'
11930 dynamic_linker='NetBSD ld.elf_so'
11931 fi
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=yes
11934 hardcode_into_libs=yes
11935 ;;
11936
11937 newsos6)
11938 version_type=linux # correct to gnu/linux during the next big refactor
11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=yes
11942 ;;
11943
11944 *nto* | *qnx*)
11945 version_type=qnx
11946 need_lib_prefix=no
11947 need_version=no
11948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11949 soname_spec='$libname$release$shared_ext$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=no
11952 hardcode_into_libs=yes
11953 dynamic_linker='ldqnx.so'
11954 ;;
11955
11956 openbsd* | bitrig*)
11957 version_type=sunos
11958 sys_lib_dlsearch_path_spec=/usr/lib
11959 need_lib_prefix=no
11960 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11961 need_version=no
11962 else
11963 need_version=yes
11964 fi
11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11967 shlibpath_var=LD_LIBRARY_PATH
11968 shlibpath_overrides_runpath=yes
11969 ;;
11970
11971 os2*)
11972 libname_spec='$name'
11973 version_type=windows
11974 shrext_cmds=.dll
11975 need_version=no
11976 need_lib_prefix=no
11977 # OS/2 can only load a DLL with a base name of 8 characters or less.
11978 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11979 v=$($ECHO $release$versuffix | tr -d .-);
11980 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11981 $ECHO $n$v`$shared_ext'
11982 library_names_spec='${libname}_dll.$libext'
11983 dynamic_linker='OS/2 ld.exe'
11984 shlibpath_var=BEGINLIBPATH
11985 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11987 postinstall_cmds='base_file=`basename \$file`~
11988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11989 dldir=$destdir/`dirname \$dlpath`~
11990 test -d \$dldir || mkdir -p \$dldir~
11991 $install_prog $dir/$dlname \$dldir/$dlname~
11992 chmod a+x \$dldir/$dlname~
11993 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11994 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11995 fi'
11996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11997 dlpath=$dir/\$dldll~
11998 $RM \$dlpath'
11999 ;;
12000
12001 osf3* | osf4* | osf5*)
12002 version_type=osf
12003 need_lib_prefix=no
12004 need_version=no
12005 soname_spec='$libname$release$shared_ext$major'
12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12010 ;;
12011
12012 rdos*)
12013 dynamic_linker=no
12014 ;;
12015
12016 solaris*)
12017 version_type=linux # correct to gnu/linux during the next big refactor
12018 need_lib_prefix=no
12019 need_version=no
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=yes
12024 hardcode_into_libs=yes
12025 # ldd complains unless libraries are executable
12026 postinstall_cmds='chmod +x $lib'
12027 ;;
12028
12029 sunos4*)
12030 version_type=sunos
12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 shlibpath_overrides_runpath=yes
12035 if test yes = "$with_gnu_ld"; then
12036 need_lib_prefix=no
12037 fi
12038 need_version=yes
12039 ;;
12040
12041 sysv4 | sysv4.3*)
12042 version_type=linux # correct to gnu/linux during the next big refactor
12043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12044 soname_spec='$libname$release$shared_ext$major'
12045 shlibpath_var=LD_LIBRARY_PATH
12046 case $host_vendor in
12047 sni)
12048 shlibpath_overrides_runpath=no
12049 need_lib_prefix=no
12050 runpath_var=LD_RUN_PATH
12051 ;;
12052 siemens)
12053 need_lib_prefix=no
12054 ;;
12055 motorola)
12056 need_lib_prefix=no
12057 need_version=no
12058 shlibpath_overrides_runpath=no
12059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12060 ;;
12061 esac
12062 ;;
12063
12064 sysv4*MP*)
12065 if test -d /usr/nec; then
12066 version_type=linux # correct to gnu/linux during the next big refactor
12067 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12068 soname_spec='$libname$shared_ext.$major'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 fi
12071 ;;
12072
12073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12074 version_type=sco
12075 need_lib_prefix=no
12076 need_version=no
12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12078 soname_spec='$libname$release$shared_ext$major'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=yes
12081 hardcode_into_libs=yes
12082 if test yes = "$with_gnu_ld"; then
12083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12084 else
12085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12086 case $host_os in
12087 sco3.2v5*)
12088 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12089 ;;
12090 esac
12091 fi
12092 sys_lib_dlsearch_path_spec='/usr/lib'
12093 ;;
12094
12095 tpf*)
12096 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12097 version_type=linux # correct to gnu/linux during the next big refactor
12098 need_lib_prefix=no
12099 need_version=no
12100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12101 shlibpath_var=LD_LIBRARY_PATH
12102 shlibpath_overrides_runpath=no
12103 hardcode_into_libs=yes
12104 ;;
12105
12106 uts4*)
12107 version_type=linux # correct to gnu/linux during the next big refactor
12108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12109 soname_spec='$libname$release$shared_ext$major'
12110 shlibpath_var=LD_LIBRARY_PATH
12111 ;;
12112
12113 *)
12114 dynamic_linker=no
12115 ;;
12116 esac
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12118 $as_echo "$dynamic_linker" >&6; }
12119 test no = "$dynamic_linker" && can_build_shared=no
12120
12121 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12122 if test yes = "$GCC"; then
12123 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12124 fi
12125
12126 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12127 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12128 fi
12129
12130 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12131 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12132 fi
12133
12134 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12135 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12136
12137 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12138 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12139
12140 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12141 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12240 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12241 hardcode_action=
12242 if test -n "$hardcode_libdir_flag_spec" ||
12243 test -n "$runpath_var" ||
12244 test yes = "$hardcode_automatic"; then
12245
12246 # We can hardcode non-existent directories.
12247 if test no != "$hardcode_direct" &&
12248 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12249 # have to relink, otherwise we might link with an installed library
12250 # when we should be linking with a yet-to-be-installed one
12251 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12252 test no != "$hardcode_minus_L"; then
12253 # Linking always hardcodes the temporary library directory.
12254 hardcode_action=relink
12255 else
12256 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12257 hardcode_action=immediate
12258 fi
12259 else
12260 # We cannot hardcode anything, or else we can only hardcode existing
12261 # directories.
12262 hardcode_action=unsupported
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12265 $as_echo "$hardcode_action" >&6; }
12266
12267 if test relink = "$hardcode_action" ||
12268 test yes = "$inherit_rpath"; then
12269 # Fast installation is not supported
12270 enable_fast_install=no
12271 elif test yes = "$shlibpath_overrides_runpath" ||
12272 test no = "$enable_shared"; then
12273 # Fast installation is not necessary
12274 enable_fast_install=needless
12275 fi
12276
12277
12278
12279
12280
12281
12282 if test yes != "$enable_dlopen"; then
12283 enable_dlopen=unknown
12284 enable_dlopen_self=unknown
12285 enable_dlopen_self_static=unknown
12286 else
12287 lt_cv_dlopen=no
12288 lt_cv_dlopen_libs=
12289
12290 case $host_os in
12291 beos*)
12292 lt_cv_dlopen=load_add_on
12293 lt_cv_dlopen_libs=
12294 lt_cv_dlopen_self=yes
12295 ;;
12296
12297 mingw* | pw32* | cegcc*)
12298 lt_cv_dlopen=LoadLibrary
12299 lt_cv_dlopen_libs=
12300 ;;
12301
12302 cygwin*)
12303 lt_cv_dlopen=dlopen
12304 lt_cv_dlopen_libs=
12305 ;;
12306
12307 darwin*)
12308 # if libdl is installed we need to link against it
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12310 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12311 if ${ac_cv_lib_dl_dlopen+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 ac_check_lib_save_LIBS=$LIBS
12315 LIBS="-ldl $LIBS"
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318
12319 /* Override any GCC internal prototype to avoid an error.
12320 Use char because int might match the return type of a GCC
12321 builtin and then its argument prototype would still apply. */
12322 #ifdef __cplusplus
12323 extern "C"
12324 #endif
12325 char dlopen ();
12326 int
12327 main ()
12328 {
12329 return dlopen ();
12330 ;
12331 return 0;
12332 }
12333 _ACEOF
12334 if ac_fn_c_try_link "$LINENO"; then :
12335 ac_cv_lib_dl_dlopen=yes
12336 else
12337 ac_cv_lib_dl_dlopen=no
12338 fi
12339 rm -f core conftest.err conftest.$ac_objext \
12340 conftest$ac_exeext conftest.$ac_ext
12341 LIBS=$ac_check_lib_save_LIBS
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12344 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12345 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12346 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12347 else
12348
12349 lt_cv_dlopen=dyld
12350 lt_cv_dlopen_libs=
12351 lt_cv_dlopen_self=yes
12352
12353 fi
12354
12355 ;;
12356
12357 tpf*)
12358 # Don't try to run any link tests for TPF. We know it's impossible
12359 # because TPF is a cross-compiler, and we know how we open DSOs.
12360 lt_cv_dlopen=dlopen
12361 lt_cv_dlopen_libs=
12362 lt_cv_dlopen_self=no
12363 ;;
12364
12365 *)
12366 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12367 if test "x$ac_cv_func_shl_load" = xyes; then :
12368 lt_cv_dlopen=shl_load
12369 else
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12371 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12372 if ${ac_cv_lib_dld_shl_load+:} false; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-ldld $LIBS"
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379
12380 /* Override any GCC internal prototype to avoid an error.
12381 Use char because int might match the return type of a GCC
12382 builtin and then its argument prototype would still apply. */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 char shl_load ();
12387 int
12388 main ()
12389 {
12390 return shl_load ();
12391 ;
12392 return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_link "$LINENO"; then :
12396 ac_cv_lib_dld_shl_load=yes
12397 else
12398 ac_cv_lib_dld_shl_load=no
12399 fi
12400 rm -f core conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12402 LIBS=$ac_check_lib_save_LIBS
12403 fi
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12405 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12406 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12407 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12408 else
12409 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12410 if test "x$ac_cv_func_dlopen" = xyes; then :
12411 lt_cv_dlopen=dlopen
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12414 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12415 if ${ac_cv_lib_dl_dlopen+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-ldl $LIBS"
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char dlopen ();
12430 int
12431 main ()
12432 {
12433 return dlopen ();
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 ac_cv_lib_dl_dlopen=yes
12440 else
12441 ac_cv_lib_dl_dlopen=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12448 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12449 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12450 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12453 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12454 if ${ac_cv_lib_svld_dlopen+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-lsvld $LIBS"
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 char dlopen ();
12469 int
12470 main ()
12471 {
12472 return dlopen ();
12473 ;
12474 return 0;
12475 }
12476 _ACEOF
12477 if ac_fn_c_try_link "$LINENO"; then :
12478 ac_cv_lib_svld_dlopen=yes
12479 else
12480 ac_cv_lib_svld_dlopen=no
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12487 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12488 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12489 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12492 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12493 if ${ac_cv_lib_dld_dld_link+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-ldld $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char dld_link ();
12508 int
12509 main ()
12510 {
12511 return dld_link ();
12512 ;
12513 return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_lib_dld_dld_link=yes
12518 else
12519 ac_cv_lib_dld_dld_link=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12526 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12527 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12528 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12529 fi
12530
12531
12532 fi
12533
12534
12535 fi
12536
12537
12538 fi
12539
12540
12541 fi
12542
12543
12544 fi
12545
12546 ;;
12547 esac
12548
12549 if test no = "$lt_cv_dlopen"; then
12550 enable_dlopen=no
12551 else
12552 enable_dlopen=yes
12553 fi
12554
12555 case $lt_cv_dlopen in
12556 dlopen)
12557 save_CPPFLAGS=$CPPFLAGS
12558 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12559
12560 save_LDFLAGS=$LDFLAGS
12561 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12562
12563 save_LIBS=$LIBS
12564 LIBS="$lt_cv_dlopen_libs $LIBS"
12565
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12567 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12568 if ${lt_cv_dlopen_self+:} false; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 if test yes = "$cross_compiling"; then :
12572 lt_cv_dlopen_self=cross
12573 else
12574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12575 lt_status=$lt_dlunknown
12576 cat > conftest.$ac_ext <<_LT_EOF
12577 #line $LINENO "configure"
12578 #include "confdefs.h"
12579
12580 #if HAVE_DLFCN_H
12581 #include <dlfcn.h>
12582 #endif
12583
12584 #include <stdio.h>
12585
12586 #ifdef RTLD_GLOBAL
12587 # define LT_DLGLOBAL RTLD_GLOBAL
12588 #else
12589 # ifdef DL_GLOBAL
12590 # define LT_DLGLOBAL DL_GLOBAL
12591 # else
12592 # define LT_DLGLOBAL 0
12593 # endif
12594 #endif
12595
12596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12597 find out it does not work in some platform. */
12598 #ifndef LT_DLLAZY_OR_NOW
12599 # ifdef RTLD_LAZY
12600 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12601 # else
12602 # ifdef DL_LAZY
12603 # define LT_DLLAZY_OR_NOW DL_LAZY
12604 # else
12605 # ifdef RTLD_NOW
12606 # define LT_DLLAZY_OR_NOW RTLD_NOW
12607 # else
12608 # ifdef DL_NOW
12609 # define LT_DLLAZY_OR_NOW DL_NOW
12610 # else
12611 # define LT_DLLAZY_OR_NOW 0
12612 # endif
12613 # endif
12614 # endif
12615 # endif
12616 #endif
12617
12618 /* When -fvisibility=hidden is used, assume the code has been annotated
12619 correspondingly for the symbols needed. */
12620 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12621 int fnord () __attribute__((visibility("default")));
12622 #endif
12623
12624 int fnord () { return 42; }
12625 int main ()
12626 {
12627 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12628 int status = $lt_dlunknown;
12629
12630 if (self)
12631 {
12632 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12633 else
12634 {
12635 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12636 else puts (dlerror ());
12637 }
12638 /* dlclose (self); */
12639 }
12640 else
12641 puts (dlerror ());
12642
12643 return status;
12644 }
12645 _LT_EOF
12646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12647 (eval $ac_link) 2>&5
12648 ac_status=$?
12649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12650 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12651 (./conftest; exit; ) >&5 2>/dev/null
12652 lt_status=$?
12653 case x$lt_status in
12654 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12655 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12656 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12657 esac
12658 else :
12659 # compilation failed
12660 lt_cv_dlopen_self=no
12661 fi
12662 fi
12663 rm -fr conftest*
12664
12665
12666 fi
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12668 $as_echo "$lt_cv_dlopen_self" >&6; }
12669
12670 if test yes = "$lt_cv_dlopen_self"; then
12671 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12673 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12674 if ${lt_cv_dlopen_self_static+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 if test yes = "$cross_compiling"; then :
12678 lt_cv_dlopen_self_static=cross
12679 else
12680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12681 lt_status=$lt_dlunknown
12682 cat > conftest.$ac_ext <<_LT_EOF
12683 #line $LINENO "configure"
12684 #include "confdefs.h"
12685
12686 #if HAVE_DLFCN_H
12687 #include <dlfcn.h>
12688 #endif
12689
12690 #include <stdio.h>
12691
12692 #ifdef RTLD_GLOBAL
12693 # define LT_DLGLOBAL RTLD_GLOBAL
12694 #else
12695 # ifdef DL_GLOBAL
12696 # define LT_DLGLOBAL DL_GLOBAL
12697 # else
12698 # define LT_DLGLOBAL 0
12699 # endif
12700 #endif
12701
12702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12703 find out it does not work in some platform. */
12704 #ifndef LT_DLLAZY_OR_NOW
12705 # ifdef RTLD_LAZY
12706 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12707 # else
12708 # ifdef DL_LAZY
12709 # define LT_DLLAZY_OR_NOW DL_LAZY
12710 # else
12711 # ifdef RTLD_NOW
12712 # define LT_DLLAZY_OR_NOW RTLD_NOW
12713 # else
12714 # ifdef DL_NOW
12715 # define LT_DLLAZY_OR_NOW DL_NOW
12716 # else
12717 # define LT_DLLAZY_OR_NOW 0
12718 # endif
12719 # endif
12720 # endif
12721 # endif
12722 #endif
12723
12724 /* When -fvisibility=hidden is used, assume the code has been annotated
12725 correspondingly for the symbols needed. */
12726 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12727 int fnord () __attribute__((visibility("default")));
12728 #endif
12729
12730 int fnord () { return 42; }
12731 int main ()
12732 {
12733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12734 int status = $lt_dlunknown;
12735
12736 if (self)
12737 {
12738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12739 else
12740 {
12741 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12742 else puts (dlerror ());
12743 }
12744 /* dlclose (self); */
12745 }
12746 else
12747 puts (dlerror ());
12748
12749 return status;
12750 }
12751 _LT_EOF
12752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12753 (eval $ac_link) 2>&5
12754 ac_status=$?
12755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12756 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12757 (./conftest; exit; ) >&5 2>/dev/null
12758 lt_status=$?
12759 case x$lt_status in
12760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12762 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12763 esac
12764 else :
12765 # compilation failed
12766 lt_cv_dlopen_self_static=no
12767 fi
12768 fi
12769 rm -fr conftest*
12770
12771
12772 fi
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12774 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12775 fi
12776
12777 CPPFLAGS=$save_CPPFLAGS
12778 LDFLAGS=$save_LDFLAGS
12779 LIBS=$save_LIBS
12780 ;;
12781 esac
12782
12783 case $lt_cv_dlopen_self in
12784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12785 *) enable_dlopen_self=unknown ;;
12786 esac
12787
12788 case $lt_cv_dlopen_self_static in
12789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12790 *) enable_dlopen_self_static=unknown ;;
12791 esac
12792 fi
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810 striplib=
12811 old_striplib=
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12813 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12814 if test -z "$STRIP"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12817 else
12818 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12819 old_striplib="$STRIP --strip-debug"
12820 striplib="$STRIP --strip-unneeded"
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822 $as_echo "yes" >&6; }
12823 else
12824 case $host_os in
12825 darwin*)
12826 # FIXME - insert some real tests, host_os isn't really good enough
12827 striplib="$STRIP -x"
12828 old_striplib="$STRIP -S"
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12830 $as_echo "yes" >&6; }
12831 ;;
12832 freebsd*)
12833 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12834 old_striplib="$STRIP --strip-debug"
12835 striplib="$STRIP --strip-unneeded"
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12837 $as_echo "yes" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 fi
12842 ;;
12843 *)
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12846 ;;
12847 esac
12848 fi
12849 fi
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862 # Report what library types will actually be built
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12864 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12866 $as_echo "$can_build_shared" >&6; }
12867
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12869 $as_echo_n "checking whether to build shared libraries... " >&6; }
12870 test no = "$can_build_shared" && enable_shared=no
12871
12872 # On AIX, shared libraries and static libraries use the same namespace, and
12873 # are all built from PIC.
12874 case $host_os in
12875 aix3*)
12876 test yes = "$enable_shared" && enable_static=no
12877 if test -n "$RANLIB"; then
12878 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12879 postinstall_cmds='$RANLIB $lib'
12880 fi
12881 ;;
12882
12883 aix[4-9]*)
12884 if test ia64 != "$host_cpu"; then
12885 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12886 yes,aix,yes) ;; # shared object as lib.so file only
12887 yes,svr4,*) ;; # shared object as lib.so archive member only
12888 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12889 esac
12890 fi
12891 ;;
12892 esac
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12894 $as_echo "$enable_shared" >&6; }
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12897 $as_echo_n "checking whether to build static libraries... " >&6; }
12898 # Make sure either enable_shared or enable_static is yes.
12899 test yes = "$enable_shared" || enable_static=yes
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12901 $as_echo "$enable_static" >&6; }
12902
12903
12904
12905
12906 fi
12907 ac_ext=c
12908 ac_cpp='$CPP $CPPFLAGS'
12909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12912
12913 CC=$lt_save_CC
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929 ac_config_commands="$ac_config_commands libtool"
12930
12931
12932
12933
12934 # Only expand once:
12935
12936
12937
12938 # Check GMP Header
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
12940 $as_echo_n "checking for gmp.h... " >&6; }
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943
12944 #include "gmp.h"
12945
12946 _ACEOF
12947 if ac_fn_c_try_compile "$LINENO"; then :
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12949 $as_echo "yes" >&6; }
12950 else
12951
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12954 as_fn_error $? "gmp.h cannot be found or is unusable." "$LINENO" 5
12955
12956 fi
12957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958
12959 # Checks for header files.
12960 for ac_header in inttypes.h stdint.h sys/time.h
12961 do :
12962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12963 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12965 cat >>confdefs.h <<_ACEOF
12966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12967 _ACEOF
12968
12969 fi
12970
12971 done
12972
12973
12974 ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
12975 if test "x$ac_cv_header_complex_h" = xyes; then :
12976
12977
12978
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing creal" >&5
12980 $as_echo_n "checking for library containing creal... " >&6; }
12981 if ${ac_cv_search_creal+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 ac_func_search_save_LIBS=$LIBS
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12991 #ifdef __cplusplus
12992 extern "C"
12993 #endif
12994 char creal ();
12995 int
12996 main ()
12997 {
12998 return creal ();
12999 ;
13000 return 0;
13001 }
13002 _ACEOF
13003 for ac_lib in '' m; do
13004 if test -z "$ac_lib"; then
13005 ac_res="none required"
13006 else
13007 ac_res=-l$ac_lib
13008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13009 fi
13010 if ac_fn_c_try_link "$LINENO"; then :
13011 ac_cv_search_creal=$ac_res
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext
13015 if ${ac_cv_search_creal+:} false; then :
13016 break
13017 fi
13018 done
13019 if ${ac_cv_search_creal+:} false; then :
13020
13021 else
13022 ac_cv_search_creal=no
13023 fi
13024 rm conftest.$ac_ext
13025 LIBS=$ac_func_search_save_LIBS
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_creal" >&5
13028 $as_echo "$ac_cv_search_creal" >&6; }
13029 ac_res=$ac_cv_search_creal
13030 if test "$ac_res" != no; then :
13031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13032
13033 fi
13034
13035 # needed on Solaris
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether creal, cimag and I can be used" >&5
13037 $as_echo_n "checking whether creal, cimag and I can be used... " >&6; }
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040
13041 #include <complex.h>
13042 int
13043 main ()
13044 {
13045 complex double x = 1.0 + 2.0 * I; return (creal (x) + cimag (x));
13046
13047 ;
13048 return 0;
13049 }
13050
13051
13052 _ACEOF
13053 if ac_fn_c_try_link "$LINENO"; then :
13054
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13056 $as_echo "yes" >&6; }
13057
13058 $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
13059
13060
13061 else
13062
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, build without support for C complex numbers" >&5
13064 $as_echo "no, build without support for C complex numbers" >&6; }
13065
13066
13067 fi
13068 rm -f core conftest.err conftest.$ac_objext \
13069 conftest$ac_exeext conftest.$ac_ext
13070
13071
13072 fi
13073
13074
13075
13076
13077 # Checks for typedefs, structures, and compiler characteristics.
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13079 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13080 if ${ac_cv_c_const+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085
13086 int
13087 main ()
13088 {
13089
13090 #ifndef __cplusplus
13091 /* Ultrix mips cc rejects this sort of thing. */
13092 typedef int charset[2];
13093 const charset cs = { 0, 0 };
13094 /* SunOS 4.1.1 cc rejects this. */
13095 char const *const *pcpcc;
13096 char **ppc;
13097 /* NEC SVR4.0.2 mips cc rejects this. */
13098 struct point {int x, y;};
13099 static struct point const zero = {0,0};
13100 /* AIX XL C 1.02.0.0 rejects this.
13101 It does not let you subtract one const X* pointer from another in
13102 an arm of an if-expression whose if-part is not a constant
13103 expression */
13104 const char *g = "string";
13105 pcpcc = &g + (g ? g-g : 0);
13106 /* HPUX 7.0 cc rejects these. */
13107 ++pcpcc;
13108 ppc = (char**) pcpcc;
13109 pcpcc = (char const *const *) ppc;
13110 { /* SCO 3.2v4 cc rejects this sort of thing. */
13111 char tx;
13112 char *t = &tx;
13113 char const *s = 0 ? (char *) 0 : (char const *) 0;
13114
13115 *t++ = 0;
13116 if (s) return 0;
13117 }
13118 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13119 int x[] = {25, 17};
13120 const int *foo = &x[0];
13121 ++foo;
13122 }
13123 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13124 typedef const int *iptr;
13125 iptr p = 0;
13126 ++p;
13127 }
13128 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13129 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13130 struct s { int j; const int *ap[3]; } bx;
13131 struct s *b = &bx; b->j = 5;
13132 }
13133 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13134 const int foo = 10;
13135 if (!foo) return 0;
13136 }
13137 return !cs[0] && !zero.x;
13138 #endif
13139
13140 ;
13141 return 0;
13142 }
13143 _ACEOF
13144 if ac_fn_c_try_compile "$LINENO"; then :
13145 ac_cv_c_const=yes
13146 else
13147 ac_cv_c_const=no
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13152 $as_echo "$ac_cv_c_const" >&6; }
13153 if test $ac_cv_c_const = no; then
13154
13155 $as_echo "#define const /**/" >>confdefs.h
13156
13157 fi
13158
13159 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13160 if test "x$ac_cv_type_size_t" = xyes; then :
13161
13162 else
13163
13164 cat >>confdefs.h <<_ACEOF
13165 #define size_t unsigned int
13166 _ACEOF
13167
13168 fi
13169
13170
13171 # Checks for libraries.
13172 for ac_func in gettimeofday localeconv setlocale getrusage
13173 do :
13174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13176 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13177 cat >>confdefs.h <<_ACEOF
13178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13179 _ACEOF
13180
13181 fi
13182 done
13183
13184 for ac_func in dup dup2
13185 do :
13186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13189 cat >>confdefs.h <<_ACEOF
13190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13191 _ACEOF
13192
13193 else
13194
13195 $as_echo "#define MPC_NO_STREAM_REDIRECTION 1" >>confdefs.h
13196
13197 fi
13198 done
13199
13200
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
13202 $as_echo_n "checking for fesetround in -lm... " >&6; }
13203 if ${ac_cv_lib_m_fesetround+:} false; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 ac_check_lib_save_LIBS=$LIBS
13207 LIBS="-lm $LIBS"
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13214 #ifdef __cplusplus
13215 extern "C"
13216 #endif
13217 char fesetround ();
13218 int
13219 main ()
13220 {
13221 return fesetround ();
13222 ;
13223 return 0;
13224 }
13225 _ACEOF
13226 if ac_fn_c_try_link "$LINENO"; then :
13227 ac_cv_lib_m_fesetround=yes
13228 else
13229 ac_cv_lib_m_fesetround=no
13230 fi
13231 rm -f core conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233 LIBS=$ac_check_lib_save_LIBS
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
13236 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
13237 if test "x$ac_cv_lib_m_fesetround" = xyes; then :
13238 cat >>confdefs.h <<_ACEOF
13239 #define HAVE_LIBM 1
13240 _ACEOF
13241
13242 LIBS="-lm $LIBS"
13243
13244 fi
13245
13246 # Warning: up from autoconf 2.70, the following test fails with C++
13247 # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992981
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
13249 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
13250 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 ac_check_lib_save_LIBS=$LIBS
13254 LIBS="-lgmp $LIBS"
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13261 #ifdef __cplusplus
13262 extern "C"
13263 #endif
13264 char __gmpz_init ();
13265 int
13266 main ()
13267 {
13268 return __gmpz_init ();
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274 ac_cv_lib_gmp___gmpz_init=yes
13275 else
13276 ac_cv_lib_gmp___gmpz_init=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13280 LIBS=$ac_check_lib_save_LIBS
13281 fi
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
13283 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
13284 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
13285 LIBS="-lgmp $LIBS"
13286 else
13287 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13288 fi
13289
13290
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPFR" >&5
13292 $as_echo_n "checking for MPFR... " >&6; }
13293 LIBS="-lmpfr $LIBS"
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 #include "mpfr.h"
13297 int
13298 main ()
13299 {
13300 mpfr_t x; mpfr_init(x) ; mpfr_clear(x);
13301
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13308 $as_echo "yes" >&6; }
13309 else
13310
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13313 as_fn_error $? "libmpfr not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13314
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318
13319 # Check for a recent GMP
13320 # We only guarantee that with a *functional* and recent enough GMP version,
13321 # MPC will compile; we do not guarantee that GMP will compile.
13322 # In particular fat builds are broken in GMP 5.0.0
13323 # (at least on 64-bit Core 2 under GNU/Linux),
13324 # see http://gmplib.org/list-archives/gmp-bugs/2011-August/002345.html.
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
13326 $as_echo_n "checking for recent GMP... " >&6; }
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329
13330 #include "gmp.h"
13331 #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL < 500)
13332 # error "Minimal GMP version is 5.0.0"
13333 error
13334 #endif
13335
13336 _ACEOF
13337 if ac_fn_c_try_compile "$LINENO"; then :
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13339 $as_echo "yes" >&6; }
13340 else
13341
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13344 as_fn_error $? "GMP version >= 5.0.0 required" "$LINENO" 5
13345
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348
13349 # Check for a recent MPFR: we require MPFR 4.1.0
13350 # The same remark as above for GMP applies.
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent MPFR" >&5
13352 $as_echo_n "checking for recent MPFR... " >&6; }
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13355
13356 #include "mpfr.h"
13357 #if (MPFR_VERSION < MPFR_VERSION_NUM (4,1,0))
13358 # error "Minimal MPFR version is 4.1.0"
13359 error
13360 #endif
13361
13362 _ACEOF
13363 if ac_fn_c_try_compile "$LINENO"; then :
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13366 else
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13370 as_fn_error $? "MPFR version >= 4.1.0 required" "$LINENO" 5
13371
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374
13375 # Check for logging feature
13376 if test "x$enable_logging" = "xyes"; then :
13377 for ac_header in dlfcn.h
13378 do :
13379 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13380 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13381 cat >>confdefs.h <<_ACEOF
13382 #define HAVE_DLFCN_H 1
13383 _ACEOF
13384
13385 fi
13386
13387 done
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
13390 $as_echo_n "checking for dlsym in -ldl... " >&6; }
13391 if ${ac_cv_lib_dl_dlsym+:} false; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-ldl $LIBS"
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13398
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char dlsym ();
13406 int
13407 main ()
13408 {
13409 return dlsym ();
13410 ;
13411 return 0;
13412 }
13413 _ACEOF
13414 if ac_fn_c_try_link "$LINENO"; then :
13415 ac_cv_lib_dl_dlsym=yes
13416 else
13417 ac_cv_lib_dl_dlsym=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13422 fi
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
13424 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
13425 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
13426
13427
13428 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
13429
13430 LIBS="-ldl $LIBS"
13431
13432 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13433 if test "x$ac_cv_type_intptr_t" = xyes; then :
13434
13435 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13436
13437 else
13438 for ac_type in 'int' 'long int' 'long long int'; do
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441 $ac_includes_default
13442 int
13443 main ()
13444 {
13445 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13446 test_array [0] = 0;
13447 return test_array [0];
13448
13449 ;
13450 return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454
13455 cat >>confdefs.h <<_ACEOF
13456 #define intptr_t $ac_type
13457 _ACEOF
13458
13459 ac_type=
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 test -z "$ac_type" && break
13463 done
13464 fi
13465
13466
13467 case " $LIBOBJS " in
13468 *" logging.$ac_objext "* ) ;;
13469 *) LIBOBJS="$LIBOBJS logging.$ac_objext"
13470 ;;
13471 esac
13472
13473 MPC_LOG_H=src/mpc-log.h
13474
13475
13476 else
13477 as_fn_error $? "Library dl not found, logging impossible" "$LINENO" 5
13478 fi
13479
13480
13481
13482 fi
13483
13484 # Configs for Windows DLLs
13485
13486 case $host in
13487 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
13488
13489 if test "$enable_shared" = yes; then
13490 MPC_LDFLAGS="$MPC_LDFLAGS -no-undefined"
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static gmp" >&5
13492 $as_echo_n "checking for DLL/static gmp... " >&6; }
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495
13496 #include "gmp.h"
13497 #if !__GMP_LIBGMP_DLL
13498 #error
13499 error
13500 #endif
13501
13502 int
13503 main ()
13504 {
13505
13506 ;
13507 return 0;
13508 }
13509 _ACEOF
13510 if ac_fn_c_try_compile "$LINENO"; then :
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
13512 $as_echo "DLL" >&6; }
13513 else
13514
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
13516 $as_echo "static" >&6; }
13517 as_fn_error $? "gmp is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
13518 fi
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static mpfr" >&5
13521 $as_echo_n "checking for DLL/static mpfr... " >&6; }
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524
13525 #include "mpfr.h"
13526 #if !__GMP_LIBGMP_DLL
13527 #error
13528 error
13529 #endif
13530
13531 int
13532 main ()
13533 {
13534
13535 ;
13536 return 0;
13537 }
13538 _ACEOF
13539 if ac_fn_c_try_compile "$LINENO"; then :
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
13541 $as_echo "DLL" >&6; }
13542 else
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
13545 $as_echo "static" >&6; }
13546 as_fn_error $? "mpfr is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 else
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552
13553 #include "gmp.h"
13554 #if __GMP_LIBGMP_DLL
13555 #error
13556 error
13557 #endif
13558
13559 int
13560 main ()
13561 {
13562
13563 ;
13564 return 0;
13565 }
13566 _ACEOF
13567 if ac_fn_c_try_compile "$LINENO"; then :
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
13569 $as_echo "static" >&6; }
13570 else
13571
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
13573 $as_echo "DLL" >&6; }
13574 as_fn_error $? "gmp is only available as a DLL: use --disable-static --enable-shared" "$LINENO" 5
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577 fi
13578 ;;
13579
13580 esac
13581
13582 # Checks for gcc version, result in variables MPC_GCC etc. inside config.log
13583
13584 GCC_VERSION=""
13585
13586
13587
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -dumpversion option" >&5
13589 $as_echo_n "checking if gcc accepts -dumpversion option... " >&6; }
13590
13591 if test "x$GCC" = "xyes" ; then :
13592
13593 if test -z "" ; then :
13594
13595 ax_gcc_option_test="int main()
13596 {
13597 return 0;
13598 }"
13599
13600 else
13601
13602 ax_gcc_option_test=""
13603
13604 fi
13605
13606 # Dump the test program to file
13607 cat <<EOF > conftest.c
13608 $ax_gcc_option_test
13609 EOF
13610
13611 # Dump back the file to the log, useful for debugging purposes
13612 { ac_try='cat conftest.c 1>&5'
13613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13617 test $ac_status = 0; }; }
13618
13619 if { ac_try='$CC -dumpversion -c conftest.c 1>&5'
13620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13624 test $ac_status = 0; }; } ; then :
13625
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628
13629 ax_gcc_version_option=yes
13630
13631
13632 else
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13636
13637 ax_gcc_version_option=no
13638
13639
13640 fi
13641
13642 else
13643
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gcc available" >&5
13645 $as_echo "no gcc available" >&6; }
13646
13647 fi
13648
13649 if test "x$GCC" = "xyes"; then :
13650
13651 if test "x$ax_gcc_version_option" != "xno"; then :
13652
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
13654 $as_echo_n "checking gcc version... " >&6; }
13655 if ${ax_cv_gcc_version+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658
13659 ax_cv_gcc_version="`$CC -dumpversion`"
13660 if test "x$ax_cv_gcc_version" = "x"; then :
13661
13662 ax_cv_gcc_version=""
13663
13664 fi
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
13668 $as_echo "$ax_cv_gcc_version" >&6; }
13669 GCC_VERSION=$ax_cv_gcc_version
13670
13671 fi
13672
13673 fi
13674
13675
13676
13677 cat >>confdefs.h <<_ACEOF
13678 #define MPC_GCC "$GCC"
13679 _ACEOF
13680
13681
13682 cat >>confdefs.h <<_ACEOF
13683 #define MPC_CC "$CC"
13684 _ACEOF
13685
13686
13687 cat >>confdefs.h <<_ACEOF
13688 #define MPC_GCC_VERSION "$GCC_VERSION"
13689 _ACEOF
13690
13691
13692 # Looks for short git hash if the version string contains "dev"
13693
13694 if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
13695 # Extract the first word of "git", so it can be a program name with args.
13696 set dummy git; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if ${ac_cv_prog_HASGIT+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 if test -n "$HASGIT"; then
13703 ac_cv_prog_HASGIT="$HASGIT" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13707 do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_prog_HASGIT="yes"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716 done
13717 done
13718 IFS=$as_save_IFS
13719
13720 test -z "$ac_cv_prog_HASGIT" && ac_cv_prog_HASGIT="no"
13721 fi
13722 fi
13723 HASGIT=$ac_cv_prog_HASGIT
13724 if test -n "$HASGIT"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASGIT" >&5
13726 $as_echo "$HASGIT" >&6; }
13727 else
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13730 fi
13731
13732
13733 if test "x$HASGIT" = "xyes"; then :
13734
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current git version" >&5
13736 $as_echo_n "checking for current git version... " >&6; }
13737 GITVERSION=e96a0d0
13738
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITVERSION" >&5
13741 $as_echo "$GITVERSION" >&6; }
13742
13743 fi
13744 fi
13745
13746
13747 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile tools/Makefile tools/bench/Makefile tools/mpcheck/Makefile"
13748
13749 cat >confcache <<\_ACEOF
13750 # This file is a shell script that caches the results of configure
13751 # tests run on this system so they can be shared between configure
13752 # scripts and configure runs, see configure's option --config-cache.
13753 # It is not useful on other systems. If it contains results you don't
13754 # want to keep, you may remove or edit it.
13755 #
13756 # config.status only pays attention to the cache file if you give it
13757 # the --recheck option to rerun configure.
13758 #
13759 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13760 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13761 # following values.
13762
13763 _ACEOF
13764
13765 # The following way of writing the cache mishandles newlines in values,
13766 # but we know of no workaround that is simple, portable, and efficient.
13767 # So, we kill variables containing newlines.
13768 # Ultrix sh set writes to stderr and can't be redirected directly,
13769 # and sets the high bit in the cache file unless we assign to the vars.
13770 (
13771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13772 eval ac_val=\$$ac_var
13773 case $ac_val in #(
13774 *${as_nl}*)
13775 case $ac_var in #(
13776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13778 esac
13779 case $ac_var in #(
13780 _ | IFS | as_nl) ;; #(
13781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13782 *) { eval $ac_var=; unset $ac_var;} ;;
13783 esac ;;
13784 esac
13785 done
13786
13787 (set) 2>&1 |
13788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13789 *${as_nl}ac_space=\ *)
13790 # `set' does not quote correctly, so add quotes: double-quote
13791 # substitution turns \\\\ into \\, and sed turns \\ into \.
13792 sed -n \
13793 "s/'/'\\\\''/g;
13794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13795 ;; #(
13796 *)
13797 # `set' quotes correctly as required by POSIX, so do not add quotes.
13798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13799 ;;
13800 esac |
13801 sort
13802 ) |
13803 sed '
13804 /^ac_cv_env_/b end
13805 t clear
13806 :clear
13807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13808 t end
13809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13810 :end' >>confcache
13811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13812 if test -w "$cache_file"; then
13813 if test "x$cache_file" != "x/dev/null"; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13815 $as_echo "$as_me: updating cache $cache_file" >&6;}
13816 if test ! -f "$cache_file" || test -h "$cache_file"; then
13817 cat confcache >"$cache_file"
13818 else
13819 case $cache_file in #(
13820 */* | ?:*)
13821 mv -f confcache "$cache_file"$$ &&
13822 mv -f "$cache_file"$$ "$cache_file" ;; #(
13823 *)
13824 mv -f confcache "$cache_file" ;;
13825 esac
13826 fi
13827 fi
13828 else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13830 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13831 fi
13832 fi
13833 rm -f confcache
13834
13835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13836 # Let make expand exec_prefix.
13837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13838
13839 DEFS=-DHAVE_CONFIG_H
13840
13841 ac_libobjs=
13842 ac_ltlibobjs=
13843 U=
13844 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13845 # 1. Remove the extension, and $U if already installed.
13846 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13847 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13848 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13849 # will be set to the directory where LIBOBJS objects are built.
13850 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13851 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13852 done
13853 LIBOBJS=$ac_libobjs
13854
13855 LTLIBOBJS=$ac_ltlibobjs
13856
13857
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13859 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13860 if test -n "$am_sleep_pid"; then
13861 # Hide warnings about reused PIDs.
13862 wait $am_sleep_pid 2>/dev/null
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13865 $as_echo "done" >&6; }
13866 if test -n "$EXEEXT"; then
13867 am__EXEEXT_TRUE=
13868 am__EXEEXT_FALSE='#'
13869 else
13870 am__EXEEXT_TRUE='#'
13871 am__EXEEXT_FALSE=
13872 fi
13873
13874 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13875 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13877 fi
13878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13879 as_fn_error $? "conditional \"AMDEP\" was never defined.
13880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13881 fi
13882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13883 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13885 fi
13886
13887 : "${CONFIG_STATUS=./config.status}"
13888 ac_write_fail=0
13889 ac_clean_files_save=$ac_clean_files
13890 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13892 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13893 as_write_fail=0
13894 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13895 #! $SHELL
13896 # Generated by $as_me.
13897 # Run this file to recreate the current configuration.
13898 # Compiler output produced by configure, useful for debugging
13899 # configure, is in config.log if it exists.
13900
13901 debug=false
13902 ac_cs_recheck=false
13903 ac_cs_silent=false
13904
13905 SHELL=\${CONFIG_SHELL-$SHELL}
13906 export SHELL
13907 _ASEOF
13908 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13909 ## -------------------- ##
13910 ## M4sh Initialization. ##
13911 ## -------------------- ##
13912
13913 # Be more Bourne compatible
13914 DUALCASE=1; export DUALCASE # for MKS sh
13915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13916 emulate sh
13917 NULLCMD=:
13918 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13919 # is contrary to our usage. Disable this feature.
13920 alias -g '${1+"$@"}'='"$@"'
13921 setopt NO_GLOB_SUBST
13922 else
13923 case `(set -o) 2>/dev/null` in #(
13924 *posix*) :
13925 set -o posix ;; #(
13926 *) :
13927 ;;
13928 esac
13929 fi
13930
13931
13932 as_nl='
13933 '
13934 export as_nl
13935 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13936 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13937 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13938 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13939 # Prefer a ksh shell builtin over an external printf program on Solaris,
13940 # but without wasting forks for bash or zsh.
13941 if test -z "$BASH_VERSION$ZSH_VERSION" \
13942 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13943 as_echo='print -r --'
13944 as_echo_n='print -rn --'
13945 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13946 as_echo='printf %s\n'
13947 as_echo_n='printf %s'
13948 else
13949 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13950 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13951 as_echo_n='/usr/ucb/echo -n'
13952 else
13953 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13954 as_echo_n_body='eval
13955 arg=$1;
13956 case $arg in #(
13957 *"$as_nl"*)
13958 expr "X$arg" : "X\\(.*\\)$as_nl";
13959 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13960 esac;
13961 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13962 '
13963 export as_echo_n_body
13964 as_echo_n='sh -c $as_echo_n_body as_echo'
13965 fi
13966 export as_echo_body
13967 as_echo='sh -c $as_echo_body as_echo'
13968 fi
13969
13970 # The user is always right.
13971 if test "${PATH_SEPARATOR+set}" != set; then
13972 PATH_SEPARATOR=:
13973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13974 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13975 PATH_SEPARATOR=';'
13976 }
13977 fi
13978
13979
13980 # IFS
13981 # We need space, tab and new line, in precisely that order. Quoting is
13982 # there to prevent editors from complaining about space-tab.
13983 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13984 # splitting by setting IFS to empty value.)
13985 IFS=" "" $as_nl"
13986
13987 # Find who we are. Look in the path if we contain no directory separator.
13988 as_myself=
13989 case $0 in #((
13990 *[\\/]* ) as_myself=$0 ;;
13991 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13993 do
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13997 done
13998 IFS=$as_save_IFS
13999
14000 ;;
14001 esac
14002 # We did not find ourselves, most probably we were run as `sh COMMAND'
14003 # in which case we are not to be found in the path.
14004 if test "x$as_myself" = x; then
14005 as_myself=$0
14006 fi
14007 if test ! -f "$as_myself"; then
14008 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14009 exit 1
14010 fi
14011
14012 # Unset variables that we do not need and which cause bugs (e.g. in
14013 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14014 # suppresses any "Segmentation fault" message there. '((' could
14015 # trigger a bug in pdksh 5.2.14.
14016 for as_var in BASH_ENV ENV MAIL MAILPATH
14017 do eval test x\${$as_var+set} = xset \
14018 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14019 done
14020 PS1='$ '
14021 PS2='> '
14022 PS4='+ '
14023
14024 # NLS nuisances.
14025 LC_ALL=C
14026 export LC_ALL
14027 LANGUAGE=C
14028 export LANGUAGE
14029
14030 # CDPATH.
14031 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14032
14033
14034 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14035 # ----------------------------------------
14036 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14037 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14038 # script with STATUS, using 1 if that was 0.
14039 as_fn_error ()
14040 {
14041 as_status=$1; test $as_status -eq 0 && as_status=1
14042 if test "$4"; then
14043 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14044 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14045 fi
14046 $as_echo "$as_me: error: $2" >&2
14047 as_fn_exit $as_status
14048 } # as_fn_error
14049
14050
14051 # as_fn_set_status STATUS
14052 # -----------------------
14053 # Set $? to STATUS, without forking.
14054 as_fn_set_status ()
14055 {
14056 return $1
14057 } # as_fn_set_status
14058
14059 # as_fn_exit STATUS
14060 # -----------------
14061 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14062 as_fn_exit ()
14063 {
14064 set +e
14065 as_fn_set_status $1
14066 exit $1
14067 } # as_fn_exit
14068
14069 # as_fn_unset VAR
14070 # ---------------
14071 # Portably unset VAR.
14072 as_fn_unset ()
14073 {
14074 { eval $1=; unset $1;}
14075 }
14076 as_unset=as_fn_unset
14077 # as_fn_append VAR VALUE
14078 # ----------------------
14079 # Append the text in VALUE to the end of the definition contained in VAR. Take
14080 # advantage of any shell optimizations that allow amortized linear growth over
14081 # repeated appends, instead of the typical quadratic growth present in naive
14082 # implementations.
14083 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14084 eval 'as_fn_append ()
14085 {
14086 eval $1+=\$2
14087 }'
14088 else
14089 as_fn_append ()
14090 {
14091 eval $1=\$$1\$2
14092 }
14093 fi # as_fn_append
14094
14095 # as_fn_arith ARG...
14096 # ------------------
14097 # Perform arithmetic evaluation on the ARGs, and store the result in the
14098 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14099 # must be portable across $(()) and expr.
14100 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14101 eval 'as_fn_arith ()
14102 {
14103 as_val=$(( $* ))
14104 }'
14105 else
14106 as_fn_arith ()
14107 {
14108 as_val=`expr "$@" || test $? -eq 1`
14109 }
14110 fi # as_fn_arith
14111
14112
14113 if expr a : '\(a\)' >/dev/null 2>&1 &&
14114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14115 as_expr=expr
14116 else
14117 as_expr=false
14118 fi
14119
14120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14121 as_basename=basename
14122 else
14123 as_basename=false
14124 fi
14125
14126 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14127 as_dirname=dirname
14128 else
14129 as_dirname=false
14130 fi
14131
14132 as_me=`$as_basename -- "$0" ||
14133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14134 X"$0" : 'X\(//\)$' \| \
14135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14136 $as_echo X/"$0" |
14137 sed '/^.*\/\([^/][^/]*\)\/*$/{
14138 s//\1/
14139 q
14140 }
14141 /^X\/\(\/\/\)$/{
14142 s//\1/
14143 q
14144 }
14145 /^X\/\(\/\).*/{
14146 s//\1/
14147 q
14148 }
14149 s/.*/./; q'`
14150
14151 # Avoid depending upon Character Ranges.
14152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14155 as_cr_digits='0123456789'
14156 as_cr_alnum=$as_cr_Letters$as_cr_digits
14157
14158 ECHO_C= ECHO_N= ECHO_T=
14159 case `echo -n x` in #(((((
14160 -n*)
14161 case `echo 'xy\c'` in
14162 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14163 xy) ECHO_C='\c';;
14164 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14165 ECHO_T=' ';;
14166 esac;;
14167 *)
14168 ECHO_N='-n';;
14169 esac
14170
14171 rm -f conf$$ conf$$.exe conf$$.file
14172 if test -d conf$$.dir; then
14173 rm -f conf$$.dir/conf$$.file
14174 else
14175 rm -f conf$$.dir
14176 mkdir conf$$.dir 2>/dev/null
14177 fi
14178 if (echo >conf$$.file) 2>/dev/null; then
14179 if ln -s conf$$.file conf$$ 2>/dev/null; then
14180 as_ln_s='ln -s'
14181 # ... but there are two gotchas:
14182 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14183 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14184 # In both cases, we have to default to `cp -pR'.
14185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14186 as_ln_s='cp -pR'
14187 elif ln conf$$.file conf$$ 2>/dev/null; then
14188 as_ln_s=ln
14189 else
14190 as_ln_s='cp -pR'
14191 fi
14192 else
14193 as_ln_s='cp -pR'
14194 fi
14195 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14196 rmdir conf$$.dir 2>/dev/null
14197
14198
14199 # as_fn_mkdir_p
14200 # -------------
14201 # Create "$as_dir" as a directory, including parents if necessary.
14202 as_fn_mkdir_p ()
14203 {
14204
14205 case $as_dir in #(
14206 -*) as_dir=./$as_dir;;
14207 esac
14208 test -d "$as_dir" || eval $as_mkdir_p || {
14209 as_dirs=
14210 while :; do
14211 case $as_dir in #(
14212 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14213 *) as_qdir=$as_dir;;
14214 esac
14215 as_dirs="'$as_qdir' $as_dirs"
14216 as_dir=`$as_dirname -- "$as_dir" ||
14217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14218 X"$as_dir" : 'X\(//\)[^/]' \| \
14219 X"$as_dir" : 'X\(//\)$' \| \
14220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14221 $as_echo X"$as_dir" |
14222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14223 s//\1/
14224 q
14225 }
14226 /^X\(\/\/\)[^/].*/{
14227 s//\1/
14228 q
14229 }
14230 /^X\(\/\/\)$/{
14231 s//\1/
14232 q
14233 }
14234 /^X\(\/\).*/{
14235 s//\1/
14236 q
14237 }
14238 s/.*/./; q'`
14239 test -d "$as_dir" && break
14240 done
14241 test -z "$as_dirs" || eval "mkdir $as_dirs"
14242 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14243
14244
14245 } # as_fn_mkdir_p
14246 if mkdir -p . 2>/dev/null; then
14247 as_mkdir_p='mkdir -p "$as_dir"'
14248 else
14249 test -d ./-p && rmdir ./-p
14250 as_mkdir_p=false
14251 fi
14252
14253
14254 # as_fn_executable_p FILE
14255 # -----------------------
14256 # Test if FILE is an executable regular file.
14257 as_fn_executable_p ()
14258 {
14259 test -f "$1" && test -x "$1"
14260 } # as_fn_executable_p
14261 as_test_x='test -x'
14262 as_executable_p=as_fn_executable_p
14263
14264 # Sed expression to map a string onto a valid CPP name.
14265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14266
14267 # Sed expression to map a string onto a valid variable name.
14268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14269
14270
14271 exec 6>&1
14272 ## ----------------------------------- ##
14273 ## Main body of $CONFIG_STATUS script. ##
14274 ## ----------------------------------- ##
14275 _ASEOF
14276 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14277
14278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14279 # Save the log message, to keep $0 and so on meaningful, and to
14280 # report actual input values of CONFIG_FILES etc. instead of their
14281 # values after options handling.
14282 ac_log="
14283 This file was extended by mpc $as_me 1.3.1, which was
14284 generated by GNU Autoconf 2.69. Invocation command line was
14285
14286 CONFIG_FILES = $CONFIG_FILES
14287 CONFIG_HEADERS = $CONFIG_HEADERS
14288 CONFIG_LINKS = $CONFIG_LINKS
14289 CONFIG_COMMANDS = $CONFIG_COMMANDS
14290 $ $0 $@
14291
14292 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14293 "
14294
14295 _ACEOF
14296
14297 case $ac_config_files in *"
14298 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14299 esac
14300
14301 case $ac_config_headers in *"
14302 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14303 esac
14304
14305
14306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307 # Files that config.status was made for.
14308 config_files="$ac_config_files"
14309 config_headers="$ac_config_headers"
14310 config_commands="$ac_config_commands"
14311
14312 _ACEOF
14313
14314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14315 ac_cs_usage="\
14316 \`$as_me' instantiates files and other configuration actions
14317 from templates according to the current configuration. Unless the files
14318 and actions are specified as TAGs, all are instantiated by default.
14319
14320 Usage: $0 [OPTION]... [TAG]...
14321
14322 -h, --help print this help, then exit
14323 -V, --version print version number and configuration settings, then exit
14324 --config print configuration, then exit
14325 -q, --quiet, --silent
14326 do not print progress messages
14327 -d, --debug don't remove temporary files
14328 --recheck update $as_me by reconfiguring in the same conditions
14329 --file=FILE[:TEMPLATE]
14330 instantiate the configuration file FILE
14331 --header=FILE[:TEMPLATE]
14332 instantiate the configuration header FILE
14333
14334 Configuration files:
14335 $config_files
14336
14337 Configuration headers:
14338 $config_headers
14339
14340 Configuration commands:
14341 $config_commands
14342
14343 Report bugs to <mpc-discuss@inria.fr>."
14344
14345 _ACEOF
14346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14347 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14348 ac_cs_version="\\
14349 mpc config.status 1.3.1
14350 configured by $0, generated by GNU Autoconf 2.69,
14351 with options \\"\$ac_cs_config\\"
14352
14353 Copyright (C) 2012 Free Software Foundation, Inc.
14354 This config.status script is free software; the Free Software Foundation
14355 gives unlimited permission to copy, distribute and modify it."
14356
14357 ac_pwd='$ac_pwd'
14358 srcdir='$srcdir'
14359 INSTALL='$INSTALL'
14360 MKDIR_P='$MKDIR_P'
14361 AWK='$AWK'
14362 test -n "\$AWK" || AWK=awk
14363 _ACEOF
14364
14365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14366 # The default lists apply if the user does not specify any file.
14367 ac_need_defaults=:
14368 while test $# != 0
14369 do
14370 case $1 in
14371 --*=?*)
14372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14374 ac_shift=:
14375 ;;
14376 --*=)
14377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14378 ac_optarg=
14379 ac_shift=:
14380 ;;
14381 *)
14382 ac_option=$1
14383 ac_optarg=$2
14384 ac_shift=shift
14385 ;;
14386 esac
14387
14388 case $ac_option in
14389 # Handling of the options.
14390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14391 ac_cs_recheck=: ;;
14392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14393 $as_echo "$ac_cs_version"; exit ;;
14394 --config | --confi | --conf | --con | --co | --c )
14395 $as_echo "$ac_cs_config"; exit ;;
14396 --debug | --debu | --deb | --de | --d | -d )
14397 debug=: ;;
14398 --file | --fil | --fi | --f )
14399 $ac_shift
14400 case $ac_optarg in
14401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14402 '') as_fn_error $? "missing file argument" ;;
14403 esac
14404 as_fn_append CONFIG_FILES " '$ac_optarg'"
14405 ac_need_defaults=false;;
14406 --header | --heade | --head | --hea )
14407 $ac_shift
14408 case $ac_optarg in
14409 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14410 esac
14411 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14412 ac_need_defaults=false;;
14413 --he | --h)
14414 # Conflict between --help and --header
14415 as_fn_error $? "ambiguous option: \`$1'
14416 Try \`$0 --help' for more information.";;
14417 --help | --hel | -h )
14418 $as_echo "$ac_cs_usage"; exit ;;
14419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14420 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14421 ac_cs_silent=: ;;
14422
14423 # This is an error.
14424 -*) as_fn_error $? "unrecognized option: \`$1'
14425 Try \`$0 --help' for more information." ;;
14426
14427 *) as_fn_append ac_config_targets " $1"
14428 ac_need_defaults=false ;;
14429
14430 esac
14431 shift
14432 done
14433
14434 ac_configure_extra_args=
14435
14436 if $ac_cs_silent; then
14437 exec 6>/dev/null
14438 ac_configure_extra_args="$ac_configure_extra_args --silent"
14439 fi
14440
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14443 if \$ac_cs_recheck; then
14444 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14445 shift
14446 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14447 CONFIG_SHELL='$SHELL'
14448 export CONFIG_SHELL
14449 exec "\$@"
14450 fi
14451
14452 _ACEOF
14453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14454 exec 5>>config.log
14455 {
14456 echo
14457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14458 ## Running $as_me. ##
14459 _ASBOX
14460 $as_echo "$ac_log"
14461 } >&5
14462
14463 _ACEOF
14464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14465 #
14466 # INIT-COMMANDS
14467 #
14468 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14469
14470
14471 # The HP-UX ksh and POSIX shell print the target directory to stdout
14472 # if CDPATH is set.
14473 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14474
14475 sed_quote_subst='$sed_quote_subst'
14476 double_quote_subst='$double_quote_subst'
14477 delay_variable_subst='$delay_variable_subst'
14478 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14479 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14480 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14481 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14482 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14483 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14484 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14485 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14486 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14487 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14488 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14489 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14490 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14491 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14492 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14493 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14494 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14495 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14496 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14497 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14498 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14499 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14500 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14501 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14502 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14503 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14504 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14505 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14506 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14507 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14508 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14509 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14510 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14511 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14512 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14513 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14514 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14515 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14516 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14517 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14518 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14519 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14520 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14521 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14522 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14523 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14524 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14525 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14526 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14527 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14528 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14529 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14530 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14531 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14532 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14533 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14534 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14535 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14536 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14537 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14538 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14539 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"`'
14540 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14541 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14542 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14543 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14544 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14545 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14546 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14547 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14548 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14549 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14550 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14551 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14552 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14553 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14554 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14555 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14556 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14557 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14558 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14559 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14560 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14561 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14562 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14563 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14564 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14565 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14566 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14567 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14568 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14569 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14570 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14571 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14572 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14573 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14574 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14575 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14576 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14577 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14578 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14579 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14580 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14581 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14582 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14583 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14584 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14585 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14586 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14587 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14588 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14589 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14590 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14591 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14592 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14593 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14594 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14595 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14596 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14597 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14598 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14599 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14600 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14601 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14602 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14603 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14604 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14605 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14606 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14607 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14608 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14609 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14610 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14611 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14612 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14613 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14614 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14615 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14616
14617 LTCC='$LTCC'
14618 LTCFLAGS='$LTCFLAGS'
14619 compiler='$compiler_DEFAULT'
14620
14621 # A function that is used when there is no print builtin or printf.
14622 func_fallback_echo ()
14623 {
14624 eval 'cat <<_LTECHO_EOF
14625 \$1
14626 _LTECHO_EOF'
14627 }
14628
14629 # Quote evaled strings.
14630 for var in AS \
14631 DLLTOOL \
14632 OBJDUMP \
14633 SHELL \
14634 ECHO \
14635 PATH_SEPARATOR \
14636 SED \
14637 GREP \
14638 EGREP \
14639 FGREP \
14640 LD \
14641 NM \
14642 LN_S \
14643 lt_SP2NL \
14644 lt_NL2SP \
14645 reload_flag \
14646 FILECMD \
14647 deplibs_check_method \
14648 file_magic_cmd \
14649 file_magic_glob \
14650 want_nocaseglob \
14651 sharedlib_from_linklib_cmd \
14652 AR \
14653 archiver_list_spec \
14654 STRIP \
14655 RANLIB \
14656 CC \
14657 CFLAGS \
14658 compiler \
14659 lt_cv_sys_global_symbol_pipe \
14660 lt_cv_sys_global_symbol_to_cdecl \
14661 lt_cv_sys_global_symbol_to_import \
14662 lt_cv_sys_global_symbol_to_c_name_address \
14663 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14664 lt_cv_nm_interface \
14665 nm_file_list_spec \
14666 lt_cv_truncate_bin \
14667 lt_prog_compiler_no_builtin_flag \
14668 lt_prog_compiler_pic \
14669 lt_prog_compiler_wl \
14670 lt_prog_compiler_static \
14671 lt_cv_prog_compiler_c_o \
14672 need_locks \
14673 MANIFEST_TOOL \
14674 DSYMUTIL \
14675 NMEDIT \
14676 LIPO \
14677 OTOOL \
14678 OTOOL64 \
14679 shrext_cmds \
14680 export_dynamic_flag_spec \
14681 whole_archive_flag_spec \
14682 compiler_needs_object \
14683 with_gnu_ld \
14684 allow_undefined_flag \
14685 no_undefined_flag \
14686 hardcode_libdir_flag_spec \
14687 hardcode_libdir_separator \
14688 exclude_expsyms \
14689 include_expsyms \
14690 file_list_spec \
14691 variables_saved_for_relink \
14692 libname_spec \
14693 library_names_spec \
14694 soname_spec \
14695 install_override_mode \
14696 finish_eval \
14697 old_striplib \
14698 striplib; do
14699 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14700 *[\\\\\\\`\\"\\\$]*)
14701 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14702 ;;
14703 *)
14704 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14705 ;;
14706 esac
14707 done
14708
14709 # Double-quote double-evaled strings.
14710 for var in reload_cmds \
14711 old_postinstall_cmds \
14712 old_postuninstall_cmds \
14713 old_archive_cmds \
14714 extract_expsyms_cmds \
14715 old_archive_from_new_cmds \
14716 old_archive_from_expsyms_cmds \
14717 archive_cmds \
14718 archive_expsym_cmds \
14719 module_cmds \
14720 module_expsym_cmds \
14721 export_symbols_cmds \
14722 prelink_cmds \
14723 postlink_cmds \
14724 postinstall_cmds \
14725 postuninstall_cmds \
14726 finish_cmds \
14727 sys_lib_search_path_spec \
14728 configure_time_dlsearch_path \
14729 configure_time_lt_sys_library_path; do
14730 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14731 *[\\\\\\\`\\"\\\$]*)
14732 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14733 ;;
14734 *)
14735 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14736 ;;
14737 esac
14738 done
14739
14740 ac_aux_dir='$ac_aux_dir'
14741
14742 # See if we are running on zsh, and set the options that allow our
14743 # commands through without removal of \ escapes INIT.
14744 if test -n "\${ZSH_VERSION+set}"; then
14745 setopt NO_GLOB_SUBST
14746 fi
14747
14748
14749 PACKAGE='$PACKAGE'
14750 VERSION='$VERSION'
14751 RM='$RM'
14752 ofile='$ofile'
14753
14754
14755
14756
14757 _ACEOF
14758
14759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14760
14761 # Handling of arguments.
14762 for ac_config_target in $ac_config_targets
14763 do
14764 case $ac_config_target in
14765 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14766 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14767 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14769 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14770 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14771 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14772 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14773 "tools/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bench/Makefile" ;;
14774 "tools/mpcheck/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mpcheck/Makefile" ;;
14775
14776 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14777 esac
14778 done
14779
14780
14781 # If the user did not use the arguments to specify the items to instantiate,
14782 # then the envvar interface is used. Set only those that are not.
14783 # We use the long form for the default assignment because of an extremely
14784 # bizarre bug on SunOS 4.1.3.
14785 if $ac_need_defaults; then
14786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14787 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14788 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14789 fi
14790
14791 # Have a temporary directory for convenience. Make it in the build tree
14792 # simply because there is no reason against having it here, and in addition,
14793 # creating and moving files from /tmp can sometimes cause problems.
14794 # Hook for its removal unless debugging.
14795 # Note that there is a small window in which the directory will not be cleaned:
14796 # after its creation but before its name has been assigned to `$tmp'.
14797 $debug ||
14798 {
14799 tmp= ac_tmp=
14800 trap 'exit_status=$?
14801 : "${ac_tmp:=$tmp}"
14802 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14803 ' 0
14804 trap 'as_fn_exit 1' 1 2 13 15
14805 }
14806 # Create a (secure) tmp directory for tmp files.
14807
14808 {
14809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14810 test -d "$tmp"
14811 } ||
14812 {
14813 tmp=./conf$$-$RANDOM
14814 (umask 077 && mkdir "$tmp")
14815 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14816 ac_tmp=$tmp
14817
14818 # Set up the scripts for CONFIG_FILES section.
14819 # No need to generate them if there are no CONFIG_FILES.
14820 # This happens for instance with `./config.status config.h'.
14821 if test -n "$CONFIG_FILES"; then
14822
14823
14824 ac_cr=`echo X | tr X '\015'`
14825 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14826 # But we know of no other shell where ac_cr would be empty at this
14827 # point, so we can use a bashism as a fallback.
14828 if test "x$ac_cr" = x; then
14829 eval ac_cr=\$\'\\r\'
14830 fi
14831 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14832 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14833 ac_cs_awk_cr='\\r'
14834 else
14835 ac_cs_awk_cr=$ac_cr
14836 fi
14837
14838 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14839 _ACEOF
14840
14841
14842 {
14843 echo "cat >conf$$subs.awk <<_ACEOF" &&
14844 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14845 echo "_ACEOF"
14846 } >conf$$subs.sh ||
14847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14848 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14849 ac_delim='%!_!# '
14850 for ac_last_try in false false false false false :; do
14851 . ./conf$$subs.sh ||
14852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14853
14854 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14855 if test $ac_delim_n = $ac_delim_num; then
14856 break
14857 elif $ac_last_try; then
14858 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14859 else
14860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14861 fi
14862 done
14863 rm -f conf$$subs.sh
14864
14865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14866 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14867 _ACEOF
14868 sed -n '
14869 h
14870 s/^/S["/; s/!.*/"]=/
14871 p
14872 g
14873 s/^[^!]*!//
14874 :repl
14875 t repl
14876 s/'"$ac_delim"'$//
14877 t delim
14878 :nl
14879 h
14880 s/\(.\{148\}\)..*/\1/
14881 t more1
14882 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14883 p
14884 n
14885 b repl
14886 :more1
14887 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14888 p
14889 g
14890 s/.\{148\}//
14891 t nl
14892 :delim
14893 h
14894 s/\(.\{148\}\)..*/\1/
14895 t more2
14896 s/["\\]/\\&/g; s/^/"/; s/$/"/
14897 p
14898 b
14899 :more2
14900 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14901 p
14902 g
14903 s/.\{148\}//
14904 t delim
14905 ' <conf$$subs.awk | sed '
14906 /^[^""]/{
14907 N
14908 s/\n//
14909 }
14910 ' >>$CONFIG_STATUS || ac_write_fail=1
14911 rm -f conf$$subs.awk
14912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14913 _ACAWK
14914 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14915 for (key in S) S_is_set[key] = 1
14916 FS = ""
14917
14918 }
14919 {
14920 line = $ 0
14921 nfields = split(line, field, "@")
14922 substed = 0
14923 len = length(field[1])
14924 for (i = 2; i < nfields; i++) {
14925 key = field[i]
14926 keylen = length(key)
14927 if (S_is_set[key]) {
14928 value = S[key]
14929 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14930 len += length(value) + length(field[++i])
14931 substed = 1
14932 } else
14933 len += 1 + keylen
14934 }
14935
14936 print line
14937 }
14938
14939 _ACAWK
14940 _ACEOF
14941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14942 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14943 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14944 else
14945 cat
14946 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14947 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14948 _ACEOF
14949
14950 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14951 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14952 # trailing colons and then remove the whole line if VPATH becomes empty
14953 # (actually we leave an empty line to preserve line numbers).
14954 if test "x$srcdir" = x.; then
14955 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14956 h
14957 s///
14958 s/^/:/
14959 s/[ ]*$/:/
14960 s/:\$(srcdir):/:/g
14961 s/:\${srcdir}:/:/g
14962 s/:@srcdir@:/:/g
14963 s/^:*//
14964 s/:*$//
14965 x
14966 s/\(=[ ]*\).*/\1/
14967 G
14968 s/\n//
14969 s/^[^=]*=[ ]*$//
14970 }'
14971 fi
14972
14973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14974 fi # test -n "$CONFIG_FILES"
14975
14976 # Set up the scripts for CONFIG_HEADERS section.
14977 # No need to generate them if there are no CONFIG_HEADERS.
14978 # This happens for instance with `./config.status Makefile'.
14979 if test -n "$CONFIG_HEADERS"; then
14980 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14981 BEGIN {
14982 _ACEOF
14983
14984 # Transform confdefs.h into an awk script `defines.awk', embedded as
14985 # here-document in config.status, that substitutes the proper values into
14986 # config.h.in to produce config.h.
14987
14988 # Create a delimiter string that does not exist in confdefs.h, to ease
14989 # handling of long lines.
14990 ac_delim='%!_!# '
14991 for ac_last_try in false false :; do
14992 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14993 if test -z "$ac_tt"; then
14994 break
14995 elif $ac_last_try; then
14996 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14997 else
14998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14999 fi
15000 done
15001
15002 # For the awk script, D is an array of macro values keyed by name,
15003 # likewise P contains macro parameters if any. Preserve backslash
15004 # newline sequences.
15005
15006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15007 sed -n '
15008 s/.\{148\}/&'"$ac_delim"'/g
15009 t rset
15010 :rset
15011 s/^[ ]*#[ ]*define[ ][ ]*/ /
15012 t def
15013 d
15014 :def
15015 s/\\$//
15016 t bsnl
15017 s/["\\]/\\&/g
15018 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15019 D["\1"]=" \3"/p
15020 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15021 d
15022 :bsnl
15023 s/["\\]/\\&/g
15024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15025 D["\1"]=" \3\\\\\\n"\\/p
15026 t cont
15027 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15028 t cont
15029 d
15030 :cont
15031 n
15032 s/.\{148\}/&'"$ac_delim"'/g
15033 t clear
15034 :clear
15035 s/\\$//
15036 t bsnlc
15037 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15038 d
15039 :bsnlc
15040 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15041 b cont
15042 ' <confdefs.h | sed '
15043 s/'"$ac_delim"'/"\\\
15044 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15045
15046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15047 for (key in D) D_is_set[key] = 1
15048 FS = ""
15049 }
15050 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15051 line = \$ 0
15052 split(line, arg, " ")
15053 if (arg[1] == "#") {
15054 defundef = arg[2]
15055 mac1 = arg[3]
15056 } else {
15057 defundef = substr(arg[1], 2)
15058 mac1 = arg[2]
15059 }
15060 split(mac1, mac2, "(") #)
15061 macro = mac2[1]
15062 prefix = substr(line, 1, index(line, defundef) - 1)
15063 if (D_is_set[macro]) {
15064 # Preserve the white space surrounding the "#".
15065 print prefix "define", macro P[macro] D[macro]
15066 next
15067 } else {
15068 # Replace #undef with comments. This is necessary, for example,
15069 # in the case of _POSIX_SOURCE, which is predefined and required
15070 # on some systems where configure will not decide to define it.
15071 if (defundef == "undef") {
15072 print "/*", prefix defundef, macro, "*/"
15073 next
15074 }
15075 }
15076 }
15077 { print }
15078 _ACAWK
15079 _ACEOF
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15082 fi # test -n "$CONFIG_HEADERS"
15083
15084
15085 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15086 shift
15087 for ac_tag
15088 do
15089 case $ac_tag in
15090 :[FHLC]) ac_mode=$ac_tag; continue;;
15091 esac
15092 case $ac_mode$ac_tag in
15093 :[FHL]*:*);;
15094 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15095 :[FH]-) ac_tag=-:-;;
15096 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15097 esac
15098 ac_save_IFS=$IFS
15099 IFS=:
15100 set x $ac_tag
15101 IFS=$ac_save_IFS
15102 shift
15103 ac_file=$1
15104 shift
15105
15106 case $ac_mode in
15107 :L) ac_source=$1;;
15108 :[FH])
15109 ac_file_inputs=
15110 for ac_f
15111 do
15112 case $ac_f in
15113 -) ac_f="$ac_tmp/stdin";;
15114 *) # Look for the file first in the build tree, then in the source tree
15115 # (if the path is not absolute). The absolute path cannot be DOS-style,
15116 # because $ac_f cannot contain `:'.
15117 test -f "$ac_f" ||
15118 case $ac_f in
15119 [\\/$]*) false;;
15120 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15121 esac ||
15122 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15123 esac
15124 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15125 as_fn_append ac_file_inputs " '$ac_f'"
15126 done
15127
15128 # Let's still pretend it is `configure' which instantiates (i.e., don't
15129 # use $as_me), people would be surprised to read:
15130 # /* config.h. Generated by config.status. */
15131 configure_input='Generated from '`
15132 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15133 `' by configure.'
15134 if test x"$ac_file" != x-; then
15135 configure_input="$ac_file. $configure_input"
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15137 $as_echo "$as_me: creating $ac_file" >&6;}
15138 fi
15139 # Neutralize special characters interpreted by sed in replacement strings.
15140 case $configure_input in #(
15141 *\&* | *\|* | *\\* )
15142 ac_sed_conf_input=`$as_echo "$configure_input" |
15143 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15144 *) ac_sed_conf_input=$configure_input;;
15145 esac
15146
15147 case $ac_tag in
15148 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15150 esac
15151 ;;
15152 esac
15153
15154 ac_dir=`$as_dirname -- "$ac_file" ||
15155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15156 X"$ac_file" : 'X\(//\)[^/]' \| \
15157 X"$ac_file" : 'X\(//\)$' \| \
15158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15159 $as_echo X"$ac_file" |
15160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15161 s//\1/
15162 q
15163 }
15164 /^X\(\/\/\)[^/].*/{
15165 s//\1/
15166 q
15167 }
15168 /^X\(\/\/\)$/{
15169 s//\1/
15170 q
15171 }
15172 /^X\(\/\).*/{
15173 s//\1/
15174 q
15175 }
15176 s/.*/./; q'`
15177 as_dir="$ac_dir"; as_fn_mkdir_p
15178 ac_builddir=.
15179
15180 case "$ac_dir" in
15181 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15182 *)
15183 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15184 # A ".." for each directory in $ac_dir_suffix.
15185 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15186 case $ac_top_builddir_sub in
15187 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15188 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15189 esac ;;
15190 esac
15191 ac_abs_top_builddir=$ac_pwd
15192 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15193 # for backward compatibility:
15194 ac_top_builddir=$ac_top_build_prefix
15195
15196 case $srcdir in
15197 .) # We are building in place.
15198 ac_srcdir=.
15199 ac_top_srcdir=$ac_top_builddir_sub
15200 ac_abs_top_srcdir=$ac_pwd ;;
15201 [\\/]* | ?:[\\/]* ) # Absolute name.
15202 ac_srcdir=$srcdir$ac_dir_suffix;
15203 ac_top_srcdir=$srcdir
15204 ac_abs_top_srcdir=$srcdir ;;
15205 *) # Relative name.
15206 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15207 ac_top_srcdir=$ac_top_build_prefix$srcdir
15208 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15209 esac
15210 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15211
15212
15213 case $ac_mode in
15214 :F)
15215 #
15216 # CONFIG_FILE
15217 #
15218
15219 case $INSTALL in
15220 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15221 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15222 esac
15223 ac_MKDIR_P=$MKDIR_P
15224 case $MKDIR_P in
15225 [\\/$]* | ?:[\\/]* ) ;;
15226 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15227 esac
15228 _ACEOF
15229
15230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15231 # If the template does not know about datarootdir, expand it.
15232 # FIXME: This hack should be removed a few years after 2.60.
15233 ac_datarootdir_hack=; ac_datarootdir_seen=
15234 ac_sed_dataroot='
15235 /datarootdir/ {
15236 p
15237 q
15238 }
15239 /@datadir@/p
15240 /@docdir@/p
15241 /@infodir@/p
15242 /@localedir@/p
15243 /@mandir@/p'
15244 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15245 *datarootdir*) ac_datarootdir_seen=yes;;
15246 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15248 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15249 _ACEOF
15250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15251 ac_datarootdir_hack='
15252 s&@datadir@&$datadir&g
15253 s&@docdir@&$docdir&g
15254 s&@infodir@&$infodir&g
15255 s&@localedir@&$localedir&g
15256 s&@mandir@&$mandir&g
15257 s&\\\${datarootdir}&$datarootdir&g' ;;
15258 esac
15259 _ACEOF
15260
15261 # Neutralize VPATH when `$srcdir' = `.'.
15262 # Shell code in configure.ac might set extrasub.
15263 # FIXME: do we really want to maintain this feature?
15264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 ac_sed_extra="$ac_vpsub
15266 $extrasub
15267 _ACEOF
15268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15269 :t
15270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15271 s|@configure_input@|$ac_sed_conf_input|;t t
15272 s&@top_builddir@&$ac_top_builddir_sub&;t t
15273 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15274 s&@srcdir@&$ac_srcdir&;t t
15275 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15276 s&@top_srcdir@&$ac_top_srcdir&;t t
15277 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15278 s&@builddir@&$ac_builddir&;t t
15279 s&@abs_builddir@&$ac_abs_builddir&;t t
15280 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15281 s&@INSTALL@&$ac_INSTALL&;t t
15282 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15283 $ac_datarootdir_hack
15284 "
15285 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15286 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15287
15288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15289 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15291 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15293 which seems to be undefined. Please make sure it is defined" >&5
15294 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15295 which seems to be undefined. Please make sure it is defined" >&2;}
15296
15297 rm -f "$ac_tmp/stdin"
15298 case $ac_file in
15299 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15300 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15301 esac \
15302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15303 ;;
15304 :H)
15305 #
15306 # CONFIG_HEADER
15307 #
15308 if test x"$ac_file" != x-; then
15309 {
15310 $as_echo "/* $configure_input */" \
15311 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15312 } >"$ac_tmp/config.h" \
15313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15314 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15316 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15317 else
15318 rm -f "$ac_file"
15319 mv "$ac_tmp/config.h" "$ac_file" \
15320 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15321 fi
15322 else
15323 $as_echo "/* $configure_input */" \
15324 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15325 || as_fn_error $? "could not create -" "$LINENO" 5
15326 fi
15327 # Compute "$ac_file"'s index in $config_headers.
15328 _am_arg="$ac_file"
15329 _am_stamp_count=1
15330 for _am_header in $config_headers :; do
15331 case $_am_header in
15332 $_am_arg | $_am_arg:* )
15333 break ;;
15334 * )
15335 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15336 esac
15337 done
15338 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15339 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15340 X"$_am_arg" : 'X\(//\)[^/]' \| \
15341 X"$_am_arg" : 'X\(//\)$' \| \
15342 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15343 $as_echo X"$_am_arg" |
15344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15345 s//\1/
15346 q
15347 }
15348 /^X\(\/\/\)[^/].*/{
15349 s//\1/
15350 q
15351 }
15352 /^X\(\/\/\)$/{
15353 s//\1/
15354 q
15355 }
15356 /^X\(\/\).*/{
15357 s//\1/
15358 q
15359 }
15360 s/.*/./; q'`/stamp-h$_am_stamp_count
15361 ;;
15362
15363 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15364 $as_echo "$as_me: executing $ac_file commands" >&6;}
15365 ;;
15366 esac
15367
15368
15369 case $ac_file$ac_mode in
15370 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15371 # Older Autoconf quotes --file arguments for eval, but not when files
15372 # are listed without --file. Let's play safe and only enable the eval
15373 # if we detect the quoting.
15374 # TODO: see whether this extra hack can be removed once we start
15375 # requiring Autoconf 2.70 or later.
15376 case $CONFIG_FILES in #(
15377 *\'*) :
15378 eval set x "$CONFIG_FILES" ;; #(
15379 *) :
15380 set x $CONFIG_FILES ;; #(
15381 *) :
15382 ;;
15383 esac
15384 shift
15385 # Used to flag and report bootstrapping failures.
15386 am_rc=0
15387 for am_mf
15388 do
15389 # Strip MF so we end up with the name of the file.
15390 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15391 # Check whether this is an Automake generated Makefile which includes
15392 # dependency-tracking related rules and includes.
15393 # Grep'ing the whole file directly is not great: AIX grep has a line
15394 # limit of 2048, but all sed's we know have understand at least 4000.
15395 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15396 || continue
15397 am_dirpart=`$as_dirname -- "$am_mf" ||
15398 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15399 X"$am_mf" : 'X\(//\)[^/]' \| \
15400 X"$am_mf" : 'X\(//\)$' \| \
15401 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15402 $as_echo X"$am_mf" |
15403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15404 s//\1/
15405 q
15406 }
15407 /^X\(\/\/\)[^/].*/{
15408 s//\1/
15409 q
15410 }
15411 /^X\(\/\/\)$/{
15412 s//\1/
15413 q
15414 }
15415 /^X\(\/\).*/{
15416 s//\1/
15417 q
15418 }
15419 s/.*/./; q'`
15420 am_filepart=`$as_basename -- "$am_mf" ||
15421 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15422 X"$am_mf" : 'X\(//\)$' \| \
15423 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15424 $as_echo X/"$am_mf" |
15425 sed '/^.*\/\([^/][^/]*\)\/*$/{
15426 s//\1/
15427 q
15428 }
15429 /^X\/\(\/\/\)$/{
15430 s//\1/
15431 q
15432 }
15433 /^X\/\(\/\).*/{
15434 s//\1/
15435 q
15436 }
15437 s/.*/./; q'`
15438 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15439 && sed -e '/# am--include-marker/d' "$am_filepart" \
15440 | $MAKE -f - am--depfiles" >&5
15441 (cd "$am_dirpart" \
15442 && sed -e '/# am--include-marker/d' "$am_filepart" \
15443 | $MAKE -f - am--depfiles) >&5 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } || am_rc=$?
15447 done
15448 if test $am_rc -ne 0; then
15449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15451 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15452 for automatic dependency tracking. If GNU make was not used, consider
15453 re-running the configure script with MAKE=\"gmake\" (or whatever is
15454 necessary). You can also try re-running configure with the
15455 '--disable-dependency-tracking' option to at least be able to build
15456 the package (albeit without support for automatic dependency tracking).
15457 See \`config.log' for more details" "$LINENO" 5; }
15458 fi
15459 { am_dirpart=; unset am_dirpart;}
15460 { am_filepart=; unset am_filepart;}
15461 { am_mf=; unset am_mf;}
15462 { am_rc=; unset am_rc;}
15463 rm -f conftest-deps.mk
15464 }
15465 ;;
15466 "libtool":C)
15467
15468 # See if we are running on zsh, and set the options that allow our
15469 # commands through without removal of \ escapes.
15470 if test -n "${ZSH_VERSION+set}"; then
15471 setopt NO_GLOB_SUBST
15472 fi
15473
15474 cfgfile=${ofile}T
15475 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15476 $RM "$cfgfile"
15477
15478 cat <<_LT_EOF >> "$cfgfile"
15479 #! $SHELL
15480 # Generated automatically by $as_me ($PACKAGE) $VERSION
15481 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15482 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15483
15484 # Provide generalized library-building support services.
15485 # Written by Gordon Matzigkeit, 1996
15486
15487 # Copyright (C) 2014 Free Software Foundation, Inc.
15488 # This is free software; see the source for copying conditions. There is NO
15489 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15490
15491 # GNU Libtool is free software; you can redistribute it and/or modify
15492 # it under the terms of the GNU General Public License as published by
15493 # the Free Software Foundation; either version 2 of of the License, or
15494 # (at your option) any later version.
15495 #
15496 # As a special exception to the GNU General Public License, if you
15497 # distribute this file as part of a program or library that is built
15498 # using GNU Libtool, you may include this file under the same
15499 # distribution terms that you use for the rest of that program.
15500 #
15501 # GNU Libtool is distributed in the hope that it will be useful, but
15502 # WITHOUT ANY WARRANTY; without even the implied warranty of
15503 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15504 # GNU General Public License for more details.
15505 #
15506 # You should have received a copy of the GNU General Public License
15507 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15508
15509
15510 # The names of the tagged configurations supported by this script.
15511 available_tags=''
15512
15513 # Configured defaults for sys_lib_dlsearch_path munging.
15514 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15515
15516 # ### BEGIN LIBTOOL CONFIG
15517
15518 # Which release of libtool.m4 was used?
15519 macro_version=$macro_version
15520 macro_revision=$macro_revision
15521
15522 # Assembler program.
15523 AS=$lt_AS
15524
15525 # DLL creation program.
15526 DLLTOOL=$lt_DLLTOOL
15527
15528 # Object dumper program.
15529 OBJDUMP=$lt_OBJDUMP
15530
15531 # Whether or not to build shared libraries.
15532 build_libtool_libs=$enable_shared
15533
15534 # Whether or not to build static libraries.
15535 build_old_libs=$enable_static
15536
15537 # What type of objects to build.
15538 pic_mode=$pic_mode
15539
15540 # Whether or not to optimize for fast installation.
15541 fast_install=$enable_fast_install
15542
15543 # Shared archive member basename,for filename based shared library versioning on AIX.
15544 shared_archive_member_spec=$shared_archive_member_spec
15545
15546 # Shell to use when invoking shell scripts.
15547 SHELL=$lt_SHELL
15548
15549 # An echo program that protects backslashes.
15550 ECHO=$lt_ECHO
15551
15552 # The PATH separator for the build system.
15553 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15554
15555 # The host system.
15556 host_alias=$host_alias
15557 host=$host
15558 host_os=$host_os
15559
15560 # The build system.
15561 build_alias=$build_alias
15562 build=$build
15563 build_os=$build_os
15564
15565 # A sed program that does not truncate output.
15566 SED=$lt_SED
15567
15568 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15569 Xsed="\$SED -e 1s/^X//"
15570
15571 # A grep program that handles long lines.
15572 GREP=$lt_GREP
15573
15574 # An ERE matcher.
15575 EGREP=$lt_EGREP
15576
15577 # A literal string matcher.
15578 FGREP=$lt_FGREP
15579
15580 # A BSD- or MS-compatible name lister.
15581 NM=$lt_NM
15582
15583 # Whether we need soft or hard links.
15584 LN_S=$lt_LN_S
15585
15586 # What is the maximum length of a command?
15587 max_cmd_len=$max_cmd_len
15588
15589 # Object file suffix (normally "o").
15590 objext=$ac_objext
15591
15592 # Executable file suffix (normally "").
15593 exeext=$exeext
15594
15595 # whether the shell understands "unset".
15596 lt_unset=$lt_unset
15597
15598 # turn spaces into newlines.
15599 SP2NL=$lt_lt_SP2NL
15600
15601 # turn newlines into spaces.
15602 NL2SP=$lt_lt_NL2SP
15603
15604 # convert \$build file names to \$host format.
15605 to_host_file_cmd=$lt_cv_to_host_file_cmd
15606
15607 # convert \$build files to toolchain format.
15608 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15609
15610 # A file(cmd) program that detects file types.
15611 FILECMD=$lt_FILECMD
15612
15613 # Method to check whether dependent libraries are shared objects.
15614 deplibs_check_method=$lt_deplibs_check_method
15615
15616 # Command to use when deplibs_check_method = "file_magic".
15617 file_magic_cmd=$lt_file_magic_cmd
15618
15619 # How to find potential files when deplibs_check_method = "file_magic".
15620 file_magic_glob=$lt_file_magic_glob
15621
15622 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15623 want_nocaseglob=$lt_want_nocaseglob
15624
15625 # Command to associate shared and link libraries.
15626 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15627
15628 # The archiver.
15629 AR=$lt_AR
15630
15631 # Flags to create an archive (by configure).
15632 lt_ar_flags=$lt_ar_flags
15633
15634 # Flags to create an archive.
15635 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15636
15637 # How to feed a file listing to the archiver.
15638 archiver_list_spec=$lt_archiver_list_spec
15639
15640 # A symbol stripping program.
15641 STRIP=$lt_STRIP
15642
15643 # Commands used to install an old-style archive.
15644 RANLIB=$lt_RANLIB
15645 old_postinstall_cmds=$lt_old_postinstall_cmds
15646 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15647
15648 # Whether to use a lock for old archive extraction.
15649 lock_old_archive_extraction=$lock_old_archive_extraction
15650
15651 # A C compiler.
15652 LTCC=$lt_CC
15653
15654 # LTCC compiler flags.
15655 LTCFLAGS=$lt_CFLAGS
15656
15657 # Take the output of nm and produce a listing of raw symbols and C names.
15658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15659
15660 # Transform the output of nm in a proper C declaration.
15661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15662
15663 # Transform the output of nm into a list of symbols to manually relocate.
15664 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15665
15666 # Transform the output of nm in a C name address pair.
15667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15668
15669 # Transform the output of nm in a C name address pair when lib prefix is needed.
15670 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15671
15672 # The name lister interface.
15673 nm_interface=$lt_lt_cv_nm_interface
15674
15675 # Specify filename containing input files for \$NM.
15676 nm_file_list_spec=$lt_nm_file_list_spec
15677
15678 # The root where to search for dependent libraries,and where our libraries should be installed.
15679 lt_sysroot=$lt_sysroot
15680
15681 # Command to truncate a binary pipe.
15682 lt_truncate_bin=$lt_lt_cv_truncate_bin
15683
15684 # The name of the directory that contains temporary libtool files.
15685 objdir=$objdir
15686
15687 # Used to examine libraries when file_magic_cmd begins with "file".
15688 MAGIC_CMD=$MAGIC_CMD
15689
15690 # Must we lock files when doing compilation?
15691 need_locks=$lt_need_locks
15692
15693 # Manifest tool.
15694 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15695
15696 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15697 DSYMUTIL=$lt_DSYMUTIL
15698
15699 # Tool to change global to local symbols on Mac OS X.
15700 NMEDIT=$lt_NMEDIT
15701
15702 # Tool to manipulate fat objects and archives on Mac OS X.
15703 LIPO=$lt_LIPO
15704
15705 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15706 OTOOL=$lt_OTOOL
15707
15708 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15709 OTOOL64=$lt_OTOOL64
15710
15711 # Old archive suffix (normally "a").
15712 libext=$libext
15713
15714 # Shared library suffix (normally ".so").
15715 shrext_cmds=$lt_shrext_cmds
15716
15717 # The commands to extract the exported symbol list from a shared archive.
15718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15719
15720 # Variables whose values should be saved in libtool wrapper scripts and
15721 # restored at link time.
15722 variables_saved_for_relink=$lt_variables_saved_for_relink
15723
15724 # Do we need the "lib" prefix for modules?
15725 need_lib_prefix=$need_lib_prefix
15726
15727 # Do we need a version for libraries?
15728 need_version=$need_version
15729
15730 # Library versioning type.
15731 version_type=$version_type
15732
15733 # Shared library runtime path variable.
15734 runpath_var=$runpath_var
15735
15736 # Shared library path variable.
15737 shlibpath_var=$shlibpath_var
15738
15739 # Is shlibpath searched before the hard-coded library search path?
15740 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15741
15742 # Format of library name prefix.
15743 libname_spec=$lt_libname_spec
15744
15745 # List of archive names. First name is the real one, the rest are links.
15746 # The last name is the one that the linker finds with -lNAME
15747 library_names_spec=$lt_library_names_spec
15748
15749 # The coded name of the library, if different from the real name.
15750 soname_spec=$lt_soname_spec
15751
15752 # Permission mode override for installation of shared libraries.
15753 install_override_mode=$lt_install_override_mode
15754
15755 # Command to use after installation of a shared archive.
15756 postinstall_cmds=$lt_postinstall_cmds
15757
15758 # Command to use after uninstallation of a shared archive.
15759 postuninstall_cmds=$lt_postuninstall_cmds
15760
15761 # Commands used to finish a libtool library installation in a directory.
15762 finish_cmds=$lt_finish_cmds
15763
15764 # As "finish_cmds", except a single script fragment to be evaled but
15765 # not shown.
15766 finish_eval=$lt_finish_eval
15767
15768 # Whether we should hardcode library paths into libraries.
15769 hardcode_into_libs=$hardcode_into_libs
15770
15771 # Compile-time system search path for libraries.
15772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15773
15774 # Detected run-time system search path for libraries.
15775 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15776
15777 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15778 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15779
15780 # Whether dlopen is supported.
15781 dlopen_support=$enable_dlopen
15782
15783 # Whether dlopen of programs is supported.
15784 dlopen_self=$enable_dlopen_self
15785
15786 # Whether dlopen of statically linked programs is supported.
15787 dlopen_self_static=$enable_dlopen_self_static
15788
15789 # Commands to strip libraries.
15790 old_striplib=$lt_old_striplib
15791 striplib=$lt_striplib
15792
15793
15794 # The linker used to build libraries.
15795 LD=$lt_LD
15796
15797 # How to create reloadable object files.
15798 reload_flag=$lt_reload_flag
15799 reload_cmds=$lt_reload_cmds
15800
15801 # Commands used to build an old-style archive.
15802 old_archive_cmds=$lt_old_archive_cmds
15803
15804 # A language specific compiler.
15805 CC=$lt_compiler
15806
15807 # Is the compiler the GNU compiler?
15808 with_gcc=$GCC
15809
15810 # Compiler flag to turn off builtin functions.
15811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15812
15813 # Additional compiler flags for building library objects.
15814 pic_flag=$lt_lt_prog_compiler_pic
15815
15816 # How to pass a linker flag through the compiler.
15817 wl=$lt_lt_prog_compiler_wl
15818
15819 # Compiler flag to prevent dynamic linking.
15820 link_static_flag=$lt_lt_prog_compiler_static
15821
15822 # Does compiler simultaneously support -c and -o options?
15823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15824
15825 # Whether or not to add -lc for building shared libraries.
15826 build_libtool_need_lc=$archive_cmds_need_lc
15827
15828 # Whether or not to disallow shared libs when runtime libs are static.
15829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15830
15831 # Compiler flag to allow reflexive dlopens.
15832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15833
15834 # Compiler flag to generate shared objects directly from archives.
15835 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15836
15837 # Whether the compiler copes with passing no objects directly.
15838 compiler_needs_object=$lt_compiler_needs_object
15839
15840 # Create an old-style archive from a shared archive.
15841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15842
15843 # Create a temporary old-style archive to link instead of a shared archive.
15844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15845
15846 # Commands used to build a shared archive.
15847 archive_cmds=$lt_archive_cmds
15848 archive_expsym_cmds=$lt_archive_expsym_cmds
15849
15850 # Commands used to build a loadable module if different from building
15851 # a shared archive.
15852 module_cmds=$lt_module_cmds
15853 module_expsym_cmds=$lt_module_expsym_cmds
15854
15855 # Whether we are building with GNU ld or not.
15856 with_gnu_ld=$lt_with_gnu_ld
15857
15858 # Flag that allows shared libraries with undefined symbols to be built.
15859 allow_undefined_flag=$lt_allow_undefined_flag
15860
15861 # Flag that enforces no undefined symbols.
15862 no_undefined_flag=$lt_no_undefined_flag
15863
15864 # Flag to hardcode \$libdir into a binary during linking.
15865 # This must work even if \$libdir does not exist
15866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15867
15868 # Whether we need a single "-rpath" flag with a separated argument.
15869 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15870
15871 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15872 # DIR into the resulting binary.
15873 hardcode_direct=$hardcode_direct
15874
15875 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15876 # DIR into the resulting binary and the resulting library dependency is
15877 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15878 # library is relocated.
15879 hardcode_direct_absolute=$hardcode_direct_absolute
15880
15881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15882 # into the resulting binary.
15883 hardcode_minus_L=$hardcode_minus_L
15884
15885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15886 # into the resulting binary.
15887 hardcode_shlibpath_var=$hardcode_shlibpath_var
15888
15889 # Set to "yes" if building a shared library automatically hardcodes DIR
15890 # into the library and all subsequent libraries and executables linked
15891 # against it.
15892 hardcode_automatic=$hardcode_automatic
15893
15894 # Set to yes if linker adds runtime paths of dependent libraries
15895 # to runtime path list.
15896 inherit_rpath=$inherit_rpath
15897
15898 # Whether libtool must link a program against all its dependency libraries.
15899 link_all_deplibs=$link_all_deplibs
15900
15901 # Set to "yes" if exported symbols are required.
15902 always_export_symbols=$always_export_symbols
15903
15904 # The commands to list exported symbols.
15905 export_symbols_cmds=$lt_export_symbols_cmds
15906
15907 # Symbols that should not be listed in the preloaded symbols.
15908 exclude_expsyms=$lt_exclude_expsyms
15909
15910 # Symbols that must always be exported.
15911 include_expsyms=$lt_include_expsyms
15912
15913 # Commands necessary for linking programs (against libraries) with templates.
15914 prelink_cmds=$lt_prelink_cmds
15915
15916 # Commands necessary for finishing linking programs.
15917 postlink_cmds=$lt_postlink_cmds
15918
15919 # Specify filename containing input files.
15920 file_list_spec=$lt_file_list_spec
15921
15922 # How to hardcode a shared library path into an executable.
15923 hardcode_action=$hardcode_action
15924
15925 # ### END LIBTOOL CONFIG
15926
15927 _LT_EOF
15928
15929 cat <<'_LT_EOF' >> "$cfgfile"
15930
15931 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15932
15933 # func_munge_path_list VARIABLE PATH
15934 # -----------------------------------
15935 # VARIABLE is name of variable containing _space_ separated list of
15936 # directories to be munged by the contents of PATH, which is string
15937 # having a format:
15938 # "DIR[:DIR]:"
15939 # string "DIR[ DIR]" will be prepended to VARIABLE
15940 # ":DIR[:DIR]"
15941 # string "DIR[ DIR]" will be appended to VARIABLE
15942 # "DIRP[:DIRP]::[DIRA:]DIRA"
15943 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15944 # "DIRA[ DIRA]" will be appended to VARIABLE
15945 # "DIR[:DIR]"
15946 # VARIABLE will be replaced by "DIR[ DIR]"
15947 func_munge_path_list ()
15948 {
15949 case x$2 in
15950 x)
15951 ;;
15952 *:)
15953 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15954 ;;
15955 x:*)
15956 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15957 ;;
15958 *::*)
15959 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15960 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15961 ;;
15962 *)
15963 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15964 ;;
15965 esac
15966 }
15967
15968
15969 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15970 func_cc_basename ()
15971 {
15972 for cc_temp in $*""; do
15973 case $cc_temp in
15974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15976 \-*) ;;
15977 *) break;;
15978 esac
15979 done
15980 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15981 }
15982
15983
15984 # ### END FUNCTIONS SHARED WITH CONFIGURE
15985
15986 _LT_EOF
15987
15988 case $host_os in
15989 aix3*)
15990 cat <<\_LT_EOF >> "$cfgfile"
15991 # AIX sometimes has problems with the GCC collect2 program. For some
15992 # reason, if we set the COLLECT_NAMES environment variable, the problems
15993 # vanish in a puff of smoke.
15994 if test set != "${COLLECT_NAMES+set}"; then
15995 COLLECT_NAMES=
15996 export COLLECT_NAMES
15997 fi
15998 _LT_EOF
15999 ;;
16000 esac
16001
16002
16003 ltmain=$ac_aux_dir/ltmain.sh
16004
16005
16006 # We use sed instead of cat because bash on DJGPP gets confused if
16007 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16008 # text mode, it properly converts lines to CR/LF. This bash problem
16009 # is reportedly fixed, but why not run on old versions too?
16010 $SED '$q' "$ltmain" >> "$cfgfile" \
16011 || (rm -f "$cfgfile"; exit 1)
16012
16013 mv -f "$cfgfile" "$ofile" ||
16014 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16015 chmod +x "$ofile"
16016
16017 ;;
16018
16019 esac
16020 done # for ac_tag
16021
16022
16023 as_fn_exit 0
16024 _ACEOF
16025 ac_clean_files=$ac_clean_files_save
16026
16027 test $ac_write_fail = 0 ||
16028 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16029
16030
16031 # configure is writing to config.log, and then calls config.status.
16032 # config.status does its own redirection, appending to config.log.
16033 # Unfortunately, on DOS this fails, as config.log is still kept open
16034 # by configure, so config.status won't be able to write to it; its
16035 # output is simply discarded. So we exec the FD to /dev/null,
16036 # effectively closing config.log, so it can be properly (re)opened and
16037 # appended to by config.status. When coming back to configure, we
16038 # need to make the FD available again.
16039 if test "$no_create" != yes; then
16040 ac_cs_success=:
16041 ac_config_status_args=
16042 test "$silent" = yes &&
16043 ac_config_status_args="$ac_config_status_args --quiet"
16044 exec 5>/dev/null
16045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16046 exec 5>>config.log
16047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16048 # would make configure fail if this is the last instruction.
16049 $ac_cs_success || as_fn_exit 1
16050 fi
16051 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16053 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16054 fi
16055
16056