1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for TI IPC 3.0.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='TI IPC'
589 PACKAGE_TARNAME='ti-ipc'
590 PACKAGE_VERSION='3.0.0'
591 PACKAGE_STRING='TI IPC 3.0.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="packages/ti/ipc/MessageQ.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 AF_RPMSG_FALSE
637 AF_RPMSG_TRUE
638 DRM_FALSE
639 DRM_TRUE
640 KERNEL_INSTALL_DIR_FALSE
641 KERNEL_INSTALL_DIR_TRUE
642 KDIR_FALSE
643 KDIR_TRUE
644 CMEM_FALSE
645 CMEM_TRUE
646 DRA7XX_FALSE
647 DRA7XX_TRUE
648 OMAP54XX_SMP_FALSE
649 OMAP54XX_SMP_TRUE
650 C66AK2G_FALSE
651 C66AK2G_TRUE
652 TCI6638_FALSE
653 TCI6638_TRUE
654 TCI6636_FALSE
655 TCI6636_TRUE
656 TCI6630_FALSE
657 TCI6630_TRUE
658 TCI6614_FALSE
659 TCI6614_TRUE
660 C66AK2E_FALSE
661 C66AK2E_TRUE
662 OMAPL138_FALSE
663 OMAPL138_TRUE
664 DRM_PREFIX
665 AF_RPMSG
666 KERNEL_INSTALL_DIR
667 CMEM_INSTALL_DIR
668 PLATFORM
669 AM_LDFLAGS
670 AM_CFLAGS
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__quote
700 am__include
701 DEPDIR
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 LIBTOOL
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_silent_rules
790 enable_maintainer_mode
791 enable_shared
792 enable_static
793 with_pic
794 enable_fast_install
795 enable_dependency_tracking
796 with_gnu_ld
797 with_sysroot
798 enable_libtool_lock
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CPP
809 PLATFORM
810 CMEM_INSTALL_DIR
811 KERNEL_INSTALL_DIR
812 AF_RPMSG
813 DRM_PREFIX'
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
904 --config-cache | -C)
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1201 ;;
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1221 esac
1222 done
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227 fi
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319 else
1320 ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/ti-ipc]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1409 cat <<\_ACEOF
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1425 esac
1426 cat <<\_ACEOF
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-maintainer-mode
1435 enable make rules and dependencies not useful (and
1436 sometimes confusing) to the casual installer
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --enable-dependency-tracking
1442 do not reject slow dependency extractors
1443 --disable-dependency-tracking
1444 speeds up one-time build
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot=DIR Search for dependent libraries within DIR
1454 (or the compiler's sysroot if not specified).
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465 PLATFORM Platform to build. Options are: 'OMAPL138' 'OMAP54XX' '66AK2E'
1466 'TCI6630' 'TCI6636' 'TCI6638' '66AK2G' and 'DRA7XX'. If not
1467 defined all platforms will be built.
1468 CMEM_INSTALL_DIR
1469 Installation path directory to the CMEM libraries
1470 KERNEL_INSTALL_DIR
1471 Installation path to the Linux kernel.
1472 AF_RPMSG Address Family used by the RPMSG driver
1473 DRM_PREFIX Installation location to the DRM library.
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to the package provider.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 TI IPC configure 3.0.0
1542 generated by GNU Autoconf 2.69
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1586 ac_retval=1
1587 fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_compile
1593 # ac_fn_c_try_link LINENO
1594 # -----------------------
1595 # Try to link conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_link ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 test -x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1627 ac_retval=1
1628 fi
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_link
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658 else
1659 eval "$3=no"
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 fi
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 } # ac_fn_c_check_header_compile
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_cpp
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1742 fi
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1747 } # ac_fn_c_try_run
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764 #define $2 innocuous_$2
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1771 #ifdef __STDC__
1772 # include <limits.h>
1773 #else
1774 # include <assert.h>
1775 #endif
1777 #undef $2
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1782 #ifdef __cplusplus
1783 extern "C"
1784 #endif
1785 char $2 ();
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1790 choke me
1791 #endif
1793 int
1794 main ()
1795 {
1796 return $2 ();
1797 ;
1798 return 0;
1799 }
1800 _ACEOF
1801 if ac_fn_c_try_link "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_func
1816 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1819 # the include files in INCLUDES and setting the cache variable VAR
1820 # accordingly.
1821 ac_fn_c_check_header_mongrel ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if eval \${$3+:} false; then :
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 else
1834 # Is the header compilable?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1836 $as_echo_n "checking $2 usability... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 $4
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_header_compiler=yes
1844 else
1845 ac_header_compiler=no
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1849 $as_echo "$ac_header_compiler" >&6; }
1851 # Is the header present?
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1853 $as_echo_n "checking $2 presence... " >&6; }
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_cpp "$LINENO"; then :
1859 ac_header_preproc=yes
1860 else
1861 ac_header_preproc=no
1862 fi
1863 rm -f conftest.err conftest.i conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865 $as_echo "$ac_header_preproc" >&6; }
1867 # So? What about this header?
1868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1869 yes:no: )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1871 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ;;
1875 no:yes:* )
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1877 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1879 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1881 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1883 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 ;;
1887 esac
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=\$ac_header_compiler"
1894 fi
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 fi
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 } # ac_fn_c_check_header_mongrel
1902 cat >config.log <<_ACEOF
1903 This file contains any messages produced by compilers while
1904 running configure, to aid debugging if configure makes a mistake.
1906 It was created by TI IPC $as_me 3.0.0, which was
1907 generated by GNU Autoconf 2.69. Invocation command line was
1909 $ $0 $@
1911 _ACEOF
1912 exec 5>>config.log
1913 {
1914 cat <<_ASUNAME
1915 ## --------- ##
1916 ## Platform. ##
1917 ## --------- ##
1919 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1920 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1921 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1922 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1923 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1926 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1928 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1929 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1930 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1931 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1932 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1933 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1934 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1936 _ASUNAME
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 $as_echo "PATH: $as_dir"
1944 done
1945 IFS=$as_save_IFS
1947 } >&5
1949 cat >&5 <<_ACEOF
1952 ## ----------- ##
1953 ## Core tests. ##
1954 ## ----------- ##
1956 _ACEOF
1959 # Keep a trace of the command line.
1960 # Strip out --no-create and --no-recursion so they do not pile up.
1961 # Strip out --silent because we don't want to record it for future runs.
1962 # Also quote any args containing shell meta-characters.
1963 # Make two passes to allow for proper duplicate-argument suppression.
1964 ac_configure_args=
1965 ac_configure_args0=
1966 ac_configure_args1=
1967 ac_must_keep_next=false
1968 for ac_pass in 1 2
1969 do
1970 for ac_arg
1971 do
1972 case $ac_arg in
1973 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975 | -silent | --silent | --silen | --sile | --sil)
1976 continue ;;
1977 *\'*)
1978 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979 esac
1980 case $ac_pass in
1981 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 2)
1983 as_fn_append ac_configure_args1 " '$ac_arg'"
1984 if test $ac_must_keep_next = true; then
1985 ac_must_keep_next=false # Got value, back to normal.
1986 else
1987 case $ac_arg in
1988 *=* | --config-cache | -C | -disable-* | --disable-* \
1989 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991 | -with-* | --with-* | -without-* | --without-* | --x)
1992 case "$ac_configure_args0 " in
1993 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994 esac
1995 ;;
1996 -* ) ac_must_keep_next=true ;;
1997 esac
1998 fi
1999 as_fn_append ac_configure_args " '$ac_arg'"
2000 ;;
2001 esac
2002 done
2003 done
2004 { ac_configure_args0=; unset ac_configure_args0;}
2005 { ac_configure_args1=; unset ac_configure_args1;}
2007 # When interrupted or exit'd, cleanup temporary files, and complete
2008 # config.log. We remove comments because anyway the quotes in there
2009 # would cause problems or look ugly.
2010 # WARNING: Use '\'' to represent an apostrophe within the trap.
2011 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012 trap 'exit_status=$?
2013 # Save into config.log some information that might help in debugging.
2014 {
2015 echo
2017 $as_echo "## ---------------- ##
2018 ## Cache variables. ##
2019 ## ---------------- ##"
2020 echo
2021 # The following way of writing the cache mishandles newlines in values,
2022 (
2023 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in #(
2026 *${as_nl}*)
2027 case $ac_var in #(
2028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2030 esac
2031 case $ac_var in #(
2032 _ | IFS | as_nl) ;; #(
2033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2034 *) { eval $ac_var=; unset $ac_var;} ;;
2035 esac ;;
2036 esac
2037 done
2038 (set) 2>&1 |
2039 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2040 *${as_nl}ac_space=\ *)
2041 sed -n \
2042 "s/'\''/'\''\\\\'\'''\''/g;
2043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2044 ;; #(
2045 *)
2046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2047 ;;
2048 esac |
2049 sort
2050 )
2051 echo
2053 $as_echo "## ----------------- ##
2054 ## Output variables. ##
2055 ## ----------------- ##"
2056 echo
2057 for ac_var in $ac_subst_vars
2058 do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
2064 done | sort
2065 echo
2067 if test -n "$ac_subst_files"; then
2068 $as_echo "## ------------------- ##
2069 ## File substitutions. ##
2070 ## ------------------- ##"
2071 echo
2072 for ac_var in $ac_subst_files
2073 do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in
2076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 esac
2078 $as_echo "$ac_var='\''$ac_val'\''"
2079 done | sort
2080 echo
2081 fi
2083 if test -s confdefs.h; then
2084 $as_echo "## ----------- ##
2085 ## confdefs.h. ##
2086 ## ----------- ##"
2087 echo
2088 cat confdefs.h
2089 echo
2090 fi
2091 test "$ac_signal" != 0 &&
2092 $as_echo "$as_me: caught signal $ac_signal"
2093 $as_echo "$as_me: exit $exit_status"
2094 } >&5
2095 rm -f core *.core core.conftest.* &&
2096 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2097 exit $exit_status
2098 ' 0
2099 for ac_signal in 1 2 13 15; do
2100 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2101 done
2102 ac_signal=0
2104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2105 rm -f -r conftest* confdefs.h
2107 $as_echo "/* confdefs.h */" > confdefs.h
2109 # Predefined preprocessor variables.
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_NAME "$PACKAGE_NAME"
2113 _ACEOF
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2117 _ACEOF
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2121 _ACEOF
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_STRING "$PACKAGE_STRING"
2125 _ACEOF
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2129 _ACEOF
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_URL "$PACKAGE_URL"
2133 _ACEOF
2136 # Let the site file select an alternate cache file if it wants to.
2137 # Prefer an explicitly selected file to automatically selected ones.
2138 ac_site_file1=NONE
2139 ac_site_file2=NONE
2140 if test -n "$CONFIG_SITE"; then
2141 # We do not want a PATH search for config.site.
2142 case $CONFIG_SITE in #((
2143 -*) ac_site_file1=./$CONFIG_SITE;;
2144 */*) ac_site_file1=$CONFIG_SITE;;
2145 *) ac_site_file1=./$CONFIG_SITE;;
2146 esac
2147 elif test "x$prefix" != xNONE; then
2148 ac_site_file1=$prefix/share/config.site
2149 ac_site_file2=$prefix/etc/config.site
2150 else
2151 ac_site_file1=$ac_default_prefix/share/config.site
2152 ac_site_file2=$ac_default_prefix/etc/config.site
2153 fi
2154 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 do
2156 test "x$ac_site_file" = xNONE && continue
2157 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2159 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2160 sed 's/^/| /' "$ac_site_file" >&5
2161 . "$ac_site_file" \
2162 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 as_fn_error $? "failed to load site script $ac_site_file
2165 See \`config.log' for more details" "$LINENO" 5; }
2166 fi
2167 done
2169 if test -r "$cache_file"; then
2170 # Some versions of bash will fail to source /dev/null (special files
2171 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2172 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174 $as_echo "$as_me: loading cache $cache_file" >&6;}
2175 case $cache_file in
2176 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177 *) . "./$cache_file";;
2178 esac
2179 fi
2180 else
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182 $as_echo "$as_me: creating cache $cache_file" >&6;}
2183 >$cache_file
2184 fi
2186 # Check that the precious variables saved in the cache have kept the same
2187 # value.
2188 ac_cache_corrupted=false
2189 for ac_var in $ac_precious_vars; do
2190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2191 eval ac_new_set=\$ac_env_${ac_var}_set
2192 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2193 eval ac_new_val=\$ac_env_${ac_var}_value
2194 case $ac_old_set,$ac_new_set in
2195 set,)
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2198 ac_cache_corrupted=: ;;
2199 ,set)
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2202 ac_cache_corrupted=: ;;
2203 ,);;
2204 *)
2205 if test "x$ac_old_val" != "x$ac_new_val"; then
2206 # differences in whitespace do not lead to failure.
2207 ac_old_val_w=`echo x $ac_old_val`
2208 ac_new_val_w=`echo x $ac_new_val`
2209 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212 ac_cache_corrupted=:
2213 else
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216 eval $ac_var=\$ac_old_val
2217 fi
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2219 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2221 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2222 fi;;
2223 esac
2224 # Pass precious variables to config.status.
2225 if test "$ac_new_set" = set; then
2226 case $ac_new_val in
2227 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2228 *) ac_arg=$ac_var=$ac_new_val ;;
2229 esac
2230 case " $ac_configure_args " in
2231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2232 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2233 esac
2234 fi
2235 done
2236 if $ac_cache_corrupted; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 fi
2243 ## -------------------- ##
2244 ## Main body of script. ##
2245 ## -------------------- ##
2247 ac_ext=c
2248 ac_cpp='$CPP $CPPFLAGS'
2249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255 # Check common src files to ensure integrity of the package
2258 # Set auxiliary build tools directory
2259 ac_aux_dir=
2260 for ac_dir in linux/build-aux "$srcdir"/linux/build-aux; do
2261 if test -f "$ac_dir/install-sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install-sh -c"
2264 break
2265 elif test -f "$ac_dir/install.sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install.sh -c"
2268 break
2269 elif test -f "$ac_dir/shtool"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/shtool install -c"
2272 break
2273 fi
2274 done
2275 if test -z "$ac_aux_dir"; then
2276 as_fn_error $? "cannot find install-sh, install.sh, or shtool in linux/build-aux \"$srcdir\"/linux/build-aux" "$LINENO" 5
2277 fi
2279 # These three variables are undocumented and unsupported,
2280 # and are intended to be withdrawn in a future Autoconf release.
2281 # They can cause serious problems if a builder's source tree is in a directory
2282 # whose full name contains unusual characters.
2283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2289 # Initilize automake
2290 am__api_version='1.14'
2292 # Find a good install program. We prefer a C program (faster),
2293 # so one script is as good as another. But avoid the broken or
2294 # incompatible versions:
2295 # SysV /etc/install, /usr/sbin/install
2296 # SunOS /usr/etc/install
2297 # IRIX /sbin/install
2298 # AIX /bin/install
2299 # AmigaOS /C/install, which installs bootblocks on floppy discs
2300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2303 # OS/2's system install, which has a completely different semantic
2304 # ./install, which can be erroneously created by make from ./install.sh.
2305 # Reject install programs that cannot install multiple files.
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2307 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2308 if test -z "$INSTALL"; then
2309 if ${ac_cv_path_install+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 # Account for people who put trailing slashes in PATH elements.
2318 case $as_dir/ in #((
2319 ./ | .// | /[cC]/* | \
2320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2321 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2322 /usr/ucb/* ) ;;
2323 *)
2324 # OSF1 and SCO ODT 3.0 have their own names for install.
2325 # Don't use installbsd from OSF since it installs stuff as root
2326 # by default.
2327 for ac_prog in ginstall scoinst install; do
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2330 if test $ac_prog = install &&
2331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2332 # AIX install. It has an incompatible calling convention.
2333 :
2334 elif test $ac_prog = install &&
2335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336 # program-specific install script used by HP pwplus--don't use.
2337 :
2338 else
2339 rm -rf conftest.one conftest.two conftest.dir
2340 echo one > conftest.one
2341 echo two > conftest.two
2342 mkdir conftest.dir
2343 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2344 test -s conftest.one && test -s conftest.two &&
2345 test -s conftest.dir/conftest.one &&
2346 test -s conftest.dir/conftest.two
2347 then
2348 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2349 break 3
2350 fi
2351 fi
2352 fi
2353 done
2354 done
2355 ;;
2356 esac
2358 done
2359 IFS=$as_save_IFS
2361 rm -rf conftest.one conftest.two conftest.dir
2363 fi
2364 if test "${ac_cv_path_install+set}" = set; then
2365 INSTALL=$ac_cv_path_install
2366 else
2367 # As a last resort, use the slow shell script. Don't cache a
2368 # value for INSTALL within a source directory, because that will
2369 # break other packages using the cache if that directory is
2370 # removed, or if the value is a relative name.
2371 INSTALL=$ac_install_sh
2372 fi
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2375 $as_echo "$INSTALL" >&6; }
2377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2378 # It thinks the first close brace ends the variable substitution.
2379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2386 $as_echo_n "checking whether build environment is sane... " >&6; }
2387 # Reject unsafe characters in $srcdir or the absolute working directory
2388 # name. Accept space and tab only in the latter.
2389 am_lf='
2390 '
2391 case `pwd` in
2392 *[\\\"\#\$\&\'\`$am_lf]*)
2393 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2394 esac
2395 case $srcdir in
2396 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2397 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2398 esac
2400 # Do 'set' in a subshell so we don't clobber the current shell's
2401 # arguments. Must try -L first in case configure is actually a
2402 # symlink; some systems play weird games with the mod time of symlinks
2403 # (eg FreeBSD returns the mod time of the symlink's containing
2404 # directory).
2405 if (
2406 am_has_slept=no
2407 for am_try in 1 2; do
2408 echo "timestamp, slept: $am_has_slept" > conftest.file
2409 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2410 if test "$*" = "X"; then
2411 # -L didn't work.
2412 set X `ls -t "$srcdir/configure" conftest.file`
2413 fi
2414 if test "$*" != "X $srcdir/configure conftest.file" \
2415 && test "$*" != "X conftest.file $srcdir/configure"; then
2417 # If neither matched, then we have a broken ls. This can happen
2418 # if, for instance, CONFIG_SHELL is bash and it inherits a
2419 # broken ls alias from the environment. This has actually
2420 # happened. Such a system could not be considered "sane".
2421 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2422 alias in your environment" "$LINENO" 5
2423 fi
2424 if test "$2" = conftest.file || test $am_try -eq 2; then
2425 break
2426 fi
2427 # Just in case.
2428 sleep 1
2429 am_has_slept=yes
2430 done
2431 test "$2" = conftest.file
2432 )
2433 then
2434 # Ok.
2435 :
2436 else
2437 as_fn_error $? "newly created file is older than distributed files!
2438 Check your system clock" "$LINENO" 5
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441 $as_echo "yes" >&6; }
2442 # If we didn't sleep, we still need to ensure time stamps of config.status and
2443 # generated files are strictly newer.
2444 am_sleep_pid=
2445 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2446 ( sleep 1 ) &
2447 am_sleep_pid=$!
2448 fi
2450 rm -f conftest.file
2452 test "$program_prefix" != NONE &&
2453 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2454 # Use a double $ so make ignores it.
2455 test "$program_suffix" != NONE &&
2456 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2457 # Double any \ or $.
2458 # By default was `s,x,x', remove it if useless.
2459 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2460 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2462 # expand $ac_aux_dir to an absolute path
2463 am_aux_dir=`cd $ac_aux_dir && pwd`
2465 if test x"${MISSING+set}" != xset; then
2466 case $am_aux_dir in
2467 *\ * | *\ *)
2468 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2469 *)
2470 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2471 esac
2472 fi
2473 # Use eval to expand $SHELL
2474 if eval "$MISSING --is-lightweight"; then
2475 am_missing_run="$MISSING "
2476 else
2477 am_missing_run=
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2479 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2480 fi
2482 if test x"${install_sh}" != xset; then
2483 case $am_aux_dir in
2484 *\ * | *\ *)
2485 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2486 *)
2487 install_sh="\${SHELL} $am_aux_dir/install-sh"
2488 esac
2489 fi
2491 # Installed binaries are usually stripped using 'strip' when the user
2492 # run "make install-strip". However 'strip' might not be the right
2493 # tool to use in cross-compilation environments, therefore Automake
2494 # will honor the 'STRIP' environment variable to overrule this program.
2495 if test "$cross_compiling" != no; then
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}strip; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if ${ac_cv_prog_STRIP+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$STRIP"; then
2505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2522 fi
2523 fi
2524 STRIP=$ac_cv_prog_STRIP
2525 if test -n "$STRIP"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2527 $as_echo "$STRIP" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2534 fi
2535 if test -z "$ac_cv_prog_STRIP"; then
2536 ac_ct_STRIP=$STRIP
2537 # Extract the first word of "strip", so it can be a program name with args.
2538 set dummy strip; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$ac_ct_STRIP"; then
2545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 ac_cv_prog_ac_ct_STRIP="strip"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2562 fi
2563 fi
2564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2565 if test -n "$ac_ct_STRIP"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2567 $as_echo "$ac_ct_STRIP" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2573 if test "x$ac_ct_STRIP" = x; then
2574 STRIP=":"
2575 else
2576 case $cross_compiling:$ac_tool_warned in
2577 yes:)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2580 ac_tool_warned=yes ;;
2581 esac
2582 STRIP=$ac_ct_STRIP
2583 fi
2584 else
2585 STRIP="$ac_cv_prog_STRIP"
2586 fi
2588 fi
2589 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2592 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2593 if test -z "$MKDIR_P"; then
2594 if ${ac_cv_path_mkdir+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_prog in mkdir gmkdir; do
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2605 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2606 'mkdir (GNU coreutils) '* | \
2607 'mkdir (coreutils) '* | \
2608 'mkdir (fileutils) '4.1*)
2609 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2610 break 3;;
2611 esac
2612 done
2613 done
2614 done
2615 IFS=$as_save_IFS
2617 fi
2619 test -d ./--version && rmdir ./--version
2620 if test "${ac_cv_path_mkdir+set}" = set; then
2621 MKDIR_P="$ac_cv_path_mkdir -p"
2622 else
2623 # As a last resort, use the slow shell script. Don't cache a
2624 # value for MKDIR_P within a source directory, because that will
2625 # break other packages using the cache if that directory is
2626 # removed, or if the value is a relative name.
2627 MKDIR_P="$ac_install_sh -d"
2628 fi
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2631 $as_echo "$MKDIR_P" >&6; }
2633 for ac_prog in gawk mawk nawk awk
2634 do
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_AWK+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$AWK"; then
2643 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_AWK="$ac_prog"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2660 fi
2661 fi
2662 AWK=$ac_cv_prog_AWK
2663 if test -n "$AWK"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2665 $as_echo "$AWK" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2672 test -n "$AWK" && break
2673 done
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2676 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2677 set x ${MAKE-make}
2678 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2679 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 cat >conftest.make <<\_ACEOF
2683 SHELL = /bin/sh
2684 all:
2685 @echo '@@@%%%=$(MAKE)=@@@%%%'
2686 _ACEOF
2687 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2688 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2689 *@@@%%%=?*=@@@%%%*)
2690 eval ac_cv_prog_make_${ac_make}_set=yes;;
2691 *)
2692 eval ac_cv_prog_make_${ac_make}_set=no;;
2693 esac
2694 rm -f conftest.make
2695 fi
2696 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2698 $as_echo "yes" >&6; }
2699 SET_MAKE=
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2703 SET_MAKE="MAKE=${MAKE-make}"
2704 fi
2706 rm -rf .tst 2>/dev/null
2707 mkdir .tst 2>/dev/null
2708 if test -d .tst; then
2709 am__leading_dot=.
2710 else
2711 am__leading_dot=_
2712 fi
2713 rmdir .tst 2>/dev/null
2715 # Check whether --enable-silent-rules was given.
2716 if test "${enable_silent_rules+set}" = set; then :
2717 enableval=$enable_silent_rules;
2718 fi
2720 case $enable_silent_rules in # (((
2721 yes) AM_DEFAULT_VERBOSITY=0;;
2722 no) AM_DEFAULT_VERBOSITY=1;;
2723 *) AM_DEFAULT_VERBOSITY=1;;
2724 esac
2725 am_make=${MAKE-make}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2727 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2728 if ${am_cv_make_support_nested_variables+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if $as_echo 'TRUE=$(BAR$(V))
2732 BAR0=false
2733 BAR1=true
2734 V=1
2735 am__doit:
2736 @$(TRUE)
2737 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2738 am_cv_make_support_nested_variables=yes
2739 else
2740 am_cv_make_support_nested_variables=no
2741 fi
2742 fi
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2744 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2745 if test $am_cv_make_support_nested_variables = yes; then
2746 AM_V='$(V)'
2747 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2748 else
2749 AM_V=$AM_DEFAULT_VERBOSITY
2750 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2751 fi
2752 AM_BACKSLASH='\'
2754 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2755 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2756 # is not polluted with repeated "-I."
2757 am__isrc=' -I$(srcdir)'
2758 # test to see if srcdir already configured
2759 if test -f $srcdir/config.status; then
2760 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2761 fi
2762 fi
2764 # test whether we have cygpath
2765 if test -z "$CYGPATH_W"; then
2766 if (cygpath --version) >/dev/null 2>/dev/null; then
2767 CYGPATH_W='cygpath -w'
2768 else
2769 CYGPATH_W=echo
2770 fi
2771 fi
2774 # Define the identity of the package.
2775 PACKAGE='ti-ipc'
2776 VERSION='3.0.0'
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE "$PACKAGE"
2781 _ACEOF
2784 cat >>confdefs.h <<_ACEOF
2785 #define VERSION "$VERSION"
2786 _ACEOF
2788 # Some tools Automake needs.
2790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2804 # For better backward compatibility. To be removed once Automake 1.9.x
2805 # dies out for good. For more background, see:
2806 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2807 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2808 mkdir_p='$(MKDIR_P)'
2810 # We need awk for the "check" target. The system "awk" is bad on
2811 # some platforms.
2812 # Always define AMTAR for backward compatibility. Yes, it's still used
2813 # in the wild :-( We should find a proper way to deprecate it ...
2814 AMTAR='$${TAR-tar}'
2817 # We'll loop over all known methods to create a tar archive until one works.
2818 _am_tools='gnutar pax cpio none'
2820 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2827 # POSIX will say in a future version that running "rm -f" with no argument
2828 # is OK; and we want to be able to make that assumption in our Makefile
2829 # recipes. So use an aggressive probe to check that the usage we want is
2830 # actually supported "in the wild" to an acceptable degree.
2831 # See automake bug#10828.
2832 # To make any issue more visible, cause the running configure to be aborted
2833 # by default if the 'rm' program in use doesn't match our expectations; the
2834 # user can still override this though.
2835 if rm -f && rm -fr && rm -rf; then : OK; else
2836 cat >&2 <<'END'
2837 Oops!
2839 Your 'rm' program seems unable to run without file operands specified
2840 on the command line, even when the '-f' option is present. This is contrary
2841 to the behaviour of most rm programs out there, and not conforming with
2842 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2844 Please tell bug-automake@gnu.org about your system, including the value
2845 of your $PATH and any error possibly output before this message. This
2846 can help us improve future automake versions.
2848 END
2849 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2850 echo 'Configuration will proceed anyway, since you have set the' >&2
2851 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2852 echo >&2
2853 else
2854 cat >&2 <<'END'
2855 Aborting the configuration process, to ensure you take notice of the issue.
2857 You can download and install GNU coreutils to get an 'rm' implementation
2858 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2860 If you want to complete the configuration process using your problematic
2861 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2862 to "yes", and re-run configure.
2864 END
2865 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2866 fi
2867 fi
2869 # Disabling maintainer mode to prevent rebuild of configure script
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2872 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2873 # Check whether --enable-maintainer-mode was given.
2874 if test "${enable_maintainer_mode+set}" = set; then :
2875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2876 else
2877 USE_MAINTAINER_MODE=no
2878 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2881 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2882 if test $USE_MAINTAINER_MODE = yes; then
2883 MAINTAINER_MODE_TRUE=
2884 MAINTAINER_MODE_FALSE='#'
2885 else
2886 MAINTAINER_MODE_TRUE='#'
2887 MAINTAINER_MODE_FALSE=
2888 fi
2890 MAINT=$MAINTAINER_MODE_TRUE
2894 # Initalize libtool but disable fortran check
2895 case `pwd` in
2896 *\ * | *\ *)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2898 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2899 esac
2903 macro_version='2.4.2'
2904 macro_revision='1.3337'
2918 ltmain="$ac_aux_dir/ltmain.sh"
2920 # Make sure we can run config.sub.
2921 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2922 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2925 $as_echo_n "checking build system type... " >&6; }
2926 if ${ac_cv_build+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 ac_build_alias=$build_alias
2930 test "x$ac_build_alias" = x &&
2931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2932 test "x$ac_build_alias" = x &&
2933 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2934 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2935 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2939 $as_echo "$ac_cv_build" >&6; }
2940 case $ac_cv_build in
2941 *-*-*) ;;
2942 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2943 esac
2944 build=$ac_cv_build
2945 ac_save_IFS=$IFS; IFS='-'
2946 set x $ac_cv_build
2947 shift
2948 build_cpu=$1
2949 build_vendor=$2
2950 shift; shift
2951 # Remember, the first character of IFS is used to create $*,
2952 # except with old shells:
2953 build_os=$*
2954 IFS=$ac_save_IFS
2955 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2959 $as_echo_n "checking host system type... " >&6; }
2960 if ${ac_cv_host+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test "x$host_alias" = x; then
2964 ac_cv_host=$ac_cv_build
2965 else
2966 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2967 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2968 fi
2970 fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2972 $as_echo "$ac_cv_host" >&6; }
2973 case $ac_cv_host in
2974 *-*-*) ;;
2975 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2976 esac
2977 host=$ac_cv_host
2978 ac_save_IFS=$IFS; IFS='-'
2979 set x $ac_cv_host
2980 shift
2981 host_cpu=$1
2982 host_vendor=$2
2983 shift; shift
2984 # Remember, the first character of IFS is used to create $*,
2985 # except with old shells:
2986 host_os=$*
2987 IFS=$ac_save_IFS
2988 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2991 # Backslashify metacharacters that are still active within
2992 # double-quoted strings.
2993 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2995 # Same as above, but do not quote variable references.
2996 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2998 # Sed substitution to delay expansion of an escaped shell variable in a
2999 # double_quote_subst'ed string.
3000 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3002 # Sed substitution to delay expansion of an escaped single quote.
3003 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3005 # Sed substitution to avoid accidental globbing in evaled expressions
3006 no_glob_subst='s/\*/\\\*/g'
3008 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3009 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3010 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3013 $as_echo_n "checking how to print strings... " >&6; }
3014 # Test print first, because it will be a builtin if present.
3015 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3016 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3017 ECHO='print -r --'
3018 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3019 ECHO='printf %s\n'
3020 else
3021 # Use this function as a fallback that always works.
3022 func_fallback_echo ()
3023 {
3024 eval 'cat <<_LTECHO_EOF
3025 $1
3026 _LTECHO_EOF'
3027 }
3028 ECHO='func_fallback_echo'
3029 fi
3031 # func_echo_all arg...
3032 # Invoke $ECHO with all args, space-separated.
3033 func_echo_all ()
3034 {
3035 $ECHO ""
3036 }
3038 case "$ECHO" in
3039 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3040 $as_echo "printf" >&6; } ;;
3041 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3042 $as_echo "print -r" >&6; } ;;
3043 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3044 $as_echo "cat" >&6; } ;;
3045 esac
3060 DEPDIR="${am__leading_dot}deps"
3062 ac_config_commands="$ac_config_commands depfiles"
3065 am_make=${MAKE-make}
3066 cat > confinc << 'END'
3067 am__doit:
3068 @echo this is the am__doit target
3069 .PHONY: am__doit
3070 END
3071 # If we don't find an include directive, just comment out the code.
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3073 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3074 am__include="#"
3075 am__quote=
3076 _am_result=none
3077 # First try GNU make style include.
3078 echo "include confinc" > confmf
3079 # Ignore all kinds of additional output from 'make'.
3080 case `$am_make -s -f confmf 2> /dev/null` in #(
3081 *the\ am__doit\ target*)
3082 am__include=include
3083 am__quote=
3084 _am_result=GNU
3085 ;;
3086 esac
3087 # Now try BSD make style include.
3088 if test "$am__include" = "#"; then
3089 echo '.include "confinc"' > confmf
3090 case `$am_make -s -f confmf 2> /dev/null` in #(
3091 *the\ am__doit\ target*)
3092 am__include=.include
3093 am__quote="\""
3094 _am_result=BSD
3095 ;;
3096 esac
3097 fi
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3101 $as_echo "$_am_result" >&6; }
3102 rm -f confinc confmf
3104 # Check whether --enable-dependency-tracking was given.
3105 if test "${enable_dependency_tracking+set}" = set; then :
3106 enableval=$enable_dependency_tracking;
3107 fi
3109 if test "x$enable_dependency_tracking" != xno; then
3110 am_depcomp="$ac_aux_dir/depcomp"
3111 AMDEPBACKSLASH='\'
3112 am__nodep='_no'
3113 fi
3114 if test "x$enable_dependency_tracking" != xno; then
3115 AMDEP_TRUE=
3116 AMDEP_FALSE='#'
3117 else
3118 AMDEP_TRUE='#'
3119 AMDEP_FALSE=
3120 fi
3123 ac_ext=c
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3166 fi
3167 if test -z "$ac_cv_prog_CC"; then
3168 ac_ct_CC=$CC
3169 # Extract the first word of "gcc", so it can be a program name with args.
3170 set dummy gcc; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$ac_ct_CC"; then
3177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_ac_ct_CC="gcc"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190 done
3191 done
3192 IFS=$as_save_IFS
3194 fi
3195 fi
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3199 $as_echo "$ac_ct_CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3205 if test "x$ac_ct_CC" = x; then
3206 CC=""
3207 else
3208 case $cross_compiling:$ac_tool_warned in
3209 yes:)
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3213 esac
3214 CC=$ac_ct_CC
3215 fi
3216 else
3217 CC="$ac_cv_prog_CC"
3218 fi
3220 if test -z "$CC"; then
3221 if test -n "$ac_tool_prefix"; then
3222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3223 set dummy ${ac_tool_prefix}cc; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_CC+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_CC="${ac_tool_prefix}cc"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 break 2
3242 fi
3243 done
3244 done
3245 IFS=$as_save_IFS
3247 fi
3248 fi
3249 CC=$ac_cv_prog_CC
3250 if test -n "$CC"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252 $as_echo "$CC" >&6; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3259 fi
3260 fi
3261 if test -z "$CC"; then
3262 # Extract the first word of "cc", so it can be a program name with args.
3263 set dummy cc; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3271 else
3272 ac_prog_rejected=no
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3281 ac_prog_rejected=yes
3282 continue
3283 fi
3284 ac_cv_prog_CC="cc"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288 done
3289 done
3290 IFS=$as_save_IFS
3292 if test $ac_prog_rejected = yes; then
3293 # We found a bogon in the path, so make sure we never use it.
3294 set dummy $ac_cv_prog_CC
3295 shift
3296 if test $# != 0; then
3297 # We chose a different compiler from the bogus one.
3298 # However, it has the same basename, so the bogon will be chosen
3299 # first if we set CC to just the basename; use the full file name.
3300 shift
3301 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3302 fi
3303 fi
3304 fi
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 $as_echo "$CC" >&6; }
3310 else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 fi
3316 fi
3317 if test -z "$CC"; then
3318 if test -n "$ac_tool_prefix"; then
3319 for ac_prog in cl.exe
3320 do
3321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if ${ac_cv_prog_CC+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 else
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_exec_ext in '' $ac_executable_extensions; do
3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3341 fi
3342 done
3343 done
3344 IFS=$as_save_IFS
3346 fi
3347 fi
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 fi
3358 test -n "$CC" && break
3359 done
3360 fi
3361 if test -z "$CC"; then
3362 ac_ct_CC=$CC
3363 for ac_prog in cl.exe
3364 do
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test -n "$ac_ct_CC"; then
3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_ac_ct_CC="$ac_prog"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386 done
3387 done
3388 IFS=$as_save_IFS
3390 fi
3391 fi
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 $as_echo "$ac_ct_CC" >&6; }
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3402 test -n "$ac_ct_CC" && break
3403 done
3405 if test "x$ac_ct_CC" = x; then
3406 CC=""
3407 else
3408 case $cross_compiling:$ac_tool_warned in
3409 yes:)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3413 esac
3414 CC=$ac_ct_CC
3415 fi
3416 fi
3418 fi
3421 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "no acceptable C compiler found in \$PATH
3424 See \`config.log' for more details" "$LINENO" 5; }
3426 # Provide some information about the compiler.
3427 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3428 set X $ac_compile
3429 ac_compiler=$2
3430 for ac_option in --version -v -V -qversion; do
3431 { { ac_try="$ac_compiler $ac_option >&5"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3439 ac_status=$?
3440 if test -s conftest.err; then
3441 sed '10a\
3442 ... rest of stderr output deleted ...
3443 10q' conftest.err >conftest.er1
3444 cat conftest.er1 >&5
3445 fi
3446 rm -f conftest.er1 conftest.err
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }
3449 done
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3454 int
3455 main ()
3456 {
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 ac_clean_files_save=$ac_clean_files
3463 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3464 # Try to create an executable without -o first, disregard a.out.
3465 # It will help us diagnose broken compilers, and finding out an intuition
3466 # of exeext.
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3468 $as_echo_n "checking whether the C compiler works... " >&6; }
3469 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3471 # The possible output files:
3472 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3474 ac_rmfiles=
3475 for ac_file in $ac_files
3476 do
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3480 esac
3481 done
3482 rm -f $ac_rmfiles
3484 if { { ac_try="$ac_link_default"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490 $as_echo "$ac_try_echo"; } >&5
3491 (eval "$ac_link_default") 2>&5
3492 ac_status=$?
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }; then :
3495 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3496 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3497 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3498 # so that the user can short-circuit this test for compilers unknown to
3499 # Autoconf.
3500 for ac_file in $ac_files ''
3501 do
3502 test -f "$ac_file" || continue
3503 case $ac_file in
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3505 ;;
3506 [ab].out )
3507 # We found the default executable, but exeext='' is most
3508 # certainly right.
3509 break;;
3510 *.* )
3511 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3512 then :; else
3513 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3514 fi
3515 # We set ac_cv_exeext here because the later test for it is not
3516 # safe: cross compilers may not add the suffix if given an `-o'
3517 # argument, so we may need to know it at that point already.
3518 # Even if this section looks crufty: it has the advantage of
3519 # actually working.
3520 break;;
3521 * )
3522 break;;
3523 esac
3524 done
3525 test "$ac_cv_exeext" = no && ac_cv_exeext=
3527 else
3528 ac_file=''
3529 fi
3530 if test -z "$ac_file"; then :
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 $as_echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error 77 "C compiler cannot create executables
3539 See \`config.log' for more details" "$LINENO" 5; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3542 $as_echo "yes" >&6; }
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3545 $as_echo_n "checking for C compiler default output file name... " >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3547 $as_echo "$ac_file" >&6; }
3548 ac_exeext=$ac_cv_exeext
3550 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3551 ac_clean_files=$ac_clean_files_save
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3553 $as_echo_n "checking for suffix of executables... " >&6; }
3554 if { { ac_try="$ac_link"
3555 case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_link") 2>&5
3562 ac_status=$?
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }; then :
3565 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3566 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3567 # work properly (i.e., refer to `conftest.exe'), while it won't with
3568 # `rm'.
3569 for ac_file in conftest.exe conftest conftest.*; do
3570 test -f "$ac_file" || continue
3571 case $ac_file in
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3574 break;;
3575 * ) break;;
3576 esac
3577 done
3578 else
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3582 See \`config.log' for more details" "$LINENO" 5; }
3583 fi
3584 rm -f conftest conftest$ac_cv_exeext
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3586 $as_echo "$ac_cv_exeext" >&6; }
3588 rm -f conftest.$ac_ext
3589 EXEEXT=$ac_cv_exeext
3590 ac_exeext=$EXEEXT
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593 #include <stdio.h>
3594 int
3595 main ()
3596 {
3597 FILE *f = fopen ("conftest.out", "w");
3598 return ferror (f) || fclose (f) != 0;
3600 ;
3601 return 0;
3602 }
3603 _ACEOF
3604 ac_clean_files="$ac_clean_files conftest.out"
3605 # Check that the compiler produces executables we can run. If not, either
3606 # the compiler is broken, or we cross compile.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3608 $as_echo_n "checking whether we are cross compiling... " >&6; }
3609 if test "$cross_compiling" != yes; then
3610 { { ac_try="$ac_link"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_link") 2>&5
3618 ac_status=$?
3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }
3621 if { ac_try='./conftest$ac_cv_exeext'
3622 { { case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_try") 2>&5
3629 ac_status=$?
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }; }; then
3632 cross_compiling=no
3633 else
3634 if test "$cross_compiling" = maybe; then
3635 cross_compiling=yes
3636 else
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error $? "cannot run C compiled programs.
3640 If you meant to cross compile, use \`--host'.
3641 See \`config.log' for more details" "$LINENO" 5; }
3642 fi
3643 fi
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3646 $as_echo "$cross_compiling" >&6; }
3648 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3649 ac_clean_files=$ac_clean_files_save
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3651 $as_echo_n "checking for suffix of object files... " >&6; }
3652 if ${ac_cv_objext+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3658 int
3659 main ()
3660 {
3662 ;
3663 return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.o conftest.obj
3667 if { { ac_try="$ac_compile"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_compile") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; then :
3678 for ac_file in conftest.o conftest.obj conftest.*; do
3679 test -f "$ac_file" || continue;
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3683 break;;
3684 esac
3685 done
3686 else
3687 $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error $? "cannot compute suffix of object files: cannot compile
3693 See \`config.log' for more details" "$LINENO" 5; }
3694 fi
3695 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3698 $as_echo "$ac_cv_objext" >&6; }
3699 OBJEXT=$ac_cv_objext
3700 ac_objext=$OBJEXT
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3702 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3703 if ${ac_cv_c_compiler_gnu+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3709 int
3710 main ()
3711 {
3712 #ifndef __GNUC__
3713 choke me
3714 #endif
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_compiler_gnu=yes
3722 else
3723 ac_compiler_gnu=no
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3730 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3731 if test $ac_compiler_gnu = yes; then
3732 GCC=yes
3733 else
3734 GCC=
3735 fi
3736 ac_test_CFLAGS=${CFLAGS+set}
3737 ac_save_CFLAGS=$CFLAGS
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3739 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3740 if ${ac_cv_prog_cc_g+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 ac_save_c_werror_flag=$ac_c_werror_flag
3744 ac_c_werror_flag=yes
3745 ac_cv_prog_cc_g=no
3746 CFLAGS="-g"
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3750 int
3751 main ()
3752 {
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_cv_prog_cc_g=yes
3760 else
3761 CFLAGS=""
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3765 int
3766 main ()
3767 {
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3775 else
3776 ac_c_werror_flag=$ac_save_c_werror_flag
3777 CFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3781 int
3782 main ()
3783 {
3785 ;
3786 return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_g=yes
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 fi
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 fi
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 ac_c_werror_flag=$ac_save_c_werror_flag
3798 fi
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3800 $as_echo "$ac_cv_prog_cc_g" >&6; }
3801 if test "$ac_test_CFLAGS" = set; then
3802 CFLAGS=$ac_save_CFLAGS
3803 elif test $ac_cv_prog_cc_g = yes; then
3804 if test "$GCC" = yes; then
3805 CFLAGS="-g -O2"
3806 else
3807 CFLAGS="-g"
3808 fi
3809 else
3810 if test "$GCC" = yes; then
3811 CFLAGS="-O2"
3812 else
3813 CFLAGS=
3814 fi
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3818 if ${ac_cv_prog_cc_c89+:} false; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 ac_cv_prog_cc_c89=no
3822 ac_save_CC=$CC
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <stdarg.h>
3826 #include <stdio.h>
3827 struct stat;
3828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3829 struct buf { int x; };
3830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3831 static char *e (p, i)
3832 char **p;
3833 int i;
3834 {
3835 return p[i];
3836 }
3837 static char *f (char * (*g) (char **, int), char **p, ...)
3838 {
3839 char *s;
3840 va_list v;
3841 va_start (v,p);
3842 s = g (p, va_arg (v,int));
3843 va_end (v);
3844 return s;
3845 }
3847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3848 function prototypes and stuff, but not '\xHH' hex character constants.
3849 These don't provoke an error unfortunately, instead are silently treated
3850 as 'x'. The following induces an error, until -std is added to get
3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3852 array size at least. It's necessary to write '\x00'==0 to get something
3853 that's true only with -std. */
3854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3857 inside strings and character constants. */
3858 #define FOO(x) 'x'
3859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3861 int test (int i, double x);
3862 struct s1 {int (*f) (int a);};
3863 struct s2 {int (*f) (double a);};
3864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3865 int argc;
3866 char **argv;
3867 int
3868 main ()
3869 {
3870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3877 do
3878 CC="$ac_save_CC $ac_arg"
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_prog_cc_c89=$ac_arg
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext
3883 test "x$ac_cv_prog_cc_c89" != "xno" && break
3884 done
3885 rm -f conftest.$ac_ext
3886 CC=$ac_save_CC
3888 fi
3889 # AC_CACHE_VAL
3890 case "x$ac_cv_prog_cc_c89" in
3891 x)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3893 $as_echo "none needed" >&6; } ;;
3894 xno)
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3896 $as_echo "unsupported" >&6; } ;;
3897 *)
3898 CC="$CC $ac_cv_prog_cc_c89"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3901 esac
3902 if test "x$ac_cv_prog_cc_c89" != xno; then :
3904 fi
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 ac_ext=c
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3918 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3919 if ${am_cv_prog_cc_c_o+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3925 int
3926 main ()
3927 {
3929 ;
3930 return 0;
3931 }
3932 _ACEOF
3933 # Make sure it works both with $CC and with simple cc.
3934 # Following AC_PROG_CC_C_O, we do the test twice because some
3935 # compilers refuse to overwrite an existing .o file with -o,
3936 # though they will create one.
3937 am_cv_prog_cc_c_o=yes
3938 for am_i in 1 2; do
3939 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3940 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } \
3944 && test -f conftest2.$ac_objext; then
3945 : OK
3946 else
3947 am_cv_prog_cc_c_o=no
3948 break
3949 fi
3950 done
3951 rm -f core conftest*
3952 unset am_i
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3955 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3956 if test "$am_cv_prog_cc_c_o" != yes; then
3957 # Losing compiler, so override with the script.
3958 # FIXME: It is wrong to rewrite CC.
3959 # But if we don't then we get into trouble of one sort or another.
3960 # A longer-term fix would be to have automake use am__CC in this case,
3961 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3962 CC="$am_aux_dir/compile $CC"
3963 fi
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971 depcc="$CC" am_compiler_list=
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3974 $as_echo_n "checking dependency style of $depcc... " >&6; }
3975 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3979 # We make a subdir and do the tests there. Otherwise we can end up
3980 # making bogus files that we don't know about and never remove. For
3981 # instance it was reported that on HP-UX the gcc test will end up
3982 # making a dummy file named 'D' -- because '-MD' means "put the output
3983 # in D".
3984 rm -rf conftest.dir
3985 mkdir conftest.dir
3986 # Copy depcomp to subdir because otherwise we won't find it if we're
3987 # using a relative directory.
3988 cp "$am_depcomp" conftest.dir
3989 cd conftest.dir
3990 # We will build objects and dependencies in a subdirectory because
3991 # it helps to detect inapplicable dependency modes. For instance
3992 # both Tru64's cc and ICC support -MD to output dependencies as a
3993 # side effect of compilation, but ICC will put the dependencies in
3994 # the current directory while Tru64 will put them in the object
3995 # directory.
3996 mkdir sub
3998 am_cv_CC_dependencies_compiler_type=none
3999 if test "$am_compiler_list" = ""; then
4000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4001 fi
4002 am__universal=false
4003 case " $depcc " in #(
4004 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4005 esac
4007 for depmode in $am_compiler_list; do
4008 # Setup a source with many dependencies, because some compilers
4009 # like to wrap large dependency lists on column 80 (with \), and
4010 # we should not choose a depcomp mode which is confused by this.
4011 #
4012 # We need to recreate these files for each test, as the compiler may
4013 # overwrite some of them when testing with obscure command lines.
4014 # This happens at least with the AIX C compiler.
4015 : > sub/conftest.c
4016 for i in 1 2 3 4 5 6; do
4017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4018 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4019 # Solaris 10 /bin/sh.
4020 echo '/* dummy */' > sub/conftst$i.h
4021 done
4022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4024 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4025 # mode. It turns out that the SunPro C++ compiler does not properly
4026 # handle '-M -o', and we need to detect this. Also, some Intel
4027 # versions had trouble with output in subdirs.
4028 am__obj=sub/conftest.${OBJEXT-o}
4029 am__minus_obj="-o $am__obj"
4030 case $depmode in
4031 gcc)
4032 # This depmode causes a compiler race in universal mode.
4033 test "$am__universal" = false || continue
4034 ;;
4035 nosideeffect)
4036 # After this tag, mechanisms are not by side-effect, so they'll
4037 # only be used when explicitly requested.
4038 if test "x$enable_dependency_tracking" = xyes; then
4039 continue
4040 else
4041 break
4042 fi
4043 ;;
4044 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4045 # This compiler won't grok '-c -o', but also, the minuso test has
4046 # not run yet. These depmodes are late enough in the game, and
4047 # so weak that their functioning should not be impacted.
4048 am__obj=conftest.${OBJEXT-o}
4049 am__minus_obj=
4050 ;;
4051 none) break ;;
4052 esac
4053 if depmode=$depmode \
4054 source=sub/conftest.c object=$am__obj \
4055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4057 >/dev/null 2>conftest.err &&
4058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4062 # icc doesn't choke on unknown options, it will just issue warnings
4063 # or remarks (even with -Werror). So we grep stderr for any message
4064 # that says an option was ignored or not supported.
4065 # When given -MP, icc 7.0 and 7.1 complain thusly:
4066 # icc: Command line warning: ignoring option '-M'; no argument required
4067 # The diagnosis changed in icc 8.0:
4068 # icc: Command line remark: option '-MP' not supported
4069 if (grep 'ignoring option' conftest.err ||
4070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4071 am_cv_CC_dependencies_compiler_type=$depmode
4072 break
4073 fi
4074 fi
4075 done
4077 cd ..
4078 rm -rf conftest.dir
4079 else
4080 am_cv_CC_dependencies_compiler_type=none
4081 fi
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4085 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4086 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4088 if
4089 test "x$enable_dependency_tracking" != xno \
4090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4091 am__fastdepCC_TRUE=
4092 am__fastdepCC_FALSE='#'
4093 else
4094 am__fastdepCC_TRUE='#'
4095 am__fastdepCC_FALSE=
4096 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4100 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4101 if ${ac_cv_path_SED+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4105 for ac_i in 1 2 3 4 5 6 7; do
4106 ac_script="$ac_script$as_nl$ac_script"
4107 done
4108 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4109 { ac_script=; unset ac_script;}
4110 if test -z "$SED"; then
4111 ac_path_SED_found=false
4112 # Loop through the user's path and test for each of PROGNAME-LIST
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_prog in sed gsed; do
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4121 as_fn_executable_p "$ac_path_SED" || continue
4122 # Check for GNU ac_path_SED and select it if it is found.
4123 # Check for GNU $ac_path_SED
4124 case `"$ac_path_SED" --version 2>&1` in
4125 *GNU*)
4126 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4127 *)
4128 ac_count=0
4129 $as_echo_n 0123456789 >"conftest.in"
4130 while :
4131 do
4132 cat "conftest.in" "conftest.in" >"conftest.tmp"
4133 mv "conftest.tmp" "conftest.in"
4134 cp "conftest.in" "conftest.nl"
4135 $as_echo '' >> "conftest.nl"
4136 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138 as_fn_arith $ac_count + 1 && ac_count=$as_val
4139 if test $ac_count -gt ${ac_path_SED_max-0}; then
4140 # Best one so far, save it but keep looking for a better one
4141 ac_cv_path_SED="$ac_path_SED"
4142 ac_path_SED_max=$ac_count
4143 fi
4144 # 10*(2^10) chars as input seems more than enough
4145 test $ac_count -gt 10 && break
4146 done
4147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4148 esac
4150 $ac_path_SED_found && break 3
4151 done
4152 done
4153 done
4154 IFS=$as_save_IFS
4155 if test -z "$ac_cv_path_SED"; then
4156 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4157 fi
4158 else
4159 ac_cv_path_SED=$SED
4160 fi
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4164 $as_echo "$ac_cv_path_SED" >&6; }
4165 SED="$ac_cv_path_SED"
4166 rm -f conftest.sed
4168 test -z "$SED" && SED=sed
4169 Xsed="$SED -e 1s/^X//"
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4182 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4183 if ${ac_cv_path_GREP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -z "$GREP"; then
4187 ac_path_GREP_found=false
4188 # Loop through the user's path and test for each of PROGNAME-LIST
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_prog in grep ggrep; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4197 as_fn_executable_p "$ac_path_GREP" || continue
4198 # Check for GNU ac_path_GREP and select it if it is found.
4199 # Check for GNU $ac_path_GREP
4200 case `"$ac_path_GREP" --version 2>&1` in
4201 *GNU*)
4202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4203 *)
4204 ac_count=0
4205 $as_echo_n 0123456789 >"conftest.in"
4206 while :
4207 do
4208 cat "conftest.in" "conftest.in" >"conftest.tmp"
4209 mv "conftest.tmp" "conftest.in"
4210 cp "conftest.in" "conftest.nl"
4211 $as_echo 'GREP' >> "conftest.nl"
4212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214 as_fn_arith $ac_count + 1 && ac_count=$as_val
4215 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4216 # Best one so far, save it but keep looking for a better one
4217 ac_cv_path_GREP="$ac_path_GREP"
4218 ac_path_GREP_max=$ac_count
4219 fi
4220 # 10*(2^10) chars as input seems more than enough
4221 test $ac_count -gt 10 && break
4222 done
4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224 esac
4226 $ac_path_GREP_found && break 3
4227 done
4228 done
4229 done
4230 IFS=$as_save_IFS
4231 if test -z "$ac_cv_path_GREP"; then
4232 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4233 fi
4234 else
4235 ac_cv_path_GREP=$GREP
4236 fi
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4240 $as_echo "$ac_cv_path_GREP" >&6; }
4241 GREP="$ac_cv_path_GREP"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4245 $as_echo_n "checking for egrep... " >&6; }
4246 if ${ac_cv_path_EGREP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4250 then ac_cv_path_EGREP="$GREP -E"
4251 else
4252 if test -z "$EGREP"; then
4253 ac_path_EGREP_found=false
4254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257 do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in egrep; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4263 as_fn_executable_p "$ac_path_EGREP" || continue
4264 # Check for GNU ac_path_EGREP and select it if it is found.
4265 # Check for GNU $ac_path_EGREP
4266 case `"$ac_path_EGREP" --version 2>&1` in
4267 *GNU*)
4268 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4269 *)
4270 ac_count=0
4271 $as_echo_n 0123456789 >"conftest.in"
4272 while :
4273 do
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
4277 $as_echo 'EGREP' >> "conftest.nl"
4278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280 as_fn_arith $ac_count + 1 && ac_count=$as_val
4281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_EGREP="$ac_path_EGREP"
4284 ac_path_EGREP_max=$ac_count
4285 fi
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4288 done
4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290 esac
4292 $ac_path_EGREP_found && break 3
4293 done
4294 done
4295 done
4296 IFS=$as_save_IFS
4297 if test -z "$ac_cv_path_EGREP"; then
4298 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4299 fi
4300 else
4301 ac_cv_path_EGREP=$EGREP
4302 fi
4304 fi
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4307 $as_echo "$ac_cv_path_EGREP" >&6; }
4308 EGREP="$ac_cv_path_EGREP"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4312 $as_echo_n "checking for fgrep... " >&6; }
4313 if ${ac_cv_path_FGREP+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4317 then ac_cv_path_FGREP="$GREP -F"
4318 else
4319 if test -z "$FGREP"; then
4320 ac_path_FGREP_found=false
4321 # Loop through the user's path and test for each of PROGNAME-LIST
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324 do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_prog in fgrep; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4330 as_fn_executable_p "$ac_path_FGREP" || continue
4331 # Check for GNU ac_path_FGREP and select it if it is found.
4332 # Check for GNU $ac_path_FGREP
4333 case `"$ac_path_FGREP" --version 2>&1` in
4334 *GNU*)
4335 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4336 *)
4337 ac_count=0
4338 $as_echo_n 0123456789 >"conftest.in"
4339 while :
4340 do
4341 cat "conftest.in" "conftest.in" >"conftest.tmp"
4342 mv "conftest.tmp" "conftest.in"
4343 cp "conftest.in" "conftest.nl"
4344 $as_echo 'FGREP' >> "conftest.nl"
4345 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347 as_fn_arith $ac_count + 1 && ac_count=$as_val
4348 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4349 # Best one so far, save it but keep looking for a better one
4350 ac_cv_path_FGREP="$ac_path_FGREP"
4351 ac_path_FGREP_max=$ac_count
4352 fi
4353 # 10*(2^10) chars as input seems more than enough
4354 test $ac_count -gt 10 && break
4355 done
4356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357 esac
4359 $ac_path_FGREP_found && break 3
4360 done
4361 done
4362 done
4363 IFS=$as_save_IFS
4364 if test -z "$ac_cv_path_FGREP"; then
4365 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4366 fi
4367 else
4368 ac_cv_path_FGREP=$FGREP
4369 fi
4371 fi
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4374 $as_echo "$ac_cv_path_FGREP" >&6; }
4375 FGREP="$ac_cv_path_FGREP"
4378 test -z "$GREP" && GREP=grep
4398 # Check whether --with-gnu-ld was given.
4399 if test "${with_gnu_ld+set}" = set; then :
4400 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4401 else
4402 with_gnu_ld=no
4403 fi
4405 ac_prog=ld
4406 if test "$GCC" = yes; then
4407 # Check if gcc -print-prog-name=ld gives a path.
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4409 $as_echo_n "checking for ld used by $CC... " >&6; }
4410 case $host in
4411 *-*-mingw*)
4412 # gcc leaves a trailing carriage return which upsets mingw
4413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4414 *)
4415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4416 esac
4417 case $ac_prog in
4418 # Accept absolute paths.
4419 [\\/]* | ?:[\\/]*)
4420 re_direlt='/[^/][^/]*/\.\./'
4421 # Canonicalize the pathname of ld
4422 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4423 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4424 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4425 done
4426 test -z "$LD" && LD="$ac_prog"
4427 ;;
4428 "")
4429 # If it fails, then pretend we aren't using GCC.
4430 ac_prog=ld
4431 ;;
4432 *)
4433 # If it is relative, then search for the first ld in PATH.
4434 with_gnu_ld=unknown
4435 ;;
4436 esac
4437 elif test "$with_gnu_ld" = yes; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4439 $as_echo_n "checking for GNU ld... " >&6; }
4440 else
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4442 $as_echo_n "checking for non-GNU ld... " >&6; }
4443 fi
4444 if ${lt_cv_path_LD+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -z "$LD"; then
4448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4449 for ac_dir in $PATH; do
4450 IFS="$lt_save_ifs"
4451 test -z "$ac_dir" && ac_dir=.
4452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4453 lt_cv_path_LD="$ac_dir/$ac_prog"
4454 # Check to see if the program is GNU ld. I'd rather use --version,
4455 # but apparently some variants of GNU ld only accept -v.
4456 # Break only if it was the GNU/non-GNU ld that we prefer.
4457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4458 *GNU* | *'with BFD'*)
4459 test "$with_gnu_ld" != no && break
4460 ;;
4461 *)
4462 test "$with_gnu_ld" != yes && break
4463 ;;
4464 esac
4465 fi
4466 done
4467 IFS="$lt_save_ifs"
4468 else
4469 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4470 fi
4471 fi
4473 LD="$lt_cv_path_LD"
4474 if test -n "$LD"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4476 $as_echo "$LD" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4483 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4484 if ${lt_cv_prog_gnu_ld+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4488 case `$LD -v 2>&1 </dev/null` in
4489 *GNU* | *'with BFD'*)
4490 lt_cv_prog_gnu_ld=yes
4491 ;;
4492 *)
4493 lt_cv_prog_gnu_ld=no
4494 ;;
4495 esac
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4498 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4499 with_gnu_ld=$lt_cv_prog_gnu_ld
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4510 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4511 if ${lt_cv_path_NM+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$NM"; then
4515 # Let the user override the test.
4516 lt_cv_path_NM="$NM"
4517 else
4518 lt_nm_to_check="${ac_tool_prefix}nm"
4519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4520 lt_nm_to_check="$lt_nm_to_check nm"
4521 fi
4522 for lt_tmp_nm in $lt_nm_to_check; do
4523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4525 IFS="$lt_save_ifs"
4526 test -z "$ac_dir" && ac_dir=.
4527 tmp_nm="$ac_dir/$lt_tmp_nm"
4528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4529 # Check to see if the nm accepts a BSD-compat flag.
4530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4531 # nm: unknown option "B" ignored
4532 # Tru64's nm complains that /dev/null is an invalid object file
4533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4534 */dev/null* | *'Invalid file or object type'*)
4535 lt_cv_path_NM="$tmp_nm -B"
4536 break
4537 ;;
4538 *)
4539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4540 */dev/null*)
4541 lt_cv_path_NM="$tmp_nm -p"
4542 break
4543 ;;
4544 *)
4545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4546 continue # so that we can try to find one that supports BSD flags
4547 ;;
4548 esac
4549 ;;
4550 esac
4551 fi
4552 done
4553 IFS="$lt_save_ifs"
4554 done
4555 : ${lt_cv_path_NM=no}
4556 fi
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4559 $as_echo "$lt_cv_path_NM" >&6; }
4560 if test "$lt_cv_path_NM" != "no"; then
4561 NM="$lt_cv_path_NM"
4562 else
4563 # Didn't find any BSD compatible name lister, look for dumpbin.
4564 if test -n "$DUMPBIN"; then :
4565 # Let the user override the test.
4566 else
4567 if test -n "$ac_tool_prefix"; then
4568 for ac_prog in dumpbin "link -dump"
4569 do
4570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if ${ac_cv_prog_DUMPBIN+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$DUMPBIN"; then
4578 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4595 fi
4596 fi
4597 DUMPBIN=$ac_cv_prog_DUMPBIN
4598 if test -n "$DUMPBIN"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4600 $as_echo "$DUMPBIN" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4607 test -n "$DUMPBIN" && break
4608 done
4609 fi
4610 if test -z "$DUMPBIN"; then
4611 ac_ct_DUMPBIN=$DUMPBIN
4612 for ac_prog in dumpbin "link -dump"
4613 do
4614 # Extract the first word of "$ac_prog", so it can be a program name with args.
4615 set dummy $ac_prog; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$ac_ct_DUMPBIN"; then
4622 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4639 fi
4640 fi
4641 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4642 if test -n "$ac_ct_DUMPBIN"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4644 $as_echo "$ac_ct_DUMPBIN" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4648 fi
4651 test -n "$ac_ct_DUMPBIN" && break
4652 done
4654 if test "x$ac_ct_DUMPBIN" = x; then
4655 DUMPBIN=":"
4656 else
4657 case $cross_compiling:$ac_tool_warned in
4658 yes:)
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661 ac_tool_warned=yes ;;
4662 esac
4663 DUMPBIN=$ac_ct_DUMPBIN
4664 fi
4665 fi
4667 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4668 *COFF*)
4669 DUMPBIN="$DUMPBIN -symbols"
4670 ;;
4671 *)
4672 DUMPBIN=:
4673 ;;
4674 esac
4675 fi
4677 if test "$DUMPBIN" != ":"; then
4678 NM="$DUMPBIN"
4679 fi
4680 fi
4681 test -z "$NM" && NM=nm
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4689 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4690 if ${lt_cv_nm_interface+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 lt_cv_nm_interface="BSD nm"
4694 echo "int some_variable = 0;" > conftest.$ac_ext
4695 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4696 (eval "$ac_compile" 2>conftest.err)
4697 cat conftest.err >&5
4698 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4699 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4700 cat conftest.err >&5
4701 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4702 cat conftest.out >&5
4703 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4704 lt_cv_nm_interface="MS dumpbin"
4705 fi
4706 rm -f conftest*
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4709 $as_echo "$lt_cv_nm_interface" >&6; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4712 $as_echo_n "checking whether ln -s works... " >&6; }
4713 LN_S=$as_ln_s
4714 if test "$LN_S" = "ln -s"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4716 $as_echo "yes" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4719 $as_echo "no, using $LN_S" >&6; }
4720 fi
4722 # find the maximum length of command line arguments
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4724 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4725 if ${lt_cv_sys_max_cmd_len+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 i=0
4729 teststring="ABCD"
4731 case $build_os in
4732 msdosdjgpp*)
4733 # On DJGPP, this test can blow up pretty badly due to problems in libc
4734 # (any single argument exceeding 2000 bytes causes a buffer overrun
4735 # during glob expansion). Even if it were fixed, the result of this
4736 # check would be larger than it should be.
4737 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4738 ;;
4740 gnu*)
4741 # Under GNU Hurd, this test is not required because there is
4742 # no limit to the length of command line arguments.
4743 # Libtool will interpret -1 as no limit whatsoever
4744 lt_cv_sys_max_cmd_len=-1;
4745 ;;
4747 cygwin* | mingw* | cegcc*)
4748 # On Win9x/ME, this test blows up -- it succeeds, but takes
4749 # about 5 minutes as the teststring grows exponentially.
4750 # Worse, since 9x/ME are not pre-emptively multitasking,
4751 # you end up with a "frozen" computer, even though with patience
4752 # the test eventually succeeds (with a max line length of 256k).
4753 # Instead, let's just punt: use the minimum linelength reported by
4754 # all of the supported platforms: 8192 (on NT/2K/XP).
4755 lt_cv_sys_max_cmd_len=8192;
4756 ;;
4758 mint*)
4759 # On MiNT this can take a long time and run out of memory.
4760 lt_cv_sys_max_cmd_len=8192;
4761 ;;
4763 amigaos*)
4764 # On AmigaOS with pdksh, this test takes hours, literally.
4765 # So we just punt and use a minimum line length of 8192.
4766 lt_cv_sys_max_cmd_len=8192;
4767 ;;
4769 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4770 # This has been around since 386BSD, at least. Likely further.
4771 if test -x /sbin/sysctl; then
4772 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4773 elif test -x /usr/sbin/sysctl; then
4774 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4775 else
4776 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4777 fi
4778 # And add a safety zone
4779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4781 ;;
4783 interix*)
4784 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4785 lt_cv_sys_max_cmd_len=196608
4786 ;;
4788 os2*)
4789 # The test takes a long time on OS/2.
4790 lt_cv_sys_max_cmd_len=8192
4791 ;;
4793 osf*)
4794 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4795 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4796 # nice to cause kernel panics so lets avoid the loop below.
4797 # First set a reasonable default.
4798 lt_cv_sys_max_cmd_len=16384
4799 #
4800 if test -x /sbin/sysconfig; then
4801 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4802 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4803 esac
4804 fi
4805 ;;
4806 sco3.2v5*)
4807 lt_cv_sys_max_cmd_len=102400
4808 ;;
4809 sysv5* | sco5v6* | sysv4.2uw2*)
4810 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4811 if test -n "$kargmax"; then
4812 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4813 else
4814 lt_cv_sys_max_cmd_len=32768
4815 fi
4816 ;;
4817 *)
4818 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4819 if test -n "$lt_cv_sys_max_cmd_len" && \
4820 test undefined != "$lt_cv_sys_max_cmd_len"; then
4821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4823 else
4824 # Make teststring a little bigger before we do anything with it.
4825 # a 1K string should be a reasonable start.
4826 for i in 1 2 3 4 5 6 7 8 ; do
4827 teststring=$teststring$teststring
4828 done
4829 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4830 # If test is not a shell built-in, we'll probably end up computing a
4831 # maximum length that is only half of the actual maximum length, but
4832 # we can't tell.
4833 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4834 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4835 test $i != 17 # 1/2 MB should be enough
4836 do
4837 i=`expr $i + 1`
4838 teststring=$teststring$teststring
4839 done
4840 # Only check the string length outside the loop.
4841 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4842 teststring=
4843 # Add a significant safety factor because C++ compilers can tack on
4844 # massive amounts of additional arguments before passing them to the
4845 # linker. It appears as though 1/2 is a usable value.
4846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4847 fi
4848 ;;
4849 esac
4851 fi
4853 if test -n $lt_cv_sys_max_cmd_len ; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4855 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4856 else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4858 $as_echo "none" >&6; }
4859 fi
4860 max_cmd_len=$lt_cv_sys_max_cmd_len
4867 : ${CP="cp -f"}
4868 : ${MV="mv -f"}
4869 : ${RM="rm -f"}
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4872 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4873 # Try some XSI features
4874 xsi_shell=no
4875 ( _lt_dummy="a/b/c"
4876 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4877 = c,a/b,b/c, \
4878 && eval 'test $(( 1 + 1 )) -eq 2 \
4879 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4880 && xsi_shell=yes
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4882 $as_echo "$xsi_shell" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4886 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4887 lt_shell_append=no
4888 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4889 >/dev/null 2>&1 \
4890 && lt_shell_append=yes
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4892 $as_echo "$lt_shell_append" >&6; }
4895 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4896 lt_unset=unset
4897 else
4898 lt_unset=false
4899 fi
4905 # test EBCDIC or ASCII
4906 case `echo X|tr X '\101'` in
4907 A) # ASCII based system
4908 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4909 lt_SP2NL='tr \040 \012'
4910 lt_NL2SP='tr \015\012 \040\040'
4911 ;;
4912 *) # EBCDIC based system
4913 lt_SP2NL='tr \100 \n'
4914 lt_NL2SP='tr \r\n \100\100'
4915 ;;
4916 esac
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4927 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4928 if ${lt_cv_to_host_file_cmd+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 case $host in
4932 *-*-mingw* )
4933 case $build in
4934 *-*-mingw* ) # actually msys
4935 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4936 ;;
4937 *-*-cygwin* )
4938 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4939 ;;
4940 * ) # otherwise, assume *nix
4941 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4942 ;;
4943 esac
4944 ;;
4945 *-*-cygwin* )
4946 case $build in
4947 *-*-mingw* ) # actually msys
4948 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4949 ;;
4950 *-*-cygwin* )
4951 lt_cv_to_host_file_cmd=func_convert_file_noop
4952 ;;
4953 * ) # otherwise, assume *nix
4954 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4955 ;;
4956 esac
4957 ;;
4958 * ) # unhandled hosts (and "normal" native builds)
4959 lt_cv_to_host_file_cmd=func_convert_file_noop
4960 ;;
4961 esac
4963 fi
4965 to_host_file_cmd=$lt_cv_to_host_file_cmd
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4967 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4974 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4975 if ${lt_cv_to_tool_file_cmd+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 #assume ordinary cross tools, or native build.
4979 lt_cv_to_tool_file_cmd=func_convert_file_noop
4980 case $host in
4981 *-*-mingw* )
4982 case $build in
4983 *-*-mingw* ) # actually msys
4984 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4985 ;;
4986 esac
4987 ;;
4988 esac
4990 fi
4992 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4994 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5001 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5002 if ${lt_cv_ld_reload_flag+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 lt_cv_ld_reload_flag='-r'
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5008 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5009 reload_flag=$lt_cv_ld_reload_flag
5010 case $reload_flag in
5011 "" | " "*) ;;
5012 *) reload_flag=" $reload_flag" ;;
5013 esac
5014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5015 case $host_os in
5016 cygwin* | mingw* | pw32* | cegcc*)
5017 if test "$GCC" != yes; then
5018 reload_cmds=false
5019 fi
5020 ;;
5021 darwin*)
5022 if test "$GCC" = yes; then
5023 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5024 else
5025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026 fi
5027 ;;
5028 esac
5038 if test -n "$ac_tool_prefix"; then
5039 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_OBJDUMP+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$OBJDUMP"; then
5047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5064 fi
5065 fi
5066 OBJDUMP=$ac_cv_prog_OBJDUMP
5067 if test -n "$OBJDUMP"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5069 $as_echo "$OBJDUMP" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5076 fi
5077 if test -z "$ac_cv_prog_OBJDUMP"; then
5078 ac_ct_OBJDUMP=$OBJDUMP
5079 # Extract the first word of "objdump", so it can be a program name with args.
5080 set dummy objdump; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$ac_ct_OBJDUMP"; then
5087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5099 fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5104 fi
5105 fi
5106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5107 if test -n "$ac_ct_OBJDUMP"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5109 $as_echo "$ac_ct_OBJDUMP" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5115 if test "x$ac_ct_OBJDUMP" = x; then
5116 OBJDUMP="false"
5117 else
5118 case $cross_compiling:$ac_tool_warned in
5119 yes:)
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124 OBJDUMP=$ac_ct_OBJDUMP
5125 fi
5126 else
5127 OBJDUMP="$ac_cv_prog_OBJDUMP"
5128 fi
5130 test -z "$OBJDUMP" && OBJDUMP=objdump
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5141 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5142 if ${lt_cv_deplibs_check_method+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 lt_cv_file_magic_cmd='$MAGIC_CMD'
5146 lt_cv_file_magic_test_file=
5147 lt_cv_deplibs_check_method='unknown'
5148 # Need to set the preceding variable on all platforms that support
5149 # interlibrary dependencies.
5150 # 'none' -- dependencies not supported.
5151 # `unknown' -- same as none, but documents that we really don't know.
5152 # 'pass_all' -- all dependencies passed with no checks.
5153 # 'test_compile' -- check by making test program.
5154 # 'file_magic [[regex]]' -- check by looking for files in library path
5155 # which responds to the $file_magic_cmd with a given extended regex.
5156 # If you have `file' or equivalent on your system and you're not sure
5157 # whether `pass_all' will *always* work, you probably want this one.
5159 case $host_os in
5160 aix[4-9]*)
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5164 beos*)
5165 lt_cv_deplibs_check_method=pass_all
5166 ;;
5168 bsdi[45]*)
5169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5170 lt_cv_file_magic_cmd='/usr/bin/file -L'
5171 lt_cv_file_magic_test_file=/shlib/libc.so
5172 ;;
5174 cygwin*)
5175 # func_win32_libid is a shell function defined in ltmain.sh
5176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5177 lt_cv_file_magic_cmd='func_win32_libid'
5178 ;;
5180 mingw* | pw32*)
5181 # Base MSYS/MinGW do not provide the 'file' command needed by
5182 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5183 # unless we find 'file', for example because we are cross-compiling.
5184 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5185 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5188 else
5189 # Keep this pattern in sync with the one in func_win32_libid.
5190 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5191 lt_cv_file_magic_cmd='$OBJDUMP -f'
5192 fi
5193 ;;
5195 cegcc*)
5196 # use the weaker test based on 'objdump'. See mingw*.
5197 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5198 lt_cv_file_magic_cmd='$OBJDUMP -f'
5199 ;;
5201 darwin* | rhapsody*)
5202 lt_cv_deplibs_check_method=pass_all
5203 ;;
5205 freebsd* | dragonfly*)
5206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5207 case $host_cpu in
5208 i*86 )
5209 # Not sure whether the presence of OpenBSD here was a mistake.
5210 # Let's accept both of them until this is cleared up.
5211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5212 lt_cv_file_magic_cmd=/usr/bin/file
5213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5214 ;;
5215 esac
5216 else
5217 lt_cv_deplibs_check_method=pass_all
5218 fi
5219 ;;
5221 haiku*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5225 hpux10.20* | hpux11*)
5226 lt_cv_file_magic_cmd=/usr/bin/file
5227 case $host_cpu in
5228 ia64*)
5229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5231 ;;
5232 hppa*64*)
5233 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]'
5234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5235 ;;
5236 *)
5237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5239 ;;
5240 esac
5241 ;;
5243 interix[3-9]*)
5244 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5246 ;;
5248 irix5* | irix6* | nonstopux*)
5249 case $LD in
5250 *-32|*"-32 ") libmagic=32-bit;;
5251 *-n32|*"-n32 ") libmagic=N32;;
5252 *-64|*"-64 ") libmagic=64-bit;;
5253 *) libmagic=never-match;;
5254 esac
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5258 # This must be glibc/ELF.
5259 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5260 lt_cv_deplibs_check_method=pass_all
5261 ;;
5263 netbsd* | netbsdelf*-gnu)
5264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5266 else
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5268 fi
5269 ;;
5271 newos6*)
5272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5273 lt_cv_file_magic_cmd=/usr/bin/file
5274 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5275 ;;
5277 *nto* | *qnx*)
5278 lt_cv_deplibs_check_method=pass_all
5279 ;;
5281 openbsd*)
5282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5284 else
5285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5286 fi
5287 ;;
5289 osf3* | osf4* | osf5*)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5293 rdos*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5297 solaris*)
5298 lt_cv_deplibs_check_method=pass_all
5299 ;;
5301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5305 sysv4 | sysv4.3*)
5306 case $host_vendor in
5307 motorola)
5308 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]'
5309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5310 ;;
5311 ncr)
5312 lt_cv_deplibs_check_method=pass_all
5313 ;;
5314 sequent)
5315 lt_cv_file_magic_cmd='/bin/file'
5316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5317 ;;
5318 sni)
5319 lt_cv_file_magic_cmd='/bin/file'
5320 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5321 lt_cv_file_magic_test_file=/lib/libc.so
5322 ;;
5323 siemens)
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326 pc)
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329 esac
5330 ;;
5332 tpf*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335 esac
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5339 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5341 file_magic_glob=
5342 want_nocaseglob=no
5343 if test "$build" = "$host"; then
5344 case $host_os in
5345 mingw* | pw32*)
5346 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5347 want_nocaseglob=yes
5348 else
5349 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5350 fi
5351 ;;
5352 esac
5353 fi
5355 file_magic_cmd=$lt_cv_file_magic_cmd
5356 deplibs_check_method=$lt_cv_deplibs_check_method
5357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5380 if test -n "$ac_tool_prefix"; then
5381 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5382 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_DLLTOOL+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$DLLTOOL"; then
5389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402 done
5403 done
5404 IFS=$as_save_IFS
5406 fi
5407 fi
5408 DLLTOOL=$ac_cv_prog_DLLTOOL
5409 if test -n "$DLLTOOL"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5411 $as_echo "$DLLTOOL" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5418 fi
5419 if test -z "$ac_cv_prog_DLLTOOL"; then
5420 ac_ct_DLLTOOL=$DLLTOOL
5421 # Extract the first word of "dlltool", so it can be a program name with args.
5422 set dummy dlltool; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$ac_ct_DLLTOOL"; then
5429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5446 fi
5447 fi
5448 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5449 if test -n "$ac_ct_DLLTOOL"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5451 $as_echo "$ac_ct_DLLTOOL" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5457 if test "x$ac_ct_DLLTOOL" = x; then
5458 DLLTOOL="false"
5459 else
5460 case $cross_compiling:$ac_tool_warned in
5461 yes:)
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5465 esac
5466 DLLTOOL=$ac_ct_DLLTOOL
5467 fi
5468 else
5469 DLLTOOL="$ac_cv_prog_DLLTOOL"
5470 fi
5472 test -z "$DLLTOOL" && DLLTOOL=dlltool
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5484 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5485 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 lt_cv_sharedlib_from_linklib_cmd='unknown'
5490 case $host_os in
5491 cygwin* | mingw* | pw32* | cegcc*)
5492 # two different shell functions defined in ltmain.sh
5493 # decide which to use based on capabilities of $DLLTOOL
5494 case `$DLLTOOL --help 2>&1` in
5495 *--identify-strict*)
5496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5497 ;;
5498 *)
5499 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5500 ;;
5501 esac
5502 ;;
5503 *)
5504 # fallback: assume linklib IS sharedlib
5505 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5506 ;;
5507 esac
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5511 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5512 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5513 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5522 if test -n "$ac_tool_prefix"; then
5523 for ac_prog in ar
5524 do
5525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_AR+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$AR"; then
5533 ac_cv_prog_AR="$AR" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5550 fi
5551 fi
5552 AR=$ac_cv_prog_AR
5553 if test -n "$AR"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5555 $as_echo "$AR" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5562 test -n "$AR" && break
5563 done
5564 fi
5565 if test -z "$AR"; then
5566 ac_ct_AR=$AR
5567 for ac_prog in ar
5568 do
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$ac_ct_AR"; then
5577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_ac_ct_AR="$ac_prog"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592 IFS=$as_save_IFS
5594 fi
5595 fi
5596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5597 if test -n "$ac_ct_AR"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5599 $as_echo "$ac_ct_AR" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5606 test -n "$ac_ct_AR" && break
5607 done
5609 if test "x$ac_ct_AR" = x; then
5610 AR="false"
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613 yes:)
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned=yes ;;
5617 esac
5618 AR=$ac_ct_AR
5619 fi
5620 fi
5622 : ${AR=ar}
5623 : ${AR_FLAGS=cru}
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5636 $as_echo_n "checking for archiver @FILE support... " >&6; }
5637 if ${lt_cv_ar_at_file+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 lt_cv_ar_at_file=no
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5644 int
5645 main ()
5646 {
5648 ;
5649 return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_compile "$LINENO"; then :
5653 echo conftest.$ac_objext > conftest.lst
5654 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5656 (eval $lt_ar_try) 2>&5
5657 ac_status=$?
5658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; }
5660 if test "$ac_status" -eq 0; then
5661 # Ensure the archiver fails upon bogus file names.
5662 rm -f conftest.$ac_objext libconftest.a
5663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5664 (eval $lt_ar_try) 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; }
5668 if test "$ac_status" -ne 0; then
5669 lt_cv_ar_at_file=@
5670 fi
5671 fi
5672 rm -f conftest.* libconftest.a
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5679 $as_echo "$lt_cv_ar_at_file" >&6; }
5681 if test "x$lt_cv_ar_at_file" = xno; then
5682 archiver_list_spec=
5683 else
5684 archiver_list_spec=$lt_cv_ar_at_file
5685 fi
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5695 set dummy ${ac_tool_prefix}strip; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_STRIP+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$STRIP"; then
5702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5719 fi
5720 fi
5721 STRIP=$ac_cv_prog_STRIP
5722 if test -n "$STRIP"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5724 $as_echo "$STRIP" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5731 fi
5732 if test -z "$ac_cv_prog_STRIP"; then
5733 ac_ct_STRIP=$STRIP
5734 # Extract the first word of "strip", so it can be a program name with args.
5735 set dummy strip; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -n "$ac_ct_STRIP"; then
5742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_ac_ct_STRIP="strip"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755 done
5756 done
5757 IFS=$as_save_IFS
5759 fi
5760 fi
5761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5762 if test -n "$ac_ct_STRIP"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5764 $as_echo "$ac_ct_STRIP" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5770 if test "x$ac_ct_STRIP" = x; then
5771 STRIP=":"
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774 yes:)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777 ac_tool_warned=yes ;;
5778 esac
5779 STRIP=$ac_ct_STRIP
5780 fi
5781 else
5782 STRIP="$ac_cv_prog_STRIP"
5783 fi
5785 test -z "$STRIP" && STRIP=:
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_RANLIB+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$RANLIB"; then
5801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5818 fi
5819 fi
5820 RANLIB=$ac_cv_prog_RANLIB
5821 if test -n "$RANLIB"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5823 $as_echo "$RANLIB" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5830 fi
5831 if test -z "$ac_cv_prog_RANLIB"; then
5832 ac_ct_RANLIB=$RANLIB
5833 # Extract the first word of "ranlib", so it can be a program name with args.
5834 set dummy ranlib; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$ac_ct_RANLIB"; then
5841 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_RANLIB="ranlib"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5858 fi
5859 fi
5860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5861 if test -n "$ac_ct_RANLIB"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5863 $as_echo "$ac_ct_RANLIB" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5869 if test "x$ac_ct_RANLIB" = x; then
5870 RANLIB=":"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878 RANLIB=$ac_ct_RANLIB
5879 fi
5880 else
5881 RANLIB="$ac_cv_prog_RANLIB"
5882 fi
5884 test -z "$RANLIB" && RANLIB=:
5891 # Determine commands to create old-style static archives.
5892 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5893 old_postinstall_cmds='chmod 644 $oldlib'
5894 old_postuninstall_cmds=
5896 if test -n "$RANLIB"; then
5897 case $host_os in
5898 openbsd*)
5899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5900 ;;
5901 *)
5902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5903 ;;
5904 esac
5905 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5906 fi
5908 case $host_os in
5909 darwin*)
5910 lock_old_archive_extraction=yes ;;
5911 *)
5912 lock_old_archive_extraction=no ;;
5913 esac
5953 # If no C compiler was specified, use CC.
5954 LTCC=${LTCC-"$CC"}
5956 # If no C compiler flags were specified, use CFLAGS.
5957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5959 # Allow CC to be a program name with arguments.
5960 compiler=$CC
5963 # Check for command to grab the raw symbol name followed by C symbol from nm.
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5965 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5966 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5970 # These are sane defaults that work on at least a few old systems.
5971 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5973 # Character class describing NM global symbol codes.
5974 symcode='[BCDEGRST]'
5976 # Regexp to match symbols that can be accessed directly from C.
5977 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5979 # Define system-specific variables.
5980 case $host_os in
5981 aix*)
5982 symcode='[BCDT]'
5983 ;;
5984 cygwin* | mingw* | pw32* | cegcc*)
5985 symcode='[ABCDGISTW]'
5986 ;;
5987 hpux*)
5988 if test "$host_cpu" = ia64; then
5989 symcode='[ABCDEGRST]'
5990 fi
5991 ;;
5992 irix* | nonstopux*)
5993 symcode='[BCDEGRST]'
5994 ;;
5995 osf*)
5996 symcode='[BCDEGQRST]'
5997 ;;
5998 solaris*)
5999 symcode='[BDRT]'
6000 ;;
6001 sco3.2v5*)
6002 symcode='[DT]'
6003 ;;
6004 sysv4.2uw2*)
6005 symcode='[DT]'
6006 ;;
6007 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6008 symcode='[ABDT]'
6009 ;;
6010 sysv4)
6011 symcode='[DFNSTU]'
6012 ;;
6013 esac
6015 # If we're using GNU nm, then use its standard symbol codes.
6016 case `$NM -V 2>&1` in
6017 *GNU* | *'with BFD'*)
6018 symcode='[ABCDGIRSTW]' ;;
6019 esac
6021 # Transform an extracted symbol line into a proper C declaration.
6022 # Some systems (esp. on ia64) link data and code symbols differently,
6023 # so use this general approach.
6024 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6026 # Transform an extracted symbol line into symbol name and symbol address
6027 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6028 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6030 # Handle CRLF in mingw tool chain
6031 opt_cr=
6032 case $build_os in
6033 mingw*)
6034 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6035 ;;
6036 esac
6038 # Try without a prefix underscore, then with it.
6039 for ac_symprfx in "" "_"; do
6041 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6042 symxfrm="\\1 $ac_symprfx\\2 \\2"
6044 # Write the raw and C identifiers.
6045 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6046 # Fake it for dumpbin and say T for any non-static function
6047 # and D for any global variable.
6048 # Also find C++ and __fastcall symbols from MSVC++,
6049 # which start with @ or ?.
6050 lt_cv_sys_global_symbol_pipe="$AWK '"\
6051 " {last_section=section; section=\$ 3};"\
6052 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6053 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6054 " \$ 0!~/External *\|/{next};"\
6055 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6056 " {if(hide[section]) next};"\
6057 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6058 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6059 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6060 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6061 " ' prfx=^$ac_symprfx"
6062 else
6063 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6064 fi
6065 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6067 # Check to see that the pipe works correctly.
6068 pipe_works=no
6070 rm -f conftest*
6071 cat > conftest.$ac_ext <<_LT_EOF
6072 #ifdef __cplusplus
6073 extern "C" {
6074 #endif
6075 char nm_test_var;
6076 void nm_test_func(void);
6077 void nm_test_func(void){}
6078 #ifdef __cplusplus
6079 }
6080 #endif
6081 int main(){nm_test_var='a';nm_test_func();return(0);}
6082 _LT_EOF
6084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6085 (eval $ac_compile) 2>&5
6086 ac_status=$?
6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6088 test $ac_status = 0; }; then
6089 # Now try to grab the symbols.
6090 nlist=conftest.nm
6091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6092 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6093 ac_status=$?
6094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6095 test $ac_status = 0; } && test -s "$nlist"; then
6096 # Try sorting and uniquifying the output.
6097 if sort "$nlist" | uniq > "$nlist"T; then
6098 mv -f "$nlist"T "$nlist"
6099 else
6100 rm -f "$nlist"T
6101 fi
6103 # Make sure that we snagged all the symbols we need.
6104 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6105 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6106 cat <<_LT_EOF > conftest.$ac_ext
6107 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6108 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6109 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6110 relocations are performed -- see ld's documentation on pseudo-relocs. */
6111 # define LT_DLSYM_CONST
6112 #elif defined(__osf__)
6113 /* This system does not cope well with relocations in const data. */
6114 # define LT_DLSYM_CONST
6115 #else
6116 # define LT_DLSYM_CONST const
6117 #endif
6119 #ifdef __cplusplus
6120 extern "C" {
6121 #endif
6123 _LT_EOF
6124 # Now generate the symbol file.
6125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6127 cat <<_LT_EOF >> conftest.$ac_ext
6129 /* The mapping between symbol names and symbols. */
6130 LT_DLSYM_CONST struct {
6131 const char *name;
6132 void *address;
6133 }
6134 lt__PROGRAM__LTX_preloaded_symbols[] =
6135 {
6136 { "@PROGRAM@", (void *) 0 },
6137 _LT_EOF
6138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6139 cat <<\_LT_EOF >> conftest.$ac_ext
6140 {0, (void *) 0}
6141 };
6143 /* This works around a problem in FreeBSD linker */
6144 #ifdef FREEBSD_WORKAROUND
6145 static const void *lt_preloaded_setup() {
6146 return lt__PROGRAM__LTX_preloaded_symbols;
6147 }
6148 #endif
6150 #ifdef __cplusplus
6151 }
6152 #endif
6153 _LT_EOF
6154 # Now try linking the two files.
6155 mv conftest.$ac_objext conftstm.$ac_objext
6156 lt_globsym_save_LIBS=$LIBS
6157 lt_globsym_save_CFLAGS=$CFLAGS
6158 LIBS="conftstm.$ac_objext"
6159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6161 (eval $ac_link) 2>&5
6162 ac_status=$?
6163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6165 pipe_works=yes
6166 fi
6167 LIBS=$lt_globsym_save_LIBS
6168 CFLAGS=$lt_globsym_save_CFLAGS
6169 else
6170 echo "cannot find nm_test_func in $nlist" >&5
6171 fi
6172 else
6173 echo "cannot find nm_test_var in $nlist" >&5
6174 fi
6175 else
6176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6177 fi
6178 else
6179 echo "$progname: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6181 fi
6182 rm -rf conftest* conftst*
6184 # Do not use the global_symbol_pipe unless it works.
6185 if test "$pipe_works" = yes; then
6186 break
6187 else
6188 lt_cv_sys_global_symbol_pipe=
6189 fi
6190 done
6192 fi
6194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6195 lt_cv_sys_global_symbol_to_cdecl=
6196 fi
6197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6199 $as_echo "failed" >&6; }
6200 else
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6202 $as_echo "ok" >&6; }
6203 fi
6205 # Response file support.
6206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6207 nm_file_list_spec='@'
6208 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6209 nm_file_list_spec='@'
6210 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6239 $as_echo_n "checking for sysroot... " >&6; }
6241 # Check whether --with-sysroot was given.
6242 if test "${with_sysroot+set}" = set; then :
6243 withval=$with_sysroot;
6244 else
6245 with_sysroot=no
6246 fi
6249 lt_sysroot=
6250 case ${with_sysroot} in #(
6251 yes)
6252 if test "$GCC" = yes; then
6253 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6254 fi
6255 ;; #(
6256 /*)
6257 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6258 ;; #(
6259 no|'')
6260 ;; #(
6261 *)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6263 $as_echo "${with_sysroot}" >&6; }
6264 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6265 ;;
6266 esac
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6269 $as_echo "${lt_sysroot:-no}" >&6; }
6275 # Check whether --enable-libtool-lock was given.
6276 if test "${enable_libtool_lock+set}" = set; then :
6277 enableval=$enable_libtool_lock;
6278 fi
6280 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6282 # Some flags need to be propagated to the compiler or linker for good
6283 # libtool support.
6284 case $host in
6285 ia64-*-hpux*)
6286 # Find out which ABI we are using.
6287 echo 'int i;' > conftest.$ac_ext
6288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6289 (eval $ac_compile) 2>&5
6290 ac_status=$?
6291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292 test $ac_status = 0; }; then
6293 case `/usr/bin/file conftest.$ac_objext` in
6294 *ELF-32*)
6295 HPUX_IA64_MODE="32"
6296 ;;
6297 *ELF-64*)
6298 HPUX_IA64_MODE="64"
6299 ;;
6300 esac
6301 fi
6302 rm -rf conftest*
6303 ;;
6304 *-*-irix6*)
6305 # Find out which ABI we are using.
6306 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308 (eval $ac_compile) 2>&5
6309 ac_status=$?
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; }; then
6312 if test "$lt_cv_prog_gnu_ld" = yes; then
6313 case `/usr/bin/file conftest.$ac_objext` in
6314 *32-bit*)
6315 LD="${LD-ld} -melf32bsmip"
6316 ;;
6317 *N32*)
6318 LD="${LD-ld} -melf32bmipn32"
6319 ;;
6320 *64-bit*)
6321 LD="${LD-ld} -melf64bmip"
6322 ;;
6323 esac
6324 else
6325 case `/usr/bin/file conftest.$ac_objext` in
6326 *32-bit*)
6327 LD="${LD-ld} -32"
6328 ;;
6329 *N32*)
6330 LD="${LD-ld} -n32"
6331 ;;
6332 *64-bit*)
6333 LD="${LD-ld} -64"
6334 ;;
6335 esac
6336 fi
6337 fi
6338 rm -rf conftest*
6339 ;;
6341 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6342 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6343 # Find out which ABI we are using.
6344 echo 'int i;' > conftest.$ac_ext
6345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6346 (eval $ac_compile) 2>&5
6347 ac_status=$?
6348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6349 test $ac_status = 0; }; then
6350 case `/usr/bin/file conftest.o` in
6351 *32-bit*)
6352 case $host in
6353 x86_64-*kfreebsd*-gnu)
6354 LD="${LD-ld} -m elf_i386_fbsd"
6355 ;;
6356 x86_64-*linux*)
6357 case `/usr/bin/file conftest.o` in
6358 *x86-64*)
6359 LD="${LD-ld} -m elf32_x86_64"
6360 ;;
6361 *)
6362 LD="${LD-ld} -m elf_i386"
6363 ;;
6364 esac
6365 ;;
6366 powerpc64le-*)
6367 LD="${LD-ld} -m elf32lppclinux"
6368 ;;
6369 powerpc64-*)
6370 LD="${LD-ld} -m elf32ppclinux"
6371 ;;
6372 s390x-*linux*)
6373 LD="${LD-ld} -m elf_s390"
6374 ;;
6375 sparc64-*linux*)
6376 LD="${LD-ld} -m elf32_sparc"
6377 ;;
6378 esac
6379 ;;
6380 *64-bit*)
6381 case $host in
6382 x86_64-*kfreebsd*-gnu)
6383 LD="${LD-ld} -m elf_x86_64_fbsd"
6384 ;;
6385 x86_64-*linux*)
6386 LD="${LD-ld} -m elf_x86_64"
6387 ;;
6388 powerpcle-*)
6389 LD="${LD-ld} -m elf64lppc"
6390 ;;
6391 powerpc-*)
6392 LD="${LD-ld} -m elf64ppc"
6393 ;;
6394 s390*-*linux*|s390*-*tpf*)
6395 LD="${LD-ld} -m elf64_s390"
6396 ;;
6397 sparc*-*linux*)
6398 LD="${LD-ld} -m elf64_sparc"
6399 ;;
6400 esac
6401 ;;
6402 esac
6403 fi
6404 rm -rf conftest*
6405 ;;
6407 *-*-sco3.2v5*)
6408 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6409 SAVE_CFLAGS="$CFLAGS"
6410 CFLAGS="$CFLAGS -belf"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6412 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6413 if ${lt_cv_cc_needs_belf+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 ac_ext=c
6417 ac_cpp='$CPP $CPPFLAGS'
6418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6425 int
6426 main ()
6427 {
6429 ;
6430 return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_c_try_link "$LINENO"; then :
6434 lt_cv_cc_needs_belf=yes
6435 else
6436 lt_cv_cc_needs_belf=no
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext \
6439 conftest$ac_exeext conftest.$ac_ext
6440 ac_ext=c
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6448 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6449 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6451 CFLAGS="$SAVE_CFLAGS"
6452 fi
6453 ;;
6454 *-*solaris*)
6455 # Find out which ABI we are using.
6456 echo 'int i;' > conftest.$ac_ext
6457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6458 (eval $ac_compile) 2>&5
6459 ac_status=$?
6460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461 test $ac_status = 0; }; then
6462 case `/usr/bin/file conftest.o` in
6463 *64-bit*)
6464 case $lt_cv_prog_gnu_ld in
6465 yes*)
6466 case $host in
6467 i?86-*-solaris*)
6468 LD="${LD-ld} -m elf_x86_64"
6469 ;;
6470 sparc*-*-solaris*)
6471 LD="${LD-ld} -m elf64_sparc"
6472 ;;
6473 esac
6474 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6475 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6476 LD="${LD-ld}_sol2"
6477 fi
6478 ;;
6479 *)
6480 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6481 LD="${LD-ld} -64"
6482 fi
6483 ;;
6484 esac
6485 ;;
6486 esac
6487 fi
6488 rm -rf conftest*
6489 ;;
6490 esac
6492 need_locks="$enable_libtool_lock"
6494 if test -n "$ac_tool_prefix"; then
6495 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}mt; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test -n "$MANIFEST_TOOL"; then
6503 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6520 fi
6521 fi
6522 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6523 if test -n "$MANIFEST_TOOL"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6525 $as_echo "$MANIFEST_TOOL" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6532 fi
6533 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6534 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6535 # Extract the first word of "mt", so it can be a program name with args.
6536 set dummy mt; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$ac_ct_MANIFEST_TOOL"; then
6543 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6560 fi
6561 fi
6562 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6563 if test -n "$ac_ct_MANIFEST_TOOL"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6565 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6571 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6572 MANIFEST_TOOL=":"
6573 else
6574 case $cross_compiling:$ac_tool_warned in
6575 yes:)
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6579 esac
6580 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6581 fi
6582 else
6583 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6584 fi
6586 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6588 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6589 if ${lt_cv_path_mainfest_tool+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 lt_cv_path_mainfest_tool=no
6593 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6594 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6595 cat conftest.err >&5
6596 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6597 lt_cv_path_mainfest_tool=yes
6598 fi
6599 rm -f conftest*
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6602 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6603 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6604 MANIFEST_TOOL=:
6605 fi
6612 case $host_os in
6613 rhapsody* | darwin*)
6614 if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 if test -n "$DSYMUTIL"; then
6623 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6640 fi
6641 fi
6642 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6643 if test -n "$DSYMUTIL"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6645 $as_echo "$DSYMUTIL" >&6; }
6646 else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6652 fi
6653 if test -z "$ac_cv_prog_DSYMUTIL"; then
6654 ac_ct_DSYMUTIL=$DSYMUTIL
6655 # Extract the first word of "dsymutil", so it can be a program name with args.
6656 set dummy dsymutil; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 if test -n "$ac_ct_DSYMUTIL"; then
6663 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6680 fi
6681 fi
6682 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6683 if test -n "$ac_ct_DSYMUTIL"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6685 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6686 else
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6691 if test "x$ac_ct_DSYMUTIL" = x; then
6692 DSYMUTIL=":"
6693 else
6694 case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6699 esac
6700 DSYMUTIL=$ac_ct_DSYMUTIL
6701 fi
6702 else
6703 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6704 fi
6706 if test -n "$ac_tool_prefix"; then
6707 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_NMEDIT+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 if test -n "$NMEDIT"; then
6715 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6732 fi
6733 fi
6734 NMEDIT=$ac_cv_prog_NMEDIT
6735 if test -n "$NMEDIT"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6737 $as_echo "$NMEDIT" >&6; }
6738 else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6744 fi
6745 if test -z "$ac_cv_prog_NMEDIT"; then
6746 ac_ct_NMEDIT=$NMEDIT
6747 # Extract the first word of "nmedit", so it can be a program name with args.
6748 set dummy nmedit; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 if test -n "$ac_ct_NMEDIT"; then
6755 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6772 fi
6773 fi
6774 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6775 if test -n "$ac_ct_NMEDIT"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6777 $as_echo "$ac_ct_NMEDIT" >&6; }
6778 else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6783 if test "x$ac_ct_NMEDIT" = x; then
6784 NMEDIT=":"
6785 else
6786 case $cross_compiling:$ac_tool_warned in
6787 yes:)
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790 ac_tool_warned=yes ;;
6791 esac
6792 NMEDIT=$ac_ct_NMEDIT
6793 fi
6794 else
6795 NMEDIT="$ac_cv_prog_NMEDIT"
6796 fi
6798 if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if ${ac_cv_prog_LIPO+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 if test -n "$LIPO"; then
6807 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6816 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6824 fi
6825 fi
6826 LIPO=$ac_cv_prog_LIPO
6827 if test -n "$LIPO"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6829 $as_echo "$LIPO" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833 fi
6836 fi
6837 if test -z "$ac_cv_prog_LIPO"; then
6838 ac_ct_LIPO=$LIPO
6839 # Extract the first word of "lipo", so it can be a program name with args.
6840 set dummy lipo; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 if test -n "$ac_ct_LIPO"; then
6847 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856 ac_cv_prog_ac_ct_LIPO="lipo"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6864 fi
6865 fi
6866 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6867 if test -n "$ac_ct_LIPO"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6869 $as_echo "$ac_ct_LIPO" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6875 if test "x$ac_ct_LIPO" = x; then
6876 LIPO=":"
6877 else
6878 case $cross_compiling:$ac_tool_warned in
6879 yes:)
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882 ac_tool_warned=yes ;;
6883 esac
6884 LIPO=$ac_ct_LIPO
6885 fi
6886 else
6887 LIPO="$ac_cv_prog_LIPO"
6888 fi
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}otool; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_OTOOL+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$OTOOL"; then
6899 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6916 fi
6917 fi
6918 OTOOL=$ac_cv_prog_OTOOL
6919 if test -n "$OTOOL"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6921 $as_echo "$OTOOL" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6928 fi
6929 if test -z "$ac_cv_prog_OTOOL"; then
6930 ac_ct_OTOOL=$OTOOL
6931 # Extract the first word of "otool", so it can be a program name with args.
6932 set dummy otool; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 if test -n "$ac_ct_OTOOL"; then
6939 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_ac_ct_OTOOL="otool"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6956 fi
6957 fi
6958 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6959 if test -n "$ac_ct_OTOOL"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6961 $as_echo "$ac_ct_OTOOL" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6967 if test "x$ac_ct_OTOOL" = x; then
6968 OTOOL=":"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976 OTOOL=$ac_ct_OTOOL
6977 fi
6978 else
6979 OTOOL="$ac_cv_prog_OTOOL"
6980 fi
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_prog_OTOOL64+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -n "$OTOOL64"; then
6991 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7008 fi
7009 fi
7010 OTOOL64=$ac_cv_prog_OTOOL64
7011 if test -n "$OTOOL64"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7013 $as_echo "$OTOOL64" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7020 fi
7021 if test -z "$ac_cv_prog_OTOOL64"; then
7022 ac_ct_OTOOL64=$OTOOL64
7023 # Extract the first word of "otool64", so it can be a program name with args.
7024 set dummy otool64; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 if test -n "$ac_ct_OTOOL64"; then
7031 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040 ac_cv_prog_ac_ct_OTOOL64="otool64"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7043 fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7048 fi
7049 fi
7050 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7051 if test -n "$ac_ct_OTOOL64"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7053 $as_echo "$ac_ct_OTOOL64" >&6; }
7054 else
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7059 if test "x$ac_ct_OTOOL64" = x; then
7060 OTOOL64=":"
7061 else
7062 case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068 OTOOL64=$ac_ct_OTOOL64
7069 fi
7070 else
7071 OTOOL64="$ac_cv_prog_OTOOL64"
7072 fi
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7101 $as_echo_n "checking for -single_module linker flag... " >&6; }
7102 if ${lt_cv_apple_cc_single_mod+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 lt_cv_apple_cc_single_mod=no
7106 if test -z "${LT_MULTI_MODULE}"; then
7107 # By default we will add the -single_module flag. You can override
7108 # by either setting the environment variable LT_MULTI_MODULE
7109 # non-empty at configure time, or by adding -multi_module to the
7110 # link flags.
7111 rm -rf libconftest.dylib*
7112 echo "int foo(void){return 1;}" > conftest.c
7113 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7114 -dynamiclib -Wl,-single_module conftest.c" >&5
7115 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7116 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7117 _lt_result=$?
7118 # If there is a non-empty error log, and "single_module"
7119 # appears in it, assume the flag caused a linker warning
7120 if test -s conftest.err && $GREP single_module conftest.err; then
7121 cat conftest.err >&5
7122 # Otherwise, if the output was created with a 0 exit code from
7123 # the compiler, it worked.
7124 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7125 lt_cv_apple_cc_single_mod=yes
7126 else
7127 cat conftest.err >&5
7128 fi
7129 rm -rf libconftest.dylib*
7130 rm -f conftest.*
7131 fi
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7134 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7137 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7138 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 lt_cv_ld_exported_symbols_list=no
7142 save_LDFLAGS=$LDFLAGS
7143 echo "_main" > conftest.sym
7144 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7148 int
7149 main ()
7150 {
7152 ;
7153 return 0;
7154 }
7155 _ACEOF
7156 if ac_fn_c_try_link "$LINENO"; then :
7157 lt_cv_ld_exported_symbols_list=yes
7158 else
7159 lt_cv_ld_exported_symbols_list=no
7160 fi
7161 rm -f core conftest.err conftest.$ac_objext \
7162 conftest$ac_exeext conftest.$ac_ext
7163 LDFLAGS="$save_LDFLAGS"
7165 fi
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7167 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7170 $as_echo_n "checking for -force_load linker flag... " >&6; }
7171 if ${lt_cv_ld_force_load+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 lt_cv_ld_force_load=no
7175 cat > conftest.c << _LT_EOF
7176 int forced_loaded() { return 2;}
7177 _LT_EOF
7178 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7179 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7180 echo "$AR cru libconftest.a conftest.o" >&5
7181 $AR cru libconftest.a conftest.o 2>&5
7182 echo "$RANLIB libconftest.a" >&5
7183 $RANLIB libconftest.a 2>&5
7184 cat > conftest.c << _LT_EOF
7185 int main() { return 0;}
7186 _LT_EOF
7187 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7188 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7189 _lt_result=$?
7190 if test -s conftest.err && $GREP force_load conftest.err; then
7191 cat conftest.err >&5
7192 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7193 lt_cv_ld_force_load=yes
7194 else
7195 cat conftest.err >&5
7196 fi
7197 rm -f conftest.err libconftest.a conftest conftest.c
7198 rm -rf conftest.dSYM
7200 fi
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7202 $as_echo "$lt_cv_ld_force_load" >&6; }
7203 case $host_os in
7204 rhapsody* | darwin1.[012])
7205 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7206 darwin1.*)
7207 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7208 darwin*) # darwin 5.x on
7209 # if running on 10.5 or later, the deployment target defaults
7210 # to the OS version, if on x86, and 10.4, the deployment
7211 # target defaults to 10.4. Don't you love it?
7212 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7213 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7214 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7215 10.[012]*)
7216 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7217 10.*)
7218 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7219 esac
7220 ;;
7221 esac
7222 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7223 _lt_dar_single_mod='$single_module'
7224 fi
7225 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7226 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7227 else
7228 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7229 fi
7230 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7231 _lt_dsymutil='~$DSYMUTIL $lib || :'
7232 else
7233 _lt_dsymutil=
7234 fi
7235 ;;
7236 esac
7238 ac_ext=c
7239 ac_cpp='$CPP $CPPFLAGS'
7240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7245 # On Suns, sometimes $CPP names a directory.
7246 if test -n "$CPP" && test -d "$CPP"; then
7247 CPP=
7248 fi
7249 if test -z "$CPP"; then
7250 if ${ac_cv_prog_CPP+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 # Double quotes because CPP needs to be expanded
7254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7255 do
7256 ac_preproc_ok=false
7257 for ac_c_preproc_warn_flag in '' yes
7258 do
7259 # Use a header file that comes with gcc, so configuring glibc
7260 # with a fresh cross-compiler works.
7261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7262 # <limits.h> exists even on freestanding compilers.
7263 # On the NeXT, cc -E runs the code through the compiler's parser,
7264 # not just through cpp. "Syntax error" is here to catch this case.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #ifdef __STDC__
7268 # include <limits.h>
7269 #else
7270 # include <assert.h>
7271 #endif
7272 Syntax error
7273 _ACEOF
7274 if ac_fn_c_try_cpp "$LINENO"; then :
7276 else
7277 # Broken: fails on valid input.
7278 continue
7279 fi
7280 rm -f conftest.err conftest.i conftest.$ac_ext
7282 # OK, works on sane cases. Now check whether nonexistent headers
7283 # can be detected and how.
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 #include <ac_nonexistent.h>
7287 _ACEOF
7288 if ac_fn_c_try_cpp "$LINENO"; then :
7289 # Broken: success on invalid input.
7290 continue
7291 else
7292 # Passes both tests.
7293 ac_preproc_ok=:
7294 break
7295 fi
7296 rm -f conftest.err conftest.i conftest.$ac_ext
7298 done
7299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7300 rm -f conftest.i conftest.err conftest.$ac_ext
7301 if $ac_preproc_ok; then :
7302 break
7303 fi
7305 done
7306 ac_cv_prog_CPP=$CPP
7308 fi
7309 CPP=$ac_cv_prog_CPP
7310 else
7311 ac_cv_prog_CPP=$CPP
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7314 $as_echo "$CPP" >&6; }
7315 ac_preproc_ok=false
7316 for ac_c_preproc_warn_flag in '' yes
7317 do
7318 # Use a header file that comes with gcc, so configuring glibc
7319 # with a fresh cross-compiler works.
7320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7321 # <limits.h> exists even on freestanding compilers.
7322 # On the NeXT, cc -E runs the code through the compiler's parser,
7323 # not just through cpp. "Syntax error" is here to catch this case.
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 #ifdef __STDC__
7327 # include <limits.h>
7328 #else
7329 # include <assert.h>
7330 #endif
7331 Syntax error
7332 _ACEOF
7333 if ac_fn_c_try_cpp "$LINENO"; then :
7335 else
7336 # Broken: fails on valid input.
7337 continue
7338 fi
7339 rm -f conftest.err conftest.i conftest.$ac_ext
7341 # OK, works on sane cases. Now check whether nonexistent headers
7342 # can be detected and how.
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 #include <ac_nonexistent.h>
7346 _ACEOF
7347 if ac_fn_c_try_cpp "$LINENO"; then :
7348 # Broken: success on invalid input.
7349 continue
7350 else
7351 # Passes both tests.
7352 ac_preproc_ok=:
7353 break
7354 fi
7355 rm -f conftest.err conftest.i conftest.$ac_ext
7357 done
7358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7359 rm -f conftest.i conftest.err conftest.$ac_ext
7360 if $ac_preproc_ok; then :
7362 else
7363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7365 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7366 See \`config.log' for more details" "$LINENO" 5; }
7367 fi
7369 ac_ext=c
7370 ac_cpp='$CPP $CPPFLAGS'
7371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7377 $as_echo_n "checking for ANSI C header files... " >&6; }
7378 if ${ac_cv_header_stdc+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7383 #include <stdlib.h>
7384 #include <stdarg.h>
7385 #include <string.h>
7386 #include <float.h>
7388 int
7389 main ()
7390 {
7392 ;
7393 return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_compile "$LINENO"; then :
7397 ac_cv_header_stdc=yes
7398 else
7399 ac_cv_header_stdc=no
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7403 if test $ac_cv_header_stdc = yes; then
7404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7407 #include <string.h>
7409 _ACEOF
7410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7411 $EGREP "memchr" >/dev/null 2>&1; then :
7413 else
7414 ac_cv_header_stdc=no
7415 fi
7416 rm -f conftest*
7418 fi
7420 if test $ac_cv_header_stdc = yes; then
7421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 #include <stdlib.h>
7426 _ACEOF
7427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7428 $EGREP "free" >/dev/null 2>&1; then :
7430 else
7431 ac_cv_header_stdc=no
7432 fi
7433 rm -f conftest*
7435 fi
7437 if test $ac_cv_header_stdc = yes; then
7438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7439 if test "$cross_compiling" = yes; then :
7440 :
7441 else
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444 #include <ctype.h>
7445 #include <stdlib.h>
7446 #if ((' ' & 0x0FF) == 0x020)
7447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7449 #else
7450 # define ISLOWER(c) \
7451 (('a' <= (c) && (c) <= 'i') \
7452 || ('j' <= (c) && (c) <= 'r') \
7453 || ('s' <= (c) && (c) <= 'z'))
7454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7455 #endif
7457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7458 int
7459 main ()
7460 {
7461 int i;
7462 for (i = 0; i < 256; i++)
7463 if (XOR (islower (i), ISLOWER (i))
7464 || toupper (i) != TOUPPER (i))
7465 return 2;
7466 return 0;
7467 }
7468 _ACEOF
7469 if ac_fn_c_try_run "$LINENO"; then :
7471 else
7472 ac_cv_header_stdc=no
7473 fi
7474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7475 conftest.$ac_objext conftest.beam conftest.$ac_ext
7476 fi
7478 fi
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7481 $as_echo "$ac_cv_header_stdc" >&6; }
7482 if test $ac_cv_header_stdc = yes; then
7484 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7486 fi
7488 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7490 inttypes.h stdint.h unistd.h
7491 do :
7492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7493 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7494 "
7495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7496 cat >>confdefs.h <<_ACEOF
7497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7498 _ACEOF
7500 fi
7502 done
7505 for ac_header in dlfcn.h
7506 do :
7507 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7508 "
7509 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7510 cat >>confdefs.h <<_ACEOF
7511 #define HAVE_DLFCN_H 1
7512 _ACEOF
7514 fi
7516 done
7522 # Set options
7526 enable_dlopen=no
7529 enable_win32_dll=no
7532 # Check whether --enable-shared was given.
7533 if test "${enable_shared+set}" = set; then :
7534 enableval=$enable_shared; p=${PACKAGE-default}
7535 case $enableval in
7536 yes) enable_shared=yes ;;
7537 no) enable_shared=no ;;
7538 *)
7539 enable_shared=no
7540 # Look at the argument we got. We use all the common list separators.
7541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7542 for pkg in $enableval; do
7543 IFS="$lt_save_ifs"
7544 if test "X$pkg" = "X$p"; then
7545 enable_shared=yes
7546 fi
7547 done
7548 IFS="$lt_save_ifs"
7549 ;;
7550 esac
7551 else
7552 enable_shared=yes
7553 fi
7563 # Check whether --enable-static was given.
7564 if test "${enable_static+set}" = set; then :
7565 enableval=$enable_static; p=${PACKAGE-default}
7566 case $enableval in
7567 yes) enable_static=yes ;;
7568 no) enable_static=no ;;
7569 *)
7570 enable_static=no
7571 # Look at the argument we got. We use all the common list separators.
7572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7573 for pkg in $enableval; do
7574 IFS="$lt_save_ifs"
7575 if test "X$pkg" = "X$p"; then
7576 enable_static=yes
7577 fi
7578 done
7579 IFS="$lt_save_ifs"
7580 ;;
7581 esac
7582 else
7583 enable_static=yes
7584 fi
7595 # Check whether --with-pic was given.
7596 if test "${with_pic+set}" = set; then :
7597 withval=$with_pic; lt_p=${PACKAGE-default}
7598 case $withval in
7599 yes|no) pic_mode=$withval ;;
7600 *)
7601 pic_mode=default
7602 # Look at the argument we got. We use all the common list separators.
7603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7604 for lt_pkg in $withval; do
7605 IFS="$lt_save_ifs"
7606 if test "X$lt_pkg" = "X$lt_p"; then
7607 pic_mode=yes
7608 fi
7609 done
7610 IFS="$lt_save_ifs"
7611 ;;
7612 esac
7613 else
7614 pic_mode=default
7615 fi
7618 test -z "$pic_mode" && pic_mode=default
7626 # Check whether --enable-fast-install was given.
7627 if test "${enable_fast_install+set}" = set; then :
7628 enableval=$enable_fast_install; p=${PACKAGE-default}
7629 case $enableval in
7630 yes) enable_fast_install=yes ;;
7631 no) enable_fast_install=no ;;
7632 *)
7633 enable_fast_install=no
7634 # Look at the argument we got. We use all the common list separators.
7635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7636 for pkg in $enableval; do
7637 IFS="$lt_save_ifs"
7638 if test "X$pkg" = "X$p"; then
7639 enable_fast_install=yes
7640 fi
7641 done
7642 IFS="$lt_save_ifs"
7643 ;;
7644 esac
7645 else
7646 enable_fast_install=yes
7647 fi
7659 # This can be used to rebuild libtool when needed
7660 LIBTOOL_DEPS="$ltmain"
7662 # Always use our own libtool.
7663 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7694 test -z "$LN_S" && LN_S="ln -s"
7709 if test -n "${ZSH_VERSION+set}" ; then
7710 setopt NO_GLOB_SUBST
7711 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7714 $as_echo_n "checking for objdir... " >&6; }
7715 if ${lt_cv_objdir+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 rm -f .libs 2>/dev/null
7719 mkdir .libs 2>/dev/null
7720 if test -d .libs; then
7721 lt_cv_objdir=.libs
7722 else
7723 # MS-DOS does not allow filenames that begin with a dot.
7724 lt_cv_objdir=_libs
7725 fi
7726 rmdir .libs 2>/dev/null
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7729 $as_echo "$lt_cv_objdir" >&6; }
7730 objdir=$lt_cv_objdir
7736 cat >>confdefs.h <<_ACEOF
7737 #define LT_OBJDIR "$lt_cv_objdir/"
7738 _ACEOF
7743 case $host_os in
7744 aix3*)
7745 # AIX sometimes has problems with the GCC collect2 program. For some
7746 # reason, if we set the COLLECT_NAMES environment variable, the problems
7747 # vanish in a puff of smoke.
7748 if test "X${COLLECT_NAMES+set}" != Xset; then
7749 COLLECT_NAMES=
7750 export COLLECT_NAMES
7751 fi
7752 ;;
7753 esac
7755 # Global variables:
7756 ofile=libtool
7757 can_build_shared=yes
7759 # All known linkers require a `.a' archive for static linking (except MSVC,
7760 # which needs '.lib').
7761 libext=a
7763 with_gnu_ld="$lt_cv_prog_gnu_ld"
7765 old_CC="$CC"
7766 old_CFLAGS="$CFLAGS"
7768 # Set sane defaults for various variables
7769 test -z "$CC" && CC=cc
7770 test -z "$LTCC" && LTCC=$CC
7771 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7772 test -z "$LD" && LD=ld
7773 test -z "$ac_objext" && ac_objext=o
7775 for cc_temp in $compiler""; do
7776 case $cc_temp in
7777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7779 \-*) ;;
7780 *) break;;
7781 esac
7782 done
7783 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7786 # Only perform the check for file, if the check method requires it
7787 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7788 case $deplibs_check_method in
7789 file_magic*)
7790 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7792 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7793 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 case $MAGIC_CMD in
7797 [\\/*] | ?:[\\/]*)
7798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7799 ;;
7800 *)
7801 lt_save_MAGIC_CMD="$MAGIC_CMD"
7802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7804 for ac_dir in $ac_dummy; do
7805 IFS="$lt_save_ifs"
7806 test -z "$ac_dir" && ac_dir=.
7807 if test -f $ac_dir/${ac_tool_prefix}file; then
7808 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7809 if test -n "$file_magic_test_file"; then
7810 case $deplibs_check_method in
7811 "file_magic "*)
7812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7815 $EGREP "$file_magic_regex" > /dev/null; then
7816 :
7817 else
7818 cat <<_LT_EOF 1>&2
7820 *** Warning: the command libtool uses to detect shared libraries,
7821 *** $file_magic_cmd, produces output that libtool cannot recognize.
7822 *** The result is that libtool may fail to recognize shared libraries
7823 *** as such. This will affect the creation of libtool libraries that
7824 *** depend on shared libraries, but programs linked with such libtool
7825 *** libraries will work regardless of this problem. Nevertheless, you
7826 *** may want to report the problem to your system manager and/or to
7827 *** bug-libtool@gnu.org
7829 _LT_EOF
7830 fi ;;
7831 esac
7832 fi
7833 break
7834 fi
7835 done
7836 IFS="$lt_save_ifs"
7837 MAGIC_CMD="$lt_save_MAGIC_CMD"
7838 ;;
7839 esac
7840 fi
7842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7843 if test -n "$MAGIC_CMD"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7845 $as_echo "$MAGIC_CMD" >&6; }
7846 else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7849 fi
7855 if test -z "$lt_cv_path_MAGIC_CMD"; then
7856 if test -n "$ac_tool_prefix"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7858 $as_echo_n "checking for file... " >&6; }
7859 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 case $MAGIC_CMD in
7863 [\\/*] | ?:[\\/]*)
7864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7865 ;;
7866 *)
7867 lt_save_MAGIC_CMD="$MAGIC_CMD"
7868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7870 for ac_dir in $ac_dummy; do
7871 IFS="$lt_save_ifs"
7872 test -z "$ac_dir" && ac_dir=.
7873 if test -f $ac_dir/file; then
7874 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7875 if test -n "$file_magic_test_file"; then
7876 case $deplibs_check_method in
7877 "file_magic "*)
7878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7881 $EGREP "$file_magic_regex" > /dev/null; then
7882 :
7883 else
7884 cat <<_LT_EOF 1>&2
7886 *** Warning: the command libtool uses to detect shared libraries,
7887 *** $file_magic_cmd, produces output that libtool cannot recognize.
7888 *** The result is that libtool may fail to recognize shared libraries
7889 *** as such. This will affect the creation of libtool libraries that
7890 *** depend on shared libraries, but programs linked with such libtool
7891 *** libraries will work regardless of this problem. Nevertheless, you
7892 *** may want to report the problem to your system manager and/or to
7893 *** bug-libtool@gnu.org
7895 _LT_EOF
7896 fi ;;
7897 esac
7898 fi
7899 break
7900 fi
7901 done
7902 IFS="$lt_save_ifs"
7903 MAGIC_CMD="$lt_save_MAGIC_CMD"
7904 ;;
7905 esac
7906 fi
7908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7909 if test -n "$MAGIC_CMD"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7911 $as_echo "$MAGIC_CMD" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7918 else
7919 MAGIC_CMD=:
7920 fi
7921 fi
7923 fi
7924 ;;
7925 esac
7927 # Use C for the default configuration in the libtool script
7929 lt_save_CC="$CC"
7930 ac_ext=c
7931 ac_cpp='$CPP $CPPFLAGS'
7932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937 # Source file extension for C test sources.
7938 ac_ext=c
7940 # Object file extension for compiled C test sources.
7941 objext=o
7942 objext=$objext
7944 # Code to be used in simple compile tests
7945 lt_simple_compile_test_code="int some_variable = 0;"
7947 # Code to be used in simple link tests
7948 lt_simple_link_test_code='int main(){return(0);}'
7956 # If no C compiler was specified, use CC.
7957 LTCC=${LTCC-"$CC"}
7959 # If no C compiler flags were specified, use CFLAGS.
7960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7962 # Allow CC to be a program name with arguments.
7963 compiler=$CC
7965 # Save the default compiler, since it gets overwritten when the other
7966 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7967 compiler_DEFAULT=$CC
7969 # save warnings/boilerplate of simple test code
7970 ac_outfile=conftest.$ac_objext
7971 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7972 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7973 _lt_compiler_boilerplate=`cat conftest.err`
7974 $RM conftest*
7976 ac_outfile=conftest.$ac_objext
7977 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7978 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7979 _lt_linker_boilerplate=`cat conftest.err`
7980 $RM -r conftest*
7983 if test -n "$compiler"; then
7985 lt_prog_compiler_no_builtin_flag=
7987 if test "$GCC" = yes; then
7988 case $cc_basename in
7989 nvcc*)
7990 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7991 *)
7992 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7993 esac
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7996 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7997 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 lt_cv_prog_compiler_rtti_exceptions=no
8001 ac_outfile=conftest.$ac_objext
8002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8003 lt_compiler_flag="-fno-rtti -fno-exceptions"
8004 # Insert the option either (1) after the last *FLAGS variable, or
8005 # (2) before a word containing "conftest.", or (3) at the end.
8006 # Note that $ac_compile itself does not contain backslashes and begins
8007 # with a dollar sign (not a hyphen), so the echo should work correctly.
8008 # The option is referenced via a variable to avoid confusing sed.
8009 lt_compile=`echo "$ac_compile" | $SED \
8010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8012 -e 's:$: $lt_compiler_flag:'`
8013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8014 (eval "$lt_compile" 2>conftest.err)
8015 ac_status=$?
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 if (exit $ac_status) && test -s "$ac_outfile"; then
8019 # The compiler can only warn and ignore the option if not recognized
8020 # So say no if there are warnings other than the usual output.
8021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8024 lt_cv_prog_compiler_rtti_exceptions=yes
8025 fi
8026 fi
8027 $RM conftest*
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8031 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8033 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8034 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8035 else
8036 :
8037 fi
8039 fi
8046 lt_prog_compiler_wl=
8047 lt_prog_compiler_pic=
8048 lt_prog_compiler_static=
8051 if test "$GCC" = yes; then
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_static='-static'
8055 case $host_os in
8056 aix*)
8057 # All AIX code is PIC.
8058 if test "$host_cpu" = ia64; then
8059 # AIX 5 now supports IA64 processor
8060 lt_prog_compiler_static='-Bstatic'
8061 fi
8062 ;;
8064 amigaos*)
8065 case $host_cpu in
8066 powerpc)
8067 # see comment about AmigaOS4 .so support
8068 lt_prog_compiler_pic='-fPIC'
8069 ;;
8070 m68k)
8071 # FIXME: we need at least 68020 code to build shared libraries, but
8072 # adding the `-m68020' flag to GCC prevents building anything better,
8073 # like `-m68040'.
8074 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8075 ;;
8076 esac
8077 ;;
8079 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8080 # PIC is the default for these OSes.
8081 ;;
8083 mingw* | cygwin* | pw32* | os2* | cegcc*)
8084 # This hack is so that the source file can tell whether it is being
8085 # built for inclusion in a dll (and should export symbols for example).
8086 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8087 # (--disable-auto-import) libraries
8088 lt_prog_compiler_pic='-DDLL_EXPORT'
8089 ;;
8091 darwin* | rhapsody*)
8092 # PIC is the default on this platform
8093 # Common symbols not allowed in MH_DYLIB files
8094 lt_prog_compiler_pic='-fno-common'
8095 ;;
8097 haiku*)
8098 # PIC is the default for Haiku.
8099 # The "-static" flag exists, but is broken.
8100 lt_prog_compiler_static=
8101 ;;
8103 hpux*)
8104 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8105 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8106 # sets the default TLS model and affects inlining.
8107 case $host_cpu in
8108 hppa*64*)
8109 # +Z the default
8110 ;;
8111 *)
8112 lt_prog_compiler_pic='-fPIC'
8113 ;;
8114 esac
8115 ;;
8117 interix[3-9]*)
8118 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8119 # Instead, we relocate shared libraries at runtime.
8120 ;;
8122 msdosdjgpp*)
8123 # Just because we use GCC doesn't mean we suddenly get shared libraries
8124 # on systems that don't support them.
8125 lt_prog_compiler_can_build_shared=no
8126 enable_shared=no
8127 ;;
8129 *nto* | *qnx*)
8130 # QNX uses GNU C++, but need to define -shared option too, otherwise
8131 # it will coredump.
8132 lt_prog_compiler_pic='-fPIC -shared'
8133 ;;
8135 sysv4*MP*)
8136 if test -d /usr/nec; then
8137 lt_prog_compiler_pic=-Kconform_pic
8138 fi
8139 ;;
8141 *)
8142 lt_prog_compiler_pic='-fPIC'
8143 ;;
8144 esac
8146 case $cc_basename in
8147 nvcc*) # Cuda Compiler Driver 2.2
8148 lt_prog_compiler_wl='-Xlinker '
8149 if test -n "$lt_prog_compiler_pic"; then
8150 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8151 fi
8152 ;;
8153 esac
8154 else
8155 # PORTME Check for flag to pass linker flags through the system compiler.
8156 case $host_os in
8157 aix*)
8158 lt_prog_compiler_wl='-Wl,'
8159 if test "$host_cpu" = ia64; then
8160 # AIX 5 now supports IA64 processor
8161 lt_prog_compiler_static='-Bstatic'
8162 else
8163 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8164 fi
8165 ;;
8167 mingw* | cygwin* | pw32* | os2* | cegcc*)
8168 # This hack is so that the source file can tell whether it is being
8169 # built for inclusion in a dll (and should export symbols for example).
8170 lt_prog_compiler_pic='-DDLL_EXPORT'
8171 ;;
8173 hpux9* | hpux10* | hpux11*)
8174 lt_prog_compiler_wl='-Wl,'
8175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8176 # not for PA HP-UX.
8177 case $host_cpu in
8178 hppa*64*|ia64*)
8179 # +Z the default
8180 ;;
8181 *)
8182 lt_prog_compiler_pic='+Z'
8183 ;;
8184 esac
8185 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8186 lt_prog_compiler_static='${wl}-a ${wl}archive'
8187 ;;
8189 irix5* | irix6* | nonstopux*)
8190 lt_prog_compiler_wl='-Wl,'
8191 # PIC (with -KPIC) is the default.
8192 lt_prog_compiler_static='-non_shared'
8193 ;;
8195 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8196 case $cc_basename in
8197 # old Intel for x86_64 which still supported -KPIC.
8198 ecc*)
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_pic='-KPIC'
8201 lt_prog_compiler_static='-static'
8202 ;;
8203 # icc used to be incompatible with GCC.
8204 # ICC 10 doesn't accept -KPIC any more.
8205 icc* | ifort*)
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-fPIC'
8208 lt_prog_compiler_static='-static'
8209 ;;
8210 # Lahey Fortran 8.1.
8211 lf95*)
8212 lt_prog_compiler_wl='-Wl,'
8213 lt_prog_compiler_pic='--shared'
8214 lt_prog_compiler_static='--static'
8215 ;;
8216 nagfor*)
8217 # NAG Fortran compiler
8218 lt_prog_compiler_wl='-Wl,-Wl,,'
8219 lt_prog_compiler_pic='-PIC'
8220 lt_prog_compiler_static='-Bstatic'
8221 ;;
8222 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8223 # Portland Group compilers (*not* the Pentium gcc compiler,
8224 # which looks to be a dead project)
8225 lt_prog_compiler_wl='-Wl,'
8226 lt_prog_compiler_pic='-fpic'
8227 lt_prog_compiler_static='-Bstatic'
8228 ;;
8229 ccc*)
8230 lt_prog_compiler_wl='-Wl,'
8231 # All Alpha code is PIC.
8232 lt_prog_compiler_static='-non_shared'
8233 ;;
8234 xl* | bgxl* | bgf* | mpixl*)
8235 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8236 lt_prog_compiler_wl='-Wl,'
8237 lt_prog_compiler_pic='-qpic'
8238 lt_prog_compiler_static='-qstaticlink'
8239 ;;
8240 *)
8241 case `$CC -V 2>&1 | sed 5q` in
8242 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8243 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8244 lt_prog_compiler_pic='-KPIC'
8245 lt_prog_compiler_static='-Bstatic'
8246 lt_prog_compiler_wl=''
8247 ;;
8248 *Sun\ F* | *Sun*Fortran*)
8249 lt_prog_compiler_pic='-KPIC'
8250 lt_prog_compiler_static='-Bstatic'
8251 lt_prog_compiler_wl='-Qoption ld '
8252 ;;
8253 *Sun\ C*)
8254 # Sun C 5.9
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8257 lt_prog_compiler_wl='-Wl,'
8258 ;;
8259 *Intel*\ [CF]*Compiler*)
8260 lt_prog_compiler_wl='-Wl,'
8261 lt_prog_compiler_pic='-fPIC'
8262 lt_prog_compiler_static='-static'
8263 ;;
8264 *Portland\ Group*)
8265 lt_prog_compiler_wl='-Wl,'
8266 lt_prog_compiler_pic='-fpic'
8267 lt_prog_compiler_static='-Bstatic'
8268 ;;
8269 esac
8270 ;;
8271 esac
8272 ;;
8274 newsos6)
8275 lt_prog_compiler_pic='-KPIC'
8276 lt_prog_compiler_static='-Bstatic'
8277 ;;
8279 *nto* | *qnx*)
8280 # QNX uses GNU C++, but need to define -shared option too, otherwise
8281 # it will coredump.
8282 lt_prog_compiler_pic='-fPIC -shared'
8283 ;;
8285 osf3* | osf4* | osf5*)
8286 lt_prog_compiler_wl='-Wl,'
8287 # All OSF/1 code is PIC.
8288 lt_prog_compiler_static='-non_shared'
8289 ;;
8291 rdos*)
8292 lt_prog_compiler_static='-non_shared'
8293 ;;
8295 solaris*)
8296 lt_prog_compiler_pic='-KPIC'
8297 lt_prog_compiler_static='-Bstatic'
8298 case $cc_basename in
8299 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8300 lt_prog_compiler_wl='-Qoption ld ';;
8301 *)
8302 lt_prog_compiler_wl='-Wl,';;
8303 esac
8304 ;;
8306 sunos4*)
8307 lt_prog_compiler_wl='-Qoption ld '
8308 lt_prog_compiler_pic='-PIC'
8309 lt_prog_compiler_static='-Bstatic'
8310 ;;
8312 sysv4 | sysv4.2uw2* | sysv4.3*)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-KPIC'
8315 lt_prog_compiler_static='-Bstatic'
8316 ;;
8318 sysv4*MP*)
8319 if test -d /usr/nec ;then
8320 lt_prog_compiler_pic='-Kconform_pic'
8321 lt_prog_compiler_static='-Bstatic'
8322 fi
8323 ;;
8325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='-KPIC'
8328 lt_prog_compiler_static='-Bstatic'
8329 ;;
8331 unicos*)
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_can_build_shared=no
8334 ;;
8336 uts4*)
8337 lt_prog_compiler_pic='-pic'
8338 lt_prog_compiler_static='-Bstatic'
8339 ;;
8341 *)
8342 lt_prog_compiler_can_build_shared=no
8343 ;;
8344 esac
8345 fi
8347 case $host_os in
8348 # For platforms which do not support PIC, -DPIC is meaningless:
8349 *djgpp*)
8350 lt_prog_compiler_pic=
8351 ;;
8352 *)
8353 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8354 ;;
8355 esac
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8359 if ${lt_cv_prog_compiler_pic+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8363 fi
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8365 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8366 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8368 #
8369 # Check to make sure the PIC flag actually works.
8370 #
8371 if test -n "$lt_prog_compiler_pic"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8374 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 lt_cv_prog_compiler_pic_works=no
8378 ac_outfile=conftest.$ac_objext
8379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8380 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8381 # Insert the option either (1) after the last *FLAGS variable, or
8382 # (2) before a word containing "conftest.", or (3) at the end.
8383 # Note that $ac_compile itself does not contain backslashes and begins
8384 # with a dollar sign (not a hyphen), so the echo should work correctly.
8385 # The option is referenced via a variable to avoid confusing sed.
8386 lt_compile=`echo "$ac_compile" | $SED \
8387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8389 -e 's:$: $lt_compiler_flag:'`
8390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8391 (eval "$lt_compile" 2>conftest.err)
8392 ac_status=$?
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 if (exit $ac_status) && test -s "$ac_outfile"; then
8396 # The compiler can only warn and ignore the option if not recognized
8397 # So say no if there are warnings other than the usual output.
8398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8401 lt_cv_prog_compiler_pic_works=yes
8402 fi
8403 fi
8404 $RM conftest*
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8408 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8410 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8411 case $lt_prog_compiler_pic in
8412 "" | " "*) ;;
8413 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8414 esac
8415 else
8416 lt_prog_compiler_pic=
8417 lt_prog_compiler_can_build_shared=no
8418 fi
8420 fi
8432 #
8433 # Check to make sure the static flag actually works.
8434 #
8435 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8438 if ${lt_cv_prog_compiler_static_works+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 lt_cv_prog_compiler_static_works=no
8442 save_LDFLAGS="$LDFLAGS"
8443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8446 # The linker can only warn and ignore the option if not recognized
8447 # So say no if there are warnings
8448 if test -s conftest.err; then
8449 # Append any errors to the config.log.
8450 cat conftest.err 1>&5
8451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8453 if diff conftest.exp conftest.er2 >/dev/null; then
8454 lt_cv_prog_compiler_static_works=yes
8455 fi
8456 else
8457 lt_cv_prog_compiler_static_works=yes
8458 fi
8459 fi
8460 $RM -r conftest*
8461 LDFLAGS="$save_LDFLAGS"
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8465 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8467 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8468 :
8469 else
8470 lt_prog_compiler_static=
8471 fi
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8481 if ${lt_cv_prog_compiler_c_o+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 lt_cv_prog_compiler_c_o=no
8485 $RM -r conftest 2>/dev/null
8486 mkdir conftest
8487 cd conftest
8488 mkdir out
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 lt_compiler_flag="-o out/conftest2.$ac_objext"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
8500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8501 (eval "$lt_compile" 2>out/conftest.err)
8502 ac_status=$?
8503 cat out/conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8506 then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings
8509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_c_o=yes
8513 fi
8514 fi
8515 chmod u+w . 2>&5
8516 $RM conftest*
8517 # SGI C++ compiler will create directory out/ii_files/ for
8518 # template instantiation
8519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8520 $RM out/* && rmdir out
8521 cd ..
8522 $RM -r conftest
8523 $RM conftest*
8525 fi
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8527 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8536 if ${lt_cv_prog_compiler_c_o+:} false; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 lt_cv_prog_compiler_c_o=no
8540 $RM -r conftest 2>/dev/null
8541 mkdir conftest
8542 cd conftest
8543 mkdir out
8544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8546 lt_compiler_flag="-o out/conftest2.$ac_objext"
8547 # Insert the option either (1) after the last *FLAGS variable, or
8548 # (2) before a word containing "conftest.", or (3) at the end.
8549 # Note that $ac_compile itself does not contain backslashes and begins
8550 # with a dollar sign (not a hyphen), so the echo should work correctly.
8551 lt_compile=`echo "$ac_compile" | $SED \
8552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8554 -e 's:$: $lt_compiler_flag:'`
8555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8556 (eval "$lt_compile" 2>out/conftest.err)
8557 ac_status=$?
8558 cat out/conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8561 then
8562 # The compiler can only warn and ignore the option if not recognized
8563 # So say no if there are warnings
8564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8565 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8566 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8567 lt_cv_prog_compiler_c_o=yes
8568 fi
8569 fi
8570 chmod u+w . 2>&5
8571 $RM conftest*
8572 # SGI C++ compiler will create directory out/ii_files/ for
8573 # template instantiation
8574 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8575 $RM out/* && rmdir out
8576 cd ..
8577 $RM -r conftest
8578 $RM conftest*
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8582 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8587 hard_links="nottested"
8588 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8589 # do not overwrite the value of need_locks provided by the user
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8591 $as_echo_n "checking if we can lock with hard links... " >&6; }
8592 hard_links=yes
8593 $RM conftest*
8594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8595 touch conftest.a
8596 ln conftest.a conftest.b 2>&5 || hard_links=no
8597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8599 $as_echo "$hard_links" >&6; }
8600 if test "$hard_links" = no; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8602 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8603 need_locks=warn
8604 fi
8605 else
8606 need_locks=no
8607 fi
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8615 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8617 runpath_var=
8618 allow_undefined_flag=
8619 always_export_symbols=no
8620 archive_cmds=
8621 archive_expsym_cmds=
8622 compiler_needs_object=no
8623 enable_shared_with_static_runtimes=no
8624 export_dynamic_flag_spec=
8625 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8626 hardcode_automatic=no
8627 hardcode_direct=no
8628 hardcode_direct_absolute=no
8629 hardcode_libdir_flag_spec=
8630 hardcode_libdir_separator=
8631 hardcode_minus_L=no
8632 hardcode_shlibpath_var=unsupported
8633 inherit_rpath=no
8634 link_all_deplibs=unknown
8635 module_cmds=
8636 module_expsym_cmds=
8637 old_archive_from_new_cmds=
8638 old_archive_from_expsyms_cmds=
8639 thread_safe_flag_spec=
8640 whole_archive_flag_spec=
8641 # include_expsyms should be a list of space-separated symbols to be *always*
8642 # included in the symbol list
8643 include_expsyms=
8644 # exclude_expsyms can be an extended regexp of symbols to exclude
8645 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8646 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8647 # as well as any symbol that contains `d'.
8648 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8649 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8650 # platforms (ab)use it in PIC code, but their linkers get confused if
8651 # the symbol is explicitly referenced. Since portable code cannot
8652 # rely on this symbol name, it's probably fine to never include it in
8653 # preloaded symbol tables.
8654 # Exclude shared library initialization/finalization symbols.
8655 extract_expsyms_cmds=
8657 case $host_os in
8658 cygwin* | mingw* | pw32* | cegcc*)
8659 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8660 # When not using gcc, we currently assume that we are using
8661 # Microsoft Visual C++.
8662 if test "$GCC" != yes; then
8663 with_gnu_ld=no
8664 fi
8665 ;;
8666 interix*)
8667 # we just hope/assume this is gcc and not c89 (= MSVC++)
8668 with_gnu_ld=yes
8669 ;;
8670 openbsd*)
8671 with_gnu_ld=no
8672 ;;
8673 linux* | k*bsd*-gnu | gnu*)
8674 link_all_deplibs=no
8675 ;;
8676 esac
8678 ld_shlibs=yes
8680 # On some targets, GNU ld is compatible enough with the native linker
8681 # that we're better off using the native interface for both.
8682 lt_use_gnu_ld_interface=no
8683 if test "$with_gnu_ld" = yes; then
8684 case $host_os in
8685 aix*)
8686 # The AIX port of GNU ld has always aspired to compatibility
8687 # with the native linker. However, as the warning in the GNU ld
8688 # block says, versions before 2.19.5* couldn't really create working
8689 # shared libraries, regardless of the interface used.
8690 case `$LD -v 2>&1` in
8691 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8692 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8693 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8694 *)
8695 lt_use_gnu_ld_interface=yes
8696 ;;
8697 esac
8698 ;;
8699 *)
8700 lt_use_gnu_ld_interface=yes
8701 ;;
8702 esac
8703 fi
8705 if test "$lt_use_gnu_ld_interface" = yes; then
8706 # If archive_cmds runs LD, not CC, wlarc should be empty
8707 wlarc='${wl}'
8709 # Set some defaults for GNU ld with shared library support. These
8710 # are reset later if shared libraries are not supported. Putting them
8711 # here allows them to be overridden if necessary.
8712 runpath_var=LD_RUN_PATH
8713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8714 export_dynamic_flag_spec='${wl}--export-dynamic'
8715 # ancient GNU ld didn't support --whole-archive et. al.
8716 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8717 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8718 else
8719 whole_archive_flag_spec=
8720 fi
8721 supports_anon_versioning=no
8722 case `$LD -v 2>&1` in
8723 *GNU\ gold*) supports_anon_versioning=yes ;;
8724 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8725 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8726 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8727 *\ 2.11.*) ;; # other 2.11 versions
8728 *) supports_anon_versioning=yes ;;
8729 esac
8731 # See if GNU ld supports shared libraries.
8732 case $host_os in
8733 aix[3-9]*)
8734 # On AIX/PPC, the GNU linker is very broken
8735 if test "$host_cpu" != ia64; then
8736 ld_shlibs=no
8737 cat <<_LT_EOF 1>&2
8739 *** Warning: the GNU linker, at least up to release 2.19, is reported
8740 *** to be unable to reliably create shared libraries on AIX.
8741 *** Therefore, libtool is disabling shared libraries support. If you
8742 *** really care for shared libraries, you may want to install binutils
8743 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8744 *** You will then need to restart the configuration process.
8746 _LT_EOF
8747 fi
8748 ;;
8750 amigaos*)
8751 case $host_cpu in
8752 powerpc)
8753 # see comment about AmigaOS4 .so support
8754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755 archive_expsym_cmds=''
8756 ;;
8757 m68k)
8758 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)'
8759 hardcode_libdir_flag_spec='-L$libdir'
8760 hardcode_minus_L=yes
8761 ;;
8762 esac
8763 ;;
8765 beos*)
8766 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8767 allow_undefined_flag=unsupported
8768 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8769 # support --undefined. This deserves some investigation. FIXME
8770 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8771 else
8772 ld_shlibs=no
8773 fi
8774 ;;
8776 cygwin* | mingw* | pw32* | cegcc*)
8777 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8778 # as there is no search path for DLLs.
8779 hardcode_libdir_flag_spec='-L$libdir'
8780 export_dynamic_flag_spec='${wl}--export-all-symbols'
8781 allow_undefined_flag=unsupported
8782 always_export_symbols=no
8783 enable_shared_with_static_runtimes=yes
8784 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'
8785 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8787 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8789 # If the export-symbols file already is a .def file (1st line
8790 # is EXPORTS), use it as is; otherwise, prepend...
8791 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8792 cp $export_symbols $output_objdir/$soname.def;
8793 else
8794 echo EXPORTS > $output_objdir/$soname.def;
8795 cat $export_symbols >> $output_objdir/$soname.def;
8796 fi~
8797 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8798 else
8799 ld_shlibs=no
8800 fi
8801 ;;
8803 haiku*)
8804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805 link_all_deplibs=yes
8806 ;;
8808 interix[3-9]*)
8809 hardcode_direct=no
8810 hardcode_shlibpath_var=no
8811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8812 export_dynamic_flag_spec='${wl}-E'
8813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8814 # Instead, shared libraries are loaded at an image base (0x10000000 by
8815 # default) and relocated if they conflict, which is a slow very memory
8816 # consuming and fragmenting process. To avoid this, we pick a random,
8817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8818 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8819 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8820 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'
8821 ;;
8823 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8824 tmp_diet=no
8825 if test "$host_os" = linux-dietlibc; then
8826 case $cc_basename in
8827 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8828 esac
8829 fi
8830 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8831 && test "$tmp_diet" = no
8832 then
8833 tmp_addflag=' $pic_flag'
8834 tmp_sharedflag='-shared'
8835 case $cc_basename,$host_cpu in
8836 pgcc*) # Portland Group C compiler
8837 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'
8838 tmp_addflag=' $pic_flag'
8839 ;;
8840 pgf77* | pgf90* | pgf95* | pgfortran*)
8841 # Portland Group f77 and f90 compilers
8842 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'
8843 tmp_addflag=' $pic_flag -Mnomain' ;;
8844 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8845 tmp_addflag=' -i_dynamic' ;;
8846 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8847 tmp_addflag=' -i_dynamic -nofor_main' ;;
8848 ifc* | ifort*) # Intel Fortran compiler
8849 tmp_addflag=' -nofor_main' ;;
8850 lf95*) # Lahey Fortran 8.1
8851 whole_archive_flag_spec=
8852 tmp_sharedflag='--shared' ;;
8853 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8854 tmp_sharedflag='-qmkshrobj'
8855 tmp_addflag= ;;
8856 nvcc*) # Cuda Compiler Driver 2.2
8857 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'
8858 compiler_needs_object=yes
8859 ;;
8860 esac
8861 case `$CC -V 2>&1 | sed 5q` in
8862 *Sun\ C*) # Sun C 5.9
8863 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'
8864 compiler_needs_object=yes
8865 tmp_sharedflag='-G' ;;
8866 *Sun\ F*) # Sun Fortran 8.3
8867 tmp_sharedflag='-G' ;;
8868 esac
8869 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 if test "x$supports_anon_versioning" = xyes; then
8872 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8874 echo "local: *; };" >> $output_objdir/$libname.ver~
8875 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8876 fi
8878 case $cc_basename in
8879 xlf* | bgf* | bgxlf* | mpixlf*)
8880 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8881 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8883 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8884 if test "x$supports_anon_versioning" = xyes; then
8885 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8887 echo "local: *; };" >> $output_objdir/$libname.ver~
8888 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8889 fi
8890 ;;
8891 esac
8892 else
8893 ld_shlibs=no
8894 fi
8895 ;;
8897 netbsd* | netbsdelf*-gnu)
8898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8899 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8900 wlarc=
8901 else
8902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8903 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8904 fi
8905 ;;
8907 solaris*)
8908 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8909 ld_shlibs=no
8910 cat <<_LT_EOF 1>&2
8912 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8913 *** create shared libraries on Solaris systems. Therefore, libtool
8914 *** is disabling shared libraries support. We urge you to upgrade GNU
8915 *** binutils to release 2.9.1 or newer. Another option is to modify
8916 *** your PATH or compiler configuration so that the native linker is
8917 *** used, and then restart.
8919 _LT_EOF
8920 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8923 else
8924 ld_shlibs=no
8925 fi
8926 ;;
8928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8929 case `$LD -v 2>&1` in
8930 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8931 ld_shlibs=no
8932 cat <<_LT_EOF 1>&2
8934 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8935 *** reliably create shared libraries on SCO systems. Therefore, libtool
8936 *** is disabling shared libraries support. We urge you to upgrade GNU
8937 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8938 *** your PATH or compiler configuration so that the native linker is
8939 *** used, and then restart.
8941 _LT_EOF
8942 ;;
8943 *)
8944 # For security reasons, it is highly recommended that you always
8945 # use absolute paths for naming shared libraries, and exclude the
8946 # DT_RUNPATH tag from executables and libraries. But doing so
8947 # requires that you compile everything twice, which is a pain.
8948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8949 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8952 else
8953 ld_shlibs=no
8954 fi
8955 ;;
8956 esac
8957 ;;
8959 sunos4*)
8960 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8961 wlarc=
8962 hardcode_direct=yes
8963 hardcode_shlibpath_var=no
8964 ;;
8966 *)
8967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970 else
8971 ld_shlibs=no
8972 fi
8973 ;;
8974 esac
8976 if test "$ld_shlibs" = no; then
8977 runpath_var=
8978 hardcode_libdir_flag_spec=
8979 export_dynamic_flag_spec=
8980 whole_archive_flag_spec=
8981 fi
8982 else
8983 # PORTME fill in a description of your system's linker (not GNU ld)
8984 case $host_os in
8985 aix3*)
8986 allow_undefined_flag=unsupported
8987 always_export_symbols=yes
8988 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'
8989 # Note: this linker hardcodes the directories in LIBPATH if there
8990 # are no directories specified by -L.
8991 hardcode_minus_L=yes
8992 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8993 # Neither direct hardcoding nor static linking is supported with a
8994 # broken collect2.
8995 hardcode_direct=unsupported
8996 fi
8997 ;;
8999 aix[4-9]*)
9000 if test "$host_cpu" = ia64; then
9001 # On IA64, the linker does run time linking by default, so we don't
9002 # have to do anything special.
9003 aix_use_runtimelinking=no
9004 exp_sym_flag='-Bexport'
9005 no_entry_flag=""
9006 else
9007 # If we're using GNU nm, then we don't want the "-C" option.
9008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9009 # Also, AIX nm treats weak defined symbols like other global
9010 # defined symbols, whereas GNU nm marks them as "W".
9011 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9012 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9013 else
9014 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9015 fi
9016 aix_use_runtimelinking=no
9018 # Test if we are trying to use run time linking or normal
9019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9020 # need to do runtime linking.
9021 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9022 for ld_flag in $LDFLAGS; do
9023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9024 aix_use_runtimelinking=yes
9025 break
9026 fi
9027 done
9028 ;;
9029 esac
9031 exp_sym_flag='-bexport'
9032 no_entry_flag='-bnoentry'
9033 fi
9035 # When large executables or shared objects are built, AIX ld can
9036 # have problems creating the table of contents. If linking a library
9037 # or program results in "error TOC overflow" add -mminimal-toc to
9038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9041 archive_cmds=''
9042 hardcode_direct=yes
9043 hardcode_direct_absolute=yes
9044 hardcode_libdir_separator=':'
9045 link_all_deplibs=yes
9046 file_list_spec='${wl}-f,'
9048 if test "$GCC" = yes; then
9049 case $host_os in aix4.[012]|aix4.[012].*)
9050 # We only want to do this on AIX 4.2 and lower, the check
9051 # below for broken collect2 doesn't work under 4.3+
9052 collect2name=`${CC} -print-prog-name=collect2`
9053 if test -f "$collect2name" &&
9054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9055 then
9056 # We have reworked collect2
9057 :
9058 else
9059 # We have old collect2
9060 hardcode_direct=unsupported
9061 # It fails to find uninstalled libraries when the uninstalled
9062 # path is not listed in the libpath. Setting hardcode_minus_L
9063 # to unsupported forces relinking
9064 hardcode_minus_L=yes
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 hardcode_libdir_separator=
9067 fi
9068 ;;
9069 esac
9070 shared_flag='-shared'
9071 if test "$aix_use_runtimelinking" = yes; then
9072 shared_flag="$shared_flag "'${wl}-G'
9073 fi
9074 link_all_deplibs=no
9075 else
9076 # not using gcc
9077 if test "$host_cpu" = ia64; then
9078 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9079 # chokes on -Wl,-G. The following line is correct:
9080 shared_flag='-G'
9081 else
9082 if test "$aix_use_runtimelinking" = yes; then
9083 shared_flag='${wl}-G'
9084 else
9085 shared_flag='${wl}-bM:SRE'
9086 fi
9087 fi
9088 fi
9090 export_dynamic_flag_spec='${wl}-bexpall'
9091 # It seems that -bexpall does not export symbols beginning with
9092 # underscore (_), so it is better to generate a list of symbols to export.
9093 always_export_symbols=yes
9094 if test "$aix_use_runtimelinking" = yes; then
9095 # Warning - without using the other runtime loading flags (-brtl),
9096 # -berok will link without error, but may produce a broken library.
9097 allow_undefined_flag='-berok'
9098 # Determine the default libpath from the value encoded in an
9099 # empty executable.
9100 if test "${lt_cv_aix_libpath+set}" = set; then
9101 aix_libpath=$lt_cv_aix_libpath
9102 else
9103 if ${lt_cv_aix_libpath_+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9109 int
9110 main ()
9111 {
9113 ;
9114 return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9119 lt_aix_libpath_sed='
9120 /Import File Strings/,/^$/ {
9121 /^0/ {
9122 s/^0 *\([^ ]*\) *$/\1/
9123 p
9124 }
9125 }'
9126 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9127 # Check for a 64-bit object if we didn't find anything.
9128 if test -z "$lt_cv_aix_libpath_"; then
9129 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9130 fi
9131 fi
9132 rm -f core conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
9134 if test -z "$lt_cv_aix_libpath_"; then
9135 lt_cv_aix_libpath_="/usr/lib:/lib"
9136 fi
9138 fi
9140 aix_libpath=$lt_cv_aix_libpath_
9141 fi
9143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9144 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9145 else
9146 if test "$host_cpu" = ia64; then
9147 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9148 allow_undefined_flag="-z nodefs"
9149 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"
9150 else
9151 # Determine the default libpath from the value encoded in an
9152 # empty executable.
9153 if test "${lt_cv_aix_libpath+set}" = set; then
9154 aix_libpath=$lt_cv_aix_libpath
9155 else
9156 if ${lt_cv_aix_libpath_+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9162 int
9163 main ()
9164 {
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9172 lt_aix_libpath_sed='
9173 /Import File Strings/,/^$/ {
9174 /^0/ {
9175 s/^0 *\([^ ]*\) *$/\1/
9176 p
9177 }
9178 }'
9179 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180 # Check for a 64-bit object if we didn't find anything.
9181 if test -z "$lt_cv_aix_libpath_"; then
9182 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9183 fi
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 if test -z "$lt_cv_aix_libpath_"; then
9188 lt_cv_aix_libpath_="/usr/lib:/lib"
9189 fi
9191 fi
9193 aix_libpath=$lt_cv_aix_libpath_
9194 fi
9196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9197 # Warning - without using the other run time loading flags,
9198 # -berok will link without error, but may produce a broken library.
9199 no_undefined_flag=' ${wl}-bernotok'
9200 allow_undefined_flag=' ${wl}-berok'
9201 if test "$with_gnu_ld" = yes; then
9202 # We only use this code for GNU lds that support --whole-archive.
9203 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9204 else
9205 # Exported symbols can be pulled into shared objects from archives
9206 whole_archive_flag_spec='$convenience'
9207 fi
9208 archive_cmds_need_lc=yes
9209 # This is similar to how AIX traditionally builds its shared libraries.
9210 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9211 fi
9212 fi
9213 ;;
9215 amigaos*)
9216 case $host_cpu in
9217 powerpc)
9218 # see comment about AmigaOS4 .so support
9219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220 archive_expsym_cmds=''
9221 ;;
9222 m68k)
9223 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)'
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_minus_L=yes
9226 ;;
9227 esac
9228 ;;
9230 bsdi[45]*)
9231 export_dynamic_flag_spec=-rdynamic
9232 ;;
9234 cygwin* | mingw* | pw32* | cegcc*)
9235 # When not using gcc, we currently assume that we are using
9236 # Microsoft Visual C++.
9237 # hardcode_libdir_flag_spec is actually meaningless, as there is
9238 # no search path for DLLs.
9239 case $cc_basename in
9240 cl*)
9241 # Native MSVC
9242 hardcode_libdir_flag_spec=' '
9243 allow_undefined_flag=unsupported
9244 always_export_symbols=yes
9245 file_list_spec='@'
9246 # Tell ltmain to make .lib files, not .a files.
9247 libext=lib
9248 # Tell ltmain to make .dll files, not .so files.
9249 shrext_cmds=".dll"
9250 # FIXME: Setting linknames here is a bad hack.
9251 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9252 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9253 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9254 else
9255 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9256 fi~
9257 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9258 linknames='
9259 # The linker will not automatically build a static lib if we build a DLL.
9260 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9261 enable_shared_with_static_runtimes=yes
9262 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9264 # Don't use ranlib
9265 old_postinstall_cmds='chmod 644 $oldlib'
9266 postlink_cmds='lt_outputfile="@OUTPUT@"~
9267 lt_tool_outputfile="@TOOL_OUTPUT@"~
9268 case $lt_outputfile in
9269 *.exe|*.EXE) ;;
9270 *)
9271 lt_outputfile="$lt_outputfile.exe"
9272 lt_tool_outputfile="$lt_tool_outputfile.exe"
9273 ;;
9274 esac~
9275 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9276 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9277 $RM "$lt_outputfile.manifest";
9278 fi'
9279 ;;
9280 *)
9281 # Assume MSVC wrapper
9282 hardcode_libdir_flag_spec=' '
9283 allow_undefined_flag=unsupported
9284 # Tell ltmain to make .lib files, not .a files.
9285 libext=lib
9286 # Tell ltmain to make .dll files, not .so files.
9287 shrext_cmds=".dll"
9288 # FIXME: Setting linknames here is a bad hack.
9289 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9290 # The linker will automatically build a .lib file if we build a DLL.
9291 old_archive_from_new_cmds='true'
9292 # FIXME: Should let the user specify the lib program.
9293 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9294 enable_shared_with_static_runtimes=yes
9295 ;;
9296 esac
9297 ;;
9299 darwin* | rhapsody*)
9302 archive_cmds_need_lc=no
9303 hardcode_direct=no
9304 hardcode_automatic=yes
9305 hardcode_shlibpath_var=unsupported
9306 if test "$lt_cv_ld_force_load" = "yes"; then
9307 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\"`'
9309 else
9310 whole_archive_flag_spec=''
9311 fi
9312 link_all_deplibs=yes
9313 allow_undefined_flag="$_lt_dar_allow_undefined"
9314 case $cc_basename in
9315 ifort*) _lt_dar_can_shared=yes ;;
9316 *) _lt_dar_can_shared=$GCC ;;
9317 esac
9318 if test "$_lt_dar_can_shared" = "yes"; then
9319 output_verbose_link_cmd=func_echo_all
9320 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9321 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9322 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}"
9323 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}"
9325 else
9326 ld_shlibs=no
9327 fi
9329 ;;
9331 dgux*)
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_libdir_flag_spec='-L$libdir'
9334 hardcode_shlibpath_var=no
9335 ;;
9337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9338 # support. Future versions do this automatically, but an explicit c++rt0.o
9339 # does not break anything, and helps significantly (at the cost of a little
9340 # extra space).
9341 freebsd2.2*)
9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9343 hardcode_libdir_flag_spec='-R$libdir'
9344 hardcode_direct=yes
9345 hardcode_shlibpath_var=no
9346 ;;
9348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9349 freebsd2.*)
9350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_direct=yes
9352 hardcode_minus_L=yes
9353 hardcode_shlibpath_var=no
9354 ;;
9356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9357 freebsd* | dragonfly*)
9358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9359 hardcode_libdir_flag_spec='-R$libdir'
9360 hardcode_direct=yes
9361 hardcode_shlibpath_var=no
9362 ;;
9364 hpux9*)
9365 if test "$GCC" = yes; then
9366 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9367 else
9368 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9369 fi
9370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371 hardcode_libdir_separator=:
9372 hardcode_direct=yes
9374 # hardcode_minus_L: Not really in the search PATH,
9375 # but as the default location of the library.
9376 hardcode_minus_L=yes
9377 export_dynamic_flag_spec='${wl}-E'
9378 ;;
9380 hpux10*)
9381 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9382 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9383 else
9384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9385 fi
9386 if test "$with_gnu_ld" = no; then
9387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9388 hardcode_libdir_separator=:
9389 hardcode_direct=yes
9390 hardcode_direct_absolute=yes
9391 export_dynamic_flag_spec='${wl}-E'
9392 # hardcode_minus_L: Not really in the search PATH,
9393 # but as the default location of the library.
9394 hardcode_minus_L=yes
9395 fi
9396 ;;
9398 hpux11*)
9399 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9400 case $host_cpu in
9401 hppa*64*)
9402 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 ;;
9404 ia64*)
9405 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9406 ;;
9407 *)
9408 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9409 ;;
9410 esac
9411 else
9412 case $host_cpu in
9413 hppa*64*)
9414 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 ;;
9416 ia64*)
9417 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9418 ;;
9419 *)
9421 # Older versions of the 11.00 compiler do not understand -b yet
9422 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9424 $as_echo_n "checking if $CC understands -b... " >&6; }
9425 if ${lt_cv_prog_compiler__b+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 lt_cv_prog_compiler__b=no
9429 save_LDFLAGS="$LDFLAGS"
9430 LDFLAGS="$LDFLAGS -b"
9431 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9433 # The linker can only warn and ignore the option if not recognized
9434 # So say no if there are warnings
9435 if test -s conftest.err; then
9436 # Append any errors to the config.log.
9437 cat conftest.err 1>&5
9438 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9440 if diff conftest.exp conftest.er2 >/dev/null; then
9441 lt_cv_prog_compiler__b=yes
9442 fi
9443 else
9444 lt_cv_prog_compiler__b=yes
9445 fi
9446 fi
9447 $RM -r conftest*
9448 LDFLAGS="$save_LDFLAGS"
9450 fi
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9452 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9454 if test x"$lt_cv_prog_compiler__b" = xyes; then
9455 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456 else
9457 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9458 fi
9460 ;;
9461 esac
9462 fi
9463 if test "$with_gnu_ld" = no; then
9464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9465 hardcode_libdir_separator=:
9467 case $host_cpu in
9468 hppa*64*|ia64*)
9469 hardcode_direct=no
9470 hardcode_shlibpath_var=no
9471 ;;
9472 *)
9473 hardcode_direct=yes
9474 hardcode_direct_absolute=yes
9475 export_dynamic_flag_spec='${wl}-E'
9477 # hardcode_minus_L: Not really in the search PATH,
9478 # but as the default location of the library.
9479 hardcode_minus_L=yes
9480 ;;
9481 esac
9482 fi
9483 ;;
9485 irix5* | irix6* | nonstopux*)
9486 if test "$GCC" = yes; then
9487 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'
9488 # Try to use the -exported_symbol ld option, if it does not
9489 # work, assume that -exports_file does not work either and
9490 # implicitly export all symbols.
9491 # This should be the same for all languages, so no per-tag cache variable.
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9493 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9494 if ${lt_cv_irix_exported_symbol+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 save_LDFLAGS="$LDFLAGS"
9498 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 int foo (void) { return 0; }
9502 _ACEOF
9503 if ac_fn_c_try_link "$LINENO"; then :
9504 lt_cv_irix_exported_symbol=yes
9505 else
9506 lt_cv_irix_exported_symbol=no
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510 LDFLAGS="$save_LDFLAGS"
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9513 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9514 if test "$lt_cv_irix_exported_symbol" = yes; then
9515 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'
9516 fi
9517 else
9518 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'
9519 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'
9520 fi
9521 archive_cmds_need_lc='no'
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524 inherit_rpath=yes
9525 link_all_deplibs=yes
9526 ;;
9528 netbsd* | netbsdelf*-gnu)
9529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9531 else
9532 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9533 fi
9534 hardcode_libdir_flag_spec='-R$libdir'
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 ;;
9539 newsos6)
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_direct=yes
9542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_shlibpath_var=no
9545 ;;
9547 *nto* | *qnx*)
9548 ;;
9550 openbsd*)
9551 if test -f /usr/libexec/ld.so; then
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 hardcode_direct_absolute=yes
9555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9557 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9559 export_dynamic_flag_spec='${wl}-E'
9560 else
9561 case $host_os in
9562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-R$libdir'
9565 ;;
9566 *)
9567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 ;;
9570 esac
9571 fi
9572 else
9573 ld_shlibs=no
9574 fi
9575 ;;
9577 os2*)
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_minus_L=yes
9580 allow_undefined_flag=unsupported
9581 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9583 ;;
9585 osf3*)
9586 if test "$GCC" = yes; then
9587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9588 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'
9589 else
9590 allow_undefined_flag=' -expect_unresolved \*'
9591 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'
9592 fi
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9595 hardcode_libdir_separator=:
9596 ;;
9598 osf4* | osf5*) # as osf3* with the addition of -msym flag
9599 if test "$GCC" = yes; then
9600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9601 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'
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 else
9604 allow_undefined_flag=' -expect_unresolved \*'
9605 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'
9606 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~
9607 $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'
9609 # Both c and cxx compiler support -rpath directly
9610 hardcode_libdir_flag_spec='-rpath $libdir'
9611 fi
9612 archive_cmds_need_lc='no'
9613 hardcode_libdir_separator=:
9614 ;;
9616 solaris*)
9617 no_undefined_flag=' -z defs'
9618 if test "$GCC" = yes; then
9619 wlarc='${wl}'
9620 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622 $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'
9623 else
9624 case `$CC -V 2>&1` in
9625 *"Compilers 5.0"*)
9626 wlarc=''
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9630 ;;
9631 *)
9632 wlarc='${wl}'
9633 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9636 ;;
9637 esac
9638 fi
9639 hardcode_libdir_flag_spec='-R$libdir'
9640 hardcode_shlibpath_var=no
9641 case $host_os in
9642 solaris2.[0-5] | solaris2.[0-5].*) ;;
9643 *)
9644 # The compiler driver will combine and reorder linker options,
9645 # but understands `-z linker_flag'. GCC discards it without `$wl',
9646 # but is careful enough not to reorder.
9647 # Supported since Solaris 2.6 (maybe 2.5.1?)
9648 if test "$GCC" = yes; then
9649 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9650 else
9651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9652 fi
9653 ;;
9654 esac
9655 link_all_deplibs=yes
9656 ;;
9658 sunos4*)
9659 if test "x$host_vendor" = xsequent; then
9660 # Use $CC to link under sequent, because it throws in some extra .o
9661 # files that make .init and .fini sections work.
9662 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9663 else
9664 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9665 fi
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9672 sysv4)
9673 case $host_vendor in
9674 sni)
9675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676 hardcode_direct=yes # is this really true???
9677 ;;
9678 siemens)
9679 ## LD is ld it makes a PLAMLIB
9680 ## CC just makes a GrossModule.
9681 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9682 reload_cmds='$CC -r -o $output$reload_objs'
9683 hardcode_direct=no
9684 ;;
9685 motorola)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9688 ;;
9689 esac
9690 runpath_var='LD_RUN_PATH'
9691 hardcode_shlibpath_var=no
9692 ;;
9694 sysv4.3*)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 export_dynamic_flag_spec='-Bexport'
9698 ;;
9700 sysv4*MP*)
9701 if test -d /usr/nec; then
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_shlibpath_var=no
9704 runpath_var=LD_RUN_PATH
9705 hardcode_runpath_var=yes
9706 ld_shlibs=yes
9707 fi
9708 ;;
9710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9711 no_undefined_flag='${wl}-z,text'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
9714 runpath_var='LD_RUN_PATH'
9716 if test "$GCC" = yes; then
9717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 else
9720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 fi
9723 ;;
9725 sysv5* | sco3.2v5* | sco5v6*)
9726 # Note: We can NOT use -z defs as we might desire, because we do not
9727 # link with -lc, and that would cause any symbols used from libc to
9728 # always be unresolved, which means just about no library would
9729 # ever link correctly. If we're not using GNU ld we use -z text
9730 # though, which does catch some bad symbols but isn't as heavy-handed
9731 # as -z defs.
9732 no_undefined_flag='${wl}-z,text'
9733 allow_undefined_flag='${wl}-z,nodefs'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9737 hardcode_libdir_separator=':'
9738 link_all_deplibs=yes
9739 export_dynamic_flag_spec='${wl}-Bexport'
9740 runpath_var='LD_RUN_PATH'
9742 if test "$GCC" = yes; then
9743 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 else
9746 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 fi
9749 ;;
9751 uts4*)
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_shlibpath_var=no
9755 ;;
9757 *)
9758 ld_shlibs=no
9759 ;;
9760 esac
9762 if test x$host_vendor = xsni; then
9763 case $host in
9764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9765 export_dynamic_flag_spec='${wl}-Blargedynsym'
9766 ;;
9767 esac
9768 fi
9769 fi
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9772 $as_echo "$ld_shlibs" >&6; }
9773 test "$ld_shlibs" = no && can_build_shared=no
9775 with_gnu_ld=$with_gnu_ld
9791 #
9792 # Do we need to explicitly link libc?
9793 #
9794 case "x$archive_cmds_need_lc" in
9795 x|xyes)
9796 # Assume -lc should be added
9797 archive_cmds_need_lc=yes
9799 if test "$enable_shared" = yes && test "$GCC" = yes; then
9800 case $archive_cmds in
9801 *'~'*)
9802 # FIXME: we may have to deal with multi-command sequences.
9803 ;;
9804 '$CC '*)
9805 # Test whether the compiler implicitly links with -lc since on some
9806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9807 # to ld, don't add -lc before -lgcc.
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9809 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9810 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 $RM conftest*
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9817 (eval $ac_compile) 2>&5
9818 ac_status=$?
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; } 2>conftest.err; then
9821 soname=conftest
9822 lib=conftest
9823 libobjs=conftest.$ac_objext
9824 deplibs=
9825 wl=$lt_prog_compiler_wl
9826 pic_flag=$lt_prog_compiler_pic
9827 compiler_flags=-v
9828 linker_flags=-v
9829 verstring=
9830 output_objdir=.
9831 libname=conftest
9832 lt_save_allow_undefined_flag=$allow_undefined_flag
9833 allow_undefined_flag=
9834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9835 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9836 ac_status=$?
9837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838 test $ac_status = 0; }
9839 then
9840 lt_cv_archive_cmds_need_lc=no
9841 else
9842 lt_cv_archive_cmds_need_lc=yes
9843 fi
9844 allow_undefined_flag=$lt_save_allow_undefined_flag
9845 else
9846 cat conftest.err 1>&5
9847 fi
9848 $RM conftest*
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9852 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9853 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9854 ;;
9855 esac
9856 fi
9857 ;;
9858 esac
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10012 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10014 if test "$GCC" = yes; then
10015 case $host_os in
10016 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10017 *) lt_awk_arg="/^libraries:/" ;;
10018 esac
10019 case $host_os in
10020 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10021 *) lt_sed_strip_eq="s,=/,/,g" ;;
10022 esac
10023 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10024 case $lt_search_path_spec in
10025 *\;*)
10026 # if the path contains ";" then we assume it to be the separator
10027 # otherwise default to the standard path separator (i.e. ":") - it is
10028 # assumed that no part of a normal pathname contains ";" but that should
10029 # okay in the real world where ";" in dirpaths is itself problematic.
10030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10031 ;;
10032 *)
10033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10034 ;;
10035 esac
10036 # Ok, now we have the path, separated by spaces, we can step through it
10037 # and add multilib dir if necessary.
10038 lt_tmp_lt_search_path_spec=
10039 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10040 for lt_sys_path in $lt_search_path_spec; do
10041 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10043 else
10044 test -d "$lt_sys_path" && \
10045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10046 fi
10047 done
10048 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10049 BEGIN {RS=" "; FS="/|\n";} {
10050 lt_foo="";
10051 lt_count=0;
10052 for (lt_i = NF; lt_i > 0; lt_i--) {
10053 if ($lt_i != "" && $lt_i != ".") {
10054 if ($lt_i == "..") {
10055 lt_count++;
10056 } else {
10057 if (lt_count == 0) {
10058 lt_foo="/" $lt_i lt_foo;
10059 } else {
10060 lt_count--;
10061 }
10062 }
10063 }
10064 }
10065 if (lt_foo != "") { lt_freq[lt_foo]++; }
10066 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10067 }'`
10068 # AWK program above erroneously prepends '/' to C:/dos/paths
10069 # for these hosts.
10070 case $host_os in
10071 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10072 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10073 esac
10074 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10075 else
10076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10077 fi
10078 library_names_spec=
10079 libname_spec='lib$name'
10080 soname_spec=
10081 shrext_cmds=".so"
10082 postinstall_cmds=
10083 postuninstall_cmds=
10084 finish_cmds=
10085 finish_eval=
10086 shlibpath_var=
10087 shlibpath_overrides_runpath=unknown
10088 version_type=none
10089 dynamic_linker="$host_os ld.so"
10090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10091 need_lib_prefix=unknown
10092 hardcode_into_libs=no
10094 # when you set need_version to no, make sure it does not cause -set_version
10095 # flags to be left without arguments
10096 need_version=unknown
10098 case $host_os in
10099 aix3*)
10100 version_type=linux # correct to gnu/linux during the next big refactor
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10102 shlibpath_var=LIBPATH
10104 # AIX 3 has no versioning support, so we append a major version to the name.
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 ;;
10108 aix[4-9]*)
10109 version_type=linux # correct to gnu/linux during the next big refactor
10110 need_lib_prefix=no
10111 need_version=no
10112 hardcode_into_libs=yes
10113 if test "$host_cpu" = ia64; then
10114 # AIX 5 supports IA64
10115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 else
10118 # With GCC up to 2.95.x, collect2 would create an import file
10119 # for dependence libraries. The import file would start with
10120 # the line `#! .'. This would cause the generated library to
10121 # depend on `.', always an invalid library. This was fixed in
10122 # development snapshots of GCC prior to 3.0.
10123 case $host_os in
10124 aix4 | aix4.[01] | aix4.[01].*)
10125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10126 echo ' yes '
10127 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10128 :
10129 else
10130 can_build_shared=no
10131 fi
10132 ;;
10133 esac
10134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10135 # soname into executable. Probably we can add versioning support to
10136 # collect2, so additional links can be useful in future.
10137 if test "$aix_use_runtimelinking" = yes; then
10138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10139 # instead of lib<name>.a to let people know that these are not
10140 # typical AIX shared libraries.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 else
10143 # We preserve .a as extension for shared libraries through AIX4.2
10144 # and later when we are not doing run time linking.
10145 library_names_spec='${libname}${release}.a $libname.a'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 fi
10148 shlibpath_var=LIBPATH
10149 fi
10150 ;;
10152 amigaos*)
10153 case $host_cpu in
10154 powerpc)
10155 # Since July 2007 AmigaOS4 officially supports .so libraries.
10156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 ;;
10159 m68k)
10160 library_names_spec='$libname.ixlibrary $libname.a'
10161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10162 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10163 ;;
10164 esac
10165 ;;
10167 beos*)
10168 library_names_spec='${libname}${shared_ext}'
10169 dynamic_linker="$host_os ld.so"
10170 shlibpath_var=LIBRARY_PATH
10171 ;;
10173 bsdi[45]*)
10174 version_type=linux # correct to gnu/linux during the next big refactor
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10182 # the default ld.so.conf also contains /usr/contrib/lib and
10183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10184 # libtool to hard-code these into programs
10185 ;;
10187 cygwin* | mingw* | pw32* | cegcc*)
10188 version_type=windows
10189 shrext_cmds=".dll"
10190 need_version=no
10191 need_lib_prefix=no
10193 case $GCC,$cc_basename in
10194 yes,*)
10195 # gcc
10196 library_names_spec='$libname.dll.a'
10197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10198 postinstall_cmds='base_file=`basename \${file}`~
10199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10200 dldir=$destdir/`dirname \$dlpath`~
10201 test -d \$dldir || mkdir -p \$dldir~
10202 $install_prog $dir/$dlname \$dldir/$dlname~
10203 chmod a+x \$dldir/$dlname~
10204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10205 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10206 fi'
10207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10208 dlpath=$dir/\$dldll~
10209 $RM \$dlpath'
10210 shlibpath_overrides_runpath=yes
10212 case $host_os in
10213 cygwin*)
10214 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10217 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10218 ;;
10219 mingw* | cegcc*)
10220 # MinGW DLLs use traditional 'lib' prefix
10221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10222 ;;
10223 pw32*)
10224 # pw32 DLLs use 'pw' prefix rather than 'lib'
10225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10226 ;;
10227 esac
10228 dynamic_linker='Win32 ld.exe'
10229 ;;
10231 *,cl*)
10232 # Native MSVC
10233 libname_spec='$name'
10234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10235 library_names_spec='${libname}.dll.lib'
10237 case $build_os in
10238 mingw*)
10239 sys_lib_search_path_spec=
10240 lt_save_ifs=$IFS
10241 IFS=';'
10242 for lt_path in $LIB
10243 do
10244 IFS=$lt_save_ifs
10245 # Let DOS variable expansion print the short 8.3 style file name.
10246 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10247 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10248 done
10249 IFS=$lt_save_ifs
10250 # Convert to MSYS style.
10251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10252 ;;
10253 cygwin*)
10254 # Convert to unix form, then to dos form, then back to unix form
10255 # but this time dos style (no spaces!) so that the unix form looks
10256 # like /cygdrive/c/PROGRA~1:/cygdr...
10257 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10258 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10259 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10260 ;;
10261 *)
10262 sys_lib_search_path_spec="$LIB"
10263 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10264 # It is most probably a Windows format PATH.
10265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10266 else
10267 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10268 fi
10269 # FIXME: find the short name or the path components, as spaces are
10270 # common. (e.g. "Program Files" -> "PROGRA~1")
10271 ;;
10272 esac
10274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10275 postinstall_cmds='base_file=`basename \${file}`~
10276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10277 dldir=$destdir/`dirname \$dlpath`~
10278 test -d \$dldir || mkdir -p \$dldir~
10279 $install_prog $dir/$dlname \$dldir/$dlname'
10280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10281 dlpath=$dir/\$dldll~
10282 $RM \$dlpath'
10283 shlibpath_overrides_runpath=yes
10284 dynamic_linker='Win32 link.exe'
10285 ;;
10287 *)
10288 # Assume MSVC wrapper
10289 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10290 dynamic_linker='Win32 ld.exe'
10291 ;;
10292 esac
10293 # FIXME: first we should search . and the directory the executable is in
10294 shlibpath_var=PATH
10295 ;;
10297 darwin* | rhapsody*)
10298 dynamic_linker="$host_os dyld"
10299 version_type=darwin
10300 need_lib_prefix=no
10301 need_version=no
10302 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10303 soname_spec='${libname}${release}${major}$shared_ext'
10304 shlibpath_overrides_runpath=yes
10305 shlibpath_var=DYLD_LIBRARY_PATH
10306 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10308 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10310 ;;
10312 dgux*)
10313 version_type=linux # correct to gnu/linux during the next big refactor
10314 need_lib_prefix=no
10315 need_version=no
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 ;;
10321 freebsd* | dragonfly*)
10322 # DragonFly does not have aout. When/if they implement a new
10323 # versioning mechanism, adjust this.
10324 if test -x /usr/bin/objformat; then
10325 objformat=`/usr/bin/objformat`
10326 else
10327 case $host_os in
10328 freebsd[23].*) objformat=aout ;;
10329 *) objformat=elf ;;
10330 esac
10331 fi
10332 version_type=freebsd-$objformat
10333 case $version_type in
10334 freebsd-elf*)
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10336 need_version=no
10337 need_lib_prefix=no
10338 ;;
10339 freebsd-*)
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10341 need_version=yes
10342 ;;
10343 esac
10344 shlibpath_var=LD_LIBRARY_PATH
10345 case $host_os in
10346 freebsd2.*)
10347 shlibpath_overrides_runpath=yes
10348 ;;
10349 freebsd3.[01]* | freebsdelf3.[01]*)
10350 shlibpath_overrides_runpath=yes
10351 hardcode_into_libs=yes
10352 ;;
10353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10355 shlibpath_overrides_runpath=no
10356 hardcode_into_libs=yes
10357 ;;
10358 *) # from 4.6 on, and DragonFly
10359 shlibpath_overrides_runpath=yes
10360 hardcode_into_libs=yes
10361 ;;
10362 esac
10363 ;;
10365 haiku*)
10366 version_type=linux # correct to gnu/linux during the next big refactor
10367 need_lib_prefix=no
10368 need_version=no
10369 dynamic_linker="$host_os runtime_loader"
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10375 hardcode_into_libs=yes
10376 ;;
10378 hpux9* | hpux10* | hpux11*)
10379 # Give a soname corresponding to the major version so that dld.sl refuses to
10380 # link against other versions.
10381 version_type=sunos
10382 need_lib_prefix=no
10383 need_version=no
10384 case $host_cpu in
10385 ia64*)
10386 shrext_cmds='.so'
10387 hardcode_into_libs=yes
10388 dynamic_linker="$host_os dld.so"
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 if test "X$HPUX_IA64_MODE" = X32; then
10394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10395 else
10396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10397 fi
10398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10399 ;;
10400 hppa*64*)
10401 shrext_cmds='.sl'
10402 hardcode_into_libs=yes
10403 dynamic_linker="$host_os dld.sl"
10404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10410 ;;
10411 *)
10412 shrext_cmds='.sl'
10413 dynamic_linker="$host_os dld.sl"
10414 shlibpath_var=SHLIB_PATH
10415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 ;;
10419 esac
10420 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10421 postinstall_cmds='chmod 555 $lib'
10422 # or fails outright, so override atomically:
10423 install_override_mode=555
10424 ;;
10426 interix[3-9]*)
10427 version_type=linux # correct to gnu/linux during the next big refactor
10428 need_lib_prefix=no
10429 need_version=no
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10433 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=no
10435 hardcode_into_libs=yes
10436 ;;
10438 irix5* | irix6* | nonstopux*)
10439 case $host_os in
10440 nonstopux*) version_type=nonstopux ;;
10441 *)
10442 if test "$lt_cv_prog_gnu_ld" = yes; then
10443 version_type=linux # correct to gnu/linux during the next big refactor
10444 else
10445 version_type=irix
10446 fi ;;
10447 esac
10448 need_lib_prefix=no
10449 need_version=no
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10452 case $host_os in
10453 irix5* | nonstopux*)
10454 libsuff= shlibsuff=
10455 ;;
10456 *)
10457 case $LD in # libtool.m4 will add one of these switches to LD
10458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10459 libsuff= shlibsuff= libmagic=32-bit;;
10460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10461 libsuff=32 shlibsuff=N32 libmagic=N32;;
10462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10463 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10464 *) libsuff= shlibsuff= libmagic=never-match;;
10465 esac
10466 ;;
10467 esac
10468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10469 shlibpath_overrides_runpath=no
10470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10472 hardcode_into_libs=yes
10473 ;;
10475 # No shared lib support for Linux oldld, aout, or coff.
10476 linux*oldld* | linux*aout* | linux*coff*)
10477 dynamic_linker=no
10478 ;;
10480 # This must be glibc/ELF.
10481 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10482 version_type=linux # correct to gnu/linux during the next big refactor
10483 need_lib_prefix=no
10484 need_version=no
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=no
10491 # Some binutils ld are patched to set DT_RUNPATH
10492 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495 lt_cv_shlibpath_overrides_runpath=no
10496 save_LDFLAGS=$LDFLAGS
10497 save_libdir=$libdir
10498 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10499 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10503 int
10504 main ()
10505 {
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_link "$LINENO"; then :
10512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10513 lt_cv_shlibpath_overrides_runpath=yes
10514 fi
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LDFLAGS=$save_LDFLAGS
10519 libdir=$save_libdir
10521 fi
10523 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10525 # This implies no fast_install, which is unacceptable.
10526 # Some rework will be needed to allow for fast_install
10527 # before this can be enabled.
10528 hardcode_into_libs=yes
10530 # Append ld.so.conf contents to the search path
10531 if test -f /etc/ld.so.conf; then
10532 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' ' '`
10533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10534 fi
10536 # We used to test for /lib/ld.so.1 and disable shared libraries on
10537 # powerpc, because MkLinux only supported shared libraries with the
10538 # GNU dynamic linker. Since this was broken with cross compilers,
10539 # most powerpc-linux boxes support dynamic linking these days and
10540 # people can always --disable-shared, the test was removed, and we
10541 # assume the GNU/Linux dynamic linker is in use.
10542 dynamic_linker='GNU/Linux ld.so'
10543 ;;
10545 netbsdelf*-gnu)
10546 version_type=linux
10547 need_lib_prefix=no
10548 need_version=no
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 shlibpath_overrides_runpath=no
10553 hardcode_into_libs=yes
10554 dynamic_linker='NetBSD ld.elf_so'
10555 ;;
10557 netbsd*)
10558 version_type=sunos
10559 need_lib_prefix=no
10560 need_version=no
10561 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10564 dynamic_linker='NetBSD (a.out) ld.so'
10565 else
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 dynamic_linker='NetBSD ld.elf_so'
10569 fi
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=yes
10572 hardcode_into_libs=yes
10573 ;;
10575 newsos6)
10576 version_type=linux # correct to gnu/linux during the next big refactor
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 shlibpath_overrides_runpath=yes
10580 ;;
10582 *nto* | *qnx*)
10583 version_type=qnx
10584 need_lib_prefix=no
10585 need_version=no
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath=no
10590 hardcode_into_libs=yes
10591 dynamic_linker='ldqnx.so'
10592 ;;
10594 openbsd*)
10595 version_type=sunos
10596 sys_lib_dlsearch_path_spec="/usr/lib"
10597 need_lib_prefix=no
10598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10599 case $host_os in
10600 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10601 *) need_version=no ;;
10602 esac
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10607 case $host_os in
10608 openbsd2.[89] | openbsd2.[89].*)
10609 shlibpath_overrides_runpath=no
10610 ;;
10611 *)
10612 shlibpath_overrides_runpath=yes
10613 ;;
10614 esac
10615 else
10616 shlibpath_overrides_runpath=yes
10617 fi
10618 ;;
10620 os2*)
10621 libname_spec='$name'
10622 shrext_cmds=".dll"
10623 need_lib_prefix=no
10624 library_names_spec='$libname${shared_ext} $libname.a'
10625 dynamic_linker='OS/2 ld.exe'
10626 shlibpath_var=LIBPATH
10627 ;;
10629 osf3* | osf4* | osf5*)
10630 version_type=osf
10631 need_lib_prefix=no
10632 need_version=no
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10638 ;;
10640 rdos*)
10641 dynamic_linker=no
10642 ;;
10644 solaris*)
10645 version_type=linux # correct to gnu/linux during the next big refactor
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 shlibpath_overrides_runpath=yes
10652 hardcode_into_libs=yes
10653 # ldd complains unless libraries are executable
10654 postinstall_cmds='chmod +x $lib'
10655 ;;
10657 sunos4*)
10658 version_type=sunos
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=yes
10663 if test "$with_gnu_ld" = yes; then
10664 need_lib_prefix=no
10665 fi
10666 need_version=yes
10667 ;;
10669 sysv4 | sysv4.3*)
10670 version_type=linux # correct to gnu/linux during the next big refactor
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 case $host_vendor in
10675 sni)
10676 shlibpath_overrides_runpath=no
10677 need_lib_prefix=no
10678 runpath_var=LD_RUN_PATH
10679 ;;
10680 siemens)
10681 need_lib_prefix=no
10682 ;;
10683 motorola)
10684 need_lib_prefix=no
10685 need_version=no
10686 shlibpath_overrides_runpath=no
10687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10688 ;;
10689 esac
10690 ;;
10692 sysv4*MP*)
10693 if test -d /usr/nec ;then
10694 version_type=linux # correct to gnu/linux during the next big refactor
10695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10696 soname_spec='$libname${shared_ext}.$major'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 fi
10699 ;;
10701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10702 version_type=freebsd-elf
10703 need_lib_prefix=no
10704 need_version=no
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10710 if test "$with_gnu_ld" = yes; then
10711 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10712 else
10713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10714 case $host_os in
10715 sco3.2v5*)
10716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10717 ;;
10718 esac
10719 fi
10720 sys_lib_dlsearch_path_spec='/usr/lib'
10721 ;;
10723 tpf*)
10724 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10725 version_type=linux # correct to gnu/linux during the next big refactor
10726 need_lib_prefix=no
10727 need_version=no
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 shlibpath_overrides_runpath=no
10731 hardcode_into_libs=yes
10732 ;;
10734 uts4*)
10735 version_type=linux # correct to gnu/linux during the next big refactor
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 soname_spec='${libname}${release}${shared_ext}$major'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 ;;
10741 *)
10742 dynamic_linker=no
10743 ;;
10744 esac
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10746 $as_echo "$dynamic_linker" >&6; }
10747 test "$dynamic_linker" = no && can_build_shared=no
10749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10750 if test "$GCC" = yes; then
10751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10752 fi
10754 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10755 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10756 fi
10757 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10758 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10759 fi
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10853 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10854 hardcode_action=
10855 if test -n "$hardcode_libdir_flag_spec" ||
10856 test -n "$runpath_var" ||
10857 test "X$hardcode_automatic" = "Xyes" ; then
10859 # We can hardcode non-existent directories.
10860 if test "$hardcode_direct" != no &&
10861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10862 # have to relink, otherwise we might link with an installed library
10863 # when we should be linking with a yet-to-be-installed one
10864 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10865 test "$hardcode_minus_L" != no; then
10866 # Linking always hardcodes the temporary library directory.
10867 hardcode_action=relink
10868 else
10869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10870 hardcode_action=immediate
10871 fi
10872 else
10873 # We cannot hardcode anything, or else we can only hardcode existing
10874 # directories.
10875 hardcode_action=unsupported
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10878 $as_echo "$hardcode_action" >&6; }
10880 if test "$hardcode_action" = relink ||
10881 test "$inherit_rpath" = yes; then
10882 # Fast installation is not supported
10883 enable_fast_install=no
10884 elif test "$shlibpath_overrides_runpath" = yes ||
10885 test "$enable_shared" = no; then
10886 # Fast installation is not necessary
10887 enable_fast_install=needless
10888 fi
10895 if test "x$enable_dlopen" != xyes; then
10896 enable_dlopen=unknown
10897 enable_dlopen_self=unknown
10898 enable_dlopen_self_static=unknown
10899 else
10900 lt_cv_dlopen=no
10901 lt_cv_dlopen_libs=
10903 case $host_os in
10904 beos*)
10905 lt_cv_dlopen="load_add_on"
10906 lt_cv_dlopen_libs=
10907 lt_cv_dlopen_self=yes
10908 ;;
10910 mingw* | pw32* | cegcc*)
10911 lt_cv_dlopen="LoadLibrary"
10912 lt_cv_dlopen_libs=
10913 ;;
10915 cygwin*)
10916 lt_cv_dlopen="dlopen"
10917 lt_cv_dlopen_libs=
10918 ;;
10920 darwin*)
10921 # if libdl is installed we need to link against it
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10923 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10924 if ${ac_cv_lib_dl_dlopen+:} false; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_lib_save_LIBS=$LIBS
10928 LIBS="-ldl $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char dlopen ();
10939 int
10940 main ()
10941 {
10942 return dlopen ();
10943 ;
10944 return 0;
10945 }
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 ac_cv_lib_dl_dlopen=yes
10949 else
10950 ac_cv_lib_dl_dlopen=no
10951 fi
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10955 fi
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10958 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10960 else
10962 lt_cv_dlopen="dyld"
10963 lt_cv_dlopen_libs=
10964 lt_cv_dlopen_self=yes
10966 fi
10968 ;;
10970 *)
10971 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10972 if test "x$ac_cv_func_shl_load" = xyes; then :
10973 lt_cv_dlopen="shl_load"
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10976 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10977 if ${ac_cv_lib_dld_shl_load+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 ac_check_lib_save_LIBS=$LIBS
10981 LIBS="-ldld $LIBS"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char shl_load ();
10992 int
10993 main ()
10994 {
10995 return shl_load ();
10996 ;
10997 return 0;
10998 }
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_lib_dld_shl_load=yes
11002 else
11003 ac_cv_lib_dld_shl_load=no
11004 fi
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11008 fi
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11010 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11011 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11012 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11013 else
11014 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11015 if test "x$ac_cv_func_dlopen" = xyes; then :
11016 lt_cv_dlopen="dlopen"
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11019 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11020 if ${ac_cv_lib_dl_dlopen+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldl $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dlopen ();
11035 int
11036 main ()
11037 {
11038 return dlopen ();
11039 ;
11040 return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dl_dlopen=yes
11045 else
11046 ac_cv_lib_dl_dlopen=no
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11053 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11054 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11058 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11059 if ${ac_cv_lib_svld_dlopen+:} false; then :
11060 $as_echo_n "(cached) " >&6
11061 else
11062 ac_check_lib_save_LIBS=$LIBS
11063 LIBS="-lsvld $LIBS"
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 char dlopen ();
11074 int
11075 main ()
11076 {
11077 return dlopen ();
11078 ;
11079 return 0;
11080 }
11081 _ACEOF
11082 if ac_fn_c_try_link "$LINENO"; then :
11083 ac_cv_lib_svld_dlopen=yes
11084 else
11085 ac_cv_lib_svld_dlopen=no
11086 fi
11087 rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LIBS=$ac_check_lib_save_LIBS
11090 fi
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11092 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11093 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11095 else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11097 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11098 if ${ac_cv_lib_dld_dld_link+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 ac_check_lib_save_LIBS=$LIBS
11102 LIBS="-ldld $LIBS"
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char dld_link ();
11113 int
11114 main ()
11115 {
11116 return dld_link ();
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"; then :
11122 ac_cv_lib_dld_dld_link=yes
11123 else
11124 ac_cv_lib_dld_dld_link=no
11125 fi
11126 rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11129 fi
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11131 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11132 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11133 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11134 fi
11137 fi
11140 fi
11143 fi
11146 fi
11149 fi
11151 ;;
11152 esac
11154 if test "x$lt_cv_dlopen" != xno; then
11155 enable_dlopen=yes
11156 else
11157 enable_dlopen=no
11158 fi
11160 case $lt_cv_dlopen in
11161 dlopen)
11162 save_CPPFLAGS="$CPPFLAGS"
11163 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11165 save_LDFLAGS="$LDFLAGS"
11166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11168 save_LIBS="$LIBS"
11169 LIBS="$lt_cv_dlopen_libs $LIBS"
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11172 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11173 if ${lt_cv_dlopen_self+:} false; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 if test "$cross_compiling" = yes; then :
11177 lt_cv_dlopen_self=cross
11178 else
11179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11180 lt_status=$lt_dlunknown
11181 cat > conftest.$ac_ext <<_LT_EOF
11182 #line $LINENO "configure"
11183 #include "confdefs.h"
11185 #if HAVE_DLFCN_H
11186 #include <dlfcn.h>
11187 #endif
11189 #include <stdio.h>
11191 #ifdef RTLD_GLOBAL
11192 # define LT_DLGLOBAL RTLD_GLOBAL
11193 #else
11194 # ifdef DL_GLOBAL
11195 # define LT_DLGLOBAL DL_GLOBAL
11196 # else
11197 # define LT_DLGLOBAL 0
11198 # endif
11199 #endif
11201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11202 find out it does not work in some platform. */
11203 #ifndef LT_DLLAZY_OR_NOW
11204 # ifdef RTLD_LAZY
11205 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11206 # else
11207 # ifdef DL_LAZY
11208 # define LT_DLLAZY_OR_NOW DL_LAZY
11209 # else
11210 # ifdef RTLD_NOW
11211 # define LT_DLLAZY_OR_NOW RTLD_NOW
11212 # else
11213 # ifdef DL_NOW
11214 # define LT_DLLAZY_OR_NOW DL_NOW
11215 # else
11216 # define LT_DLLAZY_OR_NOW 0
11217 # endif
11218 # endif
11219 # endif
11220 # endif
11221 #endif
11223 /* When -fvisbility=hidden is used, assume the code has been annotated
11224 correspondingly for the symbols needed. */
11225 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11226 int fnord () __attribute__((visibility("default")));
11227 #endif
11229 int fnord () { return 42; }
11230 int main ()
11231 {
11232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11233 int status = $lt_dlunknown;
11235 if (self)
11236 {
11237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11238 else
11239 {
11240 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11241 else puts (dlerror ());
11242 }
11243 /* dlclose (self); */
11244 }
11245 else
11246 puts (dlerror ());
11248 return status;
11249 }
11250 _LT_EOF
11251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11252 (eval $ac_link) 2>&5
11253 ac_status=$?
11254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11255 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11256 (./conftest; exit; ) >&5 2>/dev/null
11257 lt_status=$?
11258 case x$lt_status in
11259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11261 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11262 esac
11263 else :
11264 # compilation failed
11265 lt_cv_dlopen_self=no
11266 fi
11267 fi
11268 rm -fr conftest*
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11273 $as_echo "$lt_cv_dlopen_self" >&6; }
11275 if test "x$lt_cv_dlopen_self" = xyes; then
11276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11278 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11279 if ${lt_cv_dlopen_self_static+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 if test "$cross_compiling" = yes; then :
11283 lt_cv_dlopen_self_static=cross
11284 else
11285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11286 lt_status=$lt_dlunknown
11287 cat > conftest.$ac_ext <<_LT_EOF
11288 #line $LINENO "configure"
11289 #include "confdefs.h"
11291 #if HAVE_DLFCN_H
11292 #include <dlfcn.h>
11293 #endif
11295 #include <stdio.h>
11297 #ifdef RTLD_GLOBAL
11298 # define LT_DLGLOBAL RTLD_GLOBAL
11299 #else
11300 # ifdef DL_GLOBAL
11301 # define LT_DLGLOBAL DL_GLOBAL
11302 # else
11303 # define LT_DLGLOBAL 0
11304 # endif
11305 #endif
11307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11308 find out it does not work in some platform. */
11309 #ifndef LT_DLLAZY_OR_NOW
11310 # ifdef RTLD_LAZY
11311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11312 # else
11313 # ifdef DL_LAZY
11314 # define LT_DLLAZY_OR_NOW DL_LAZY
11315 # else
11316 # ifdef RTLD_NOW
11317 # define LT_DLLAZY_OR_NOW RTLD_NOW
11318 # else
11319 # ifdef DL_NOW
11320 # define LT_DLLAZY_OR_NOW DL_NOW
11321 # else
11322 # define LT_DLLAZY_OR_NOW 0
11323 # endif
11324 # endif
11325 # endif
11326 # endif
11327 #endif
11329 /* When -fvisbility=hidden is used, assume the code has been annotated
11330 correspondingly for the symbols needed. */
11331 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11332 int fnord () __attribute__((visibility("default")));
11333 #endif
11335 int fnord () { return 42; }
11336 int main ()
11337 {
11338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11339 int status = $lt_dlunknown;
11341 if (self)
11342 {
11343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11344 else
11345 {
11346 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11347 else puts (dlerror ());
11348 }
11349 /* dlclose (self); */
11350 }
11351 else
11352 puts (dlerror ());
11354 return status;
11355 }
11356 _LT_EOF
11357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11358 (eval $ac_link) 2>&5
11359 ac_status=$?
11360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11361 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11362 (./conftest; exit; ) >&5 2>/dev/null
11363 lt_status=$?
11364 case x$lt_status in
11365 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11366 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11367 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11368 esac
11369 else :
11370 # compilation failed
11371 lt_cv_dlopen_self_static=no
11372 fi
11373 fi
11374 rm -fr conftest*
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11379 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11380 fi
11382 CPPFLAGS="$save_CPPFLAGS"
11383 LDFLAGS="$save_LDFLAGS"
11384 LIBS="$save_LIBS"
11385 ;;
11386 esac
11388 case $lt_cv_dlopen_self in
11389 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11390 *) enable_dlopen_self=unknown ;;
11391 esac
11393 case $lt_cv_dlopen_self_static in
11394 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11395 *) enable_dlopen_self_static=unknown ;;
11396 esac
11397 fi
11415 striplib=
11416 old_striplib=
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11418 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11419 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11421 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11423 $as_echo "yes" >&6; }
11424 else
11425 # FIXME - insert some real tests, host_os isn't really good enough
11426 case $host_os in
11427 darwin*)
11428 if test -n "$STRIP" ; then
11429 striplib="$STRIP -x"
11430 old_striplib="$STRIP -S"
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11432 $as_echo "yes" >&6; }
11433 else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435 $as_echo "no" >&6; }
11436 fi
11437 ;;
11438 *)
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11441 ;;
11442 esac
11443 fi
11456 # Report which library types will actually be built
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11458 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11460 $as_echo "$can_build_shared" >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11463 $as_echo_n "checking whether to build shared libraries... " >&6; }
11464 test "$can_build_shared" = "no" && enable_shared=no
11466 # On AIX, shared libraries and static libraries use the same namespace, and
11467 # are all built from PIC.
11468 case $host_os in
11469 aix3*)
11470 test "$enable_shared" = yes && enable_static=no
11471 if test -n "$RANLIB"; then
11472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11473 postinstall_cmds='$RANLIB $lib'
11474 fi
11475 ;;
11477 aix[4-9]*)
11478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11479 test "$enable_shared" = yes && enable_static=no
11480 fi
11481 ;;
11482 esac
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11484 $as_echo "$enable_shared" >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11487 $as_echo_n "checking whether to build static libraries... " >&6; }
11488 # Make sure either enable_shared or enable_static is yes.
11489 test "$enable_shared" = yes || enable_static=yes
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11491 $as_echo "$enable_static" >&6; }
11496 fi
11497 ac_ext=c
11498 ac_cpp='$CPP $CPPFLAGS'
11499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11503 CC="$lt_save_CC"
11519 ac_config_commands="$ac_config_commands libtool"
11524 # Only expand once:
11529 # Checks for programs.
11530 ac_ext=c
11531 ac_cpp='$CPP $CPPFLAGS'
11532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11535 if test -n "$ac_tool_prefix"; then
11536 for ac_prog in gcc
11537 do
11538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11541 $as_echo_n "checking for $ac_word... " >&6; }
11542 if ${ac_cv_prog_CC+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 if test -n "$CC"; then
11546 ac_cv_prog_CC="$CC" # Let the user override the test.
11547 else
11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH
11550 do
11551 IFS=$as_save_IFS
11552 test -z "$as_dir" && as_dir=.
11553 for ac_exec_ext in '' $ac_executable_extensions; do
11554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 break 2
11558 fi
11559 done
11560 done
11561 IFS=$as_save_IFS
11563 fi
11564 fi
11565 CC=$ac_cv_prog_CC
11566 if test -n "$CC"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11568 $as_echo "$CC" >&6; }
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11572 fi
11575 test -n "$CC" && break
11576 done
11577 fi
11578 if test -z "$CC"; then
11579 ac_ct_CC=$CC
11580 for ac_prog in gcc
11581 do
11582 # Extract the first word of "$ac_prog", so it can be a program name with args.
11583 set dummy $ac_prog; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 if test -n "$ac_ct_CC"; then
11590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11591 else
11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11594 do
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599 ac_cv_prog_ac_ct_CC="$ac_prog"
11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 break 2
11602 fi
11603 done
11604 done
11605 IFS=$as_save_IFS
11607 fi
11608 fi
11609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11610 if test -n "$ac_ct_CC"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11612 $as_echo "$ac_ct_CC" >&6; }
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11616 fi
11619 test -n "$ac_ct_CC" && break
11620 done
11622 if test "x$ac_ct_CC" = x; then
11623 CC=""
11624 else
11625 case $cross_compiling:$ac_tool_warned in
11626 yes:)
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11629 ac_tool_warned=yes ;;
11630 esac
11631 CC=$ac_ct_CC
11632 fi
11633 fi
11636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11638 as_fn_error $? "no acceptable C compiler found in \$PATH
11639 See \`config.log' for more details" "$LINENO" 5; }
11641 # Provide some information about the compiler.
11642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11643 set X $ac_compile
11644 ac_compiler=$2
11645 for ac_option in --version -v -V -qversion; do
11646 { { ac_try="$ac_compiler $ac_option >&5"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650 esac
11651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11652 $as_echo "$ac_try_echo"; } >&5
11653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11654 ac_status=$?
11655 if test -s conftest.err; then
11656 sed '10a\
11657 ... rest of stderr output deleted ...
11658 10q' conftest.err >conftest.er1
11659 cat conftest.er1 >&5
11660 fi
11661 rm -f conftest.er1 conftest.err
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; }
11664 done
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11668 if ${ac_cv_c_compiler_gnu+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11674 int
11675 main ()
11676 {
11677 #ifndef __GNUC__
11678 choke me
11679 #endif
11681 ;
11682 return 0;
11683 }
11684 _ACEOF
11685 if ac_fn_c_try_compile "$LINENO"; then :
11686 ac_compiler_gnu=yes
11687 else
11688 ac_compiler_gnu=no
11689 fi
11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11696 if test $ac_compiler_gnu = yes; then
11697 GCC=yes
11698 else
11699 GCC=
11700 fi
11701 ac_test_CFLAGS=${CFLAGS+set}
11702 ac_save_CFLAGS=$CFLAGS
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11705 if ${ac_cv_prog_cc_g+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_save_c_werror_flag=$ac_c_werror_flag
11709 ac_c_werror_flag=yes
11710 ac_cv_prog_cc_g=no
11711 CFLAGS="-g"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11715 int
11716 main ()
11717 {
11719 ;
11720 return 0;
11721 }
11722 _ACEOF
11723 if ac_fn_c_try_compile "$LINENO"; then :
11724 ac_cv_prog_cc_g=yes
11725 else
11726 CFLAGS=""
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11730 int
11731 main ()
11732 {
11734 ;
11735 return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_c_try_compile "$LINENO"; then :
11740 else
11741 ac_c_werror_flag=$ac_save_c_werror_flag
11742 CFLAGS="-g"
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11746 int
11747 main ()
11748 {
11750 ;
11751 return 0;
11752 }
11753 _ACEOF
11754 if ac_fn_c_try_compile "$LINENO"; then :
11755 ac_cv_prog_cc_g=yes
11756 fi
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 fi
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 fi
11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 ac_c_werror_flag=$ac_save_c_werror_flag
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11765 $as_echo "$ac_cv_prog_cc_g" >&6; }
11766 if test "$ac_test_CFLAGS" = set; then
11767 CFLAGS=$ac_save_CFLAGS
11768 elif test $ac_cv_prog_cc_g = yes; then
11769 if test "$GCC" = yes; then
11770 CFLAGS="-g -O2"
11771 else
11772 CFLAGS="-g"
11773 fi
11774 else
11775 if test "$GCC" = yes; then
11776 CFLAGS="-O2"
11777 else
11778 CFLAGS=
11779 fi
11780 fi
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11783 if ${ac_cv_prog_cc_c89+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 ac_cv_prog_cc_c89=no
11787 ac_save_CC=$CC
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790 #include <stdarg.h>
11791 #include <stdio.h>
11792 struct stat;
11793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11794 struct buf { int x; };
11795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11796 static char *e (p, i)
11797 char **p;
11798 int i;
11799 {
11800 return p[i];
11801 }
11802 static char *f (char * (*g) (char **, int), char **p, ...)
11803 {
11804 char *s;
11805 va_list v;
11806 va_start (v,p);
11807 s = g (p, va_arg (v,int));
11808 va_end (v);
11809 return s;
11810 }
11812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11813 function prototypes and stuff, but not '\xHH' hex character constants.
11814 These don't provoke an error unfortunately, instead are silently treated
11815 as 'x'. The following induces an error, until -std is added to get
11816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11817 array size at least. It's necessary to write '\x00'==0 to get something
11818 that's true only with -std. */
11819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11822 inside strings and character constants. */
11823 #define FOO(x) 'x'
11824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11826 int test (int i, double x);
11827 struct s1 {int (*f) (int a);};
11828 struct s2 {int (*f) (double a);};
11829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11830 int argc;
11831 char **argv;
11832 int
11833 main ()
11834 {
11835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11836 ;
11837 return 0;
11838 }
11839 _ACEOF
11840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11842 do
11843 CC="$ac_save_CC $ac_arg"
11844 if ac_fn_c_try_compile "$LINENO"; then :
11845 ac_cv_prog_cc_c89=$ac_arg
11846 fi
11847 rm -f core conftest.err conftest.$ac_objext
11848 test "x$ac_cv_prog_cc_c89" != "xno" && break
11849 done
11850 rm -f conftest.$ac_ext
11851 CC=$ac_save_CC
11853 fi
11854 # AC_CACHE_VAL
11855 case "x$ac_cv_prog_cc_c89" in
11856 x)
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11858 $as_echo "none needed" >&6; } ;;
11859 xno)
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11861 $as_echo "unsupported" >&6; } ;;
11862 *)
11863 CC="$CC $ac_cv_prog_cc_c89"
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11866 esac
11867 if test "x$ac_cv_prog_cc_c89" != xno; then :
11869 fi
11871 ac_ext=c
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877 ac_ext=c
11878 ac_cpp='$CPP $CPPFLAGS'
11879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11883 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11884 if ${am_cv_prog_cc_c_o+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11890 int
11891 main ()
11892 {
11894 ;
11895 return 0;
11896 }
11897 _ACEOF
11898 # Make sure it works both with $CC and with simple cc.
11899 # Following AC_PROG_CC_C_O, we do the test twice because some
11900 # compilers refuse to overwrite an existing .o file with -o,
11901 # though they will create one.
11902 am_cv_prog_cc_c_o=yes
11903 for am_i in 1 2; do
11904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } \
11909 && test -f conftest2.$ac_objext; then
11910 : OK
11911 else
11912 am_cv_prog_cc_c_o=no
11913 break
11914 fi
11915 done
11916 rm -f core conftest*
11917 unset am_i
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11920 $as_echo "$am_cv_prog_cc_c_o" >&6; }
11921 if test "$am_cv_prog_cc_c_o" != yes; then
11922 # Losing compiler, so override with the script.
11923 # FIXME: It is wrong to rewrite CC.
11924 # But if we don't then we get into trouble of one sort or another.
11925 # A longer-term fix would be to have automake use am__CC in this case,
11926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11927 CC="$am_aux_dir/compile $CC"
11928 fi
11929 ac_ext=c
11930 ac_cpp='$CPP $CPPFLAGS'
11931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11936 depcc="$CC" am_compiler_list=
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11939 $as_echo_n "checking dependency style of $depcc... " >&6; }
11940 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11944 # We make a subdir and do the tests there. Otherwise we can end up
11945 # making bogus files that we don't know about and never remove. For
11946 # instance it was reported that on HP-UX the gcc test will end up
11947 # making a dummy file named 'D' -- because '-MD' means "put the output
11948 # in D".
11949 rm -rf conftest.dir
11950 mkdir conftest.dir
11951 # Copy depcomp to subdir because otherwise we won't find it if we're
11952 # using a relative directory.
11953 cp "$am_depcomp" conftest.dir
11954 cd conftest.dir
11955 # We will build objects and dependencies in a subdirectory because
11956 # it helps to detect inapplicable dependency modes. For instance
11957 # both Tru64's cc and ICC support -MD to output dependencies as a
11958 # side effect of compilation, but ICC will put the dependencies in
11959 # the current directory while Tru64 will put them in the object
11960 # directory.
11961 mkdir sub
11963 am_cv_CC_dependencies_compiler_type=none
11964 if test "$am_compiler_list" = ""; then
11965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11966 fi
11967 am__universal=false
11968 case " $depcc " in #(
11969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11970 esac
11972 for depmode in $am_compiler_list; do
11973 # Setup a source with many dependencies, because some compilers
11974 # like to wrap large dependency lists on column 80 (with \), and
11975 # we should not choose a depcomp mode which is confused by this.
11976 #
11977 # We need to recreate these files for each test, as the compiler may
11978 # overwrite some of them when testing with obscure command lines.
11979 # This happens at least with the AIX C compiler.
11980 : > sub/conftest.c
11981 for i in 1 2 3 4 5 6; do
11982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11984 # Solaris 10 /bin/sh.
11985 echo '/* dummy */' > sub/conftst$i.h
11986 done
11987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11990 # mode. It turns out that the SunPro C++ compiler does not properly
11991 # handle '-M -o', and we need to detect this. Also, some Intel
11992 # versions had trouble with output in subdirs.
11993 am__obj=sub/conftest.${OBJEXT-o}
11994 am__minus_obj="-o $am__obj"
11995 case $depmode in
11996 gcc)
11997 # This depmode causes a compiler race in universal mode.
11998 test "$am__universal" = false || continue
11999 ;;
12000 nosideeffect)
12001 # After this tag, mechanisms are not by side-effect, so they'll
12002 # only be used when explicitly requested.
12003 if test "x$enable_dependency_tracking" = xyes; then
12004 continue
12005 else
12006 break
12007 fi
12008 ;;
12009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12010 # This compiler won't grok '-c -o', but also, the minuso test has
12011 # not run yet. These depmodes are late enough in the game, and
12012 # so weak that their functioning should not be impacted.
12013 am__obj=conftest.${OBJEXT-o}
12014 am__minus_obj=
12015 ;;
12016 none) break ;;
12017 esac
12018 if depmode=$depmode \
12019 source=sub/conftest.c object=$am__obj \
12020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12022 >/dev/null 2>conftest.err &&
12023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12027 # icc doesn't choke on unknown options, it will just issue warnings
12028 # or remarks (even with -Werror). So we grep stderr for any message
12029 # that says an option was ignored or not supported.
12030 # When given -MP, icc 7.0 and 7.1 complain thusly:
12031 # icc: Command line warning: ignoring option '-M'; no argument required
12032 # The diagnosis changed in icc 8.0:
12033 # icc: Command line remark: option '-MP' not supported
12034 if (grep 'ignoring option' conftest.err ||
12035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12036 am_cv_CC_dependencies_compiler_type=$depmode
12037 break
12038 fi
12039 fi
12040 done
12042 cd ..
12043 rm -rf conftest.dir
12044 else
12045 am_cv_CC_dependencies_compiler_type=none
12046 fi
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12053 if
12054 test "x$enable_dependency_tracking" != xno \
12055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12056 am__fastdepCC_TRUE=
12057 am__fastdepCC_FALSE='#'
12058 else
12059 am__fastdepCC_TRUE='#'
12060 am__fastdepCC_FALSE=
12061 fi
12066 # Checks for header files.
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12068 $as_echo_n "checking for ANSI C header files... " >&6; }
12069 if ${ac_cv_header_stdc+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include <stdlib.h>
12075 #include <stdarg.h>
12076 #include <string.h>
12077 #include <float.h>
12079 int
12080 main ()
12081 {
12083 ;
12084 return 0;
12085 }
12086 _ACEOF
12087 if ac_fn_c_try_compile "$LINENO"; then :
12088 ac_cv_header_stdc=yes
12089 else
12090 ac_cv_header_stdc=no
12091 fi
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 if test $ac_cv_header_stdc = yes; then
12095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098 #include <string.h>
12100 _ACEOF
12101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12102 $EGREP "memchr" >/dev/null 2>&1; then :
12104 else
12105 ac_cv_header_stdc=no
12106 fi
12107 rm -f conftest*
12109 fi
12111 if test $ac_cv_header_stdc = yes; then
12112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115 #include <stdlib.h>
12117 _ACEOF
12118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12119 $EGREP "free" >/dev/null 2>&1; then :
12121 else
12122 ac_cv_header_stdc=no
12123 fi
12124 rm -f conftest*
12126 fi
12128 if test $ac_cv_header_stdc = yes; then
12129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12130 if test "$cross_compiling" = yes; then :
12131 :
12132 else
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 #include <ctype.h>
12136 #include <stdlib.h>
12137 #if ((' ' & 0x0FF) == 0x020)
12138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12140 #else
12141 # define ISLOWER(c) \
12142 (('a' <= (c) && (c) <= 'i') \
12143 || ('j' <= (c) && (c) <= 'r') \
12144 || ('s' <= (c) && (c) <= 'z'))
12145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12146 #endif
12148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12149 int
12150 main ()
12151 {
12152 int i;
12153 for (i = 0; i < 256; i++)
12154 if (XOR (islower (i), ISLOWER (i))
12155 || toupper (i) != TOUPPER (i))
12156 return 2;
12157 return 0;
12158 }
12159 _ACEOF
12160 if ac_fn_c_try_run "$LINENO"; then :
12162 else
12163 ac_cv_header_stdc=no
12164 fi
12165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12166 conftest.$ac_objext conftest.beam conftest.$ac_ext
12167 fi
12169 fi
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12172 $as_echo "$ac_cv_header_stdc" >&6; }
12173 if test $ac_cv_header_stdc = yes; then
12175 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12177 fi
12179 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
12180 do :
12181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12182 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12183 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12184 cat >>confdefs.h <<_ACEOF
12185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12186 _ACEOF
12188 fi
12190 done
12193 # Export CFLAGS and LDFLAGS to Makefile(s)
12197 # Add config variables/options and check them
12198 # Note that 6614 isn't documented and, though it may work, is planned for removal
12205 # Test platform variable for setting
12206 if test "x$PLATFORM" = "xOMAPL138"; then :
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12208 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12209 else
12210 if test "x$PLATFORM" = "x66AK2E"; then :
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12212 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12213 else
12214 if test "x$PLATFORM" = "xTCI6614"; then :
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12216 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12217 else
12218 if test "x$PLATFORM" = "xTCI6630"; then :
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12220 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12221 else
12222 if test "x$PLATFORM" = "xTCI6636"; then :
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12224 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12225 else
12226 if test "x$PLATFORM" = "xTCI6638"; then :
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12228 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12229 else
12230 if test "x$PLATFORM" = "x66AK2G"; then :
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12232 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12233 else
12234 if test "x$PLATFORM" = "xOMAP54XX"; then :
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12236 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12237 else
12238 if test "x$PLATFORM" = "xDRA7XX"; then :
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12240 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12241 else
12242 if test "x$PLATFORM" = "x"; then :
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is not set. All supported platforms will be built ...." >&5
12244 $as_echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
12245 else
12246 as_fn_error $? "PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" "$LINENO" 5
12247 fi
12248 fi
12249 fi
12250 fi
12251 fi
12252 fi
12253 fi
12254 fi
12255 fi
12256 fi
12258 # If platform is specified, make sure at least one of
12259 # KERNEL_INSTALL_DIR or AF_MSG are set.
12260 if test -n "$PLATFORM" -a -z "$KERNEL_INSTALL_DIR" -a -z "$AF_RPMSG"; then :
12261 as_fn_error $? "Must set at least one of KERNEL_INSTALL_DIR or AF_RPMSG" "$LINENO" 5
12262 fi
12264 # Ignore KERNEL path when no platform is set
12265 if test "x$PLATFORM" = "x"; then :
12266 KERNEL_INSTALL_DIR=
12267 fi
12268 if test "x$PLATFORM" = "x"; then :
12269 DRM_PREFIX=
12270 fi
12271 if test "x$PLATFORM" = "x"; then :
12272 CMEM_INSTALL_DIR=
12273 fi
12275 # Export optional user variable to Makefile(s)
12282 # Define specific variables to be used in Makefile.am
12283 if test "x$PLATFORM" = "xOMAPL138"; then
12284 OMAPL138_TRUE=
12285 OMAPL138_FALSE='#'
12286 else
12287 OMAPL138_TRUE='#'
12288 OMAPL138_FALSE=
12289 fi
12291 if test "x$PLATFORM" = "x66AK2E"; then
12292 C66AK2E_TRUE=
12293 C66AK2E_FALSE='#'
12294 else
12295 C66AK2E_TRUE='#'
12296 C66AK2E_FALSE=
12297 fi
12299 if test "x$PLATFORM" = "xTCI6614"; then
12300 TCI6614_TRUE=
12301 TCI6614_FALSE='#'
12302 else
12303 TCI6614_TRUE='#'
12304 TCI6614_FALSE=
12305 fi
12307 if test "x$PLATFORM" = "xTCI6630"; then
12308 TCI6630_TRUE=
12309 TCI6630_FALSE='#'
12310 else
12311 TCI6630_TRUE='#'
12312 TCI6630_FALSE=
12313 fi
12315 if test "x$PLATFORM" = "xTCI6636"; then
12316 TCI6636_TRUE=
12317 TCI6636_FALSE='#'
12318 else
12319 TCI6636_TRUE='#'
12320 TCI6636_FALSE=
12321 fi
12323 if test "x$PLATFORM" = "xTCI6638"; then
12324 TCI6638_TRUE=
12325 TCI6638_FALSE='#'
12326 else
12327 TCI6638_TRUE='#'
12328 TCI6638_FALSE=
12329 fi
12331 if test "x$PLATFORM" = "x66AK2G"; then
12332 C66AK2G_TRUE=
12333 C66AK2G_FALSE='#'
12334 else
12335 C66AK2G_TRUE='#'
12336 C66AK2G_FALSE=
12337 fi
12339 if test "x$PLATFORM" = "xOMAP54XX"; then
12340 OMAP54XX_SMP_TRUE=
12341 OMAP54XX_SMP_FALSE='#'
12342 else
12343 OMAP54XX_SMP_TRUE='#'
12344 OMAP54XX_SMP_FALSE=
12345 fi
12347 if test "x$PLATFORM" = "xDRA7XX"; then
12348 DRA7XX_TRUE=
12349 DRA7XX_FALSE='#'
12350 else
12351 DRA7XX_TRUE='#'
12352 DRA7XX_FALSE=
12353 fi
12355 if test "x$CMEM_INSTALL_DIR" != "x"; then
12356 CMEM_TRUE=
12357 CMEM_FALSE='#'
12358 else
12359 CMEM_TRUE='#'
12360 CMEM_FALSE=
12361 fi
12363 if test "x$KERNEL_INSTALL_DIR" != "x"; then
12364 KDIR_TRUE=
12365 KDIR_FALSE='#'
12366 else
12367 KDIR_TRUE='#'
12368 KDIR_FALSE=
12369 fi
12371 if test -n "$KERNEL_INSTALL_DIR"; then
12372 KERNEL_INSTALL_DIR_TRUE=
12373 KERNEL_INSTALL_DIR_FALSE='#'
12374 else
12375 KERNEL_INSTALL_DIR_TRUE='#'
12376 KERNEL_INSTALL_DIR_FALSE=
12377 fi
12379 if test "x$DRM_PREFIX" != "x"; then
12380 DRM_TRUE=
12381 DRM_FALSE='#'
12382 else
12383 DRM_TRUE='#'
12384 DRM_FALSE=
12385 fi
12387 if test -n "$AF_RPMSG"; then
12388 AF_RPMSG_TRUE=
12389 AF_RPMSG_FALSE='#'
12390 else
12391 AF_RPMSG_TRUE='#'
12392 AF_RPMSG_FALSE=
12393 fi
12396 # Generate Makefile(s)
12397 ac_config_files="$ac_config_files Makefile"
12399 ac_config_files="$ac_config_files linux/etc/Makefile"
12401 ac_config_files="$ac_config_files linux/src/utils/Makefile"
12403 ac_config_files="$ac_config_files linux/src/utils/libtiipcutils.pc"
12405 ac_config_files="$ac_config_files linux/src/api/Makefile"
12407 ac_config_files="$ac_config_files linux/src/api/libtiipc.pc"
12409 ac_config_files="$ac_config_files linux/src/mm/Makefile"
12411 ac_config_files="$ac_config_files linux/src/mm/libmmrpc.pc"
12413 ac_config_files="$ac_config_files linux/src/daemon/Makefile"
12415 ac_config_files="$ac_config_files linux/src/tests/Makefile"
12417 ac_config_files="$ac_config_files linux/src/transport/Makefile"
12419 cat >confcache <<\_ACEOF
12420 # This file is a shell script that caches the results of configure
12421 # tests run on this system so they can be shared between configure
12422 # scripts and configure runs, see configure's option --config-cache.
12423 # It is not useful on other systems. If it contains results you don't
12424 # want to keep, you may remove or edit it.
12425 #
12426 # config.status only pays attention to the cache file if you give it
12427 # the --recheck option to rerun configure.
12428 #
12429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12431 # following values.
12433 _ACEOF
12435 # The following way of writing the cache mishandles newlines in values,
12436 # but we know of no workaround that is simple, portable, and efficient.
12437 # So, we kill variables containing newlines.
12438 # Ultrix sh set writes to stderr and can't be redirected directly,
12439 # and sets the high bit in the cache file unless we assign to the vars.
12440 (
12441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12442 eval ac_val=\$$ac_var
12443 case $ac_val in #(
12444 *${as_nl}*)
12445 case $ac_var in #(
12446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12448 esac
12449 case $ac_var in #(
12450 _ | IFS | as_nl) ;; #(
12451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12452 *) { eval $ac_var=; unset $ac_var;} ;;
12453 esac ;;
12454 esac
12455 done
12457 (set) 2>&1 |
12458 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12459 *${as_nl}ac_space=\ *)
12460 # `set' does not quote correctly, so add quotes: double-quote
12461 # substitution turns \\\\ into \\, and sed turns \\ into \.
12462 sed -n \
12463 "s/'/'\\\\''/g;
12464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12465 ;; #(
12466 *)
12467 # `set' quotes correctly as required by POSIX, so do not add quotes.
12468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12469 ;;
12470 esac |
12471 sort
12472 ) |
12473 sed '
12474 /^ac_cv_env_/b end
12475 t clear
12476 :clear
12477 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12478 t end
12479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12480 :end' >>confcache
12481 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12482 if test -w "$cache_file"; then
12483 if test "x$cache_file" != "x/dev/null"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12485 $as_echo "$as_me: updating cache $cache_file" >&6;}
12486 if test ! -f "$cache_file" || test -h "$cache_file"; then
12487 cat confcache >"$cache_file"
12488 else
12489 case $cache_file in #(
12490 */* | ?:*)
12491 mv -f confcache "$cache_file"$$ &&
12492 mv -f "$cache_file"$$ "$cache_file" ;; #(
12493 *)
12494 mv -f confcache "$cache_file" ;;
12495 esac
12496 fi
12497 fi
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12501 fi
12502 fi
12503 rm -f confcache
12505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12506 # Let make expand exec_prefix.
12507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12509 # Transform confdefs.h into DEFS.
12510 # Protect against shell expansion while executing Makefile rules.
12511 # Protect against Makefile macro expansion.
12512 #
12513 # If the first sed substitution is executed (which looks for macros that
12514 # take arguments), then branch to the quote section. Otherwise,
12515 # look for a macro that doesn't take arguments.
12516 ac_script='
12517 :mline
12518 /\\$/{
12519 N
12520 s,\\\n,,
12521 b mline
12522 }
12523 t clear
12524 :clear
12525 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12526 t quote
12527 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12528 t quote
12529 b any
12530 :quote
12531 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12532 s/\[/\\&/g
12533 s/\]/\\&/g
12534 s/\$/$$/g
12535 H
12536 :any
12537 ${
12538 g
12539 s/^\n//
12540 s/\n/ /g
12541 p
12542 }
12543 '
12544 DEFS=`sed -n "$ac_script" confdefs.h`
12547 ac_libobjs=
12548 ac_ltlibobjs=
12549 U=
12550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12551 # 1. Remove the extension, and $U if already installed.
12552 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12553 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12554 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12555 # will be set to the directory where LIBOBJS objects are built.
12556 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12557 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12558 done
12559 LIBOBJS=$ac_libobjs
12561 LTLIBOBJS=$ac_ltlibobjs
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12565 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12566 if test -n "$am_sleep_pid"; then
12567 # Hide warnings about reused PIDs.
12568 wait $am_sleep_pid 2>/dev/null
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12571 $as_echo "done" >&6; }
12572 if test -n "$EXEEXT"; then
12573 am__EXEEXT_TRUE=
12574 am__EXEEXT_FALSE='#'
12575 else
12576 am__EXEEXT_TRUE='#'
12577 am__EXEEXT_FALSE=
12578 fi
12580 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12581 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12583 fi
12584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12585 as_fn_error $? "conditional \"AMDEP\" was never defined.
12586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12587 fi
12588 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12589 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12591 fi
12592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12593 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12595 fi
12596 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
12597 as_fn_error $? "conditional \"OMAPL138\" was never defined.
12598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12599 fi
12600 if test -z "${C66AK2E_TRUE}" && test -z "${C66AK2E_FALSE}"; then
12601 as_fn_error $? "conditional \"C66AK2E\" was never defined.
12602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12603 fi
12604 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
12605 as_fn_error $? "conditional \"TCI6614\" was never defined.
12606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12607 fi
12608 if test -z "${TCI6630_TRUE}" && test -z "${TCI6630_FALSE}"; then
12609 as_fn_error $? "conditional \"TCI6630\" was never defined.
12610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12611 fi
12612 if test -z "${TCI6636_TRUE}" && test -z "${TCI6636_FALSE}"; then
12613 as_fn_error $? "conditional \"TCI6636\" was never defined.
12614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12615 fi
12616 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
12617 as_fn_error $? "conditional \"TCI6638\" was never defined.
12618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12619 fi
12620 if test -z "${C66AK2G_TRUE}" && test -z "${C66AK2G_FALSE}"; then
12621 as_fn_error $? "conditional \"C66AK2G\" was never defined.
12622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12623 fi
12624 if test -z "${OMAP54XX_SMP_TRUE}" && test -z "${OMAP54XX_SMP_FALSE}"; then
12625 as_fn_error $? "conditional \"OMAP54XX_SMP\" was never defined.
12626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12627 fi
12628 if test -z "${DRA7XX_TRUE}" && test -z "${DRA7XX_FALSE}"; then
12629 as_fn_error $? "conditional \"DRA7XX\" was never defined.
12630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12631 fi
12632 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
12633 as_fn_error $? "conditional \"CMEM\" was never defined.
12634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12635 fi
12636 if test -z "${KDIR_TRUE}" && test -z "${KDIR_FALSE}"; then
12637 as_fn_error $? "conditional \"KDIR\" was never defined.
12638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12639 fi
12640 if test -z "${KERNEL_INSTALL_DIR_TRUE}" && test -z "${KERNEL_INSTALL_DIR_FALSE}"; then
12641 as_fn_error $? "conditional \"KERNEL_INSTALL_DIR\" was never defined.
12642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12643 fi
12644 if test -z "${DRM_TRUE}" && test -z "${DRM_FALSE}"; then
12645 as_fn_error $? "conditional \"DRM\" was never defined.
12646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12647 fi
12648 if test -z "${AF_RPMSG_TRUE}" && test -z "${AF_RPMSG_FALSE}"; then
12649 as_fn_error $? "conditional \"AF_RPMSG\" was never defined.
12650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12651 fi
12653 : "${CONFIG_STATUS=./config.status}"
12654 ac_write_fail=0
12655 ac_clean_files_save=$ac_clean_files
12656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12659 as_write_fail=0
12660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12661 #! $SHELL
12662 # Generated by $as_me.
12663 # Run this file to recreate the current configuration.
12664 # Compiler output produced by configure, useful for debugging
12665 # configure, is in config.log if it exists.
12667 debug=false
12668 ac_cs_recheck=false
12669 ac_cs_silent=false
12671 SHELL=\${CONFIG_SHELL-$SHELL}
12672 export SHELL
12673 _ASEOF
12674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12675 ## -------------------- ##
12676 ## M4sh Initialization. ##
12677 ## -------------------- ##
12679 # Be more Bourne compatible
12680 DUALCASE=1; export DUALCASE # for MKS sh
12681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12682 emulate sh
12683 NULLCMD=:
12684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12685 # is contrary to our usage. Disable this feature.
12686 alias -g '${1+"$@"}'='"$@"'
12687 setopt NO_GLOB_SUBST
12688 else
12689 case `(set -o) 2>/dev/null` in #(
12690 *posix*) :
12691 set -o posix ;; #(
12692 *) :
12693 ;;
12694 esac
12695 fi
12698 as_nl='
12699 '
12700 export as_nl
12701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12705 # Prefer a ksh shell builtin over an external printf program on Solaris,
12706 # but without wasting forks for bash or zsh.
12707 if test -z "$BASH_VERSION$ZSH_VERSION" \
12708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12709 as_echo='print -r --'
12710 as_echo_n='print -rn --'
12711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12712 as_echo='printf %s\n'
12713 as_echo_n='printf %s'
12714 else
12715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12717 as_echo_n='/usr/ucb/echo -n'
12718 else
12719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12720 as_echo_n_body='eval
12721 arg=$1;
12722 case $arg in #(
12723 *"$as_nl"*)
12724 expr "X$arg" : "X\\(.*\\)$as_nl";
12725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12726 esac;
12727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12728 '
12729 export as_echo_n_body
12730 as_echo_n='sh -c $as_echo_n_body as_echo'
12731 fi
12732 export as_echo_body
12733 as_echo='sh -c $as_echo_body as_echo'
12734 fi
12736 # The user is always right.
12737 if test "${PATH_SEPARATOR+set}" != set; then
12738 PATH_SEPARATOR=:
12739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12741 PATH_SEPARATOR=';'
12742 }
12743 fi
12746 # IFS
12747 # We need space, tab and new line, in precisely that order. Quoting is
12748 # there to prevent editors from complaining about space-tab.
12749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12750 # splitting by setting IFS to empty value.)
12751 IFS=" "" $as_nl"
12753 # Find who we are. Look in the path if we contain no directory separator.
12754 as_myself=
12755 case $0 in #((
12756 *[\\/]* ) as_myself=$0 ;;
12757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12759 do
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12763 done
12764 IFS=$as_save_IFS
12766 ;;
12767 esac
12768 # We did not find ourselves, most probably we were run as `sh COMMAND'
12769 # in which case we are not to be found in the path.
12770 if test "x$as_myself" = x; then
12771 as_myself=$0
12772 fi
12773 if test ! -f "$as_myself"; then
12774 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12775 exit 1
12776 fi
12778 # Unset variables that we do not need and which cause bugs (e.g. in
12779 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12780 # suppresses any "Segmentation fault" message there. '((' could
12781 # trigger a bug in pdksh 5.2.14.
12782 for as_var in BASH_ENV ENV MAIL MAILPATH
12783 do eval test x\${$as_var+set} = xset \
12784 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12785 done
12786 PS1='$ '
12787 PS2='> '
12788 PS4='+ '
12790 # NLS nuisances.
12791 LC_ALL=C
12792 export LC_ALL
12793 LANGUAGE=C
12794 export LANGUAGE
12796 # CDPATH.
12797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12801 # ----------------------------------------
12802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12804 # script with STATUS, using 1 if that was 0.
12805 as_fn_error ()
12806 {
12807 as_status=$1; test $as_status -eq 0 && as_status=1
12808 if test "$4"; then
12809 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12810 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12811 fi
12812 $as_echo "$as_me: error: $2" >&2
12813 as_fn_exit $as_status
12814 } # as_fn_error
12817 # as_fn_set_status STATUS
12818 # -----------------------
12819 # Set $? to STATUS, without forking.
12820 as_fn_set_status ()
12821 {
12822 return $1
12823 } # as_fn_set_status
12825 # as_fn_exit STATUS
12826 # -----------------
12827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12828 as_fn_exit ()
12829 {
12830 set +e
12831 as_fn_set_status $1
12832 exit $1
12833 } # as_fn_exit
12835 # as_fn_unset VAR
12836 # ---------------
12837 # Portably unset VAR.
12838 as_fn_unset ()
12839 {
12840 { eval $1=; unset $1;}
12841 }
12842 as_unset=as_fn_unset
12843 # as_fn_append VAR VALUE
12844 # ----------------------
12845 # Append the text in VALUE to the end of the definition contained in VAR. Take
12846 # advantage of any shell optimizations that allow amortized linear growth over
12847 # repeated appends, instead of the typical quadratic growth present in naive
12848 # implementations.
12849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12850 eval 'as_fn_append ()
12851 {
12852 eval $1+=\$2
12853 }'
12854 else
12855 as_fn_append ()
12856 {
12857 eval $1=\$$1\$2
12858 }
12859 fi # as_fn_append
12861 # as_fn_arith ARG...
12862 # ------------------
12863 # Perform arithmetic evaluation on the ARGs, and store the result in the
12864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12865 # must be portable across $(()) and expr.
12866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12867 eval 'as_fn_arith ()
12868 {
12869 as_val=$(( $* ))
12870 }'
12871 else
12872 as_fn_arith ()
12873 {
12874 as_val=`expr "$@" || test $? -eq 1`
12875 }
12876 fi # as_fn_arith
12879 if expr a : '\(a\)' >/dev/null 2>&1 &&
12880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12881 as_expr=expr
12882 else
12883 as_expr=false
12884 fi
12886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12887 as_basename=basename
12888 else
12889 as_basename=false
12890 fi
12892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12893 as_dirname=dirname
12894 else
12895 as_dirname=false
12896 fi
12898 as_me=`$as_basename -- "$0" ||
12899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12900 X"$0" : 'X\(//\)$' \| \
12901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12902 $as_echo X/"$0" |
12903 sed '/^.*\/\([^/][^/]*\)\/*$/{
12904 s//\1/
12905 q
12906 }
12907 /^X\/\(\/\/\)$/{
12908 s//\1/
12909 q
12910 }
12911 /^X\/\(\/\).*/{
12912 s//\1/
12913 q
12914 }
12915 s/.*/./; q'`
12917 # Avoid depending upon Character Ranges.
12918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12921 as_cr_digits='0123456789'
12922 as_cr_alnum=$as_cr_Letters$as_cr_digits
12924 ECHO_C= ECHO_N= ECHO_T=
12925 case `echo -n x` in #(((((
12926 -n*)
12927 case `echo 'xy\c'` in
12928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12929 xy) ECHO_C='\c';;
12930 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12931 ECHO_T=' ';;
12932 esac;;
12933 *)
12934 ECHO_N='-n';;
12935 esac
12937 rm -f conf$$ conf$$.exe conf$$.file
12938 if test -d conf$$.dir; then
12939 rm -f conf$$.dir/conf$$.file
12940 else
12941 rm -f conf$$.dir
12942 mkdir conf$$.dir 2>/dev/null
12943 fi
12944 if (echo >conf$$.file) 2>/dev/null; then
12945 if ln -s conf$$.file conf$$ 2>/dev/null; then
12946 as_ln_s='ln -s'
12947 # ... but there are two gotchas:
12948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12950 # In both cases, we have to default to `cp -pR'.
12951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12952 as_ln_s='cp -pR'
12953 elif ln conf$$.file conf$$ 2>/dev/null; then
12954 as_ln_s=ln
12955 else
12956 as_ln_s='cp -pR'
12957 fi
12958 else
12959 as_ln_s='cp -pR'
12960 fi
12961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12962 rmdir conf$$.dir 2>/dev/null
12965 # as_fn_mkdir_p
12966 # -------------
12967 # Create "$as_dir" as a directory, including parents if necessary.
12968 as_fn_mkdir_p ()
12969 {
12971 case $as_dir in #(
12972 -*) as_dir=./$as_dir;;
12973 esac
12974 test -d "$as_dir" || eval $as_mkdir_p || {
12975 as_dirs=
12976 while :; do
12977 case $as_dir in #(
12978 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12979 *) as_qdir=$as_dir;;
12980 esac
12981 as_dirs="'$as_qdir' $as_dirs"
12982 as_dir=`$as_dirname -- "$as_dir" ||
12983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12984 X"$as_dir" : 'X\(//\)[^/]' \| \
12985 X"$as_dir" : 'X\(//\)$' \| \
12986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12987 $as_echo X"$as_dir" |
12988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12989 s//\1/
12990 q
12991 }
12992 /^X\(\/\/\)[^/].*/{
12993 s//\1/
12994 q
12995 }
12996 /^X\(\/\/\)$/{
12997 s//\1/
12998 q
12999 }
13000 /^X\(\/\).*/{
13001 s//\1/
13002 q
13003 }
13004 s/.*/./; q'`
13005 test -d "$as_dir" && break
13006 done
13007 test -z "$as_dirs" || eval "mkdir $as_dirs"
13008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13011 } # as_fn_mkdir_p
13012 if mkdir -p . 2>/dev/null; then
13013 as_mkdir_p='mkdir -p "$as_dir"'
13014 else
13015 test -d ./-p && rmdir ./-p
13016 as_mkdir_p=false
13017 fi
13020 # as_fn_executable_p FILE
13021 # -----------------------
13022 # Test if FILE is an executable regular file.
13023 as_fn_executable_p ()
13024 {
13025 test -f "$1" && test -x "$1"
13026 } # as_fn_executable_p
13027 as_test_x='test -x'
13028 as_executable_p=as_fn_executable_p
13030 # Sed expression to map a string onto a valid CPP name.
13031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13033 # Sed expression to map a string onto a valid variable name.
13034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13037 exec 6>&1
13038 ## ----------------------------------- ##
13039 ## Main body of $CONFIG_STATUS script. ##
13040 ## ----------------------------------- ##
13041 _ASEOF
13042 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13045 # Save the log message, to keep $0 and so on meaningful, and to
13046 # report actual input values of CONFIG_FILES etc. instead of their
13047 # values after options handling.
13048 ac_log="
13049 This file was extended by TI IPC $as_me 3.0.0, which was
13050 generated by GNU Autoconf 2.69. Invocation command line was
13052 CONFIG_FILES = $CONFIG_FILES
13053 CONFIG_HEADERS = $CONFIG_HEADERS
13054 CONFIG_LINKS = $CONFIG_LINKS
13055 CONFIG_COMMANDS = $CONFIG_COMMANDS
13056 $ $0 $@
13058 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13059 "
13061 _ACEOF
13063 case $ac_config_files in *"
13064 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13065 esac
13069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13070 # Files that config.status was made for.
13071 config_files="$ac_config_files"
13072 config_commands="$ac_config_commands"
13074 _ACEOF
13076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13077 ac_cs_usage="\
13078 \`$as_me' instantiates files and other configuration actions
13079 from templates according to the current configuration. Unless the files
13080 and actions are specified as TAGs, all are instantiated by default.
13082 Usage: $0 [OPTION]... [TAG]...
13084 -h, --help print this help, then exit
13085 -V, --version print version number and configuration settings, then exit
13086 --config print configuration, then exit
13087 -q, --quiet, --silent
13088 do not print progress messages
13089 -d, --debug don't remove temporary files
13090 --recheck update $as_me by reconfiguring in the same conditions
13091 --file=FILE[:TEMPLATE]
13092 instantiate the configuration file FILE
13094 Configuration files:
13095 $config_files
13097 Configuration commands:
13098 $config_commands
13100 Report bugs to the package provider."
13102 _ACEOF
13103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13104 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13105 ac_cs_version="\\
13106 TI IPC config.status 3.0.0
13107 configured by $0, generated by GNU Autoconf 2.69,
13108 with options \\"\$ac_cs_config\\"
13110 Copyright (C) 2012 Free Software Foundation, Inc.
13111 This config.status script is free software; the Free Software Foundation
13112 gives unlimited permission to copy, distribute and modify it."
13114 ac_pwd='$ac_pwd'
13115 srcdir='$srcdir'
13116 INSTALL='$INSTALL'
13117 MKDIR_P='$MKDIR_P'
13118 AWK='$AWK'
13119 test -n "\$AWK" || AWK=awk
13120 _ACEOF
13122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13123 # The default lists apply if the user does not specify any file.
13124 ac_need_defaults=:
13125 while test $# != 0
13126 do
13127 case $1 in
13128 --*=?*)
13129 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13130 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13131 ac_shift=:
13132 ;;
13133 --*=)
13134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13135 ac_optarg=
13136 ac_shift=:
13137 ;;
13138 *)
13139 ac_option=$1
13140 ac_optarg=$2
13141 ac_shift=shift
13142 ;;
13143 esac
13145 case $ac_option in
13146 # Handling of the options.
13147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13148 ac_cs_recheck=: ;;
13149 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13150 $as_echo "$ac_cs_version"; exit ;;
13151 --config | --confi | --conf | --con | --co | --c )
13152 $as_echo "$ac_cs_config"; exit ;;
13153 --debug | --debu | --deb | --de | --d | -d )
13154 debug=: ;;
13155 --file | --fil | --fi | --f )
13156 $ac_shift
13157 case $ac_optarg in
13158 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13159 '') as_fn_error $? "missing file argument" ;;
13160 esac
13161 as_fn_append CONFIG_FILES " '$ac_optarg'"
13162 ac_need_defaults=false;;
13163 --he | --h | --help | --hel | -h )
13164 $as_echo "$ac_cs_usage"; exit ;;
13165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13166 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13167 ac_cs_silent=: ;;
13169 # This is an error.
13170 -*) as_fn_error $? "unrecognized option: \`$1'
13171 Try \`$0 --help' for more information." ;;
13173 *) as_fn_append ac_config_targets " $1"
13174 ac_need_defaults=false ;;
13176 esac
13177 shift
13178 done
13180 ac_configure_extra_args=
13182 if $ac_cs_silent; then
13183 exec 6>/dev/null
13184 ac_configure_extra_args="$ac_configure_extra_args --silent"
13185 fi
13187 _ACEOF
13188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13189 if \$ac_cs_recheck; then
13190 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13191 shift
13192 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13193 CONFIG_SHELL='$SHELL'
13194 export CONFIG_SHELL
13195 exec "\$@"
13196 fi
13198 _ACEOF
13199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13200 exec 5>>config.log
13201 {
13202 echo
13203 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13204 ## Running $as_me. ##
13205 _ASBOX
13206 $as_echo "$ac_log"
13207 } >&5
13209 _ACEOF
13210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13211 #
13212 # INIT-COMMANDS
13213 #
13214 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13217 # The HP-UX ksh and POSIX shell print the target directory to stdout
13218 # if CDPATH is set.
13219 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13221 sed_quote_subst='$sed_quote_subst'
13222 double_quote_subst='$double_quote_subst'
13223 delay_variable_subst='$delay_variable_subst'
13224 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13225 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13226 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13227 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13228 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13229 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13230 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13231 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13232 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13233 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13234 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13235 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13236 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13237 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13238 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13239 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13240 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13241 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13242 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13243 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13244 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13245 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13246 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13247 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13248 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13249 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13250 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13251 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13252 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13253 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13254 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13255 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13256 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13257 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13258 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13259 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13260 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13261 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13262 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13263 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13264 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13265 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13266 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13267 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13268 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13269 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13270 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13271 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13272 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13273 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13274 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13275 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13276 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13277 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13278 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13279 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13280 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"`'
13281 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13282 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13283 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13284 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13285 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13286 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13287 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13288 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13289 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13290 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13291 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13292 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13293 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13294 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13295 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13296 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13297 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13298 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13299 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13300 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13301 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13302 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13303 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13304 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13305 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13306 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13307 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13308 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13309 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13310 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13311 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13312 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13313 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13314 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13315 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13316 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13317 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13318 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13319 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13320 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13321 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13322 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13323 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13324 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13325 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13326 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13327 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13328 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13329 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13330 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13331 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13332 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13333 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13334 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13335 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13336 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13337 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13338 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13339 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13340 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13341 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13342 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13343 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13344 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13345 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13346 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13347 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13348 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13349 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13350 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13351 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13352 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13353 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13355 LTCC='$LTCC'
13356 LTCFLAGS='$LTCFLAGS'
13357 compiler='$compiler_DEFAULT'
13359 # A function that is used when there is no print builtin or printf.
13360 func_fallback_echo ()
13361 {
13362 eval 'cat <<_LTECHO_EOF
13363 \$1
13364 _LTECHO_EOF'
13365 }
13367 # Quote evaled strings.
13368 for var in SHELL \
13369 ECHO \
13370 PATH_SEPARATOR \
13371 SED \
13372 GREP \
13373 EGREP \
13374 FGREP \
13375 LD \
13376 NM \
13377 LN_S \
13378 lt_SP2NL \
13379 lt_NL2SP \
13380 reload_flag \
13381 OBJDUMP \
13382 deplibs_check_method \
13383 file_magic_cmd \
13384 file_magic_glob \
13385 want_nocaseglob \
13386 DLLTOOL \
13387 sharedlib_from_linklib_cmd \
13388 AR \
13389 AR_FLAGS \
13390 archiver_list_spec \
13391 STRIP \
13392 RANLIB \
13393 CC \
13394 CFLAGS \
13395 compiler \
13396 lt_cv_sys_global_symbol_pipe \
13397 lt_cv_sys_global_symbol_to_cdecl \
13398 lt_cv_sys_global_symbol_to_c_name_address \
13399 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13400 nm_file_list_spec \
13401 lt_prog_compiler_no_builtin_flag \
13402 lt_prog_compiler_pic \
13403 lt_prog_compiler_wl \
13404 lt_prog_compiler_static \
13405 lt_cv_prog_compiler_c_o \
13406 need_locks \
13407 MANIFEST_TOOL \
13408 DSYMUTIL \
13409 NMEDIT \
13410 LIPO \
13411 OTOOL \
13412 OTOOL64 \
13413 shrext_cmds \
13414 export_dynamic_flag_spec \
13415 whole_archive_flag_spec \
13416 compiler_needs_object \
13417 with_gnu_ld \
13418 allow_undefined_flag \
13419 no_undefined_flag \
13420 hardcode_libdir_flag_spec \
13421 hardcode_libdir_separator \
13422 exclude_expsyms \
13423 include_expsyms \
13424 file_list_spec \
13425 variables_saved_for_relink \
13426 libname_spec \
13427 library_names_spec \
13428 soname_spec \
13429 install_override_mode \
13430 finish_eval \
13431 old_striplib \
13432 striplib; do
13433 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13434 *[\\\\\\\`\\"\\\$]*)
13435 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13436 ;;
13437 *)
13438 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13439 ;;
13440 esac
13441 done
13443 # Double-quote double-evaled strings.
13444 for var in reload_cmds \
13445 old_postinstall_cmds \
13446 old_postuninstall_cmds \
13447 old_archive_cmds \
13448 extract_expsyms_cmds \
13449 old_archive_from_new_cmds \
13450 old_archive_from_expsyms_cmds \
13451 archive_cmds \
13452 archive_expsym_cmds \
13453 module_cmds \
13454 module_expsym_cmds \
13455 export_symbols_cmds \
13456 prelink_cmds \
13457 postlink_cmds \
13458 postinstall_cmds \
13459 postuninstall_cmds \
13460 finish_cmds \
13461 sys_lib_search_path_spec \
13462 sys_lib_dlsearch_path_spec; do
13463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13464 *[\\\\\\\`\\"\\\$]*)
13465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13466 ;;
13467 *)
13468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13469 ;;
13470 esac
13471 done
13473 ac_aux_dir='$ac_aux_dir'
13474 xsi_shell='$xsi_shell'
13475 lt_shell_append='$lt_shell_append'
13477 # See if we are running on zsh, and set the options which allow our
13478 # commands through without removal of \ escapes INIT.
13479 if test -n "\${ZSH_VERSION+set}" ; then
13480 setopt NO_GLOB_SUBST
13481 fi
13484 PACKAGE='$PACKAGE'
13485 VERSION='$VERSION'
13486 TIMESTAMP='$TIMESTAMP'
13487 RM='$RM'
13488 ofile='$ofile'
13493 _ACEOF
13495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13497 # Handling of arguments.
13498 for ac_config_target in $ac_config_targets
13499 do
13500 case $ac_config_target in
13501 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13502 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13504 "linux/etc/Makefile") CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
13505 "linux/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
13506 "linux/src/utils/libtiipcutils.pc") CONFIG_FILES="$CONFIG_FILES linux/src/utils/libtiipcutils.pc" ;;
13507 "linux/src/api/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
13508 "linux/src/api/libtiipc.pc") CONFIG_FILES="$CONFIG_FILES linux/src/api/libtiipc.pc" ;;
13509 "linux/src/mm/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/mm/Makefile" ;;
13510 "linux/src/mm/libmmrpc.pc") CONFIG_FILES="$CONFIG_FILES linux/src/mm/libmmrpc.pc" ;;
13511 "linux/src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
13512 "linux/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
13513 "linux/src/transport/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/transport/Makefile" ;;
13515 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13516 esac
13517 done
13520 # If the user did not use the arguments to specify the items to instantiate,
13521 # then the envvar interface is used. Set only those that are not.
13522 # We use the long form for the default assignment because of an extremely
13523 # bizarre bug on SunOS 4.1.3.
13524 if $ac_need_defaults; then
13525 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13526 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13527 fi
13529 # Have a temporary directory for convenience. Make it in the build tree
13530 # simply because there is no reason against having it here, and in addition,
13531 # creating and moving files from /tmp can sometimes cause problems.
13532 # Hook for its removal unless debugging.
13533 # Note that there is a small window in which the directory will not be cleaned:
13534 # after its creation but before its name has been assigned to `$tmp'.
13535 $debug ||
13536 {
13537 tmp= ac_tmp=
13538 trap 'exit_status=$?
13539 : "${ac_tmp:=$tmp}"
13540 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13541 ' 0
13542 trap 'as_fn_exit 1' 1 2 13 15
13543 }
13544 # Create a (secure) tmp directory for tmp files.
13546 {
13547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13548 test -d "$tmp"
13549 } ||
13550 {
13551 tmp=./conf$$-$RANDOM
13552 (umask 077 && mkdir "$tmp")
13553 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13554 ac_tmp=$tmp
13556 # Set up the scripts for CONFIG_FILES section.
13557 # No need to generate them if there are no CONFIG_FILES.
13558 # This happens for instance with `./config.status config.h'.
13559 if test -n "$CONFIG_FILES"; then
13562 ac_cr=`echo X | tr X '\015'`
13563 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13564 # But we know of no other shell where ac_cr would be empty at this
13565 # point, so we can use a bashism as a fallback.
13566 if test "x$ac_cr" = x; then
13567 eval ac_cr=\$\'\\r\'
13568 fi
13569 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13571 ac_cs_awk_cr='\\r'
13572 else
13573 ac_cs_awk_cr=$ac_cr
13574 fi
13576 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13577 _ACEOF
13580 {
13581 echo "cat >conf$$subs.awk <<_ACEOF" &&
13582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13583 echo "_ACEOF"
13584 } >conf$$subs.sh ||
13585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13586 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13587 ac_delim='%!_!# '
13588 for ac_last_try in false false false false false :; do
13589 . ./conf$$subs.sh ||
13590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13592 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13593 if test $ac_delim_n = $ac_delim_num; then
13594 break
13595 elif $ac_last_try; then
13596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13597 else
13598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13599 fi
13600 done
13601 rm -f conf$$subs.sh
13603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13604 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13605 _ACEOF
13606 sed -n '
13607 h
13608 s/^/S["/; s/!.*/"]=/
13609 p
13610 g
13611 s/^[^!]*!//
13612 :repl
13613 t repl
13614 s/'"$ac_delim"'$//
13615 t delim
13616 :nl
13617 h
13618 s/\(.\{148\}\)..*/\1/
13619 t more1
13620 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13621 p
13622 n
13623 b repl
13624 :more1
13625 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13626 p
13627 g
13628 s/.\{148\}//
13629 t nl
13630 :delim
13631 h
13632 s/\(.\{148\}\)..*/\1/
13633 t more2
13634 s/["\\]/\\&/g; s/^/"/; s/$/"/
13635 p
13636 b
13637 :more2
13638 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13639 p
13640 g
13641 s/.\{148\}//
13642 t delim
13643 ' <conf$$subs.awk | sed '
13644 /^[^""]/{
13645 N
13646 s/\n//
13647 }
13648 ' >>$CONFIG_STATUS || ac_write_fail=1
13649 rm -f conf$$subs.awk
13650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13651 _ACAWK
13652 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13653 for (key in S) S_is_set[key] = 1
13654 FS = "\a"
13656 }
13657 {
13658 line = $ 0
13659 nfields = split(line, field, "@")
13660 substed = 0
13661 len = length(field[1])
13662 for (i = 2; i < nfields; i++) {
13663 key = field[i]
13664 keylen = length(key)
13665 if (S_is_set[key]) {
13666 value = S[key]
13667 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13668 len += length(value) + length(field[++i])
13669 substed = 1
13670 } else
13671 len += 1 + keylen
13672 }
13674 print line
13675 }
13677 _ACAWK
13678 _ACEOF
13679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13680 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13681 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13682 else
13683 cat
13684 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13685 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13686 _ACEOF
13688 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13689 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13690 # trailing colons and then remove the whole line if VPATH becomes empty
13691 # (actually we leave an empty line to preserve line numbers).
13692 if test "x$srcdir" = x.; then
13693 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13694 h
13695 s///
13696 s/^/:/
13697 s/[ ]*$/:/
13698 s/:\$(srcdir):/:/g
13699 s/:\${srcdir}:/:/g
13700 s/:@srcdir@:/:/g
13701 s/^:*//
13702 s/:*$//
13703 x
13704 s/\(=[ ]*\).*/\1/
13705 G
13706 s/\n//
13707 s/^[^=]*=[ ]*$//
13708 }'
13709 fi
13711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712 fi # test -n "$CONFIG_FILES"
13715 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13716 shift
13717 for ac_tag
13718 do
13719 case $ac_tag in
13720 :[FHLC]) ac_mode=$ac_tag; continue;;
13721 esac
13722 case $ac_mode$ac_tag in
13723 :[FHL]*:*);;
13724 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13725 :[FH]-) ac_tag=-:-;;
13726 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13727 esac
13728 ac_save_IFS=$IFS
13729 IFS=:
13730 set x $ac_tag
13731 IFS=$ac_save_IFS
13732 shift
13733 ac_file=$1
13734 shift
13736 case $ac_mode in
13737 :L) ac_source=$1;;
13738 :[FH])
13739 ac_file_inputs=
13740 for ac_f
13741 do
13742 case $ac_f in
13743 -) ac_f="$ac_tmp/stdin";;
13744 *) # Look for the file first in the build tree, then in the source tree
13745 # (if the path is not absolute). The absolute path cannot be DOS-style,
13746 # because $ac_f cannot contain `:'.
13747 test -f "$ac_f" ||
13748 case $ac_f in
13749 [\\/$]*) false;;
13750 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13751 esac ||
13752 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13753 esac
13754 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13755 as_fn_append ac_file_inputs " '$ac_f'"
13756 done
13758 # Let's still pretend it is `configure' which instantiates (i.e., don't
13759 # use $as_me), people would be surprised to read:
13760 # /* config.h. Generated by config.status. */
13761 configure_input='Generated from '`
13762 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13763 `' by configure.'
13764 if test x"$ac_file" != x-; then
13765 configure_input="$ac_file. $configure_input"
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13767 $as_echo "$as_me: creating $ac_file" >&6;}
13768 fi
13769 # Neutralize special characters interpreted by sed in replacement strings.
13770 case $configure_input in #(
13771 *\&* | *\|* | *\\* )
13772 ac_sed_conf_input=`$as_echo "$configure_input" |
13773 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13774 *) ac_sed_conf_input=$configure_input;;
13775 esac
13777 case $ac_tag in
13778 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13780 esac
13781 ;;
13782 esac
13784 ac_dir=`$as_dirname -- "$ac_file" ||
13785 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13786 X"$ac_file" : 'X\(//\)[^/]' \| \
13787 X"$ac_file" : 'X\(//\)$' \| \
13788 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13789 $as_echo X"$ac_file" |
13790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13791 s//\1/
13792 q
13793 }
13794 /^X\(\/\/\)[^/].*/{
13795 s//\1/
13796 q
13797 }
13798 /^X\(\/\/\)$/{
13799 s//\1/
13800 q
13801 }
13802 /^X\(\/\).*/{
13803 s//\1/
13804 q
13805 }
13806 s/.*/./; q'`
13807 as_dir="$ac_dir"; as_fn_mkdir_p
13808 ac_builddir=.
13810 case "$ac_dir" in
13811 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13812 *)
13813 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13814 # A ".." for each directory in $ac_dir_suffix.
13815 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13816 case $ac_top_builddir_sub in
13817 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13818 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13819 esac ;;
13820 esac
13821 ac_abs_top_builddir=$ac_pwd
13822 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13823 # for backward compatibility:
13824 ac_top_builddir=$ac_top_build_prefix
13826 case $srcdir in
13827 .) # We are building in place.
13828 ac_srcdir=.
13829 ac_top_srcdir=$ac_top_builddir_sub
13830 ac_abs_top_srcdir=$ac_pwd ;;
13831 [\\/]* | ?:[\\/]* ) # Absolute name.
13832 ac_srcdir=$srcdir$ac_dir_suffix;
13833 ac_top_srcdir=$srcdir
13834 ac_abs_top_srcdir=$srcdir ;;
13835 *) # Relative name.
13836 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13837 ac_top_srcdir=$ac_top_build_prefix$srcdir
13838 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13839 esac
13840 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13843 case $ac_mode in
13844 :F)
13845 #
13846 # CONFIG_FILE
13847 #
13849 case $INSTALL in
13850 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13851 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13852 esac
13853 ac_MKDIR_P=$MKDIR_P
13854 case $MKDIR_P in
13855 [\\/$]* | ?:[\\/]* ) ;;
13856 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13857 esac
13858 _ACEOF
13860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13861 # If the template does not know about datarootdir, expand it.
13862 # FIXME: This hack should be removed a few years after 2.60.
13863 ac_datarootdir_hack=; ac_datarootdir_seen=
13864 ac_sed_dataroot='
13865 /datarootdir/ {
13866 p
13867 q
13868 }
13869 /@datadir@/p
13870 /@docdir@/p
13871 /@infodir@/p
13872 /@localedir@/p
13873 /@mandir@/p'
13874 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13875 *datarootdir*) ac_datarootdir_seen=yes;;
13876 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13878 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13879 _ACEOF
13880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13881 ac_datarootdir_hack='
13882 s&@datadir@&$datadir&g
13883 s&@docdir@&$docdir&g
13884 s&@infodir@&$infodir&g
13885 s&@localedir@&$localedir&g
13886 s&@mandir@&$mandir&g
13887 s&\\\${datarootdir}&$datarootdir&g' ;;
13888 esac
13889 _ACEOF
13891 # Neutralize VPATH when `$srcdir' = `.'.
13892 # Shell code in configure.ac might set extrasub.
13893 # FIXME: do we really want to maintain this feature?
13894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13895 ac_sed_extra="$ac_vpsub
13896 $extrasub
13897 _ACEOF
13898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13899 :t
13900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13901 s|@configure_input@|$ac_sed_conf_input|;t t
13902 s&@top_builddir@&$ac_top_builddir_sub&;t t
13903 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13904 s&@srcdir@&$ac_srcdir&;t t
13905 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13906 s&@top_srcdir@&$ac_top_srcdir&;t t
13907 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13908 s&@builddir@&$ac_builddir&;t t
13909 s&@abs_builddir@&$ac_abs_builddir&;t t
13910 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13911 s&@INSTALL@&$ac_INSTALL&;t t
13912 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13913 $ac_datarootdir_hack
13914 "
13915 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13916 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13918 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13919 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13920 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13921 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13923 which seems to be undefined. Please make sure it is defined" >&5
13924 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13925 which seems to be undefined. Please make sure it is defined" >&2;}
13927 rm -f "$ac_tmp/stdin"
13928 case $ac_file in
13929 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13930 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13931 esac \
13932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13933 ;;
13936 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13937 $as_echo "$as_me: executing $ac_file commands" >&6;}
13938 ;;
13939 esac
13942 case $ac_file$ac_mode in
13943 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13944 # Older Autoconf quotes --file arguments for eval, but not when files
13945 # are listed without --file. Let's play safe and only enable the eval
13946 # if we detect the quoting.
13947 case $CONFIG_FILES in
13948 *\'*) eval set x "$CONFIG_FILES" ;;
13949 *) set x $CONFIG_FILES ;;
13950 esac
13951 shift
13952 for mf
13953 do
13954 # Strip MF so we end up with the name of the file.
13955 mf=`echo "$mf" | sed -e 's/:.*$//'`
13956 # Check whether this is an Automake generated Makefile or not.
13957 # We used to match only the files named 'Makefile.in', but
13958 # some people rename them; so instead we look at the file content.
13959 # Grep'ing the first line is not enough: some people post-process
13960 # each Makefile.in and add a new line on top of each file to say so.
13961 # Grep'ing the whole file is not good either: AIX grep has a line
13962 # limit of 2048, but all sed's we know have understand at least 4000.
13963 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13964 dirpart=`$as_dirname -- "$mf" ||
13965 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13966 X"$mf" : 'X\(//\)[^/]' \| \
13967 X"$mf" : 'X\(//\)$' \| \
13968 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13969 $as_echo X"$mf" |
13970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13971 s//\1/
13972 q
13973 }
13974 /^X\(\/\/\)[^/].*/{
13975 s//\1/
13976 q
13977 }
13978 /^X\(\/\/\)$/{
13979 s//\1/
13980 q
13981 }
13982 /^X\(\/\).*/{
13983 s//\1/
13984 q
13985 }
13986 s/.*/./; q'`
13987 else
13988 continue
13989 fi
13990 # Extract the definition of DEPDIR, am__include, and am__quote
13991 # from the Makefile without running 'make'.
13992 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13993 test -z "$DEPDIR" && continue
13994 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13995 test -z "$am__include" && continue
13996 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13997 # Find all dependency output files, they are included files with
13998 # $(DEPDIR) in their names. We invoke sed twice because it is the
13999 # simplest approach to changing $(DEPDIR) to its actual value in the
14000 # expansion.
14001 for file in `sed -n "
14002 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14003 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14004 # Make sure the directory exists.
14005 test -f "$dirpart/$file" && continue
14006 fdir=`$as_dirname -- "$file" ||
14007 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14008 X"$file" : 'X\(//\)[^/]' \| \
14009 X"$file" : 'X\(//\)$' \| \
14010 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14011 $as_echo X"$file" |
14012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14013 s//\1/
14014 q
14015 }
14016 /^X\(\/\/\)[^/].*/{
14017 s//\1/
14018 q
14019 }
14020 /^X\(\/\/\)$/{
14021 s//\1/
14022 q
14023 }
14024 /^X\(\/\).*/{
14025 s//\1/
14026 q
14027 }
14028 s/.*/./; q'`
14029 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14030 # echo "creating $dirpart/$file"
14031 echo '# dummy' > "$dirpart/$file"
14032 done
14033 done
14034 }
14035 ;;
14036 "libtool":C)
14038 # See if we are running on zsh, and set the options which allow our
14039 # commands through without removal of \ escapes.
14040 if test -n "${ZSH_VERSION+set}" ; then
14041 setopt NO_GLOB_SUBST
14042 fi
14044 cfgfile="${ofile}T"
14045 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14046 $RM "$cfgfile"
14048 cat <<_LT_EOF >> "$cfgfile"
14049 #! $SHELL
14051 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14052 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14054 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14055 #
14056 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14057 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14058 # Foundation, Inc.
14059 # Written by Gordon Matzigkeit, 1996
14060 #
14061 # This file is part of GNU Libtool.
14062 #
14063 # GNU Libtool is free software; you can redistribute it and/or
14064 # modify it under the terms of the GNU General Public License as
14065 # published by the Free Software Foundation; either version 2 of
14066 # the License, or (at your option) any later version.
14067 #
14068 # As a special exception to the GNU General Public License,
14069 # if you distribute this file as part of a program or library that
14070 # is built using GNU Libtool, you may include this file under the
14071 # same distribution terms that you use for the rest of that program.
14072 #
14073 # GNU Libtool is distributed in the hope that it will be useful,
14074 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14075 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14076 # GNU General Public License for more details.
14077 #
14078 # You should have received a copy of the GNU General Public License
14079 # along with GNU Libtool; see the file COPYING. If not, a copy
14080 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14081 # obtained by writing to the Free Software Foundation, Inc.,
14082 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14085 # The names of the tagged configurations supported by this script.
14086 available_tags=""
14088 # ### BEGIN LIBTOOL CONFIG
14090 # Which release of libtool.m4 was used?
14091 macro_version=$macro_version
14092 macro_revision=$macro_revision
14094 # Whether or not to build shared libraries.
14095 build_libtool_libs=$enable_shared
14097 # Whether or not to build static libraries.
14098 build_old_libs=$enable_static
14100 # What type of objects to build.
14101 pic_mode=$pic_mode
14103 # Whether or not to optimize for fast installation.
14104 fast_install=$enable_fast_install
14106 # Shell to use when invoking shell scripts.
14107 SHELL=$lt_SHELL
14109 # An echo program that protects backslashes.
14110 ECHO=$lt_ECHO
14112 # The PATH separator for the build system.
14113 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14115 # The host system.
14116 host_alias=$host_alias
14117 host=$host
14118 host_os=$host_os
14120 # The build system.
14121 build_alias=$build_alias
14122 build=$build
14123 build_os=$build_os
14125 # A sed program that does not truncate output.
14126 SED=$lt_SED
14128 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14129 Xsed="\$SED -e 1s/^X//"
14131 # A grep program that handles long lines.
14132 GREP=$lt_GREP
14134 # An ERE matcher.
14135 EGREP=$lt_EGREP
14137 # A literal string matcher.
14138 FGREP=$lt_FGREP
14140 # A BSD- or MS-compatible name lister.
14141 NM=$lt_NM
14143 # Whether we need soft or hard links.
14144 LN_S=$lt_LN_S
14146 # What is the maximum length of a command?
14147 max_cmd_len=$max_cmd_len
14149 # Object file suffix (normally "o").
14150 objext=$ac_objext
14152 # Executable file suffix (normally "").
14153 exeext=$exeext
14155 # whether the shell understands "unset".
14156 lt_unset=$lt_unset
14158 # turn spaces into newlines.
14159 SP2NL=$lt_lt_SP2NL
14161 # turn newlines into spaces.
14162 NL2SP=$lt_lt_NL2SP
14164 # convert \$build file names to \$host format.
14165 to_host_file_cmd=$lt_cv_to_host_file_cmd
14167 # convert \$build files to toolchain format.
14168 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14170 # An object symbol dumper.
14171 OBJDUMP=$lt_OBJDUMP
14173 # Method to check whether dependent libraries are shared objects.
14174 deplibs_check_method=$lt_deplibs_check_method
14176 # Command to use when deplibs_check_method = "file_magic".
14177 file_magic_cmd=$lt_file_magic_cmd
14179 # How to find potential files when deplibs_check_method = "file_magic".
14180 file_magic_glob=$lt_file_magic_glob
14182 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14183 want_nocaseglob=$lt_want_nocaseglob
14185 # DLL creation program.
14186 DLLTOOL=$lt_DLLTOOL
14188 # Command to associate shared and link libraries.
14189 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14191 # The archiver.
14192 AR=$lt_AR
14194 # Flags to create an archive.
14195 AR_FLAGS=$lt_AR_FLAGS
14197 # How to feed a file listing to the archiver.
14198 archiver_list_spec=$lt_archiver_list_spec
14200 # A symbol stripping program.
14201 STRIP=$lt_STRIP
14203 # Commands used to install an old-style archive.
14204 RANLIB=$lt_RANLIB
14205 old_postinstall_cmds=$lt_old_postinstall_cmds
14206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14208 # Whether to use a lock for old archive extraction.
14209 lock_old_archive_extraction=$lock_old_archive_extraction
14211 # A C compiler.
14212 LTCC=$lt_CC
14214 # LTCC compiler flags.
14215 LTCFLAGS=$lt_CFLAGS
14217 # Take the output of nm and produce a listing of raw symbols and C names.
14218 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14220 # Transform the output of nm in a proper C declaration.
14221 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14223 # Transform the output of nm in a C name address pair.
14224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14226 # Transform the output of nm in a C name address pair when lib prefix is needed.
14227 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14229 # Specify filename containing input files for \$NM.
14230 nm_file_list_spec=$lt_nm_file_list_spec
14232 # The root where to search for dependent libraries,and in which our libraries should be installed.
14233 lt_sysroot=$lt_sysroot
14235 # The name of the directory that contains temporary libtool files.
14236 objdir=$objdir
14238 # Used to examine libraries when file_magic_cmd begins with "file".
14239 MAGIC_CMD=$MAGIC_CMD
14241 # Must we lock files when doing compilation?
14242 need_locks=$lt_need_locks
14244 # Manifest tool.
14245 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14247 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14248 DSYMUTIL=$lt_DSYMUTIL
14250 # Tool to change global to local symbols on Mac OS X.
14251 NMEDIT=$lt_NMEDIT
14253 # Tool to manipulate fat objects and archives on Mac OS X.
14254 LIPO=$lt_LIPO
14256 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14257 OTOOL=$lt_OTOOL
14259 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14260 OTOOL64=$lt_OTOOL64
14262 # Old archive suffix (normally "a").
14263 libext=$libext
14265 # Shared library suffix (normally ".so").
14266 shrext_cmds=$lt_shrext_cmds
14268 # The commands to extract the exported symbol list from a shared archive.
14269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14271 # Variables whose values should be saved in libtool wrapper scripts and
14272 # restored at link time.
14273 variables_saved_for_relink=$lt_variables_saved_for_relink
14275 # Do we need the "lib" prefix for modules?
14276 need_lib_prefix=$need_lib_prefix
14278 # Do we need a version for libraries?
14279 need_version=$need_version
14281 # Library versioning type.
14282 version_type=$version_type
14284 # Shared library runtime path variable.
14285 runpath_var=$runpath_var
14287 # Shared library path variable.
14288 shlibpath_var=$shlibpath_var
14290 # Is shlibpath searched before the hard-coded library search path?
14291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14293 # Format of library name prefix.
14294 libname_spec=$lt_libname_spec
14296 # List of archive names. First name is the real one, the rest are links.
14297 # The last name is the one that the linker finds with -lNAME
14298 library_names_spec=$lt_library_names_spec
14300 # The coded name of the library, if different from the real name.
14301 soname_spec=$lt_soname_spec
14303 # Permission mode override for installation of shared libraries.
14304 install_override_mode=$lt_install_override_mode
14306 # Command to use after installation of a shared archive.
14307 postinstall_cmds=$lt_postinstall_cmds
14309 # Command to use after uninstallation of a shared archive.
14310 postuninstall_cmds=$lt_postuninstall_cmds
14312 # Commands used to finish a libtool library installation in a directory.
14313 finish_cmds=$lt_finish_cmds
14315 # As "finish_cmds", except a single script fragment to be evaled but
14316 # not shown.
14317 finish_eval=$lt_finish_eval
14319 # Whether we should hardcode library paths into libraries.
14320 hardcode_into_libs=$hardcode_into_libs
14322 # Compile-time system search path for libraries.
14323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14325 # Run-time system search path for libraries.
14326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14328 # Whether dlopen is supported.
14329 dlopen_support=$enable_dlopen
14331 # Whether dlopen of programs is supported.
14332 dlopen_self=$enable_dlopen_self
14334 # Whether dlopen of statically linked programs is supported.
14335 dlopen_self_static=$enable_dlopen_self_static
14337 # Commands to strip libraries.
14338 old_striplib=$lt_old_striplib
14339 striplib=$lt_striplib
14342 # The linker used to build libraries.
14343 LD=$lt_LD
14345 # How to create reloadable object files.
14346 reload_flag=$lt_reload_flag
14347 reload_cmds=$lt_reload_cmds
14349 # Commands used to build an old-style archive.
14350 old_archive_cmds=$lt_old_archive_cmds
14352 # A language specific compiler.
14353 CC=$lt_compiler
14355 # Is the compiler the GNU compiler?
14356 with_gcc=$GCC
14358 # Compiler flag to turn off builtin functions.
14359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14361 # Additional compiler flags for building library objects.
14362 pic_flag=$lt_lt_prog_compiler_pic
14364 # How to pass a linker flag through the compiler.
14365 wl=$lt_lt_prog_compiler_wl
14367 # Compiler flag to prevent dynamic linking.
14368 link_static_flag=$lt_lt_prog_compiler_static
14370 # Does compiler simultaneously support -c and -o options?
14371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14373 # Whether or not to add -lc for building shared libraries.
14374 build_libtool_need_lc=$archive_cmds_need_lc
14376 # Whether or not to disallow shared libs when runtime libs are static.
14377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14379 # Compiler flag to allow reflexive dlopens.
14380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14382 # Compiler flag to generate shared objects directly from archives.
14383 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14385 # Whether the compiler copes with passing no objects directly.
14386 compiler_needs_object=$lt_compiler_needs_object
14388 # Create an old-style archive from a shared archive.
14389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14391 # Create a temporary old-style archive to link instead of a shared archive.
14392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14394 # Commands used to build a shared archive.
14395 archive_cmds=$lt_archive_cmds
14396 archive_expsym_cmds=$lt_archive_expsym_cmds
14398 # Commands used to build a loadable module if different from building
14399 # a shared archive.
14400 module_cmds=$lt_module_cmds
14401 module_expsym_cmds=$lt_module_expsym_cmds
14403 # Whether we are building with GNU ld or not.
14404 with_gnu_ld=$lt_with_gnu_ld
14406 # Flag that allows shared libraries with undefined symbols to be built.
14407 allow_undefined_flag=$lt_allow_undefined_flag
14409 # Flag that enforces no undefined symbols.
14410 no_undefined_flag=$lt_no_undefined_flag
14412 # Flag to hardcode \$libdir into a binary during linking.
14413 # This must work even if \$libdir does not exist
14414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14416 # Whether we need a single "-rpath" flag with a separated argument.
14417 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14420 # DIR into the resulting binary.
14421 hardcode_direct=$hardcode_direct
14423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14424 # DIR into the resulting binary and the resulting library dependency is
14425 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14426 # library is relocated.
14427 hardcode_direct_absolute=$hardcode_direct_absolute
14429 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14430 # into the resulting binary.
14431 hardcode_minus_L=$hardcode_minus_L
14433 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14434 # into the resulting binary.
14435 hardcode_shlibpath_var=$hardcode_shlibpath_var
14437 # Set to "yes" if building a shared library automatically hardcodes DIR
14438 # into the library and all subsequent libraries and executables linked
14439 # against it.
14440 hardcode_automatic=$hardcode_automatic
14442 # Set to yes if linker adds runtime paths of dependent libraries
14443 # to runtime path list.
14444 inherit_rpath=$inherit_rpath
14446 # Whether libtool must link a program against all its dependency libraries.
14447 link_all_deplibs=$link_all_deplibs
14449 # Set to "yes" if exported symbols are required.
14450 always_export_symbols=$always_export_symbols
14452 # The commands to list exported symbols.
14453 export_symbols_cmds=$lt_export_symbols_cmds
14455 # Symbols that should not be listed in the preloaded symbols.
14456 exclude_expsyms=$lt_exclude_expsyms
14458 # Symbols that must always be exported.
14459 include_expsyms=$lt_include_expsyms
14461 # Commands necessary for linking programs (against libraries) with templates.
14462 prelink_cmds=$lt_prelink_cmds
14464 # Commands necessary for finishing linking programs.
14465 postlink_cmds=$lt_postlink_cmds
14467 # Specify filename containing input files.
14468 file_list_spec=$lt_file_list_spec
14470 # How to hardcode a shared library path into an executable.
14471 hardcode_action=$hardcode_action
14473 # ### END LIBTOOL CONFIG
14475 _LT_EOF
14477 case $host_os in
14478 aix3*)
14479 cat <<\_LT_EOF >> "$cfgfile"
14480 # AIX sometimes has problems with the GCC collect2 program. For some
14481 # reason, if we set the COLLECT_NAMES environment variable, the problems
14482 # vanish in a puff of smoke.
14483 if test "X${COLLECT_NAMES+set}" != Xset; then
14484 COLLECT_NAMES=
14485 export COLLECT_NAMES
14486 fi
14487 _LT_EOF
14488 ;;
14489 esac
14492 ltmain="$ac_aux_dir/ltmain.sh"
14495 # We use sed instead of cat because bash on DJGPP gets confused if
14496 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14497 # text mode, it properly converts lines to CR/LF. This bash problem
14498 # is reportedly fixed, but why not run on old versions too?
14499 sed '$q' "$ltmain" >> "$cfgfile" \
14500 || (rm -f "$cfgfile"; exit 1)
14502 if test x"$xsi_shell" = xyes; then
14503 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14504 func_dirname ()\
14505 {\
14506 \ case ${1} in\
14507 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14508 \ * ) func_dirname_result="${3}" ;;\
14509 \ esac\
14510 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14511 && mv -f "$cfgfile.tmp" "$cfgfile" \
14512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14513 test 0 -eq $? || _lt_function_replace_fail=:
14516 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14517 func_basename ()\
14518 {\
14519 \ func_basename_result="${1##*/}"\
14520 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14521 && mv -f "$cfgfile.tmp" "$cfgfile" \
14522 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14523 test 0 -eq $? || _lt_function_replace_fail=:
14526 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14527 func_dirname_and_basename ()\
14528 {\
14529 \ case ${1} in\
14530 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14531 \ * ) func_dirname_result="${3}" ;;\
14532 \ esac\
14533 \ func_basename_result="${1##*/}"\
14534 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14535 && mv -f "$cfgfile.tmp" "$cfgfile" \
14536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14537 test 0 -eq $? || _lt_function_replace_fail=:
14540 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14541 func_stripname ()\
14542 {\
14543 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14544 \ # positional parameters, so assign one to ordinary parameter first.\
14545 \ func_stripname_result=${3}\
14546 \ func_stripname_result=${func_stripname_result#"${1}"}\
14547 \ func_stripname_result=${func_stripname_result%"${2}"}\
14548 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14549 && mv -f "$cfgfile.tmp" "$cfgfile" \
14550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14551 test 0 -eq $? || _lt_function_replace_fail=:
14554 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14555 func_split_long_opt ()\
14556 {\
14557 \ func_split_long_opt_name=${1%%=*}\
14558 \ func_split_long_opt_arg=${1#*=}\
14559 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14560 && mv -f "$cfgfile.tmp" "$cfgfile" \
14561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14562 test 0 -eq $? || _lt_function_replace_fail=:
14565 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14566 func_split_short_opt ()\
14567 {\
14568 \ func_split_short_opt_arg=${1#??}\
14569 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14570 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14571 && mv -f "$cfgfile.tmp" "$cfgfile" \
14572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14573 test 0 -eq $? || _lt_function_replace_fail=:
14576 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14577 func_lo2o ()\
14578 {\
14579 \ case ${1} in\
14580 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14581 \ *) func_lo2o_result=${1} ;;\
14582 \ esac\
14583 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14584 && mv -f "$cfgfile.tmp" "$cfgfile" \
14585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586 test 0 -eq $? || _lt_function_replace_fail=:
14589 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14590 func_xform ()\
14591 {\
14592 func_xform_result=${1%.*}.lo\
14593 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14594 && mv -f "$cfgfile.tmp" "$cfgfile" \
14595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14596 test 0 -eq $? || _lt_function_replace_fail=:
14599 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14600 func_arith ()\
14601 {\
14602 func_arith_result=$(( $* ))\
14603 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14604 && mv -f "$cfgfile.tmp" "$cfgfile" \
14605 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14606 test 0 -eq $? || _lt_function_replace_fail=:
14609 sed -e '/^func_len ()$/,/^} # func_len /c\
14610 func_len ()\
14611 {\
14612 func_len_result=${#1}\
14613 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14614 && mv -f "$cfgfile.tmp" "$cfgfile" \
14615 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14616 test 0 -eq $? || _lt_function_replace_fail=:
14618 fi
14620 if test x"$lt_shell_append" = xyes; then
14621 sed -e '/^func_append ()$/,/^} # func_append /c\
14622 func_append ()\
14623 {\
14624 eval "${1}+=\\${2}"\
14625 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14626 && mv -f "$cfgfile.tmp" "$cfgfile" \
14627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14628 test 0 -eq $? || _lt_function_replace_fail=:
14631 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14632 func_append_quoted ()\
14633 {\
14634 \ func_quote_for_eval "${2}"\
14635 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14636 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14637 && mv -f "$cfgfile.tmp" "$cfgfile" \
14638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14639 test 0 -eq $? || _lt_function_replace_fail=:
14642 # Save a `func_append' function call where possible by direct use of '+='
14643 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14644 && mv -f "$cfgfile.tmp" "$cfgfile" \
14645 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14646 test 0 -eq $? || _lt_function_replace_fail=:
14647 else
14648 # Save a `func_append' function call even when '+=' is not available
14649 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14650 && mv -f "$cfgfile.tmp" "$cfgfile" \
14651 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14652 test 0 -eq $? || _lt_function_replace_fail=:
14653 fi
14655 if test x"$_lt_function_replace_fail" = x":"; then
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14657 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14658 fi
14661 mv -f "$cfgfile" "$ofile" ||
14662 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14663 chmod +x "$ofile"
14665 ;;
14667 esac
14668 done # for ac_tag
14671 as_fn_exit 0
14672 _ACEOF
14673 ac_clean_files=$ac_clean_files_save
14675 test $ac_write_fail = 0 ||
14676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14679 # configure is writing to config.log, and then calls config.status.
14680 # config.status does its own redirection, appending to config.log.
14681 # Unfortunately, on DOS this fails, as config.log is still kept open
14682 # by configure, so config.status won't be able to write to it; its
14683 # output is simply discarded. So we exec the FD to /dev/null,
14684 # effectively closing config.log, so it can be properly (re)opened and
14685 # appended to by config.status. When coming back to configure, we
14686 # need to make the FD available again.
14687 if test "$no_create" != yes; then
14688 ac_cs_success=:
14689 ac_config_status_args=
14690 test "$silent" = yes &&
14691 ac_config_status_args="$ac_config_status_args --quiet"
14692 exec 5>/dev/null
14693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14694 exec 5>>config.log
14695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14696 # would make configure fail if this is the last instruction.
14697 $ac_cs_success || as_fn_exit 1
14698 fi
14699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14702 fi
14705 echo \
14706 "-----------------------------------------------------------
14708 Thank you for installing the Linux ${PACKAGE_NAME} package
14710 Installation directory prefix: '${prefix}'.
14711 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
14713 You have configured to build for the '${PLATFORM}' platform
14715 Your KERNEL installation directory is set to:
14716 '${KERNEL_INSTALL_DIR}'
14718 Your DRM installation directory is set to:
14719 '${DRM_PREFIX}'
14721 Your CMEM installation directory is set to:
14722 '${CMEM_INSTALL_DIR}'
14724 Now type 'make; sudo make install' to generate the program
14725 and install it to your system.
14727 ------------------------------------------------------------"