]> git.ipfire.org Git - thirdparty/gcc.git/blob - liboffloadmic/configure
Fix hppa64-hpux11 build to remove source paths from embedded path.
[thirdparty/gcc.git] / liboffloadmic / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for MIC Offload Runtime Library 1.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell 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
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='MIC Offload Runtime Library'
589 PACKAGE_TARNAME='liboffloadmic'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='MIC Offload Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 enable_option_checking=no
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"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 link_offloadmic_target
638 link_offloadmic_host
639 lt_cv_dlopen_libs
640 toolexeclibdir
641 toolexecdir
642 CXXCPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 RANLIB
649 AR
650 OBJDUMP
651 LN_S
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 SED
658 LIBTOOL
659 LIBOFFLOADMIC_HOST_FALSE
660 LIBOFFLOADMIC_HOST_TRUE
661 ALLOCA
662 EGREP
663 GREP
664 CPP
665 subdirs
666 multi_basedir
667 am__fastdepCXX_FALSE
668 am__fastdepCXX_TRUE
669 CXXDEPMODE
670 ac_ct_CXX
671 CXXFLAGS
672 CXX
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
689 CC
690 MAINT
691 MAINTAINER_MODE_FALSE
692 MAINTAINER_MODE_TRUE
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
702 AWK
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_os
721 target_vendor
722 target_cpu
723 target
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_silent_rules
774 enable_maintainer_mode
775 enable_dependency_tracking
776 enable_multilib
777 enable_version_specific_runtime_libs
778 with_toolexeclibdir
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 with_gnu_ld
784 enable_libtool_lock
785 with_gcc_major_version_only
786 '
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 CXX
796 CXXFLAGS
797 CCC
798 CPP
799 CXXCPP'
800 ac_subdirs_all='plugin'
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
897
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
930
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-maintainer-mode
1422 enable make rules and dependencies not useful (and
1423 sometimes confusing) to the casual installer
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-multilib build many library versions (default)
1429 --enable-version-specific-runtime-libs
1430 Specify that runtime libraries should be installed
1431 in a compiler-specific directory
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-toolexeclibdir=DIR
1442 install libraries built with a cross compiler within
1443 DIR
1444 --with-pic try to use only PIC/non-PIC objects [default=use
1445 both]
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-gcc-major-version-only
1448 use only GCC major number in filesystem paths
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 CXX C++ compiler command
1459 CXXFLAGS C++ compiler flags
1460 CPP C preprocessor
1461 CXXCPP C++ preprocessor
1462
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1465
1466 Report bugs to the package provider.
1467 _ACEOF
1468 ac_status=$?
1469 fi
1470
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 MIC Offload Runtime Library configure 1.0
1530 generated by GNU Autoconf 2.69
1531
1532 Copyright (C) 2012 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_cxx_try_compile LINENO
1582 # ----------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_cxx_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_cxx_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_cxx_try_compile
1618
1619 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1620 # -------------------------------------------
1621 # Tests whether TYPE exists after having included INCLUDES, setting cache
1622 # variable VAR accordingly.
1623 ac_fn_c_check_type ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1630 else
1631 eval "$3=no"
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 int
1636 main ()
1637 {
1638 if (sizeof ($2))
1639 return 0;
1640 ;
1641 return 0;
1642 }
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 $4
1648 int
1649 main ()
1650 {
1651 if (sizeof (($2)))
1652 return 0;
1653 ;
1654 return 0;
1655 }
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658
1659 else
1660 eval "$3=yes"
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_c_check_type
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=$ac_status
1745 fi
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_link
1828
1829 # ac_fn_c_check_func LINENO FUNC VAR
1830 # ----------------------------------
1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1832 ac_fn_c_check_func ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1844 #define $2 innocuous_$2
1845
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char $2 (); below.
1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849 <limits.h> exists even on freestanding compilers. */
1850
1851 #ifdef __STDC__
1852 # include <limits.h>
1853 #else
1854 # include <assert.h>
1855 #endif
1856
1857 #undef $2
1858
1859 /* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1862 #ifdef __cplusplus
1863 extern "C"
1864 #endif
1865 char $2 ();
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined __stub_$2 || defined __stub___$2
1870 choke me
1871 #endif
1872
1873 int
1874 main ()
1875 {
1876 return $2 ();
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_link "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext \
1887 conftest$ac_exeext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_func
1895
1896 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899 # the include files in INCLUDES and setting the cache variable VAR
1900 # accordingly.
1901 ac_fn_c_check_header_mongrel ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if eval \${$3+:} false; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 fi
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 else
1914 # Is the header compilable?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916 $as_echo_n "checking $2 usability... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_header_compiler=yes
1924 else
1925 ac_header_compiler=no
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929 $as_echo "$ac_header_compiler" >&6; }
1930
1931 # Is the header present?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933 $as_echo_n "checking $2 presence... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_cpp "$LINENO"; then :
1939 ac_header_preproc=yes
1940 else
1941 ac_header_preproc=no
1942 fi
1943 rm -f conftest.err conftest.i conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945 $as_echo "$ac_header_preproc" >&6; }
1946
1947 # So? What about this header?
1948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949 yes:no: )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 ;;
1955 no:yes:* )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1959 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1963 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 ;;
1967 esac
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 eval "$3=\$ac_header_compiler"
1974 fi
1975 eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 fi
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980
1981 } # ac_fn_c_check_header_mongrel
1982
1983 # ac_fn_cxx_try_cpp LINENO
1984 # ------------------------
1985 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1986 ac_fn_cxx_try_cpp ()
1987 {
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if { { ac_try="$ac_cpp conftest.$ac_ext"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1997 ac_status=$?
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2002 fi
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } > conftest.i && {
2005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2006 test ! -s conftest.err
2007 }; then :
2008 ac_retval=0
2009 else
2010 $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_retval=1
2014 fi
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 as_fn_set_status $ac_retval
2017
2018 } # ac_fn_cxx_try_cpp
2019
2020 # ac_fn_cxx_try_link LINENO
2021 # -------------------------
2022 # Try to link conftest.$ac_ext, and return whether this succeeded.
2023 ac_fn_cxx_try_link ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 rm -f conftest.$ac_objext conftest$ac_exeext
2027 if { { ac_try="$ac_link"
2028 case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_link") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2040 fi
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } && {
2043 test -z "$ac_cxx_werror_flag" ||
2044 test ! -s conftest.err
2045 } && test -s conftest$ac_exeext && {
2046 test "$cross_compiling" = yes ||
2047 test -x conftest$ac_exeext
2048 }; then :
2049 ac_retval=0
2050 else
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_retval=1
2055 fi
2056 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2057 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2058 # interfere with the next link command; also delete a directory that is
2059 # left behind by Apple's compiler. We do this before executing the actions.
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
2063
2064 } # ac_fn_cxx_try_link
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2068
2069 It was created by MIC Offload Runtime Library $as_me 1.0, which was
2070 generated by GNU Autoconf 2.69. Invocation command line was
2071
2072 $ $0 $@
2073
2074 _ACEOF
2075 exec 5>>config.log
2076 {
2077 cat <<_ASUNAME
2078 ## --------- ##
2079 ## Platform. ##
2080 ## --------- ##
2081
2082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2090
2091 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2095 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2098
2099 _ASUNAME
2100
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2107 done
2108 IFS=$as_save_IFS
2109
2110 } >&5
2111
2112 cat >&5 <<_ACEOF
2113
2114
2115 ## ----------- ##
2116 ## Core tests. ##
2117 ## ----------- ##
2118
2119 _ACEOF
2120
2121
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2127 ac_configure_args=
2128 ac_configure_args0=
2129 ac_configure_args1=
2130 ac_must_keep_next=false
2131 for ac_pass in 1 2
2132 do
2133 for ac_arg
2134 do
2135 case $ac_arg in
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2139 continue ;;
2140 *\'*)
2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 esac
2143 case $ac_pass in
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2145 2)
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2149 else
2150 case $ac_arg in
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 esac
2158 ;;
2159 -* ) ac_must_keep_next=true ;;
2160 esac
2161 fi
2162 as_fn_append ac_configure_args " '$ac_arg'"
2163 ;;
2164 esac
2165 done
2166 done
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2169
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log. We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2177 {
2178 echo
2179
2180 $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2183 echo
2184 # The following way of writing the cache mishandles newlines in values,
2185 (
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in #(
2189 *${as_nl}*)
2190 case $ac_var in #(
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193 esac
2194 case $ac_var in #(
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2198 esac ;;
2199 esac
2200 done
2201 (set) 2>&1 |
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2204 sed -n \
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 ;; #(
2208 *)
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 ;;
2211 esac |
2212 sort
2213 )
2214 echo
2215
2216 $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2219 echo
2220 for ac_var in $ac_subst_vars
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229
2230 if test -n "$ac_subst_files"; then
2231 $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2234 echo
2235 for ac_var in $ac_subst_files
2236 do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 esac
2241 $as_echo "$ac_var='\''$ac_val'\''"
2242 done | sort
2243 echo
2244 fi
2245
2246 if test -s confdefs.h; then
2247 $as_echo "## ----------- ##
2248 ## confdefs.h. ##
2249 ## ----------- ##"
2250 echo
2251 cat confdefs.h
2252 echo
2253 fi
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2257 } >&5
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 exit $exit_status
2261 ' 0
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264 done
2265 ac_signal=0
2266
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2269
2270 $as_echo "/* confdefs.h */" > confdefs.h
2271
2272 # Predefined preprocessor variables.
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2296 _ACEOF
2297
2298
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2301 ac_site_file1=NONE
2302 ac_site_file2=NONE
2303 if test -n "$CONFIG_SITE"; then
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2309 esac
2310 elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2313 else
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2316 fi
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2318 do
2319 test "x$ac_site_file" = xNONE && continue
2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2324 . "$ac_site_file" \
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5; }
2329 fi
2330 done
2331
2332 if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2338 case $cache_file in
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2341 esac
2342 fi
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2346 >$cache_file
2347 fi
2348
2349 # Check that the precious variables saved in the cache have kept the same
2350 # value.
2351 ac_cache_corrupted=false
2352 for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2358 set,)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,set)
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2366 ,);;
2367 *)
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x $ac_old_val`
2371 ac_new_val_w=`echo x $ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375 ac_cache_corrupted=:
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2385 fi;;
2386 esac
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2389 case $ac_new_val in
2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2392 esac
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396 esac
2397 fi
2398 done
2399 if $ac_cache_corrupted; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2405 fi
2406 ## -------------------- ##
2407 ## Main body of script. ##
2408 ## -------------------- ##
2409
2410 ac_ext=c
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415
2416
2417
2418
2419
2420
2421 ac_aux_dir=
2422 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2423 if test -f "$ac_dir/install-sh"; then
2424 ac_aux_dir=$ac_dir
2425 ac_install_sh="$ac_aux_dir/install-sh -c"
2426 break
2427 elif test -f "$ac_dir/install.sh"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/install.sh -c"
2430 break
2431 elif test -f "$ac_dir/shtool"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/shtool install -c"
2434 break
2435 fi
2436 done
2437 if test -z "$ac_aux_dir"; then
2438 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2439 fi
2440
2441 # These three variables are undocumented and unsupported,
2442 # and are intended to be withdrawn in a future Autoconf release.
2443 # They can cause serious problems if a builder's source tree is in a directory
2444 # whose full name contains unusual characters.
2445 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2446 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2447 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2448
2449
2450 # Make sure we can run config.sub.
2451 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2452 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2453
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2455 $as_echo_n "checking build system type... " >&6; }
2456 if ${ac_cv_build+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 ac_build_alias=$build_alias
2460 test "x$ac_build_alias" = x &&
2461 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2462 test "x$ac_build_alias" = x &&
2463 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2464 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2466
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2469 $as_echo "$ac_cv_build" >&6; }
2470 case $ac_cv_build in
2471 *-*-*) ;;
2472 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2473 esac
2474 build=$ac_cv_build
2475 ac_save_IFS=$IFS; IFS='-'
2476 set x $ac_cv_build
2477 shift
2478 build_cpu=$1
2479 build_vendor=$2
2480 shift; shift
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2483 build_os=$*
2484 IFS=$ac_save_IFS
2485 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2486
2487
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2489 $as_echo_n "checking host system type... " >&6; }
2490 if ${ac_cv_host+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 if test "x$host_alias" = x; then
2494 ac_cv_host=$ac_cv_build
2495 else
2496 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2498 fi
2499
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2502 $as_echo "$ac_cv_host" >&6; }
2503 case $ac_cv_host in
2504 *-*-*) ;;
2505 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2506 esac
2507 host=$ac_cv_host
2508 ac_save_IFS=$IFS; IFS='-'
2509 set x $ac_cv_host
2510 shift
2511 host_cpu=$1
2512 host_vendor=$2
2513 shift; shift
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2516 host_os=$*
2517 IFS=$ac_save_IFS
2518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2519
2520
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2522 $as_echo_n "checking target system type... " >&6; }
2523 if ${ac_cv_target+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test "x$target_alias" = x; then
2527 ac_cv_target=$ac_cv_host
2528 else
2529 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2531 fi
2532
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2535 $as_echo "$ac_cv_target" >&6; }
2536 case $ac_cv_target in
2537 *-*-*) ;;
2538 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2539 esac
2540 target=$ac_cv_target
2541 ac_save_IFS=$IFS; IFS='-'
2542 set x $ac_cv_target
2543 shift
2544 target_cpu=$1
2545 target_vendor=$2
2546 shift; shift
2547 # Remember, the first character of IFS is used to create $*,
2548 # except with old shells:
2549 target_os=$*
2550 IFS=$ac_save_IFS
2551 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2552
2553
2554 # The aliases save the names the user supplied, while $host etc.
2555 # will get canonicalized.
2556 test -n "$target_alias" &&
2557 test "$program_prefix$program_suffix$program_transform_name" = \
2558 NONENONEs,x,x, &&
2559 program_prefix=${target_alias}-
2560
2561 target_alias=${target_alias-$host_alias}
2562
2563
2564 am__api_version='1.15'
2565
2566 # Find a good install program. We prefer a C program (faster),
2567 # so one script is as good as another. But avoid the broken or
2568 # incompatible versions:
2569 # SysV /etc/install, /usr/sbin/install
2570 # SunOS /usr/etc/install
2571 # IRIX /sbin/install
2572 # AIX /bin/install
2573 # AmigaOS /C/install, which installs bootblocks on floppy discs
2574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2577 # OS/2's system install, which has a completely different semantic
2578 # ./install, which can be erroneously created by make from ./install.sh.
2579 # Reject install programs that cannot install multiple files.
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2581 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2582 if test -z "$INSTALL"; then
2583 if ${ac_cv_path_install+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 # Account for people who put trailing slashes in PATH elements.
2592 case $as_dir/ in #((
2593 ./ | .// | /[cC]/* | \
2594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2595 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2596 /usr/ucb/* ) ;;
2597 *)
2598 # OSF1 and SCO ODT 3.0 have their own names for install.
2599 # Don't use installbsd from OSF since it installs stuff as root
2600 # by default.
2601 for ac_prog in ginstall scoinst install; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2604 if test $ac_prog = install &&
2605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # AIX install. It has an incompatible calling convention.
2607 :
2608 elif test $ac_prog = install &&
2609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610 # program-specific install script used by HP pwplus--don't use.
2611 :
2612 else
2613 rm -rf conftest.one conftest.two conftest.dir
2614 echo one > conftest.one
2615 echo two > conftest.two
2616 mkdir conftest.dir
2617 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2618 test -s conftest.one && test -s conftest.two &&
2619 test -s conftest.dir/conftest.one &&
2620 test -s conftest.dir/conftest.two
2621 then
2622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2623 break 3
2624 fi
2625 fi
2626 fi
2627 done
2628 done
2629 ;;
2630 esac
2631
2632 done
2633 IFS=$as_save_IFS
2634
2635 rm -rf conftest.one conftest.two conftest.dir
2636
2637 fi
2638 if test "${ac_cv_path_install+set}" = set; then
2639 INSTALL=$ac_cv_path_install
2640 else
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for INSTALL within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 INSTALL=$ac_install_sh
2646 fi
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2649 $as_echo "$INSTALL" >&6; }
2650
2651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2652 # It thinks the first close brace ends the variable substitution.
2653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654
2655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656
2657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2660 $as_echo_n "checking whether build environment is sane... " >&6; }
2661 # Reject unsafe characters in $srcdir or the absolute working directory
2662 # name. Accept space and tab only in the latter.
2663 am_lf='
2664 '
2665 case `pwd` in
2666 *[\\\"\#\$\&\'\`$am_lf]*)
2667 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2668 esac
2669 case $srcdir in
2670 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2671 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2672 esac
2673
2674 # Do 'set' in a subshell so we don't clobber the current shell's
2675 # arguments. Must try -L first in case configure is actually a
2676 # symlink; some systems play weird games with the mod time of symlinks
2677 # (eg FreeBSD returns the mod time of the symlink's containing
2678 # directory).
2679 if (
2680 am_has_slept=no
2681 for am_try in 1 2; do
2682 echo "timestamp, slept: $am_has_slept" > conftest.file
2683 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2684 if test "$*" = "X"; then
2685 # -L didn't work.
2686 set X `ls -t "$srcdir/configure" conftest.file`
2687 fi
2688 if test "$*" != "X $srcdir/configure conftest.file" \
2689 && test "$*" != "X conftest.file $srcdir/configure"; then
2690
2691 # If neither matched, then we have a broken ls. This can happen
2692 # if, for instance, CONFIG_SHELL is bash and it inherits a
2693 # broken ls alias from the environment. This has actually
2694 # happened. Such a system could not be considered "sane".
2695 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2696 alias in your environment" "$LINENO" 5
2697 fi
2698 if test "$2" = conftest.file || test $am_try -eq 2; then
2699 break
2700 fi
2701 # Just in case.
2702 sleep 1
2703 am_has_slept=yes
2704 done
2705 test "$2" = conftest.file
2706 )
2707 then
2708 # Ok.
2709 :
2710 else
2711 as_fn_error $? "newly created file is older than distributed files!
2712 Check your system clock" "$LINENO" 5
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2716 # If we didn't sleep, we still need to ensure time stamps of config.status and
2717 # generated files are strictly newer.
2718 am_sleep_pid=
2719 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2720 ( sleep 1 ) &
2721 am_sleep_pid=$!
2722 fi
2723
2724 rm -f conftest.file
2725
2726 test "$program_prefix" != NONE &&
2727 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2728 # Use a double $ so make ignores it.
2729 test "$program_suffix" != NONE &&
2730 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2731 # Double any \ or $.
2732 # By default was `s,x,x', remove it if useless.
2733 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2734 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2735
2736 # Expand $ac_aux_dir to an absolute path.
2737 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2738
2739 if test x"${MISSING+set}" != xset; then
2740 case $am_aux_dir in
2741 *\ * | *\ *)
2742 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2743 *)
2744 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2745 esac
2746 fi
2747 # Use eval to expand $SHELL
2748 if eval "$MISSING --is-lightweight"; then
2749 am_missing_run="$MISSING "
2750 else
2751 am_missing_run=
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2753 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2754 fi
2755
2756 if test x"${install_sh+set}" != xset; then
2757 case $am_aux_dir in
2758 *\ * | *\ *)
2759 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2760 *)
2761 install_sh="\${SHELL} $am_aux_dir/install-sh"
2762 esac
2763 fi
2764
2765 # Installed binaries are usually stripped using 'strip' when the user
2766 # run "make install-strip". However 'strip' might not be the right
2767 # tool to use in cross-compilation environments, therefore Automake
2768 # will honor the 'STRIP' environment variable to overrule this program.
2769 if test "$cross_compiling" != no; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}strip; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_STRIP+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 STRIP=$ac_cv_prog_STRIP
2799 if test -n "$STRIP"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2801 $as_echo "$STRIP" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 fi
2809 if test -z "$ac_cv_prog_STRIP"; then
2810 ac_ct_STRIP=$STRIP
2811 # Extract the first word of "strip", so it can be a program name with args.
2812 set dummy strip; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_ac_ct_STRIP="strip"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2839 if test -n "$ac_ct_STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2841 $as_echo "$ac_ct_STRIP" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847 if test "x$ac_ct_STRIP" = x; then
2848 STRIP=":"
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851 yes:)
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned=yes ;;
2855 esac
2856 STRIP=$ac_ct_STRIP
2857 fi
2858 else
2859 STRIP="$ac_cv_prog_STRIP"
2860 fi
2861
2862 fi
2863 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2864
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2866 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2867 if test -z "$MKDIR_P"; then
2868 if ${ac_cv_path_mkdir+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_prog in mkdir gmkdir; do
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2879 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2880 'mkdir (GNU coreutils) '* | \
2881 'mkdir (coreutils) '* | \
2882 'mkdir (fileutils) '4.1*)
2883 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2884 break 3;;
2885 esac
2886 done
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892
2893 test -d ./--version && rmdir ./--version
2894 if test "${ac_cv_path_mkdir+set}" = set; then
2895 MKDIR_P="$ac_cv_path_mkdir -p"
2896 else
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for MKDIR_P within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
2901 MKDIR_P="$ac_install_sh -d"
2902 fi
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2905 $as_echo "$MKDIR_P" >&6; }
2906
2907 for ac_prog in gawk mawk nawk awk
2908 do
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_AWK+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_AWK="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 AWK=$ac_cv_prog_AWK
2937 if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939 $as_echo "$AWK" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 test -n "$AWK" && break
2947 done
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951 set x ${MAKE-make}
2952 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 cat >conftest.make <<\_ACEOF
2957 SHELL = /bin/sh
2958 all:
2959 @echo '@@@%%%=$(MAKE)=@@@%%%'
2960 _ACEOF
2961 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 *@@@%%%=?*=@@@%%%*)
2964 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 *)
2966 eval ac_cv_prog_make_${ac_make}_set=no;;
2967 esac
2968 rm -f conftest.make
2969 fi
2970 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 SET_MAKE=
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 SET_MAKE="MAKE=${MAKE-make}"
2978 fi
2979
2980 rm -rf .tst 2>/dev/null
2981 mkdir .tst 2>/dev/null
2982 if test -d .tst; then
2983 am__leading_dot=.
2984 else
2985 am__leading_dot=_
2986 fi
2987 rmdir .tst 2>/dev/null
2988
2989 # Check whether --enable-silent-rules was given.
2990 if test "${enable_silent_rules+set}" = set; then :
2991 enableval=$enable_silent_rules;
2992 fi
2993
2994 case $enable_silent_rules in # (((
2995 yes) AM_DEFAULT_VERBOSITY=0;;
2996 no) AM_DEFAULT_VERBOSITY=1;;
2997 *) AM_DEFAULT_VERBOSITY=1;;
2998 esac
2999 am_make=${MAKE-make}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002 if ${am_cv_make_support_nested_variables+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if $as_echo 'TRUE=$(BAR$(V))
3006 BAR0=false
3007 BAR1=true
3008 V=1
3009 am__doit:
3010 @$(TRUE)
3011 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3012 am_cv_make_support_nested_variables=yes
3013 else
3014 am_cv_make_support_nested_variables=no
3015 fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3019 if test $am_cv_make_support_nested_variables = yes; then
3020 AM_V='$(V)'
3021 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3022 else
3023 AM_V=$AM_DEFAULT_VERBOSITY
3024 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3025 fi
3026 AM_BACKSLASH='\'
3027
3028 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3029 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3030 # is not polluted with repeated "-I."
3031 am__isrc=' -I$(srcdir)'
3032 # test to see if srcdir already configured
3033 if test -f $srcdir/config.status; then
3034 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3035 fi
3036 fi
3037
3038 # test whether we have cygpath
3039 if test -z "$CYGPATH_W"; then
3040 if (cygpath --version) >/dev/null 2>/dev/null; then
3041 CYGPATH_W='cygpath -w'
3042 else
3043 CYGPATH_W=echo
3044 fi
3045 fi
3046
3047
3048 # Define the identity of the package.
3049 PACKAGE='liboffloadmic'
3050 VERSION='1.0'
3051
3052
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE "$PACKAGE"
3055 _ACEOF
3056
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define VERSION "$VERSION"
3060 _ACEOF
3061
3062 # Some tools Automake needs.
3063
3064 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3065
3066
3067 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3068
3069
3070 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3071
3072
3073 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3074
3075
3076 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3077
3078 # For better backward compatibility. To be removed once Automake 1.9.x
3079 # dies out for good. For more background, see:
3080 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3081 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3082 mkdir_p='$(MKDIR_P)'
3083
3084 # We need awk for the "check" target (and possibly the TAP driver). The
3085 # system "awk" is bad on some platforms.
3086 # Always define AMTAR for backward compatibility. Yes, it's still used
3087 # in the wild :-( We should find a proper way to deprecate it ...
3088 AMTAR='$${TAR-tar}'
3089
3090
3091 # We'll loop over all known methods to create a tar archive until one works.
3092 _am_tools='gnutar pax cpio none'
3093
3094 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3095
3096
3097
3098
3099
3100
3101 # POSIX will say in a future version that running "rm -f" with no argument
3102 # is OK; and we want to be able to make that assumption in our Makefile
3103 # recipes. So use an aggressive probe to check that the usage we want is
3104 # actually supported "in the wild" to an acceptable degree.
3105 # See automake bug#10828.
3106 # To make any issue more visible, cause the running configure to be aborted
3107 # by default if the 'rm' program in use doesn't match our expectations; the
3108 # user can still override this though.
3109 if rm -f && rm -fr && rm -rf; then : OK; else
3110 cat >&2 <<'END'
3111 Oops!
3112
3113 Your 'rm' program seems unable to run without file operands specified
3114 on the command line, even when the '-f' option is present. This is contrary
3115 to the behaviour of most rm programs out there, and not conforming with
3116 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3117
3118 Please tell bug-automake@gnu.org about your system, including the value
3119 of your $PATH and any error possibly output before this message. This
3120 can help us improve future automake versions.
3121
3122 END
3123 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3124 echo 'Configuration will proceed anyway, since you have set the' >&2
3125 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3126 echo >&2
3127 else
3128 cat >&2 <<'END'
3129 Aborting the configuration process, to ensure you take notice of the issue.
3130
3131 You can download and install GNU coreutils to get an 'rm' implementation
3132 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3133
3134 If you want to complete the configuration process using your problematic
3135 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3136 to "yes", and re-run configure.
3137
3138 END
3139 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3140 fi
3141 fi
3142
3143
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3145 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3146 # Check whether --enable-maintainer-mode was given.
3147 if test "${enable_maintainer_mode+set}" = set; then :
3148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3149 else
3150 USE_MAINTAINER_MODE=no
3151 fi
3152
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3154 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3155 if test $USE_MAINTAINER_MODE = yes; then
3156 MAINTAINER_MODE_TRUE=
3157 MAINTAINER_MODE_FALSE='#'
3158 else
3159 MAINTAINER_MODE_TRUE='#'
3160 MAINTAINER_MODE_FALSE=
3161 fi
3162
3163 MAINT=$MAINTAINER_MODE_TRUE
3164
3165
3166
3167 ac_ext=c
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 if test -n "$ac_tool_prefix"; then
3173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210 fi
3211 if test -z "$ac_cv_prog_CC"; then
3212 ac_ct_CC=$CC
3213 # Extract the first word of "gcc", so it can be a program name with args.
3214 set dummy gcc; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$ac_ct_CC"; then
3221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_ac_ct_CC="gcc"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3241 if test -n "$ac_ct_CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3243 $as_echo "$ac_ct_CC" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249 if test "x$ac_ct_CC" = x; then
3250 CC=""
3251 else
3252 case $cross_compiling:$ac_tool_warned in
3253 yes:)
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256 ac_tool_warned=yes ;;
3257 esac
3258 CC=$ac_ct_CC
3259 fi
3260 else
3261 CC="$ac_cv_prog_CC"
3262 fi
3263
3264 if test -z "$CC"; then
3265 if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}cc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_CC="${ac_tool_prefix}cc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303 fi
3304 fi
3305 if test -z "$CC"; then
3306 # Extract the first word of "cc", so it can be a program name with args.
3307 set dummy cc; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_CC+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC="$CC" # Let the user override the test.
3315 else
3316 ac_prog_rejected=no
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3325 ac_prog_rejected=yes
3326 continue
3327 fi
3328 ac_cv_prog_CC="cc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 if test $ac_prog_rejected = yes; then
3337 # We found a bogon in the path, so make sure we never use it.
3338 set dummy $ac_cv_prog_CC
3339 shift
3340 if test $# != 0; then
3341 # We chose a different compiler from the bogus one.
3342 # However, it has the same basename, so the bogon will be chosen
3343 # first if we set CC to just the basename; use the full file name.
3344 shift
3345 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3346 fi
3347 fi
3348 fi
3349 fi
3350 CC=$ac_cv_prog_CC
3351 if test -n "$CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353 $as_echo "$CC" >&6; }
3354 else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360 fi
3361 if test -z "$CC"; then
3362 if test -n "$ac_tool_prefix"; then
3363 for ac_prog in cl.exe
3364 do
3365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3366 set dummy $ac_tool_prefix$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_CC+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test -n "$CC"; then
3373 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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
3389
3390 fi
3391 fi
3392 CC=$ac_cv_prog_CC
3393 if test -n "$CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395 $as_echo "$CC" >&6; }
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401
3402 test -n "$CC" && break
3403 done
3404 fi
3405 if test -z "$CC"; then
3406 ac_ct_CC=$CC
3407 for ac_prog in cl.exe
3408 do
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test -n "$ac_ct_CC"; then
3417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_ac_ct_CC="$ac_prog"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3429 fi
3430 done
3431 done
3432 IFS=$as_save_IFS
3433
3434 fi
3435 fi
3436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3437 if test -n "$ac_ct_CC"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3439 $as_echo "$ac_ct_CC" >&6; }
3440 else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445
3446 test -n "$ac_ct_CC" && break
3447 done
3448
3449 if test "x$ac_ct_CC" = x; then
3450 CC=""
3451 else
3452 case $cross_compiling:$ac_tool_warned in
3453 yes:)
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3456 ac_tool_warned=yes ;;
3457 esac
3458 CC=$ac_ct_CC
3459 fi
3460 fi
3461
3462 fi
3463
3464
3465 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error $? "no acceptable C compiler found in \$PATH
3468 See \`config.log' for more details" "$LINENO" 5; }
3469
3470 # Provide some information about the compiler.
3471 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3472 set X $ac_compile
3473 ac_compiler=$2
3474 for ac_option in --version -v -V -qversion; do
3475 { { ac_try="$ac_compiler $ac_option >&5"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3483 ac_status=$?
3484 if test -s conftest.err; then
3485 sed '10a\
3486 ... rest of stderr output deleted ...
3487 10q' conftest.err >conftest.er1
3488 cat conftest.er1 >&5
3489 fi
3490 rm -f conftest.er1 conftest.err
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }
3493 done
3494
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 ac_clean_files_save=$ac_clean_files
3507 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3508 # Try to create an executable without -o first, disregard a.out.
3509 # It will help us diagnose broken compilers, and finding out an intuition
3510 # of exeext.
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3512 $as_echo_n "checking whether the C compiler works... " >&6; }
3513 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3514
3515 # The possible output files:
3516 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3517
3518 ac_rmfiles=
3519 for ac_file in $ac_files
3520 do
3521 case $ac_file in
3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3523 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3524 esac
3525 done
3526 rm -f $ac_rmfiles
3527
3528 if { { ac_try="$ac_link_default"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_link_default") 2>&5
3536 ac_status=$?
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3540 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3541 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3542 # so that the user can short-circuit this test for compilers unknown to
3543 # Autoconf.
3544 for ac_file in $ac_files ''
3545 do
3546 test -f "$ac_file" || continue
3547 case $ac_file in
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3549 ;;
3550 [ab].out )
3551 # We found the default executable, but exeext='' is most
3552 # certainly right.
3553 break;;
3554 *.* )
3555 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3556 then :; else
3557 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3558 fi
3559 # We set ac_cv_exeext here because the later test for it is not
3560 # safe: cross compilers may not add the suffix if given an `-o'
3561 # argument, so we may need to know it at that point already.
3562 # Even if this section looks crufty: it has the advantage of
3563 # actually working.
3564 break;;
3565 * )
3566 break;;
3567 esac
3568 done
3569 test "$ac_cv_exeext" = no && ac_cv_exeext=
3570
3571 else
3572 ac_file=''
3573 fi
3574 if test -z "$ac_file"; then :
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 $as_echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error 77 "C compiler cannot create executables
3583 See \`config.log' for more details" "$LINENO" 5; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3586 $as_echo "yes" >&6; }
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3589 $as_echo_n "checking for C compiler default output file name... " >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3591 $as_echo "$ac_file" >&6; }
3592 ac_exeext=$ac_cv_exeext
3593
3594 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3595 ac_clean_files=$ac_clean_files_save
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3597 $as_echo_n "checking for suffix of executables... " >&6; }
3598 if { { ac_try="$ac_link"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_link") 2>&5
3606 ac_status=$?
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; then :
3609 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3610 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3611 # work properly (i.e., refer to `conftest.exe'), while it won't with
3612 # `rm'.
3613 for ac_file in conftest.exe conftest conftest.*; do
3614 test -f "$ac_file" || continue
3615 case $ac_file in
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3617 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618 break;;
3619 * ) break;;
3620 esac
3621 done
3622 else
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3626 See \`config.log' for more details" "$LINENO" 5; }
3627 fi
3628 rm -f conftest conftest$ac_cv_exeext
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3630 $as_echo "$ac_cv_exeext" >&6; }
3631
3632 rm -f conftest.$ac_ext
3633 EXEEXT=$ac_cv_exeext
3634 ac_exeext=$EXEEXT
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637 #include <stdio.h>
3638 int
3639 main ()
3640 {
3641 FILE *f = fopen ("conftest.out", "w");
3642 return ferror (f) || fclose (f) != 0;
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 ac_clean_files="$ac_clean_files conftest.out"
3649 # Check that the compiler produces executables we can run. If not, either
3650 # the compiler is broken, or we cross compile.
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3652 $as_echo_n "checking whether we are cross compiling... " >&6; }
3653 if test "$cross_compiling" != yes; then
3654 { { ac_try="$ac_link"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }
3665 if { ac_try='./conftest$ac_cv_exeext'
3666 { { case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_try") 2>&5
3673 ac_status=$?
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; }; then
3676 cross_compiling=no
3677 else
3678 if test "$cross_compiling" = maybe; then
3679 cross_compiling=yes
3680 else
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error $? "cannot run C compiled programs.
3684 If you meant to cross compile, use \`--host'.
3685 See \`config.log' for more details" "$LINENO" 5; }
3686 fi
3687 fi
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3690 $as_echo "$cross_compiling" >&6; }
3691
3692 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3693 ac_clean_files=$ac_clean_files_save
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3695 $as_echo_n "checking for suffix of object files... " >&6; }
3696 if ${ac_cv_objext+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.o conftest.obj
3711 if { { ac_try="$ac_compile"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_compile") 2>&5
3719 ac_status=$?
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; then :
3722 for ac_file in conftest.o conftest.obj conftest.*; do
3723 test -f "$ac_file" || continue;
3724 case $ac_file in
3725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3726 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3727 break;;
3728 esac
3729 done
3730 else
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $? "cannot compute suffix of object files: cannot compile
3737 See \`config.log' for more details" "$LINENO" 5; }
3738 fi
3739 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3742 $as_echo "$ac_cv_objext" >&6; }
3743 OBJEXT=$ac_cv_objext
3744 ac_objext=$OBJEXT
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3746 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3747 if ${ac_cv_c_compiler_gnu+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752
3753 int
3754 main ()
3755 {
3756 #ifndef __GNUC__
3757 choke me
3758 #endif
3759
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 if ac_fn_c_try_compile "$LINENO"; then :
3765 ac_compiler_gnu=yes
3766 else
3767 ac_compiler_gnu=no
3768 fi
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3771
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3774 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3775 if test $ac_compiler_gnu = yes; then
3776 GCC=yes
3777 else
3778 GCC=
3779 fi
3780 ac_test_CFLAGS=${CFLAGS+set}
3781 ac_save_CFLAGS=$CFLAGS
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3783 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3784 if ${ac_cv_prog_cc_g+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 ac_save_c_werror_flag=$ac_c_werror_flag
3788 ac_c_werror_flag=yes
3789 ac_cv_prog_cc_g=no
3790 CFLAGS="-g"
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 int
3795 main ()
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803 ac_cv_prog_cc_g=yes
3804 else
3805 CFLAGS=""
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808
3809 int
3810 main ()
3811 {
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818
3819 else
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3821 CFLAGS="-g"
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824
3825 int
3826 main ()
3827 {
3828
3829 ;
3830 return 0;
3831 }
3832 _ACEOF
3833 if ac_fn_c_try_compile "$LINENO"; then :
3834 ac_cv_prog_cc_g=yes
3835 fi
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 fi
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 fi
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 ac_c_werror_flag=$ac_save_c_werror_flag
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3844 $as_echo "$ac_cv_prog_cc_g" >&6; }
3845 if test "$ac_test_CFLAGS" = set; then
3846 CFLAGS=$ac_save_CFLAGS
3847 elif test $ac_cv_prog_cc_g = yes; then
3848 if test "$GCC" = yes; then
3849 CFLAGS="-g -O2"
3850 else
3851 CFLAGS="-g"
3852 fi
3853 else
3854 if test "$GCC" = yes; then
3855 CFLAGS="-O2"
3856 else
3857 CFLAGS=
3858 fi
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3861 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3862 if ${ac_cv_prog_cc_c89+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 ac_cv_prog_cc_c89=no
3866 ac_save_CC=$CC
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869 #include <stdarg.h>
3870 #include <stdio.h>
3871 struct stat;
3872 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3873 struct buf { int x; };
3874 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3875 static char *e (p, i)
3876 char **p;
3877 int i;
3878 {
3879 return p[i];
3880 }
3881 static char *f (char * (*g) (char **, int), char **p, ...)
3882 {
3883 char *s;
3884 va_list v;
3885 va_start (v,p);
3886 s = g (p, va_arg (v,int));
3887 va_end (v);
3888 return s;
3889 }
3890
3891 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3892 function prototypes and stuff, but not '\xHH' hex character constants.
3893 These don't provoke an error unfortunately, instead are silently treated
3894 as 'x'. The following induces an error, until -std is added to get
3895 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3896 array size at least. It's necessary to write '\x00'==0 to get something
3897 that's true only with -std. */
3898 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3899
3900 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3901 inside strings and character constants. */
3902 #define FOO(x) 'x'
3903 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3904
3905 int test (int i, double x);
3906 struct s1 {int (*f) (int a);};
3907 struct s2 {int (*f) (double a);};
3908 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909 int argc;
3910 char **argv;
3911 int
3912 main ()
3913 {
3914 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3915 ;
3916 return 0;
3917 }
3918 _ACEOF
3919 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3920 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3921 do
3922 CC="$ac_save_CC $ac_arg"
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_prog_cc_c89=$ac_arg
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext
3927 test "x$ac_cv_prog_cc_c89" != "xno" && break
3928 done
3929 rm -f conftest.$ac_ext
3930 CC=$ac_save_CC
3931
3932 fi
3933 # AC_CACHE_VAL
3934 case "x$ac_cv_prog_cc_c89" in
3935 x)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3937 $as_echo "none needed" >&6; } ;;
3938 xno)
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3940 $as_echo "unsupported" >&6; } ;;
3941 *)
3942 CC="$CC $ac_cv_prog_cc_c89"
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3944 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3945 esac
3946 if test "x$ac_cv_prog_cc_c89" != xno; then :
3947
3948 fi
3949
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3962 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3963 if ${am_cv_prog_cc_c_o+:} false; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968
3969 int
3970 main ()
3971 {
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 # Make sure it works both with $CC and with simple cc.
3978 # Following AC_PROG_CC_C_O, we do the test twice because some
3979 # compilers refuse to overwrite an existing .o file with -o,
3980 # though they will create one.
3981 am_cv_prog_cc_c_o=yes
3982 for am_i in 1 2; do
3983 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3984 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } \
3988 && test -f conftest2.$ac_objext; then
3989 : OK
3990 else
3991 am_cv_prog_cc_c_o=no
3992 break
3993 fi
3994 done
3995 rm -f core conftest*
3996 unset am_i
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3999 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4000 if test "$am_cv_prog_cc_c_o" != yes; then
4001 # Losing compiler, so override with the script.
4002 # FIXME: It is wrong to rewrite CC.
4003 # But if we don't then we get into trouble of one sort or another.
4004 # A longer-term fix would be to have automake use am__CC in this case,
4005 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4006 CC="$am_aux_dir/compile $CC"
4007 fi
4008 ac_ext=c
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013
4014 DEPDIR="${am__leading_dot}deps"
4015
4016 ac_config_commands="$ac_config_commands depfiles"
4017
4018
4019 am_make=${MAKE-make}
4020 cat > confinc << 'END'
4021 am__doit:
4022 @echo this is the am__doit target
4023 .PHONY: am__doit
4024 END
4025 # If we don't find an include directive, just comment out the code.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4027 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4028 am__include="#"
4029 am__quote=
4030 _am_result=none
4031 # First try GNU make style include.
4032 echo "include confinc" > confmf
4033 # Ignore all kinds of additional output from 'make'.
4034 case `$am_make -s -f confmf 2> /dev/null` in #(
4035 *the\ am__doit\ target*)
4036 am__include=include
4037 am__quote=
4038 _am_result=GNU
4039 ;;
4040 esac
4041 # Now try BSD make style include.
4042 if test "$am__include" = "#"; then
4043 echo '.include "confinc"' > confmf
4044 case `$am_make -s -f confmf 2> /dev/null` in #(
4045 *the\ am__doit\ target*)
4046 am__include=.include
4047 am__quote="\""
4048 _am_result=BSD
4049 ;;
4050 esac
4051 fi
4052
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4055 $as_echo "$_am_result" >&6; }
4056 rm -f confinc confmf
4057
4058 # Check whether --enable-dependency-tracking was given.
4059 if test "${enable_dependency_tracking+set}" = set; then :
4060 enableval=$enable_dependency_tracking;
4061 fi
4062
4063 if test "x$enable_dependency_tracking" != xno; then
4064 am_depcomp="$ac_aux_dir/depcomp"
4065 AMDEPBACKSLASH='\'
4066 am__nodep='_no'
4067 fi
4068 if test "x$enable_dependency_tracking" != xno; then
4069 AMDEP_TRUE=
4070 AMDEP_FALSE='#'
4071 else
4072 AMDEP_TRUE='#'
4073 AMDEP_FALSE=
4074 fi
4075
4076
4077
4078 depcc="$CC" am_compiler_list=
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086 # We make a subdir and do the tests there. Otherwise we can end up
4087 # making bogus files that we don't know about and never remove. For
4088 # instance it was reported that on HP-UX the gcc test will end up
4089 # making a dummy file named 'D' -- because '-MD' means "put the output
4090 # in D".
4091 rm -rf conftest.dir
4092 mkdir conftest.dir
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4096 cd conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4102 # directory.
4103 mkdir sub
4104
4105 am_cv_CC_dependencies_compiler_type=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108 fi
4109 am__universal=false
4110 case " $depcc " in #(
4111 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112 esac
4113
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4118 #
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4122 : > sub/conftest.c
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4126 # Solaris 10 /bin/sh.
4127 echo '/* dummy */' > sub/conftst$i.h
4128 done
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4130
4131 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle '-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs.
4135 am__obj=sub/conftest.${OBJEXT-o}
4136 am__minus_obj="-o $am__obj"
4137 case $depmode in
4138 gcc)
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false || continue
4141 ;;
4142 nosideeffect)
4143 # After this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested.
4145 if test "x$enable_dependency_tracking" = xyes; then
4146 continue
4147 else
4148 break
4149 fi
4150 ;;
4151 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4152 # This compiler won't grok '-c -o', but also, the minuso test has
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj=conftest.${OBJEXT-o}
4156 am__minus_obj=
4157 ;;
4158 none) break ;;
4159 esac
4160 if depmode=$depmode \
4161 source=sub/conftest.c object=$am__obj \
4162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164 >/dev/null 2>conftest.err &&
4165 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178 am_cv_CC_dependencies_compiler_type=$depmode
4179 break
4180 fi
4181 fi
4182 done
4183
4184 cd ..
4185 rm -rf conftest.dir
4186 else
4187 am_cv_CC_dependencies_compiler_type=none
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4194
4195 if
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4198 am__fastdepCC_TRUE=
4199 am__fastdepCC_FALSE='#'
4200 else
4201 am__fastdepCC_TRUE='#'
4202 am__fastdepCC_FALSE=
4203 fi
4204
4205
4206 ac_ext=cpp
4207 ac_cpp='$CXXCPP $CPPFLAGS'
4208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4211 if test -z "$CXX"; then
4212 if test -n "$CCC"; then
4213 CXX=$CCC
4214 else
4215 if test -n "$ac_tool_prefix"; then
4216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4217 do
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CXX+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$CXX"; then
4226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 CXX=$ac_cv_prog_CXX
4246 if test -n "$CXX"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4248 $as_echo "$CXX" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255 test -n "$CXX" && break
4256 done
4257 fi
4258 if test -z "$CXX"; then
4259 ac_ct_CXX=$CXX
4260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4261 do
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$ac_ct_CXX"; then
4270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_ac_ct_CXX="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283 done
4284 done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4290 if test -n "$ac_ct_CXX"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4292 $as_echo "$ac_ct_CXX" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299 test -n "$ac_ct_CXX" && break
4300 done
4301
4302 if test "x$ac_ct_CXX" = x; then
4303 CXX="g++"
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311 CXX=$ac_ct_CXX
4312 fi
4313 fi
4314
4315 fi
4316 fi
4317 # Provide some information about the compiler.
4318 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4319 set X $ac_compile
4320 ac_compiler=$2
4321 for ac_option in --version -v -V -qversion; do
4322 { { ac_try="$ac_compiler $ac_option >&5"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4330 ac_status=$?
4331 if test -s conftest.err; then
4332 sed '10a\
4333 ... rest of stderr output deleted ...
4334 10q' conftest.err >conftest.er1
4335 cat conftest.er1 >&5
4336 fi
4337 rm -f conftest.er1 conftest.err
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }
4340 done
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4343 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4344 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349
4350 int
4351 main ()
4352 {
4353 #ifndef __GNUC__
4354 choke me
4355 #endif
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_cxx_try_compile "$LINENO"; then :
4362 ac_compiler_gnu=yes
4363 else
4364 ac_compiler_gnu=no
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4368
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4371 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4372 if test $ac_compiler_gnu = yes; then
4373 GXX=yes
4374 else
4375 GXX=
4376 fi
4377 ac_test_CXXFLAGS=${CXXFLAGS+set}
4378 ac_save_CXXFLAGS=$CXXFLAGS
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4380 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4381 if ${ac_cv_prog_cxx_g+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4385 ac_cxx_werror_flag=yes
4386 ac_cv_prog_cxx_g=no
4387 CXXFLAGS="-g"
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390
4391 int
4392 main ()
4393 {
4394
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 if ac_fn_cxx_try_compile "$LINENO"; then :
4400 ac_cv_prog_cxx_g=yes
4401 else
4402 CXXFLAGS=""
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405
4406 int
4407 main ()
4408 {
4409
4410 ;
4411 return 0;
4412 }
4413 _ACEOF
4414 if ac_fn_cxx_try_compile "$LINENO"; then :
4415
4416 else
4417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4418 CXXFLAGS="-g"
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421
4422 int
4423 main ()
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_cxx_try_compile "$LINENO"; then :
4431 ac_cv_prog_cxx_g=yes
4432 fi
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 fi
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4441 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4442 if test "$ac_test_CXXFLAGS" = set; then
4443 CXXFLAGS=$ac_save_CXXFLAGS
4444 elif test $ac_cv_prog_cxx_g = yes; then
4445 if test "$GXX" = yes; then
4446 CXXFLAGS="-g -O2"
4447 else
4448 CXXFLAGS="-g"
4449 fi
4450 else
4451 if test "$GXX" = yes; then
4452 CXXFLAGS="-O2"
4453 else
4454 CXXFLAGS=
4455 fi
4456 fi
4457 ac_ext=c
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462
4463 depcc="$CXX" am_compiler_list=
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4466 $as_echo_n "checking dependency style of $depcc... " >&6; }
4467 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4471 # We make a subdir and do the tests there. Otherwise we can end up
4472 # making bogus files that we don't know about and never remove. For
4473 # instance it was reported that on HP-UX the gcc test will end up
4474 # making a dummy file named 'D' -- because '-MD' means "put the output
4475 # in D".
4476 rm -rf conftest.dir
4477 mkdir conftest.dir
4478 # Copy depcomp to subdir because otherwise we won't find it if we're
4479 # using a relative directory.
4480 cp "$am_depcomp" conftest.dir
4481 cd conftest.dir
4482 # We will build objects and dependencies in a subdirectory because
4483 # it helps to detect inapplicable dependency modes. For instance
4484 # both Tru64's cc and ICC support -MD to output dependencies as a
4485 # side effect of compilation, but ICC will put the dependencies in
4486 # the current directory while Tru64 will put them in the object
4487 # directory.
4488 mkdir sub
4489
4490 am_cv_CXX_dependencies_compiler_type=none
4491 if test "$am_compiler_list" = ""; then
4492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4493 fi
4494 am__universal=false
4495 case " $depcc " in #(
4496 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4497 esac
4498
4499 for depmode in $am_compiler_list; do
4500 # Setup a source with many dependencies, because some compilers
4501 # like to wrap large dependency lists on column 80 (with \), and
4502 # we should not choose a depcomp mode which is confused by this.
4503 #
4504 # We need to recreate these files for each test, as the compiler may
4505 # overwrite some of them when testing with obscure command lines.
4506 # This happens at least with the AIX C compiler.
4507 : > sub/conftest.c
4508 for i in 1 2 3 4 5 6; do
4509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4510 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4511 # Solaris 10 /bin/sh.
4512 echo '/* dummy */' > sub/conftst$i.h
4513 done
4514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4515
4516 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4517 # mode. It turns out that the SunPro C++ compiler does not properly
4518 # handle '-M -o', and we need to detect this. Also, some Intel
4519 # versions had trouble with output in subdirs.
4520 am__obj=sub/conftest.${OBJEXT-o}
4521 am__minus_obj="-o $am__obj"
4522 case $depmode in
4523 gcc)
4524 # This depmode causes a compiler race in universal mode.
4525 test "$am__universal" = false || continue
4526 ;;
4527 nosideeffect)
4528 # After this tag, mechanisms are not by side-effect, so they'll
4529 # only be used when explicitly requested.
4530 if test "x$enable_dependency_tracking" = xyes; then
4531 continue
4532 else
4533 break
4534 fi
4535 ;;
4536 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4537 # This compiler won't grok '-c -o', but also, the minuso test has
4538 # not run yet. These depmodes are late enough in the game, and
4539 # so weak that their functioning should not be impacted.
4540 am__obj=conftest.${OBJEXT-o}
4541 am__minus_obj=
4542 ;;
4543 none) break ;;
4544 esac
4545 if depmode=$depmode \
4546 source=sub/conftest.c object=$am__obj \
4547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4548 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4549 >/dev/null 2>conftest.err &&
4550 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4554 # icc doesn't choke on unknown options, it will just issue warnings
4555 # or remarks (even with -Werror). So we grep stderr for any message
4556 # that says an option was ignored or not supported.
4557 # When given -MP, icc 7.0 and 7.1 complain thusly:
4558 # icc: Command line warning: ignoring option '-M'; no argument required
4559 # The diagnosis changed in icc 8.0:
4560 # icc: Command line remark: option '-MP' not supported
4561 if (grep 'ignoring option' conftest.err ||
4562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4563 am_cv_CXX_dependencies_compiler_type=$depmode
4564 break
4565 fi
4566 fi
4567 done
4568
4569 cd ..
4570 rm -rf conftest.dir
4571 else
4572 am_cv_CXX_dependencies_compiler_type=none
4573 fi
4574
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4577 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4578 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4579
4580 if
4581 test "x$enable_dependency_tracking" != xno \
4582 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4583 am__fastdepCXX_TRUE=
4584 am__fastdepCXX_FALSE='#'
4585 else
4586 am__fastdepCXX_TRUE='#'
4587 am__fastdepCXX_FALSE=
4588 fi
4589
4590
4591 ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4592
4593 # Default to --enable-multilib
4594 # Check whether --enable-multilib was given.
4595 if test "${enable_multilib+set}" = set; then :
4596 enableval=$enable_multilib; case "$enableval" in
4597 yes) multilib=yes ;;
4598 no) multilib=no ;;
4599 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
4600 esac
4601 else
4602 multilib=yes
4603 fi
4604
4605
4606 # We may get other options which we leave undocumented:
4607 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4608 # See config-ml.in if you want the gory details.
4609
4610 if test "$srcdir" = "."; then
4611 if test "$with_target_subdir" != "."; then
4612 multi_basedir="$srcdir/$with_multisrctop../.."
4613 else
4614 multi_basedir="$srcdir/$with_multisrctop.."
4615 fi
4616 else
4617 multi_basedir="$srcdir/.."
4618 fi
4619
4620
4621 # Even if the default multilib is not a cross compilation,
4622 # it may be that some of the other multilibs are.
4623 if test $cross_compiling = no && test $multilib = yes \
4624 && test "x${with_multisubdir}" != x ; then
4625 cross_compiling=maybe
4626 fi
4627
4628 ac_config_commands="$ac_config_commands default-1"
4629
4630
4631
4632 subdirs="$subdirs plugin"
4633
4634
4635 ac_ext=c
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4641 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4642 # On Suns, sometimes $CPP names a directory.
4643 if test -n "$CPP" && test -d "$CPP"; then
4644 CPP=
4645 fi
4646 if test -z "$CPP"; then
4647 if ${ac_cv_prog_CPP+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 # Double quotes because CPP needs to be expanded
4651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4652 do
4653 ac_preproc_ok=false
4654 for ac_c_preproc_warn_flag in '' yes
4655 do
4656 # Use a header file that comes with gcc, so configuring glibc
4657 # with a fresh cross-compiler works.
4658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4659 # <limits.h> exists even on freestanding compilers.
4660 # On the NeXT, cc -E runs the code through the compiler's parser,
4661 # not just through cpp. "Syntax error" is here to catch this case.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 #ifdef __STDC__
4665 # include <limits.h>
4666 #else
4667 # include <assert.h>
4668 #endif
4669 Syntax error
4670 _ACEOF
4671 if ac_fn_c_try_cpp "$LINENO"; then :
4672
4673 else
4674 # Broken: fails on valid input.
4675 continue
4676 fi
4677 rm -f conftest.err conftest.i conftest.$ac_ext
4678
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #include <ac_nonexistent.h>
4684 _ACEOF
4685 if ac_fn_c_try_cpp "$LINENO"; then :
4686 # Broken: success on invalid input.
4687 continue
4688 else
4689 # Passes both tests.
4690 ac_preproc_ok=:
4691 break
4692 fi
4693 rm -f conftest.err conftest.i conftest.$ac_ext
4694
4695 done
4696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4697 rm -f conftest.i conftest.err conftest.$ac_ext
4698 if $ac_preproc_ok; then :
4699 break
4700 fi
4701
4702 done
4703 ac_cv_prog_CPP=$CPP
4704
4705 fi
4706 CPP=$ac_cv_prog_CPP
4707 else
4708 ac_cv_prog_CPP=$CPP
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4711 $as_echo "$CPP" >&6; }
4712 ac_preproc_ok=false
4713 for ac_c_preproc_warn_flag in '' yes
4714 do
4715 # Use a header file that comes with gcc, so configuring glibc
4716 # with a fresh cross-compiler works.
4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718 # <limits.h> exists even on freestanding compilers.
4719 # On the NeXT, cc -E runs the code through the compiler's parser,
4720 # not just through cpp. "Syntax error" is here to catch this case.
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723 #ifdef __STDC__
4724 # include <limits.h>
4725 #else
4726 # include <assert.h>
4727 #endif
4728 Syntax error
4729 _ACEOF
4730 if ac_fn_c_try_cpp "$LINENO"; then :
4731
4732 else
4733 # Broken: fails on valid input.
4734 continue
4735 fi
4736 rm -f conftest.err conftest.i conftest.$ac_ext
4737
4738 # OK, works on sane cases. Now check whether nonexistent headers
4739 # can be detected and how.
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742 #include <ac_nonexistent.h>
4743 _ACEOF
4744 if ac_fn_c_try_cpp "$LINENO"; then :
4745 # Broken: success on invalid input.
4746 continue
4747 else
4748 # Passes both tests.
4749 ac_preproc_ok=:
4750 break
4751 fi
4752 rm -f conftest.err conftest.i conftest.$ac_ext
4753
4754 done
4755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4756 rm -f conftest.i conftest.err conftest.$ac_ext
4757 if $ac_preproc_ok; then :
4758
4759 else
4760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4762 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4763 See \`config.log' for more details" "$LINENO" 5; }
4764 fi
4765
4766 ac_ext=c
4767 ac_cpp='$CPP $CPPFLAGS'
4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771
4772
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4774 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4775 if ${ac_cv_path_GREP+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -z "$GREP"; then
4779 ac_path_GREP_found=false
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4783 do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_prog in grep ggrep; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4789 as_fn_executable_p "$ac_path_GREP" || continue
4790 # Check for GNU ac_path_GREP and select it if it is found.
4791 # Check for GNU $ac_path_GREP
4792 case `"$ac_path_GREP" --version 2>&1` in
4793 *GNU*)
4794 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4795 *)
4796 ac_count=0
4797 $as_echo_n 0123456789 >"conftest.in"
4798 while :
4799 do
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
4803 $as_echo 'GREP' >> "conftest.nl"
4804 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806 as_fn_arith $ac_count + 1 && ac_count=$as_val
4807 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4808 # Best one so far, save it but keep looking for a better one
4809 ac_cv_path_GREP="$ac_path_GREP"
4810 ac_path_GREP_max=$ac_count
4811 fi
4812 # 10*(2^10) chars as input seems more than enough
4813 test $ac_count -gt 10 && break
4814 done
4815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816 esac
4817
4818 $ac_path_GREP_found && break 3
4819 done
4820 done
4821 done
4822 IFS=$as_save_IFS
4823 if test -z "$ac_cv_path_GREP"; then
4824 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4825 fi
4826 else
4827 ac_cv_path_GREP=$GREP
4828 fi
4829
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4832 $as_echo "$ac_cv_path_GREP" >&6; }
4833 GREP="$ac_cv_path_GREP"
4834
4835
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4837 $as_echo_n "checking for egrep... " >&6; }
4838 if ${ac_cv_path_EGREP+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4842 then ac_cv_path_EGREP="$GREP -E"
4843 else
4844 if test -z "$EGREP"; then
4845 ac_path_EGREP_found=false
4846 # Loop through the user's path and test for each of PROGNAME-LIST
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4849 do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_prog in egrep; do
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4855 as_fn_executable_p "$ac_path_EGREP" || continue
4856 # Check for GNU ac_path_EGREP and select it if it is found.
4857 # Check for GNU $ac_path_EGREP
4858 case `"$ac_path_EGREP" --version 2>&1` in
4859 *GNU*)
4860 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4861 *)
4862 ac_count=0
4863 $as_echo_n 0123456789 >"conftest.in"
4864 while :
4865 do
4866 cat "conftest.in" "conftest.in" >"conftest.tmp"
4867 mv "conftest.tmp" "conftest.in"
4868 cp "conftest.in" "conftest.nl"
4869 $as_echo 'EGREP' >> "conftest.nl"
4870 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4872 as_fn_arith $ac_count + 1 && ac_count=$as_val
4873 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4874 # Best one so far, save it but keep looking for a better one
4875 ac_cv_path_EGREP="$ac_path_EGREP"
4876 ac_path_EGREP_max=$ac_count
4877 fi
4878 # 10*(2^10) chars as input seems more than enough
4879 test $ac_count -gt 10 && break
4880 done
4881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882 esac
4883
4884 $ac_path_EGREP_found && break 3
4885 done
4886 done
4887 done
4888 IFS=$as_save_IFS
4889 if test -z "$ac_cv_path_EGREP"; then
4890 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4891 fi
4892 else
4893 ac_cv_path_EGREP=$EGREP
4894 fi
4895
4896 fi
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4899 $as_echo "$ac_cv_path_EGREP" >&6; }
4900 EGREP="$ac_cv_path_EGREP"
4901
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4904 $as_echo_n "checking for ANSI C header files... " >&6; }
4905 if ${ac_cv_header_stdc+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <stdlib.h>
4911 #include <stdarg.h>
4912 #include <string.h>
4913 #include <float.h>
4914
4915 int
4916 main ()
4917 {
4918
4919 ;
4920 return 0;
4921 }
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_header_stdc=yes
4925 else
4926 ac_cv_header_stdc=no
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929
4930 if test $ac_cv_header_stdc = yes; then
4931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #include <string.h>
4935
4936 _ACEOF
4937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938 $EGREP "memchr" >/dev/null 2>&1; then :
4939
4940 else
4941 ac_cv_header_stdc=no
4942 fi
4943 rm -f conftest*
4944
4945 fi
4946
4947 if test $ac_cv_header_stdc = yes; then
4948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <stdlib.h>
4952
4953 _ACEOF
4954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955 $EGREP "free" >/dev/null 2>&1; then :
4956
4957 else
4958 ac_cv_header_stdc=no
4959 fi
4960 rm -f conftest*
4961
4962 fi
4963
4964 if test $ac_cv_header_stdc = yes; then
4965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4966 if test "$cross_compiling" = yes; then :
4967 :
4968 else
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <ctype.h>
4972 #include <stdlib.h>
4973 #if ((' ' & 0x0FF) == 0x020)
4974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4976 #else
4977 # define ISLOWER(c) \
4978 (('a' <= (c) && (c) <= 'i') \
4979 || ('j' <= (c) && (c) <= 'r') \
4980 || ('s' <= (c) && (c) <= 'z'))
4981 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4982 #endif
4983
4984 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4985 int
4986 main ()
4987 {
4988 int i;
4989 for (i = 0; i < 256; i++)
4990 if (XOR (islower (i), ISLOWER (i))
4991 || toupper (i) != TOUPPER (i))
4992 return 2;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_c_try_run "$LINENO"; then :
4997
4998 else
4999 ac_cv_header_stdc=no
5000 fi
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5002 conftest.$ac_objext conftest.beam conftest.$ac_ext
5003 fi
5004
5005 fi
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5008 $as_echo "$ac_cv_header_stdc" >&6; }
5009 if test $ac_cv_header_stdc = yes; then
5010
5011 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5012
5013 fi
5014
5015 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5016 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5017 inttypes.h stdint.h unistd.h
5018 do :
5019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5020 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5021 "
5022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5023 cat >>confdefs.h <<_ACEOF
5024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5025 _ACEOF
5026
5027 fi
5028
5029 done
5030
5031
5032 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5033 if test "x$ac_cv_type_size_t" = xyes; then :
5034
5035 else
5036
5037 cat >>confdefs.h <<_ACEOF
5038 #define size_t unsigned int
5039 _ACEOF
5040
5041 fi
5042
5043 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5044 # for constant arguments. Useless!
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5046 $as_echo_n "checking for working alloca.h... " >&6; }
5047 if ${ac_cv_working_alloca_h+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #include <alloca.h>
5053 int
5054 main ()
5055 {
5056 char *p = (char *) alloca (2 * sizeof (int));
5057 if (p) return 0;
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_link "$LINENO"; then :
5063 ac_cv_working_alloca_h=yes
5064 else
5065 ac_cv_working_alloca_h=no
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext \
5068 conftest$ac_exeext conftest.$ac_ext
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5071 $as_echo "$ac_cv_working_alloca_h" >&6; }
5072 if test $ac_cv_working_alloca_h = yes; then
5073
5074 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5075
5076 fi
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5079 $as_echo_n "checking for alloca... " >&6; }
5080 if ${ac_cv_func_alloca_works+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #ifdef __GNUC__
5086 # define alloca __builtin_alloca
5087 #else
5088 # ifdef _MSC_VER
5089 # include <malloc.h>
5090 # define alloca _alloca
5091 # else
5092 # ifdef HAVE_ALLOCA_H
5093 # include <alloca.h>
5094 # else
5095 # ifdef _AIX
5096 #pragma alloca
5097 # else
5098 # ifndef alloca /* predefined by HP cc +Olibcalls */
5099 void *alloca (size_t);
5100 # endif
5101 # endif
5102 # endif
5103 # endif
5104 #endif
5105
5106 int
5107 main ()
5108 {
5109 char *p = (char *) alloca (1);
5110 if (p) return 0;
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 if ac_fn_c_try_link "$LINENO"; then :
5116 ac_cv_func_alloca_works=yes
5117 else
5118 ac_cv_func_alloca_works=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5124 $as_echo "$ac_cv_func_alloca_works" >&6; }
5125
5126 if test $ac_cv_func_alloca_works = yes; then
5127
5128 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5129
5130 else
5131 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5132 # that cause trouble. Some versions do not even contain alloca or
5133 # contain a buggy version. If you still want to use their alloca,
5134 # use ar to extract alloca.o from them instead of compiling alloca.c.
5135
5136 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5137
5138 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5139
5140
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5142 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5143 if ${ac_cv_os_cray+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 #if defined CRAY && ! defined CRAY2
5149 webecray
5150 #else
5151 wenotbecray
5152 #endif
5153
5154 _ACEOF
5155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156 $EGREP "webecray" >/dev/null 2>&1; then :
5157 ac_cv_os_cray=yes
5158 else
5159 ac_cv_os_cray=no
5160 fi
5161 rm -f conftest*
5162
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5165 $as_echo "$ac_cv_os_cray" >&6; }
5166 if test $ac_cv_os_cray = yes; then
5167 for ac_func in _getb67 GETB67 getb67; do
5168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5170 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5171
5172 cat >>confdefs.h <<_ACEOF
5173 #define CRAY_STACKSEG_END $ac_func
5174 _ACEOF
5175
5176 break
5177 fi
5178
5179 done
5180 fi
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5183 $as_echo_n "checking stack direction for C alloca... " >&6; }
5184 if ${ac_cv_c_stack_direction+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test "$cross_compiling" = yes; then :
5188 ac_cv_c_stack_direction=0
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 $ac_includes_default
5193 int
5194 find_stack_direction (int *addr, int depth)
5195 {
5196 int dir, dummy = 0;
5197 if (! addr)
5198 addr = &dummy;
5199 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5200 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5201 return dir + dummy;
5202 }
5203
5204 int
5205 main (int argc, char **argv)
5206 {
5207 return find_stack_direction (0, argc + !argv + 20) < 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_run "$LINENO"; then :
5211 ac_cv_c_stack_direction=1
5212 else
5213 ac_cv_c_stack_direction=-1
5214 fi
5215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5216 conftest.$ac_objext conftest.beam conftest.$ac_ext
5217 fi
5218
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5221 $as_echo "$ac_cv_c_stack_direction" >&6; }
5222 cat >>confdefs.h <<_ACEOF
5223 #define STACK_DIRECTION $ac_cv_c_stack_direction
5224 _ACEOF
5225
5226
5227 fi
5228
5229 for ac_header in mm_malloc.h
5230 do :
5231 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
5232 if test "x$ac_cv_header_mm_malloc_h" = xyes; then :
5233 cat >>confdefs.h <<_ACEOF
5234 #define HAVE_MM_MALLOC_H 1
5235 _ACEOF
5236
5237 else
5238 as_fn_error $? "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
5239 fi
5240
5241 done
5242
5243 for ac_func in __secure_getenv secure_getenv
5244 do :
5245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5247 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5248 cat >>confdefs.h <<_ACEOF
5249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5250 _ACEOF
5251
5252 fi
5253 done
5254
5255
5256 # Get target configure.
5257 . ${srcdir}/configure.tgt
5258 if test -n "$UNSUPPORTED"; then
5259 as_fn_error $? "Configuration ${target} is unsupported" "$LINENO" 5
5260 fi
5261
5262 if test "${multilib}" = "yes"; then
5263 multilib_arg="--enable-multilib"
5264 else
5265 multilib_arg=
5266 fi
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5269 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5270 # Check whether --enable-version-specific-runtime-libs was given.
5271 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5272 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5273 yes) enable_version_specific_runtime_libs=yes ;;
5274 no) enable_version_specific_runtime_libs=no ;;
5275 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
5276 esac
5277 else
5278 enable_version_specific_runtime_libs=no
5279 fi
5280
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5282 $as_echo "$enable_version_specific_runtime_libs" >&6; }
5283
5284 # Make sure liboffloadmic is enabled
5285 case "$enable_liboffloadmic" in
5286 host | target)
5287 ;;
5288 *)
5289 as_fn_error $? "Liboffloadmic is disabled" "$LINENO" 5 ;;
5290 esac
5291 if test x"$enable_liboffloadmic" = xhost; then
5292 LIBOFFLOADMIC_HOST_TRUE=
5293 LIBOFFLOADMIC_HOST_FALSE='#'
5294 else
5295 LIBOFFLOADMIC_HOST_TRUE='#'
5296 LIBOFFLOADMIC_HOST_FALSE=
5297 fi
5298
5299
5300
5301 # Check whether --with-toolexeclibdir was given.
5302 if test "${with_toolexeclibdir+set}" = set; then :
5303 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5304 /)
5305 ;;
5306 */)
5307 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5308 ;;
5309 esac
5310 else
5311 with_toolexeclibdir=no
5312 fi
5313
5314
5315
5316 # Calculate toolexeclibdir.
5317 # Also toolexecdir, though it's only used in toolexeclibdir.
5318 case ${enable_version_specific_runtime_libs} in
5319 yes)
5320 # Need the gcc compiler version to know where to install libraries
5321 # and header files if --enable-version-specific-runtime-libs option
5322 # is selected.
5323 toolexecdir='$(libdir)/gcc/$(target_alias)'
5324 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5325 ;;
5326 no)
5327 if test -n "$with_cross_host" &&
5328 test x"$with_cross_host" != x"no"; then
5329 # Install a library built with a cross compiler in tooldir, not libdir.
5330 toolexecdir='$(exec_prefix)/$(target_alias)'
5331 case ${with_toolexeclibdir} in
5332 no)
5333 toolexeclibdir='$(toolexecdir)/lib'
5334 ;;
5335 *)
5336 toolexeclibdir=${with_toolexeclibdir}
5337 ;;
5338 esac
5339 else
5340 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5341 toolexeclibdir='$(libdir)'
5342 fi
5343 multi_os_directory=`$CC -print-multi-os-directory`
5344 case $multi_os_directory in
5345 .) ;; # Avoid trailing /.
5346 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5347 esac
5348 ;;
5349 esac
5350
5351 enable_dlopen=yes
5352
5353
5354
5355 case `pwd` in
5356 *\ * | *\ *)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5358 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5359 esac
5360
5361
5362
5363 macro_version='2.2.7a'
5364 macro_revision='1.3134'
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 ltmain="$ac_aux_dir/ltmain.sh"
5379
5380 # Backslashify metacharacters that are still active within
5381 # double-quoted strings.
5382 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5383
5384 # Same as above, but do not quote variable references.
5385 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5386
5387 # Sed substitution to delay expansion of an escaped shell variable in a
5388 # double_quote_subst'ed string.
5389 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5390
5391 # Sed substitution to delay expansion of an escaped single quote.
5392 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5393
5394 # Sed substitution to avoid accidental globbing in evaled expressions
5395 no_glob_subst='s/\*/\\\*/g'
5396
5397 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5398 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5399 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5402 $as_echo_n "checking how to print strings... " >&6; }
5403 # Test print first, because it will be a builtin if present.
5404 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5405 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5406 ECHO='print -r --'
5407 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5408 ECHO='printf %s\n'
5409 else
5410 # Use this function as a fallback that always works.
5411 func_fallback_echo ()
5412 {
5413 eval 'cat <<_LTECHO_EOF
5414 $1
5415 _LTECHO_EOF'
5416 }
5417 ECHO='func_fallback_echo'
5418 fi
5419
5420 # func_echo_all arg...
5421 # Invoke $ECHO with all args, space-separated.
5422 func_echo_all ()
5423 {
5424 $ECHO ""
5425 }
5426
5427 case "$ECHO" in
5428 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5429 $as_echo "printf" >&6; } ;;
5430 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5431 $as_echo "print -r" >&6; } ;;
5432 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5433 $as_echo "cat" >&6; } ;;
5434 esac
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5450 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5451 if ${ac_cv_path_SED+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5455 for ac_i in 1 2 3 4 5 6 7; do
5456 ac_script="$ac_script$as_nl$ac_script"
5457 done
5458 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5459 { ac_script=; unset ac_script;}
5460 if test -z "$SED"; then
5461 ac_path_SED_found=false
5462 # Loop through the user's path and test for each of PROGNAME-LIST
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_prog in sed gsed; do
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5471 as_fn_executable_p "$ac_path_SED" || continue
5472 # Check for GNU ac_path_SED and select it if it is found.
5473 # Check for GNU $ac_path_SED
5474 case `"$ac_path_SED" --version 2>&1` in
5475 *GNU*)
5476 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5477 *)
5478 ac_count=0
5479 $as_echo_n 0123456789 >"conftest.in"
5480 while :
5481 do
5482 cat "conftest.in" "conftest.in" >"conftest.tmp"
5483 mv "conftest.tmp" "conftest.in"
5484 cp "conftest.in" "conftest.nl"
5485 $as_echo '' >> "conftest.nl"
5486 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5488 as_fn_arith $ac_count + 1 && ac_count=$as_val
5489 if test $ac_count -gt ${ac_path_SED_max-0}; then
5490 # Best one so far, save it but keep looking for a better one
5491 ac_cv_path_SED="$ac_path_SED"
5492 ac_path_SED_max=$ac_count
5493 fi
5494 # 10*(2^10) chars as input seems more than enough
5495 test $ac_count -gt 10 && break
5496 done
5497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5498 esac
5499
5500 $ac_path_SED_found && break 3
5501 done
5502 done
5503 done
5504 IFS=$as_save_IFS
5505 if test -z "$ac_cv_path_SED"; then
5506 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5507 fi
5508 else
5509 ac_cv_path_SED=$SED
5510 fi
5511
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5514 $as_echo "$ac_cv_path_SED" >&6; }
5515 SED="$ac_cv_path_SED"
5516 rm -f conftest.sed
5517
5518 test -z "$SED" && SED=sed
5519 Xsed="$SED -e 1s/^X//"
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5532 $as_echo_n "checking for fgrep... " >&6; }
5533 if ${ac_cv_path_FGREP+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5537 then ac_cv_path_FGREP="$GREP -F"
5538 else
5539 if test -z "$FGREP"; then
5540 ac_path_FGREP_found=false
5541 # Loop through the user's path and test for each of PROGNAME-LIST
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_prog in fgrep; do
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5550 as_fn_executable_p "$ac_path_FGREP" || continue
5551 # Check for GNU ac_path_FGREP and select it if it is found.
5552 # Check for GNU $ac_path_FGREP
5553 case `"$ac_path_FGREP" --version 2>&1` in
5554 *GNU*)
5555 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5556 *)
5557 ac_count=0
5558 $as_echo_n 0123456789 >"conftest.in"
5559 while :
5560 do
5561 cat "conftest.in" "conftest.in" >"conftest.tmp"
5562 mv "conftest.tmp" "conftest.in"
5563 cp "conftest.in" "conftest.nl"
5564 $as_echo 'FGREP' >> "conftest.nl"
5565 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5567 as_fn_arith $ac_count + 1 && ac_count=$as_val
5568 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5569 # Best one so far, save it but keep looking for a better one
5570 ac_cv_path_FGREP="$ac_path_FGREP"
5571 ac_path_FGREP_max=$ac_count
5572 fi
5573 # 10*(2^10) chars as input seems more than enough
5574 test $ac_count -gt 10 && break
5575 done
5576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5577 esac
5578
5579 $ac_path_FGREP_found && break 3
5580 done
5581 done
5582 done
5583 IFS=$as_save_IFS
5584 if test -z "$ac_cv_path_FGREP"; then
5585 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5586 fi
5587 else
5588 ac_cv_path_FGREP=$FGREP
5589 fi
5590
5591 fi
5592 fi
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5594 $as_echo "$ac_cv_path_FGREP" >&6; }
5595 FGREP="$ac_cv_path_FGREP"
5596
5597
5598 test -z "$GREP" && GREP=grep
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 # Check whether --with-gnu-ld was given.
5619 if test "${with_gnu_ld+set}" = set; then :
5620 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5621 else
5622 with_gnu_ld=no
5623 fi
5624
5625 ac_prog=ld
5626 if test "$GCC" = yes; then
5627 # Check if gcc -print-prog-name=ld gives a path.
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5629 $as_echo_n "checking for ld used by $CC... " >&6; }
5630 case $host in
5631 *-*-mingw*)
5632 # gcc leaves a trailing carriage return which upsets mingw
5633 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5634 *)
5635 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5636 esac
5637 case $ac_prog in
5638 # Accept absolute paths.
5639 [\\/]* | ?:[\\/]*)
5640 re_direlt='/[^/][^/]*/\.\./'
5641 # Canonicalize the pathname of ld
5642 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5643 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5644 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5645 done
5646 test -z "$LD" && LD="$ac_prog"
5647 ;;
5648 "")
5649 # If it fails, then pretend we aren't using GCC.
5650 ac_prog=ld
5651 ;;
5652 *)
5653 # If it is relative, then search for the first ld in PATH.
5654 with_gnu_ld=unknown
5655 ;;
5656 esac
5657 elif test "$with_gnu_ld" = yes; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5659 $as_echo_n "checking for GNU ld... " >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5662 $as_echo_n "checking for non-GNU ld... " >&6; }
5663 fi
5664 if ${lt_cv_path_LD+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -z "$LD"; then
5668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5669 for ac_dir in $PATH; do
5670 IFS="$lt_save_ifs"
5671 test -z "$ac_dir" && ac_dir=.
5672 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5673 lt_cv_path_LD="$ac_dir/$ac_prog"
5674 # Check to see if the program is GNU ld. I'd rather use --version,
5675 # but apparently some variants of GNU ld only accept -v.
5676 # Break only if it was the GNU/non-GNU ld that we prefer.
5677 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5678 *GNU* | *'with BFD'*)
5679 test "$with_gnu_ld" != no && break
5680 ;;
5681 *)
5682 test "$with_gnu_ld" != yes && break
5683 ;;
5684 esac
5685 fi
5686 done
5687 IFS="$lt_save_ifs"
5688 else
5689 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5690 fi
5691 fi
5692
5693 LD="$lt_cv_path_LD"
5694 if test -n "$LD"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5696 $as_echo "$LD" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5703 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5704 if ${lt_cv_prog_gnu_ld+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5708 case `$LD -v 2>&1 </dev/null` in
5709 *GNU* | *'with BFD'*)
5710 lt_cv_prog_gnu_ld=yes
5711 ;;
5712 *)
5713 lt_cv_prog_gnu_ld=no
5714 ;;
5715 esac
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5718 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5719 with_gnu_ld=$lt_cv_prog_gnu_ld
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5730 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5731 if ${lt_cv_path_NM+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$NM"; then
5735 # Let the user override the test.
5736 lt_cv_path_NM="$NM"
5737 else
5738 lt_nm_to_check="${ac_tool_prefix}nm"
5739 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5740 lt_nm_to_check="$lt_nm_to_check nm"
5741 fi
5742 for lt_tmp_nm in $lt_nm_to_check; do
5743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5744 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5745 IFS="$lt_save_ifs"
5746 test -z "$ac_dir" && ac_dir=.
5747 tmp_nm="$ac_dir/$lt_tmp_nm"
5748 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5749 # Check to see if the nm accepts a BSD-compat flag.
5750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5751 # nm: unknown option "B" ignored
5752 # Tru64's nm complains that /dev/null is an invalid object file
5753 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5754 */dev/null* | *'Invalid file or object type'*)
5755 lt_cv_path_NM="$tmp_nm -B"
5756 break
5757 ;;
5758 *)
5759 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5760 */dev/null*)
5761 lt_cv_path_NM="$tmp_nm -p"
5762 break
5763 ;;
5764 *)
5765 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5766 continue # so that we can try to find one that supports BSD flags
5767 ;;
5768 esac
5769 ;;
5770 esac
5771 fi
5772 done
5773 IFS="$lt_save_ifs"
5774 done
5775 : ${lt_cv_path_NM=no}
5776 fi
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5779 $as_echo "$lt_cv_path_NM" >&6; }
5780 if test "$lt_cv_path_NM" != "no"; then
5781 NM="$lt_cv_path_NM"
5782 else
5783 # Didn't find any BSD compatible name lister, look for dumpbin.
5784 if test -n "$DUMPBIN"; then :
5785 # Let the user override the test.
5786 else
5787 if test -n "$ac_tool_prefix"; then
5788 for ac_prog in dumpbin "link -dump"
5789 do
5790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_DUMPBIN+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$DUMPBIN"; then
5798 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811 done
5812 done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 DUMPBIN=$ac_cv_prog_DUMPBIN
5818 if test -n "$DUMPBIN"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5820 $as_echo "$DUMPBIN" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825
5826
5827 test -n "$DUMPBIN" && break
5828 done
5829 fi
5830 if test -z "$DUMPBIN"; then
5831 ac_ct_DUMPBIN=$DUMPBIN
5832 for ac_prog in dumpbin "link -dump"
5833 do
5834 # Extract the first word of "$ac_prog", so it can be a program name with args.
5835 set dummy $ac_prog; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if test -n "$ac_ct_DUMPBIN"; then
5842 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859 fi
5860 fi
5861 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5862 if test -n "$ac_ct_DUMPBIN"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5864 $as_echo "$ac_ct_DUMPBIN" >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5868 fi
5869
5870
5871 test -n "$ac_ct_DUMPBIN" && break
5872 done
5873
5874 if test "x$ac_ct_DUMPBIN" = x; then
5875 DUMPBIN=":"
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878 yes:)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883 DUMPBIN=$ac_ct_DUMPBIN
5884 fi
5885 fi
5886
5887 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5888 *COFF*)
5889 DUMPBIN="$DUMPBIN -symbols"
5890 ;;
5891 *)
5892 DUMPBIN=:
5893 ;;
5894 esac
5895 fi
5896
5897 if test "$DUMPBIN" != ":"; then
5898 NM="$DUMPBIN"
5899 fi
5900 fi
5901 test -z "$NM" && NM=nm
5902
5903
5904
5905
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5909 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5910 if ${lt_cv_nm_interface+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 lt_cv_nm_interface="BSD nm"
5914 echo "int some_variable = 0;" > conftest.$ac_ext
5915 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5916 (eval "$ac_compile" 2>conftest.err)
5917 cat conftest.err >&5
5918 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5919 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5920 cat conftest.err >&5
5921 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5922 cat conftest.out >&5
5923 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5924 lt_cv_nm_interface="MS dumpbin"
5925 fi
5926 rm -f conftest*
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5929 $as_echo "$lt_cv_nm_interface" >&6; }
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5932 $as_echo_n "checking whether ln -s works... " >&6; }
5933 LN_S=$as_ln_s
5934 if test "$LN_S" = "ln -s"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936 $as_echo "yes" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5939 $as_echo "no, using $LN_S" >&6; }
5940 fi
5941
5942 # find the maximum length of command line arguments
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5944 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5945 if ${lt_cv_sys_max_cmd_len+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 i=0
5949 teststring="ABCD"
5950
5951 case $build_os in
5952 msdosdjgpp*)
5953 # On DJGPP, this test can blow up pretty badly due to problems in libc
5954 # (any single argument exceeding 2000 bytes causes a buffer overrun
5955 # during glob expansion). Even if it were fixed, the result of this
5956 # check would be larger than it should be.
5957 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5958 ;;
5959
5960 gnu*)
5961 # Under GNU Hurd, this test is not required because there is
5962 # no limit to the length of command line arguments.
5963 # Libtool will interpret -1 as no limit whatsoever
5964 lt_cv_sys_max_cmd_len=-1;
5965 ;;
5966
5967 cygwin* | mingw* | cegcc*)
5968 # On Win9x/ME, this test blows up -- it succeeds, but takes
5969 # about 5 minutes as the teststring grows exponentially.
5970 # Worse, since 9x/ME are not pre-emptively multitasking,
5971 # you end up with a "frozen" computer, even though with patience
5972 # the test eventually succeeds (with a max line length of 256k).
5973 # Instead, let's just punt: use the minimum linelength reported by
5974 # all of the supported platforms: 8192 (on NT/2K/XP).
5975 lt_cv_sys_max_cmd_len=8192;
5976 ;;
5977
5978 mint*)
5979 # On MiNT this can take a long time and run out of memory.
5980 lt_cv_sys_max_cmd_len=8192;
5981 ;;
5982
5983 amigaos*)
5984 # On AmigaOS with pdksh, this test takes hours, literally.
5985 # So we just punt and use a minimum line length of 8192.
5986 lt_cv_sys_max_cmd_len=8192;
5987 ;;
5988
5989 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5990 # This has been around since 386BSD, at least. Likely further.
5991 if test -x /sbin/sysctl; then
5992 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5993 elif test -x /usr/sbin/sysctl; then
5994 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5995 else
5996 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5997 fi
5998 # And add a safety zone
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6001 ;;
6002
6003 interix*)
6004 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6005 lt_cv_sys_max_cmd_len=196608
6006 ;;
6007
6008 osf*)
6009 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6010 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6011 # nice to cause kernel panics so lets avoid the loop below.
6012 # First set a reasonable default.
6013 lt_cv_sys_max_cmd_len=16384
6014 #
6015 if test -x /sbin/sysconfig; then
6016 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6017 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6018 esac
6019 fi
6020 ;;
6021 sco3.2v5*)
6022 lt_cv_sys_max_cmd_len=102400
6023 ;;
6024 sysv5* | sco5v6* | sysv4.2uw2*)
6025 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6026 if test -n "$kargmax"; then
6027 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6028 else
6029 lt_cv_sys_max_cmd_len=32768
6030 fi
6031 ;;
6032 *)
6033 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6034 if test -n "$lt_cv_sys_max_cmd_len"; then
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6037 else
6038 # Make teststring a little bigger before we do anything with it.
6039 # a 1K string should be a reasonable start.
6040 for i in 1 2 3 4 5 6 7 8 ; do
6041 teststring=$teststring$teststring
6042 done
6043 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6044 # If test is not a shell built-in, we'll probably end up computing a
6045 # maximum length that is only half of the actual maximum length, but
6046 # we can't tell.
6047 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6048 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6049 test $i != 17 # 1/2 MB should be enough
6050 do
6051 i=`expr $i + 1`
6052 teststring=$teststring$teststring
6053 done
6054 # Only check the string length outside the loop.
6055 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6056 teststring=
6057 # Add a significant safety factor because C++ compilers can tack on
6058 # massive amounts of additional arguments before passing them to the
6059 # linker. It appears as though 1/2 is a usable value.
6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6061 fi
6062 ;;
6063 esac
6064
6065 fi
6066
6067 if test -n $lt_cv_sys_max_cmd_len ; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6069 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6072 $as_echo "none" >&6; }
6073 fi
6074 max_cmd_len=$lt_cv_sys_max_cmd_len
6075
6076
6077
6078
6079
6080
6081 : ${CP="cp -f"}
6082 : ${MV="mv -f"}
6083 : ${RM="rm -f"}
6084
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6086 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6087 # Try some XSI features
6088 xsi_shell=no
6089 ( _lt_dummy="a/b/c"
6090 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6091 = c,a/b,, \
6092 && eval 'test $(( 1 + 1 )) -eq 2 \
6093 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6094 && xsi_shell=yes
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6096 $as_echo "$xsi_shell" >&6; }
6097
6098
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6100 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6101 lt_shell_append=no
6102 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6103 >/dev/null 2>&1 \
6104 && lt_shell_append=yes
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6106 $as_echo "$lt_shell_append" >&6; }
6107
6108
6109 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6110 lt_unset=unset
6111 else
6112 lt_unset=false
6113 fi
6114
6115
6116
6117
6118
6119 # test EBCDIC or ASCII
6120 case `echo X|tr X '\101'` in
6121 A) # ASCII based system
6122 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6123 lt_SP2NL='tr \040 \012'
6124 lt_NL2SP='tr \015\012 \040\040'
6125 ;;
6126 *) # EBCDIC based system
6127 lt_SP2NL='tr \100 \n'
6128 lt_NL2SP='tr \r\n \100\100'
6129 ;;
6130 esac
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6141 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6142 if ${lt_cv_ld_reload_flag+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 lt_cv_ld_reload_flag='-r'
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6148 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6149 reload_flag=$lt_cv_ld_reload_flag
6150 case $reload_flag in
6151 "" | " "*) ;;
6152 *) reload_flag=" $reload_flag" ;;
6153 esac
6154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6155 case $host_os in
6156 darwin*)
6157 if test "$GCC" = yes; then
6158 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6159 else
6160 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6161 fi
6162 ;;
6163 esac
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173 if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_OBJDUMP+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 if test -n "$OBJDUMP"; then
6182 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 OBJDUMP=$ac_cv_prog_OBJDUMP
6202 if test -n "$OBJDUMP"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6204 $as_echo "$OBJDUMP" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6208 fi
6209
6210
6211 fi
6212 if test -z "$ac_cv_prog_OBJDUMP"; then
6213 ac_ct_OBJDUMP=$OBJDUMP
6214 # Extract the first word of "objdump", so it can be a program name with args.
6215 set dummy objdump; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 if test -n "$ac_ct_OBJDUMP"; then
6222 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6234 fi
6235 done
6236 done
6237 IFS=$as_save_IFS
6238
6239 fi
6240 fi
6241 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6242 if test -n "$ac_ct_OBJDUMP"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6244 $as_echo "$ac_ct_OBJDUMP" >&6; }
6245 else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6248 fi
6249
6250 if test "x$ac_ct_OBJDUMP" = x; then
6251 OBJDUMP="false"
6252 else
6253 case $cross_compiling:$ac_tool_warned in
6254 yes:)
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257 ac_tool_warned=yes ;;
6258 esac
6259 OBJDUMP=$ac_ct_OBJDUMP
6260 fi
6261 else
6262 OBJDUMP="$ac_cv_prog_OBJDUMP"
6263 fi
6264
6265 test -z "$OBJDUMP" && OBJDUMP=objdump
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6276 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6277 if ${lt_cv_deplibs_check_method+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 lt_cv_file_magic_cmd='$MAGIC_CMD'
6281 lt_cv_file_magic_test_file=
6282 lt_cv_deplibs_check_method='unknown'
6283 # Need to set the preceding variable on all platforms that support
6284 # interlibrary dependencies.
6285 # 'none' -- dependencies not supported.
6286 # `unknown' -- same as none, but documents that we really don't know.
6287 # 'pass_all' -- all dependencies passed with no checks.
6288 # 'test_compile' -- check by making test program.
6289 # 'file_magic [[regex]]' -- check by looking for files in library path
6290 # which responds to the $file_magic_cmd with a given extended regex.
6291 # If you have `file' or equivalent on your system and you're not sure
6292 # whether `pass_all' will *always* work, you probably want this one.
6293
6294 case $host_os in
6295 aix[4-9]*)
6296 lt_cv_deplibs_check_method=pass_all
6297 ;;
6298
6299 beos*)
6300 lt_cv_deplibs_check_method=pass_all
6301 ;;
6302
6303 bsdi[45]*)
6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6305 lt_cv_file_magic_cmd='/usr/bin/file -L'
6306 lt_cv_file_magic_test_file=/shlib/libc.so
6307 ;;
6308
6309 cygwin*)
6310 # func_win32_libid is a shell function defined in ltmain.sh
6311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6312 lt_cv_file_magic_cmd='func_win32_libid'
6313 ;;
6314
6315 mingw* | pw32*)
6316 # Base MSYS/MinGW do not provide the 'file' command needed by
6317 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6318 # unless we find 'file', for example because we are cross-compiling.
6319 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6320 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6321 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6322 lt_cv_file_magic_cmd='func_win32_libid'
6323 else
6324 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6325 lt_cv_file_magic_cmd='$OBJDUMP -f'
6326 fi
6327 ;;
6328
6329 cegcc*)
6330 # use the weaker test based on 'objdump'. See mingw*.
6331 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6332 lt_cv_file_magic_cmd='$OBJDUMP -f'
6333 ;;
6334
6335 darwin* | rhapsody*)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338
6339 freebsd* | dragonfly*)
6340 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6341 case $host_cpu in
6342 i*86 )
6343 # Not sure whether the presence of OpenBSD here was a mistake.
6344 # Let's accept both of them until this is cleared up.
6345 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6346 lt_cv_file_magic_cmd=/usr/bin/file
6347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6348 ;;
6349 esac
6350 else
6351 lt_cv_deplibs_check_method=pass_all
6352 fi
6353 ;;
6354
6355 gnu*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358
6359 haiku*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362
6363 hpux10.20* | hpux11*)
6364 lt_cv_file_magic_cmd=/usr/bin/file
6365 case $host_cpu in
6366 ia64*)
6367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6368 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6369 ;;
6370 hppa*64*)
6371 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]'
6372 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6373 ;;
6374 *)
6375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6376 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6377 ;;
6378 esac
6379 ;;
6380
6381 interix[3-9]*)
6382 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6384 ;;
6385
6386 irix5* | irix6* | nonstopux*)
6387 case $LD in
6388 *-32|*"-32 ") libmagic=32-bit;;
6389 *-n32|*"-n32 ") libmagic=N32;;
6390 *-64|*"-64 ") libmagic=64-bit;;
6391 *) libmagic=never-match;;
6392 esac
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 # This must be Linux ELF.
6397 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 netbsd*)
6402 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6404 else
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6406 fi
6407 ;;
6408
6409 newos6*)
6410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6411 lt_cv_file_magic_cmd=/usr/bin/file
6412 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6413 ;;
6414
6415 *nto* | *qnx*)
6416 lt_cv_deplibs_check_method=pass_all
6417 ;;
6418
6419 openbsd*)
6420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6422 else
6423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6424 fi
6425 ;;
6426
6427 osf3* | osf4* | osf5*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430
6431 rdos*)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434
6435 solaris*)
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6440 lt_cv_deplibs_check_method=pass_all
6441 ;;
6442
6443 sysv4 | sysv4.3*)
6444 case $host_vendor in
6445 motorola)
6446 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]'
6447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6448 ;;
6449 ncr)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452 sequent)
6453 lt_cv_file_magic_cmd='/bin/file'
6454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6455 ;;
6456 sni)
6457 lt_cv_file_magic_cmd='/bin/file'
6458 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6459 lt_cv_file_magic_test_file=/lib/libc.so
6460 ;;
6461 siemens)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464 pc)
6465 lt_cv_deplibs_check_method=pass_all
6466 ;;
6467 esac
6468 ;;
6469
6470 tpf*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473 esac
6474
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6477 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6478 file_magic_cmd=$lt_cv_file_magic_cmd
6479 deplibs_check_method=$lt_cv_deplibs_check_method
6480 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}ar; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_AR+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test -n "$AR"; then
6502 ac_cv_prog_AR="$AR" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_AR="${ac_tool_prefix}ar"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6514 fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 AR=$ac_cv_prog_AR
6522 if test -n "$AR"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6524 $as_echo "$AR" >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530
6531 fi
6532 if test -z "$ac_cv_prog_AR"; then
6533 ac_ct_AR=$AR
6534 # Extract the first word of "ar", so it can be a program name with args.
6535 set dummy ar; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$ac_ct_AR"; then
6542 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_ac_ct_AR="ar"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6562 if test -n "$ac_ct_AR"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6564 $as_echo "$ac_ct_AR" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570 if test "x$ac_ct_AR" = x; then
6571 AR="false"
6572 else
6573 case $cross_compiling:$ac_tool_warned in
6574 yes:)
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6578 esac
6579 AR=$ac_ct_AR
6580 fi
6581 else
6582 AR="$ac_cv_prog_AR"
6583 fi
6584
6585 test -z "$AR" && AR=ar
6586 test -z "$AR_FLAGS" && AR_FLAGS=cru
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598 if test -n "$ac_tool_prefix"; then
6599 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6600 set dummy ${ac_tool_prefix}strip; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_STRIP+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 if test -n "$STRIP"; then
6607 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 STRIP=$ac_cv_prog_STRIP
6627 if test -n "$STRIP"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6629 $as_echo "$STRIP" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635
6636 fi
6637 if test -z "$ac_cv_prog_STRIP"; then
6638 ac_ct_STRIP=$STRIP
6639 # Extract the first word of "strip", so it can be a program name with args.
6640 set dummy strip; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 if test -n "$ac_ct_STRIP"; then
6647 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_ac_ct_STRIP="strip"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6667 if test -n "$ac_ct_STRIP"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6669 $as_echo "$ac_ct_STRIP" >&6; }
6670 else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675 if test "x$ac_ct_STRIP" = x; then
6676 STRIP=":"
6677 else
6678 case $cross_compiling:$ac_tool_warned in
6679 yes:)
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682 ac_tool_warned=yes ;;
6683 esac
6684 STRIP=$ac_ct_STRIP
6685 fi
6686 else
6687 STRIP="$ac_cv_prog_STRIP"
6688 fi
6689
6690 test -z "$STRIP" && STRIP=:
6691
6692
6693
6694
6695
6696
6697 if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6699 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_RANLIB+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 if test -n "$RANLIB"; then
6706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 RANLIB=$ac_cv_prog_RANLIB
6726 if test -n "$RANLIB"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6728 $as_echo "$RANLIB" >&6; }
6729 else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733
6734
6735 fi
6736 if test -z "$ac_cv_prog_RANLIB"; then
6737 ac_ct_RANLIB=$RANLIB
6738 # Extract the first word of "ranlib", so it can be a program name with args.
6739 set dummy ranlib; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test -n "$ac_ct_RANLIB"; then
6746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755 ac_cv_prog_ac_ct_RANLIB="ranlib"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6766 if test -n "$ac_ct_RANLIB"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6768 $as_echo "$ac_ct_RANLIB" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774 if test "x$ac_ct_RANLIB" = x; then
6775 RANLIB=":"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778 yes:)
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783 RANLIB=$ac_ct_RANLIB
6784 fi
6785 else
6786 RANLIB="$ac_cv_prog_RANLIB"
6787 fi
6788
6789 test -z "$RANLIB" && RANLIB=:
6790
6791
6792
6793
6794
6795
6796 # Determine commands to create old-style static archives.
6797 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6798 old_postinstall_cmds='chmod 644 $oldlib'
6799 old_postuninstall_cmds=
6800
6801 if test -n "$RANLIB"; then
6802 case $host_os in
6803 openbsd*)
6804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6805 ;;
6806 *)
6807 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6808 ;;
6809 esac
6810 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6811 fi
6812
6813 case $host_os in
6814 darwin*)
6815 lock_old_archive_extraction=yes ;;
6816 *)
6817 lock_old_archive_extraction=no ;;
6818 esac
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 # If no C compiler was specified, use CC.
6859 LTCC=${LTCC-"$CC"}
6860
6861 # If no C compiler flags were specified, use CFLAGS.
6862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6863
6864 # Allow CC to be a program name with arguments.
6865 compiler=$CC
6866
6867
6868 # Check for command to grab the raw symbol name followed by C symbol from nm.
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6870 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6871 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874
6875 # These are sane defaults that work on at least a few old systems.
6876 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6877
6878 # Character class describing NM global symbol codes.
6879 symcode='[BCDEGRST]'
6880
6881 # Regexp to match symbols that can be accessed directly from C.
6882 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6883
6884 # Define system-specific variables.
6885 case $host_os in
6886 aix*)
6887 symcode='[BCDT]'
6888 ;;
6889 cygwin* | mingw* | pw32* | cegcc*)
6890 symcode='[ABCDGISTW]'
6891 ;;
6892 hpux*)
6893 if test "$host_cpu" = ia64; then
6894 symcode='[ABCDEGRST]'
6895 fi
6896 ;;
6897 irix* | nonstopux*)
6898 symcode='[BCDEGRST]'
6899 ;;
6900 osf*)
6901 symcode='[BCDEGQRST]'
6902 ;;
6903 solaris*)
6904 symcode='[BDRT]'
6905 ;;
6906 sco3.2v5*)
6907 symcode='[DT]'
6908 ;;
6909 sysv4.2uw2*)
6910 symcode='[DT]'
6911 ;;
6912 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6913 symcode='[ABDT]'
6914 ;;
6915 sysv4)
6916 symcode='[DFNSTU]'
6917 ;;
6918 esac
6919
6920 # If we're using GNU nm, then use its standard symbol codes.
6921 case `$NM -V 2>&1` in
6922 *GNU* | *'with BFD'*)
6923 symcode='[ABCDGIRSTW]' ;;
6924 esac
6925
6926 # Transform an extracted symbol line into a proper C declaration.
6927 # Some systems (esp. on ia64) link data and code symbols differently,
6928 # so use this general approach.
6929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6930
6931 # Transform an extracted symbol line into symbol name and symbol address
6932 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6933 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'"
6934
6935 # Handle CRLF in mingw tool chain
6936 opt_cr=
6937 case $build_os in
6938 mingw*)
6939 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6940 ;;
6941 esac
6942
6943 # Try without a prefix underscore, then with it.
6944 for ac_symprfx in "" "_"; do
6945
6946 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6947 symxfrm="\\1 $ac_symprfx\\2 \\2"
6948
6949 # Write the raw and C identifiers.
6950 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6951 # Fake it for dumpbin and say T for any non-static function
6952 # and D for any global variable.
6953 # Also find C++ and __fastcall symbols from MSVC++,
6954 # which start with @ or ?.
6955 lt_cv_sys_global_symbol_pipe="$AWK '"\
6956 " {last_section=section; section=\$ 3};"\
6957 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6958 " \$ 0!~/External *\|/{next};"\
6959 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6960 " {if(hide[section]) next};"\
6961 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6962 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6963 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6964 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6965 " ' prfx=^$ac_symprfx"
6966 else
6967 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6968 fi
6969
6970 # Check to see that the pipe works correctly.
6971 pipe_works=no
6972
6973 rm -f conftest*
6974 cat > conftest.$ac_ext <<_LT_EOF
6975 #ifdef __cplusplus
6976 extern "C" {
6977 #endif
6978 char nm_test_var;
6979 void nm_test_func(void);
6980 void nm_test_func(void){}
6981 #ifdef __cplusplus
6982 }
6983 #endif
6984 int main(){nm_test_var='a';nm_test_func();return(0);}
6985 _LT_EOF
6986
6987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6988 (eval $ac_compile) 2>&5
6989 ac_status=$?
6990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991 test $ac_status = 0; }; then
6992 # Now try to grab the symbols.
6993 nlist=conftest.nm
6994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6995 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6996 ac_status=$?
6997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998 test $ac_status = 0; } && test -s "$nlist"; then
6999 # Try sorting and uniquifying the output.
7000 if sort "$nlist" | uniq > "$nlist"T; then
7001 mv -f "$nlist"T "$nlist"
7002 else
7003 rm -f "$nlist"T
7004 fi
7005
7006 # Make sure that we snagged all the symbols we need.
7007 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7008 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7009 cat <<_LT_EOF > conftest.$ac_ext
7010 #ifdef __cplusplus
7011 extern "C" {
7012 #endif
7013
7014 _LT_EOF
7015 # Now generate the symbol file.
7016 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7017
7018 cat <<_LT_EOF >> conftest.$ac_ext
7019
7020 /* The mapping between symbol names and symbols. */
7021 const struct {
7022 const char *name;
7023 void *address;
7024 }
7025 lt__PROGRAM__LTX_preloaded_symbols[] =
7026 {
7027 { "@PROGRAM@", (void *) 0 },
7028 _LT_EOF
7029 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7030 cat <<\_LT_EOF >> conftest.$ac_ext
7031 {0, (void *) 0}
7032 };
7033
7034 /* This works around a problem in FreeBSD linker */
7035 #ifdef FREEBSD_WORKAROUND
7036 static const void *lt_preloaded_setup() {
7037 return lt__PROGRAM__LTX_preloaded_symbols;
7038 }
7039 #endif
7040
7041 #ifdef __cplusplus
7042 }
7043 #endif
7044 _LT_EOF
7045 # Now try linking the two files.
7046 mv conftest.$ac_objext conftstm.$ac_objext
7047 lt_save_LIBS="$LIBS"
7048 lt_save_CFLAGS="$CFLAGS"
7049 LIBS="conftstm.$ac_objext"
7050 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7052 (eval $ac_link) 2>&5
7053 ac_status=$?
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7056 pipe_works=yes
7057 fi
7058 LIBS="$lt_save_LIBS"
7059 CFLAGS="$lt_save_CFLAGS"
7060 else
7061 echo "cannot find nm_test_func in $nlist" >&5
7062 fi
7063 else
7064 echo "cannot find nm_test_var in $nlist" >&5
7065 fi
7066 else
7067 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7068 fi
7069 else
7070 echo "$progname: failed program was:" >&5
7071 cat conftest.$ac_ext >&5
7072 fi
7073 rm -rf conftest* conftst*
7074
7075 # Do not use the global_symbol_pipe unless it works.
7076 if test "$pipe_works" = yes; then
7077 break
7078 else
7079 lt_cv_sys_global_symbol_pipe=
7080 fi
7081 done
7082
7083 fi
7084
7085 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7086 lt_cv_sys_global_symbol_to_cdecl=
7087 fi
7088 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7090 $as_echo "failed" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7093 $as_echo "ok" >&6; }
7094 fi
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 # Check whether --enable-libtool-lock was given.
7118 if test "${enable_libtool_lock+set}" = set; then :
7119 enableval=$enable_libtool_lock;
7120 fi
7121
7122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7123
7124 # Some flags need to be propagated to the compiler or linker for good
7125 # libtool support.
7126 case $host in
7127 ia64-*-hpux*)
7128 # Find out which ABI we are using.
7129 echo 'int i;' > conftest.$ac_ext
7130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7131 (eval $ac_compile) 2>&5
7132 ac_status=$?
7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134 test $ac_status = 0; }; then
7135 case `/usr/bin/file conftest.$ac_objext` in
7136 *ELF-32*)
7137 HPUX_IA64_MODE="32"
7138 ;;
7139 *ELF-64*)
7140 HPUX_IA64_MODE="64"
7141 ;;
7142 esac
7143 fi
7144 rm -rf conftest*
7145 ;;
7146 *-*-irix6*)
7147 # Find out which ABI we are using.
7148 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7151 ac_status=$?
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 if test "$lt_cv_prog_gnu_ld" = yes; then
7155 case `/usr/bin/file conftest.$ac_objext` in
7156 *32-bit*)
7157 LD="${LD-ld} -melf32bsmip"
7158 ;;
7159 *N32*)
7160 LD="${LD-ld} -melf32bmipn32"
7161 ;;
7162 *64-bit*)
7163 LD="${LD-ld} -melf64bmip"
7164 ;;
7165 esac
7166 else
7167 case `/usr/bin/file conftest.$ac_objext` in
7168 *32-bit*)
7169 LD="${LD-ld} -32"
7170 ;;
7171 *N32*)
7172 LD="${LD-ld} -n32"
7173 ;;
7174 *64-bit*)
7175 LD="${LD-ld} -64"
7176 ;;
7177 esac
7178 fi
7179 fi
7180 rm -rf conftest*
7181 ;;
7182
7183 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7184 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7185 # Find out which ABI we are using.
7186 echo 'int i;' > conftest.$ac_ext
7187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7188 (eval $ac_compile) 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191 test $ac_status = 0; }; then
7192 case `/usr/bin/file conftest.o` in
7193 *32-bit*)
7194 case $host in
7195 x86_64-*kfreebsd*-gnu)
7196 LD="${LD-ld} -m elf_i386_fbsd"
7197 ;;
7198 x86_64-*linux*)
7199 case `/usr/bin/file conftest.o` in
7200 *x86-64*)
7201 LD="${LD-ld} -m elf32_x86_64"
7202 ;;
7203 *)
7204 LD="${LD-ld} -m elf_i386"
7205 ;;
7206 esac
7207 ;;
7208 powerpc64le-*linux*)
7209 LD="${LD-ld} -m elf32lppclinux"
7210 ;;
7211 powerpc64-*linux*)
7212 LD="${LD-ld} -m elf32ppclinux"
7213 ;;
7214 s390x-*linux*)
7215 LD="${LD-ld} -m elf_s390"
7216 ;;
7217 sparc64-*linux*)
7218 LD="${LD-ld} -m elf32_sparc"
7219 ;;
7220 esac
7221 ;;
7222 *64-bit*)
7223 case $host in
7224 x86_64-*kfreebsd*-gnu)
7225 LD="${LD-ld} -m elf_x86_64_fbsd"
7226 ;;
7227 x86_64-*linux*)
7228 LD="${LD-ld} -m elf_x86_64"
7229 ;;
7230 powerpcle-*linux*)
7231 LD="${LD-ld} -m elf64lppc"
7232 ;;
7233 powerpc-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7235 ;;
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7238 ;;
7239 sparc*-*linux*)
7240 LD="${LD-ld} -m elf64_sparc"
7241 ;;
7242 esac
7243 ;;
7244 esac
7245 fi
7246 rm -rf conftest*
7247 ;;
7248
7249 *-*-sco3.2v5*)
7250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251 SAVE_CFLAGS="$CFLAGS"
7252 CFLAGS="$CFLAGS -belf"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7254 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7255 if ${lt_cv_cc_needs_belf+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 ac_ext=c
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266
7267 int
7268 main ()
7269 {
7270
7271 ;
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"; then :
7276 lt_cv_cc_needs_belf=yes
7277 else
7278 lt_cv_cc_needs_belf=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 ac_ext=c
7283 ac_cpp='$CPP $CPPFLAGS'
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7287
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7290 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7291 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7292 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7293 CFLAGS="$SAVE_CFLAGS"
7294 fi
7295 ;;
7296 sparc*-*solaris*)
7297 # Find out which ABI we are using.
7298 echo 'int i;' > conftest.$ac_ext
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7300 (eval $ac_compile) 2>&5
7301 ac_status=$?
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }; then
7304 case `/usr/bin/file conftest.o` in
7305 *64-bit*)
7306 case $lt_cv_prog_gnu_ld in
7307 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7308 *)
7309 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7310 LD="${LD-ld} -64"
7311 fi
7312 ;;
7313 esac
7314 ;;
7315 esac
7316 fi
7317 rm -rf conftest*
7318 ;;
7319 esac
7320
7321 need_locks="$enable_libtool_lock"
7322
7323
7324 case $host_os in
7325 rhapsody* | darwin*)
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 if test -n "$DSYMUTIL"; then
7335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7355 if test -n "$DSYMUTIL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7357 $as_echo "$DSYMUTIL" >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363
7364 fi
7365 if test -z "$ac_cv_prog_DSYMUTIL"; then
7366 ac_ct_DSYMUTIL=$DSYMUTIL
7367 # Extract the first word of "dsymutil", so it can be a program name with args.
7368 set dummy dsymutil; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 if test -n "$ac_ct_DSYMUTIL"; then
7375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388 done
7389 done
7390 IFS=$as_save_IFS
7391
7392 fi
7393 fi
7394 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7395 if test -n "$ac_ct_DSYMUTIL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7397 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7401 fi
7402
7403 if test "x$ac_ct_DSYMUTIL" = x; then
7404 DSYMUTIL=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407 yes:)
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned=yes ;;
7411 esac
7412 DSYMUTIL=$ac_ct_DSYMUTIL
7413 fi
7414 else
7415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7416 fi
7417
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_NMEDIT+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$NMEDIT"; then
7427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 NMEDIT=$ac_cv_prog_NMEDIT
7447 if test -n "$NMEDIT"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7449 $as_echo "$NMEDIT" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455
7456 fi
7457 if test -z "$ac_cv_prog_NMEDIT"; then
7458 ac_ct_NMEDIT=$NMEDIT
7459 # Extract the first word of "nmedit", so it can be a program name with args.
7460 set dummy nmedit; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$ac_ct_NMEDIT"; then
7467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7487 if test -n "$ac_ct_NMEDIT"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7489 $as_echo "$ac_ct_NMEDIT" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495 if test "x$ac_ct_NMEDIT" = x; then
7496 NMEDIT=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504 NMEDIT=$ac_ct_NMEDIT
7505 fi
7506 else
7507 NMEDIT="$ac_cv_prog_NMEDIT"
7508 fi
7509
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_LIPO+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if test -n "$LIPO"; then
7519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 LIPO=$ac_cv_prog_LIPO
7539 if test -n "$LIPO"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7541 $as_echo "$LIPO" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 fi
7546
7547
7548 fi
7549 if test -z "$ac_cv_prog_LIPO"; then
7550 ac_ct_LIPO=$LIPO
7551 # Extract the first word of "lipo", so it can be a program name with args.
7552 set dummy lipo; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 if test -n "$ac_ct_LIPO"; then
7559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_ac_ct_LIPO="lipo"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572 done
7573 done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7579 if test -n "$ac_ct_LIPO"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7581 $as_echo "$ac_ct_LIPO" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7585 fi
7586
7587 if test "x$ac_ct_LIPO" = x; then
7588 LIPO=":"
7589 else
7590 case $cross_compiling:$ac_tool_warned in
7591 yes:)
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594 ac_tool_warned=yes ;;
7595 esac
7596 LIPO=$ac_ct_LIPO
7597 fi
7598 else
7599 LIPO="$ac_cv_prog_LIPO"
7600 fi
7601
7602 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}otool; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_OTOOL+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$OTOOL"; then
7611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624 done
7625 done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 OTOOL=$ac_cv_prog_OTOOL
7631 if test -n "$OTOOL"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7633 $as_echo "$OTOOL" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639
7640 fi
7641 if test -z "$ac_cv_prog_OTOOL"; then
7642 ac_ct_OTOOL=$OTOOL
7643 # Extract the first word of "otool", so it can be a program name with args.
7644 set dummy otool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 if test -n "$ac_ct_OTOOL"; then
7651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_ac_ct_OTOOL="otool"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7663 fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668 fi
7669 fi
7670 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7671 if test -n "$ac_ct_OTOOL"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7673 $as_echo "$ac_ct_OTOOL" >&6; }
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679 if test "x$ac_ct_OTOOL" = x; then
7680 OTOOL=":"
7681 else
7682 case $cross_compiling:$ac_tool_warned in
7683 yes:)
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686 ac_tool_warned=yes ;;
7687 esac
7688 OTOOL=$ac_ct_OTOOL
7689 fi
7690 else
7691 OTOOL="$ac_cv_prog_OTOOL"
7692 fi
7693
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_OTOOL64+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$OTOOL64"; then
7703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7715 fi
7716 done
7717 done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 OTOOL64=$ac_cv_prog_OTOOL64
7723 if test -n "$OTOOL64"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7725 $as_echo "$OTOOL64" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731
7732 fi
7733 if test -z "$ac_cv_prog_OTOOL64"; then
7734 ac_ct_OTOOL64=$OTOOL64
7735 # Extract the first word of "otool64", so it can be a program name with args.
7736 set dummy otool64; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$ac_ct_OTOOL64"; then
7743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_ac_ct_OTOOL64="otool64"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7755 fi
7756 done
7757 done
7758 IFS=$as_save_IFS
7759
7760 fi
7761 fi
7762 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7763 if test -n "$ac_ct_OTOOL64"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7765 $as_echo "$ac_ct_OTOOL64" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770
7771 if test "x$ac_ct_OTOOL64" = x; then
7772 OTOOL64=":"
7773 else
7774 case $cross_compiling:$ac_tool_warned in
7775 yes:)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7779 esac
7780 OTOOL64=$ac_ct_OTOOL64
7781 fi
7782 else
7783 OTOOL64="$ac_cv_prog_OTOOL64"
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7813 $as_echo_n "checking for -single_module linker flag... " >&6; }
7814 if ${lt_cv_apple_cc_single_mod+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 lt_cv_apple_cc_single_mod=no
7818 if test -z "${LT_MULTI_MODULE}"; then
7819 # By default we will add the -single_module flag. You can override
7820 # by either setting the environment variable LT_MULTI_MODULE
7821 # non-empty at configure time, or by adding -multi_module to the
7822 # link flags.
7823 rm -rf libconftest.dylib*
7824 echo "int foo(void){return 1;}" > conftest.c
7825 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7826 -dynamiclib -Wl,-single_module conftest.c" >&5
7827 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7828 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7829 _lt_result=$?
7830 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7831 lt_cv_apple_cc_single_mod=yes
7832 else
7833 cat conftest.err >&5
7834 fi
7835 rm -rf libconftest.dylib*
7836 rm -f conftest.*
7837 fi
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7842 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7843 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 lt_cv_ld_exported_symbols_list=no
7847 save_LDFLAGS=$LDFLAGS
7848 echo "_main" > conftest.sym
7849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852
7853 int
7854 main ()
7855 {
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 lt_cv_ld_exported_symbols_list=yes
7863 else
7864 lt_cv_ld_exported_symbols_list=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LDFLAGS="$save_LDFLAGS"
7869
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7872 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7874 $as_echo_n "checking for -force_load linker flag... " >&6; }
7875 if ${lt_cv_ld_force_load+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 lt_cv_ld_force_load=no
7879 cat > conftest.c << _LT_EOF
7880 int forced_loaded() { return 2;}
7881 _LT_EOF
7882 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7883 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7884 echo "$AR cru libconftest.a conftest.o" >&5
7885 $AR cru libconftest.a conftest.o 2>&5
7886 cat > conftest.c << _LT_EOF
7887 int main() { return 0;}
7888 _LT_EOF
7889 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7890 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7891 _lt_result=$?
7892 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7893 lt_cv_ld_force_load=yes
7894 else
7895 cat conftest.err >&5
7896 fi
7897 rm -f conftest.err libconftest.a conftest conftest.c
7898 rm -rf conftest.dSYM
7899
7900 fi
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7902 $as_echo "$lt_cv_ld_force_load" >&6; }
7903 case $host_os in
7904 rhapsody* | darwin1.[012])
7905 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7906 darwin1.*)
7907 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7908 darwin*) # darwin 5.x on
7909 # if running on 10.5 or later, the deployment target defaults
7910 # to the OS version, if on x86, and 10.4, the deployment
7911 # target defaults to 10.4. Don't you love it?
7912 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7913 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7915 10.[012][,.]*)
7916 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917 10.*)
7918 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7919 esac
7920 ;;
7921 esac
7922 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7923 _lt_dar_single_mod='$single_module'
7924 fi
7925 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7926 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7927 else
7928 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7929 fi
7930 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7931 _lt_dsymutil='~$DSYMUTIL $lib || :'
7932 else
7933 _lt_dsymutil=
7934 fi
7935 ;;
7936 esac
7937
7938 for ac_header in dlfcn.h
7939 do :
7940 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7941 "
7942 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7943 cat >>confdefs.h <<_ACEOF
7944 #define HAVE_DLFCN_H 1
7945 _ACEOF
7946
7947 fi
7948
7949 done
7950
7951
7952
7953
7954
7955
7956 # Set options
7957
7958
7959
7960
7961 enable_win32_dll=no
7962
7963
7964 # Check whether --enable-shared was given.
7965 if test "${enable_shared+set}" = set; then :
7966 enableval=$enable_shared; p=${PACKAGE-default}
7967 case $enableval in
7968 yes) enable_shared=yes ;;
7969 no) enable_shared=no ;;
7970 *)
7971 enable_shared=no
7972 # Look at the argument we got. We use all the common list separators.
7973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7974 for pkg in $enableval; do
7975 IFS="$lt_save_ifs"
7976 if test "X$pkg" = "X$p"; then
7977 enable_shared=yes
7978 fi
7979 done
7980 IFS="$lt_save_ifs"
7981 ;;
7982 esac
7983 else
7984 enable_shared=yes
7985 fi
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995 # Check whether --enable-static was given.
7996 if test "${enable_static+set}" = set; then :
7997 enableval=$enable_static; p=${PACKAGE-default}
7998 case $enableval in
7999 yes) enable_static=yes ;;
8000 no) enable_static=no ;;
8001 *)
8002 enable_static=no
8003 # Look at the argument we got. We use all the common list separators.
8004 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8005 for pkg in $enableval; do
8006 IFS="$lt_save_ifs"
8007 if test "X$pkg" = "X$p"; then
8008 enable_static=yes
8009 fi
8010 done
8011 IFS="$lt_save_ifs"
8012 ;;
8013 esac
8014 else
8015 enable_static=yes
8016 fi
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027 # Check whether --with-pic was given.
8028 if test "${with_pic+set}" = set; then :
8029 withval=$with_pic; pic_mode="$withval"
8030 else
8031 pic_mode=default
8032 fi
8033
8034
8035 test -z "$pic_mode" && pic_mode=default
8036
8037
8038
8039
8040
8041
8042
8043 # Check whether --enable-fast-install was given.
8044 if test "${enable_fast_install+set}" = set; then :
8045 enableval=$enable_fast_install; p=${PACKAGE-default}
8046 case $enableval in
8047 yes) enable_fast_install=yes ;;
8048 no) enable_fast_install=no ;;
8049 *)
8050 enable_fast_install=no
8051 # Look at the argument we got. We use all the common list separators.
8052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8053 for pkg in $enableval; do
8054 IFS="$lt_save_ifs"
8055 if test "X$pkg" = "X$p"; then
8056 enable_fast_install=yes
8057 fi
8058 done
8059 IFS="$lt_save_ifs"
8060 ;;
8061 esac
8062 else
8063 enable_fast_install=yes
8064 fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076 # This can be used to rebuild libtool when needed
8077 LIBTOOL_DEPS="$ltmain"
8078
8079 # Always use our own libtool.
8080 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107 test -z "$LN_S" && LN_S="ln -s"
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122 if test -n "${ZSH_VERSION+set}" ; then
8123 setopt NO_GLOB_SUBST
8124 fi
8125
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8127 $as_echo_n "checking for objdir... " >&6; }
8128 if ${lt_cv_objdir+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 rm -f .libs 2>/dev/null
8132 mkdir .libs 2>/dev/null
8133 if test -d .libs; then
8134 lt_cv_objdir=.libs
8135 else
8136 # MS-DOS does not allow filenames that begin with a dot.
8137 lt_cv_objdir=_libs
8138 fi
8139 rmdir .libs 2>/dev/null
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8142 $as_echo "$lt_cv_objdir" >&6; }
8143 objdir=$lt_cv_objdir
8144
8145
8146
8147
8148
8149 cat >>confdefs.h <<_ACEOF
8150 #define LT_OBJDIR "$lt_cv_objdir/"
8151 _ACEOF
8152
8153
8154
8155
8156 case $host_os in
8157 aix3*)
8158 # AIX sometimes has problems with the GCC collect2 program. For some
8159 # reason, if we set the COLLECT_NAMES environment variable, the problems
8160 # vanish in a puff of smoke.
8161 if test "X${COLLECT_NAMES+set}" != Xset; then
8162 COLLECT_NAMES=
8163 export COLLECT_NAMES
8164 fi
8165 ;;
8166 esac
8167
8168 # Global variables:
8169 ofile=libtool
8170 can_build_shared=yes
8171
8172 # All known linkers require a `.a' archive for static linking (except MSVC,
8173 # which needs '.lib').
8174 libext=a
8175
8176 with_gnu_ld="$lt_cv_prog_gnu_ld"
8177
8178 old_CC="$CC"
8179 old_CFLAGS="$CFLAGS"
8180
8181 # Set sane defaults for various variables
8182 test -z "$CC" && CC=cc
8183 test -z "$LTCC" && LTCC=$CC
8184 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8185 test -z "$LD" && LD=ld
8186 test -z "$ac_objext" && ac_objext=o
8187
8188 for cc_temp in $compiler""; do
8189 case $cc_temp in
8190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8192 \-*) ;;
8193 *) break;;
8194 esac
8195 done
8196 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8197
8198
8199 # Only perform the check for file, if the check method requires it
8200 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8201 case $deplibs_check_method in
8202 file_magic*)
8203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8205 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8206 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 case $MAGIC_CMD in
8210 [\\/*] | ?:[\\/]*)
8211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8212 ;;
8213 *)
8214 lt_save_MAGIC_CMD="$MAGIC_CMD"
8215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8217 for ac_dir in $ac_dummy; do
8218 IFS="$lt_save_ifs"
8219 test -z "$ac_dir" && ac_dir=.
8220 if test -f $ac_dir/${ac_tool_prefix}file; then
8221 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8222 if test -n "$file_magic_test_file"; then
8223 case $deplibs_check_method in
8224 "file_magic "*)
8225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8228 $EGREP "$file_magic_regex" > /dev/null; then
8229 :
8230 else
8231 cat <<_LT_EOF 1>&2
8232
8233 *** Warning: the command libtool uses to detect shared libraries,
8234 *** $file_magic_cmd, produces output that libtool cannot recognize.
8235 *** The result is that libtool may fail to recognize shared libraries
8236 *** as such. This will affect the creation of libtool libraries that
8237 *** depend on shared libraries, but programs linked with such libtool
8238 *** libraries will work regardless of this problem. Nevertheless, you
8239 *** may want to report the problem to your system manager and/or to
8240 *** bug-libtool@gnu.org
8241
8242 _LT_EOF
8243 fi ;;
8244 esac
8245 fi
8246 break
8247 fi
8248 done
8249 IFS="$lt_save_ifs"
8250 MAGIC_CMD="$lt_save_MAGIC_CMD"
8251 ;;
8252 esac
8253 fi
8254
8255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8256 if test -n "$MAGIC_CMD"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8258 $as_echo "$MAGIC_CMD" >&6; }
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264
8265
8266
8267
8268 if test -z "$lt_cv_path_MAGIC_CMD"; then
8269 if test -n "$ac_tool_prefix"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8271 $as_echo_n "checking for file... " >&6; }
8272 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 case $MAGIC_CMD in
8276 [\\/*] | ?:[\\/]*)
8277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8278 ;;
8279 *)
8280 lt_save_MAGIC_CMD="$MAGIC_CMD"
8281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8283 for ac_dir in $ac_dummy; do
8284 IFS="$lt_save_ifs"
8285 test -z "$ac_dir" && ac_dir=.
8286 if test -f $ac_dir/file; then
8287 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8288 if test -n "$file_magic_test_file"; then
8289 case $deplibs_check_method in
8290 "file_magic "*)
8291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8294 $EGREP "$file_magic_regex" > /dev/null; then
8295 :
8296 else
8297 cat <<_LT_EOF 1>&2
8298
8299 *** Warning: the command libtool uses to detect shared libraries,
8300 *** $file_magic_cmd, produces output that libtool cannot recognize.
8301 *** The result is that libtool may fail to recognize shared libraries
8302 *** as such. This will affect the creation of libtool libraries that
8303 *** depend on shared libraries, but programs linked with such libtool
8304 *** libraries will work regardless of this problem. Nevertheless, you
8305 *** may want to report the problem to your system manager and/or to
8306 *** bug-libtool@gnu.org
8307
8308 _LT_EOF
8309 fi ;;
8310 esac
8311 fi
8312 break
8313 fi
8314 done
8315 IFS="$lt_save_ifs"
8316 MAGIC_CMD="$lt_save_MAGIC_CMD"
8317 ;;
8318 esac
8319 fi
8320
8321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8322 if test -n "$MAGIC_CMD"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8324 $as_echo "$MAGIC_CMD" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330
8331 else
8332 MAGIC_CMD=:
8333 fi
8334 fi
8335
8336 fi
8337 ;;
8338 esac
8339
8340 # Use C for the default configuration in the libtool script
8341
8342 lt_save_CC="$CC"
8343 ac_ext=c
8344 ac_cpp='$CPP $CPPFLAGS'
8345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348
8349
8350 # Source file extension for C test sources.
8351 ac_ext=c
8352
8353 # Object file extension for compiled C test sources.
8354 objext=o
8355 objext=$objext
8356
8357 # Code to be used in simple compile tests
8358 lt_simple_compile_test_code="int some_variable = 0;"
8359
8360 # Code to be used in simple link tests
8361 lt_simple_link_test_code='int main(){return(0);}'
8362
8363
8364
8365
8366
8367
8368
8369 # If no C compiler was specified, use CC.
8370 LTCC=${LTCC-"$CC"}
8371
8372 # If no C compiler flags were specified, use CFLAGS.
8373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8374
8375 # Allow CC to be a program name with arguments.
8376 compiler=$CC
8377
8378 # Save the default compiler, since it gets overwritten when the other
8379 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8380 compiler_DEFAULT=$CC
8381
8382 # save warnings/boilerplate of simple test code
8383 ac_outfile=conftest.$ac_objext
8384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8386 _lt_compiler_boilerplate=`cat conftest.err`
8387 $RM conftest*
8388
8389 ac_outfile=conftest.$ac_objext
8390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8392 _lt_linker_boilerplate=`cat conftest.err`
8393 $RM -r conftest*
8394
8395
8396 ## CAVEAT EMPTOR:
8397 ## There is no encapsulation within the following macros, do not change
8398 ## the running order or otherwise move them around unless you know exactly
8399 ## what you are doing...
8400 if test -n "$compiler"; then
8401
8402 lt_prog_compiler_no_builtin_flag=
8403
8404 if test "$GCC" = yes; then
8405 case $cc_basename in
8406 nvcc*)
8407 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8408 *)
8409 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8410 esac
8411
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8413 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8414 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 lt_cv_prog_compiler_rtti_exceptions=no
8418 ac_outfile=conftest.$ac_objext
8419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8420 lt_compiler_flag="-fno-rtti -fno-exceptions"
8421 # Insert the option either (1) after the last *FLAGS variable, or
8422 # (2) before a word containing "conftest.", or (3) at the end.
8423 # Note that $ac_compile itself does not contain backslashes and begins
8424 # with a dollar sign (not a hyphen), so the echo should work correctly.
8425 # The option is referenced via a variable to avoid confusing sed.
8426 lt_compile=`echo "$ac_compile" | $SED \
8427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8429 -e 's:$: $lt_compiler_flag:'`
8430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8431 (eval "$lt_compile" 2>conftest.err)
8432 ac_status=$?
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 if (exit $ac_status) && test -s "$ac_outfile"; then
8436 # The compiler can only warn and ignore the option if not recognized
8437 # So say no if there are warnings other than the usual output.
8438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8441 lt_cv_prog_compiler_rtti_exceptions=yes
8442 fi
8443 fi
8444 $RM conftest*
8445
8446 fi
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8448 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8449
8450 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8452 else
8453 :
8454 fi
8455
8456 fi
8457
8458
8459
8460
8461
8462
8463 lt_prog_compiler_wl=
8464 lt_prog_compiler_pic=
8465 lt_prog_compiler_static=
8466
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8468 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8469
8470 if test "$GCC" = yes; then
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_static='-static'
8473
8474 case $host_os in
8475 aix*)
8476 # All AIX code is PIC.
8477 if test "$host_cpu" = ia64; then
8478 # AIX 5 now supports IA64 processor
8479 lt_prog_compiler_static='-Bstatic'
8480 fi
8481 lt_prog_compiler_pic='-fPIC'
8482 ;;
8483
8484 amigaos*)
8485 case $host_cpu in
8486 powerpc)
8487 # see comment about AmigaOS4 .so support
8488 lt_prog_compiler_pic='-fPIC'
8489 ;;
8490 m68k)
8491 # FIXME: we need at least 68020 code to build shared libraries, but
8492 # adding the `-m68020' flag to GCC prevents building anything better,
8493 # like `-m68040'.
8494 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8495 ;;
8496 esac
8497 ;;
8498
8499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8500 # PIC is the default for these OSes.
8501 ;;
8502
8503 mingw* | cygwin* | pw32* | os2* | cegcc*)
8504 # This hack is so that the source file can tell whether it is being
8505 # built for inclusion in a dll (and should export symbols for example).
8506 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8507 # (--disable-auto-import) libraries
8508 lt_prog_compiler_pic='-DDLL_EXPORT'
8509 ;;
8510
8511 darwin* | rhapsody*)
8512 # PIC is the default on this platform
8513 # Common symbols not allowed in MH_DYLIB files
8514 lt_prog_compiler_pic='-fno-common'
8515 ;;
8516
8517 haiku*)
8518 # PIC is the default for Haiku.
8519 # The "-static" flag exists, but is broken.
8520 lt_prog_compiler_static=
8521 ;;
8522
8523 hpux*)
8524 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8525 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8526 # sets the default TLS model and affects inlining.
8527 case $host_cpu in
8528 hppa*64*)
8529 # +Z the default
8530 ;;
8531 *)
8532 lt_prog_compiler_pic='-fPIC'
8533 ;;
8534 esac
8535 ;;
8536
8537 interix[3-9]*)
8538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8539 # Instead, we relocate shared libraries at runtime.
8540 ;;
8541
8542 msdosdjgpp*)
8543 # Just because we use GCC doesn't mean we suddenly get shared libraries
8544 # on systems that don't support them.
8545 lt_prog_compiler_can_build_shared=no
8546 enable_shared=no
8547 ;;
8548
8549 *nto* | *qnx*)
8550 # QNX uses GNU C++, but need to define -shared option too, otherwise
8551 # it will coredump.
8552 lt_prog_compiler_pic='-fPIC -shared'
8553 ;;
8554
8555 sysv4*MP*)
8556 if test -d /usr/nec; then
8557 lt_prog_compiler_pic=-Kconform_pic
8558 fi
8559 ;;
8560
8561 *)
8562 lt_prog_compiler_pic='-fPIC'
8563 ;;
8564 esac
8565
8566 case $cc_basename in
8567 nvcc*) # Cuda Compiler Driver 2.2
8568 lt_prog_compiler_wl='-Xlinker '
8569 lt_prog_compiler_pic='-Xcompiler -fPIC'
8570 ;;
8571 esac
8572 else
8573 # PORTME Check for flag to pass linker flags through the system compiler.
8574 case $host_os in
8575 aix*)
8576 lt_prog_compiler_wl='-Wl,'
8577 if test "$host_cpu" = ia64; then
8578 # AIX 5 now supports IA64 processor
8579 lt_prog_compiler_static='-Bstatic'
8580 else
8581 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8582 fi
8583 ;;
8584
8585 mingw* | cygwin* | pw32* | os2* | cegcc*)
8586 # This hack is so that the source file can tell whether it is being
8587 # built for inclusion in a dll (and should export symbols for example).
8588 lt_prog_compiler_pic='-DDLL_EXPORT'
8589 ;;
8590
8591 hpux9* | hpux10* | hpux11*)
8592 lt_prog_compiler_wl='-Wl,'
8593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8594 # not for PA HP-UX.
8595 case $host_cpu in
8596 hppa*64*|ia64*)
8597 # +Z the default
8598 ;;
8599 *)
8600 lt_prog_compiler_pic='+Z'
8601 ;;
8602 esac
8603 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8604 lt_prog_compiler_static='${wl}-a ${wl}archive'
8605 ;;
8606
8607 irix5* | irix6* | nonstopux*)
8608 lt_prog_compiler_wl='-Wl,'
8609 # PIC (with -KPIC) is the default.
8610 lt_prog_compiler_static='-non_shared'
8611 ;;
8612
8613 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8614 case $cc_basename in
8615 # old Intel for x86_64 which still supported -KPIC.
8616 ecc*)
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-KPIC'
8619 lt_prog_compiler_static='-static'
8620 ;;
8621 # icc used to be incompatible with GCC.
8622 # ICC 10 doesn't accept -KPIC any more.
8623 icc* | ifort*)
8624 lt_prog_compiler_wl='-Wl,'
8625 lt_prog_compiler_pic='-fPIC'
8626 lt_prog_compiler_static='-static'
8627 ;;
8628 # Lahey Fortran 8.1.
8629 lf95*)
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_pic='--shared'
8632 lt_prog_compiler_static='--static'
8633 ;;
8634 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8635 # Portland Group compilers (*not* the Pentium gcc compiler,
8636 # which looks to be a dead project)
8637 lt_prog_compiler_wl='-Wl,'
8638 lt_prog_compiler_pic='-fpic'
8639 lt_prog_compiler_static='-Bstatic'
8640 ;;
8641 ccc*)
8642 lt_prog_compiler_wl='-Wl,'
8643 # All Alpha code is PIC.
8644 lt_prog_compiler_static='-non_shared'
8645 ;;
8646 xl* | bgxl* | bgf* | mpixl*)
8647 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_pic='-qpic'
8650 lt_prog_compiler_static='-qstaticlink'
8651 ;;
8652 *)
8653 case `$CC -V 2>&1 | sed 5q` in
8654 *Sun\ F* | *Sun*Fortran*)
8655 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8656 lt_prog_compiler_pic='-KPIC'
8657 lt_prog_compiler_static='-Bstatic'
8658 lt_prog_compiler_wl=''
8659 ;;
8660 *Sun\ C*)
8661 # Sun C 5.9
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 lt_prog_compiler_wl='-Wl,'
8665 ;;
8666 esac
8667 ;;
8668 esac
8669 ;;
8670
8671 newsos6)
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 ;;
8675
8676 *nto* | *qnx*)
8677 # QNX uses GNU C++, but need to define -shared option too, otherwise
8678 # it will coredump.
8679 lt_prog_compiler_pic='-fPIC -shared'
8680 ;;
8681
8682 osf3* | osf4* | osf5*)
8683 lt_prog_compiler_wl='-Wl,'
8684 # All OSF/1 code is PIC.
8685 lt_prog_compiler_static='-non_shared'
8686 ;;
8687
8688 rdos*)
8689 lt_prog_compiler_static='-non_shared'
8690 ;;
8691
8692 solaris*)
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-Bstatic'
8695 case $cc_basename in
8696 f77* | f90* | f95*)
8697 lt_prog_compiler_wl='-Qoption ld ';;
8698 *)
8699 lt_prog_compiler_wl='-Wl,';;
8700 esac
8701 ;;
8702
8703 sunos4*)
8704 lt_prog_compiler_wl='-Qoption ld '
8705 lt_prog_compiler_pic='-PIC'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708
8709 sysv4 | sysv4.2uw2* | sysv4.3*)
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='-KPIC'
8712 lt_prog_compiler_static='-Bstatic'
8713 ;;
8714
8715 sysv4*MP*)
8716 if test -d /usr/nec ;then
8717 lt_prog_compiler_pic='-Kconform_pic'
8718 lt_prog_compiler_static='-Bstatic'
8719 fi
8720 ;;
8721
8722 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-Bstatic'
8726 ;;
8727
8728 unicos*)
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_can_build_shared=no
8731 ;;
8732
8733 uts4*)
8734 lt_prog_compiler_pic='-pic'
8735 lt_prog_compiler_static='-Bstatic'
8736 ;;
8737
8738 *)
8739 lt_prog_compiler_can_build_shared=no
8740 ;;
8741 esac
8742 fi
8743
8744 case $host_os in
8745 # For platforms which do not support PIC, -DPIC is meaningless:
8746 *djgpp*)
8747 lt_prog_compiler_pic=
8748 ;;
8749 *)
8750 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8751 ;;
8752 esac
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8754 $as_echo "$lt_prog_compiler_pic" >&6; }
8755
8756
8757
8758
8759
8760
8761 #
8762 # Check to make sure the PIC flag actually works.
8763 #
8764 if test -n "$lt_prog_compiler_pic"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8766 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8767 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 lt_cv_prog_compiler_pic_works=no
8771 ac_outfile=conftest.$ac_objext
8772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8774 # Insert the option either (1) after the last *FLAGS variable, or
8775 # (2) before a word containing "conftest.", or (3) at the end.
8776 # Note that $ac_compile itself does not contain backslashes and begins
8777 # with a dollar sign (not a hyphen), so the echo should work correctly.
8778 # The option is referenced via a variable to avoid confusing sed.
8779 lt_compile=`echo "$ac_compile" | $SED \
8780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8782 -e 's:$: $lt_compiler_flag:'`
8783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8784 (eval "$lt_compile" 2>conftest.err)
8785 ac_status=$?
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 if (exit $ac_status) && test -s "$ac_outfile"; then
8789 # The compiler can only warn and ignore the option if not recognized
8790 # So say no if there are warnings other than the usual output.
8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8794 lt_cv_prog_compiler_pic_works=yes
8795 fi
8796 fi
8797 $RM conftest*
8798
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8801 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8802
8803 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8804 case $lt_prog_compiler_pic in
8805 "" | " "*) ;;
8806 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8807 esac
8808 else
8809 lt_prog_compiler_pic=
8810 lt_prog_compiler_can_build_shared=no
8811 fi
8812
8813 fi
8814
8815
8816
8817
8818
8819
8820 #
8821 # Check to make sure the static flag actually works.
8822 #
8823 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8825 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8826 if ${lt_cv_prog_compiler_static_works+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 lt_cv_prog_compiler_static_works=no
8830 save_LDFLAGS="$LDFLAGS"
8831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8832 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8834 # The linker can only warn and ignore the option if not recognized
8835 # So say no if there are warnings
8836 if test -s conftest.err; then
8837 # Append any errors to the config.log.
8838 cat conftest.err 1>&5
8839 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8841 if diff conftest.exp conftest.er2 >/dev/null; then
8842 lt_cv_prog_compiler_static_works=yes
8843 fi
8844 else
8845 lt_cv_prog_compiler_static_works=yes
8846 fi
8847 fi
8848 $RM -r conftest*
8849 LDFLAGS="$save_LDFLAGS"
8850
8851 fi
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8853 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8854
8855 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8856 :
8857 else
8858 lt_prog_compiler_static=
8859 fi
8860
8861
8862
8863
8864
8865
8866
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8868 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8869 if ${lt_cv_prog_compiler_c_o+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 lt_cv_prog_compiler_c_o=no
8873 $RM -r conftest 2>/dev/null
8874 mkdir conftest
8875 cd conftest
8876 mkdir out
8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8878
8879 lt_compiler_flag="-o out/conftest2.$ac_objext"
8880 # Insert the option either (1) after the last *FLAGS variable, or
8881 # (2) before a word containing "conftest.", or (3) at the end.
8882 # Note that $ac_compile itself does not contain backslashes and begins
8883 # with a dollar sign (not a hyphen), so the echo should work correctly.
8884 lt_compile=`echo "$ac_compile" | $SED \
8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887 -e 's:$: $lt_compiler_flag:'`
8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8889 (eval "$lt_compile" 2>out/conftest.err)
8890 ac_status=$?
8891 cat out/conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8894 then
8895 # The compiler can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
8897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8900 lt_cv_prog_compiler_c_o=yes
8901 fi
8902 fi
8903 chmod u+w . 2>&5
8904 $RM conftest*
8905 # SGI C++ compiler will create directory out/ii_files/ for
8906 # template instantiation
8907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8908 $RM out/* && rmdir out
8909 cd ..
8910 $RM -r conftest
8911 $RM conftest*
8912
8913 fi
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8915 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8916
8917
8918
8919
8920
8921
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8923 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8924 if ${lt_cv_prog_compiler_c_o+:} false; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 lt_cv_prog_compiler_c_o=no
8928 $RM -r conftest 2>/dev/null
8929 mkdir conftest
8930 cd conftest
8931 mkdir out
8932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8933
8934 lt_compiler_flag="-o out/conftest2.$ac_objext"
8935 # Insert the option either (1) after the last *FLAGS variable, or
8936 # (2) before a word containing "conftest.", or (3) at the end.
8937 # Note that $ac_compile itself does not contain backslashes and begins
8938 # with a dollar sign (not a hyphen), so the echo should work correctly.
8939 lt_compile=`echo "$ac_compile" | $SED \
8940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8942 -e 's:$: $lt_compiler_flag:'`
8943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8944 (eval "$lt_compile" 2>out/conftest.err)
8945 ac_status=$?
8946 cat out/conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8949 then
8950 # The compiler can only warn and ignore the option if not recognized
8951 # So say no if there are warnings
8952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8955 lt_cv_prog_compiler_c_o=yes
8956 fi
8957 fi
8958 chmod u+w . 2>&5
8959 $RM conftest*
8960 # SGI C++ compiler will create directory out/ii_files/ for
8961 # template instantiation
8962 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8963 $RM out/* && rmdir out
8964 cd ..
8965 $RM -r conftest
8966 $RM conftest*
8967
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8970 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8971
8972
8973
8974
8975 hard_links="nottested"
8976 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8977 # do not overwrite the value of need_locks provided by the user
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8979 $as_echo_n "checking if we can lock with hard links... " >&6; }
8980 hard_links=yes
8981 $RM conftest*
8982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8983 touch conftest.a
8984 ln conftest.a conftest.b 2>&5 || hard_links=no
8985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8987 $as_echo "$hard_links" >&6; }
8988 if test "$hard_links" = no; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8990 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8991 need_locks=warn
8992 fi
8993 else
8994 need_locks=no
8995 fi
8996
8997
8998
8999
9000
9001
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9003 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9004
9005 runpath_var=
9006 allow_undefined_flag=
9007 always_export_symbols=no
9008 archive_cmds=
9009 archive_expsym_cmds=
9010 compiler_needs_object=no
9011 enable_shared_with_static_runtimes=no
9012 export_dynamic_flag_spec=
9013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9014 hardcode_automatic=no
9015 hardcode_direct=no
9016 hardcode_direct_absolute=no
9017 hardcode_libdir_flag_spec=
9018 hardcode_libdir_flag_spec_ld=
9019 hardcode_libdir_separator=
9020 hardcode_minus_L=no
9021 hardcode_shlibpath_var=unsupported
9022 inherit_rpath=no
9023 link_all_deplibs=unknown
9024 module_cmds=
9025 module_expsym_cmds=
9026 old_archive_from_new_cmds=
9027 old_archive_from_expsyms_cmds=
9028 thread_safe_flag_spec=
9029 whole_archive_flag_spec=
9030 # include_expsyms should be a list of space-separated symbols to be *always*
9031 # included in the symbol list
9032 include_expsyms=
9033 # exclude_expsyms can be an extended regexp of symbols to exclude
9034 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9035 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9036 # as well as any symbol that contains `d'.
9037 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9038 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9039 # platforms (ab)use it in PIC code, but their linkers get confused if
9040 # the symbol is explicitly referenced. Since portable code cannot
9041 # rely on this symbol name, it's probably fine to never include it in
9042 # preloaded symbol tables.
9043 # Exclude shared library initialization/finalization symbols.
9044 extract_expsyms_cmds=
9045
9046 case $host_os in
9047 cygwin* | mingw* | pw32* | cegcc*)
9048 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9049 # When not using gcc, we currently assume that we are using
9050 # Microsoft Visual C++.
9051 if test "$GCC" != yes; then
9052 with_gnu_ld=no
9053 fi
9054 ;;
9055 interix*)
9056 # we just hope/assume this is gcc and not c89 (= MSVC++)
9057 with_gnu_ld=yes
9058 ;;
9059 openbsd*)
9060 with_gnu_ld=no
9061 ;;
9062 esac
9063
9064 ld_shlibs=yes
9065
9066 # On some targets, GNU ld is compatible enough with the native linker
9067 # that we're better off using the native interface for both.
9068 lt_use_gnu_ld_interface=no
9069 if test "$with_gnu_ld" = yes; then
9070 case $host_os in
9071 aix*)
9072 # The AIX port of GNU ld has always aspired to compatibility
9073 # with the native linker. However, as the warning in the GNU ld
9074 # block says, versions before 2.19.5* couldn't really create working
9075 # shared libraries, regardless of the interface used.
9076 case `$LD -v 2>&1` in
9077 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9078 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9079 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9080 *)
9081 lt_use_gnu_ld_interface=yes
9082 ;;
9083 esac
9084 ;;
9085 *)
9086 lt_use_gnu_ld_interface=yes
9087 ;;
9088 esac
9089 fi
9090
9091 if test "$lt_use_gnu_ld_interface" = yes; then
9092 # If archive_cmds runs LD, not CC, wlarc should be empty
9093 wlarc='${wl}'
9094
9095 # Set some defaults for GNU ld with shared library support. These
9096 # are reset later if shared libraries are not supported. Putting them
9097 # here allows them to be overridden if necessary.
9098 runpath_var=LD_RUN_PATH
9099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9100 export_dynamic_flag_spec='${wl}--export-dynamic'
9101 # ancient GNU ld didn't support --whole-archive et. al.
9102 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9103 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9104 else
9105 whole_archive_flag_spec=
9106 fi
9107 supports_anon_versioning=no
9108 case `$LD -v 2>&1` in
9109 *GNU\ gold*) supports_anon_versioning=yes ;;
9110 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9111 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9112 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9113 *\ 2.11.*) ;; # other 2.11 versions
9114 *) supports_anon_versioning=yes ;;
9115 esac
9116
9117 # See if GNU ld supports shared libraries.
9118 case $host_os in
9119 aix[3-9]*)
9120 # On AIX/PPC, the GNU linker is very broken
9121 if test "$host_cpu" != ia64; then
9122 ld_shlibs=no
9123 cat <<_LT_EOF 1>&2
9124
9125 *** Warning: the GNU linker, at least up to release 2.19, is reported
9126 *** to be unable to reliably create shared libraries on AIX.
9127 *** Therefore, libtool is disabling shared libraries support. If you
9128 *** really care for shared libraries, you may want to install binutils
9129 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9130 *** You will then need to restart the configuration process.
9131
9132 _LT_EOF
9133 fi
9134 ;;
9135
9136 amigaos*)
9137 case $host_cpu in
9138 powerpc)
9139 # see comment about AmigaOS4 .so support
9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9141 archive_expsym_cmds=''
9142 ;;
9143 m68k)
9144 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)'
9145 hardcode_libdir_flag_spec='-L$libdir'
9146 hardcode_minus_L=yes
9147 ;;
9148 esac
9149 ;;
9150
9151 beos*)
9152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9153 allow_undefined_flag=unsupported
9154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9155 # support --undefined. This deserves some investigation. FIXME
9156 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157 else
9158 ld_shlibs=no
9159 fi
9160 ;;
9161
9162 cygwin* | mingw* | pw32* | cegcc*)
9163 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9164 # as there is no search path for DLLs.
9165 hardcode_libdir_flag_spec='-L$libdir'
9166 export_dynamic_flag_spec='${wl}--export-all-symbols'
9167 allow_undefined_flag=unsupported
9168 always_export_symbols=no
9169 enable_shared_with_static_runtimes=yes
9170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9171
9172 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9174 # If the export-symbols file already is a .def file (1st line
9175 # is EXPORTS), use it as is; otherwise, prepend...
9176 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9177 cp $export_symbols $output_objdir/$soname.def;
9178 else
9179 echo EXPORTS > $output_objdir/$soname.def;
9180 cat $export_symbols >> $output_objdir/$soname.def;
9181 fi~
9182 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9183 else
9184 ld_shlibs=no
9185 fi
9186 ;;
9187
9188 haiku*)
9189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190 link_all_deplibs=yes
9191 ;;
9192
9193 interix[3-9]*)
9194 hardcode_direct=no
9195 hardcode_shlibpath_var=no
9196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9197 export_dynamic_flag_spec='${wl}-E'
9198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9199 # Instead, shared libraries are loaded at an image base (0x10000000 by
9200 # default) and relocated if they conflict, which is a slow very memory
9201 # consuming and fragmenting process. To avoid this, we pick a random,
9202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9205 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'
9206 ;;
9207
9208 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9209 tmp_diet=no
9210 if test "$host_os" = linux-dietlibc; then
9211 case $cc_basename in
9212 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9213 esac
9214 fi
9215 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9216 && test "$tmp_diet" = no
9217 then
9218 tmp_addflag=' $pic_flag'
9219 tmp_sharedflag='-shared'
9220 case $cc_basename,$host_cpu in
9221 pgcc*) # Portland Group C compiler
9222 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'
9223 tmp_addflag=' $pic_flag'
9224 ;;
9225 pgf77* | pgf90* | pgf95* | pgfortran*)
9226 # Portland Group f77 and f90 compilers
9227 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'
9228 tmp_addflag=' $pic_flag -Mnomain' ;;
9229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9230 tmp_addflag=' -i_dynamic' ;;
9231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9232 tmp_addflag=' -i_dynamic -nofor_main' ;;
9233 ifc* | ifort*) # Intel Fortran compiler
9234 tmp_addflag=' -nofor_main' ;;
9235 lf95*) # Lahey Fortran 8.1
9236 whole_archive_flag_spec=
9237 tmp_sharedflag='--shared' ;;
9238 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9239 tmp_sharedflag='-qmkshrobj'
9240 tmp_addflag= ;;
9241 nvcc*) # Cuda Compiler Driver 2.2
9242 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'
9243 compiler_needs_object=yes
9244 ;;
9245 esac
9246 case `$CC -V 2>&1 | sed 5q` in
9247 *Sun\ C*) # Sun C 5.9
9248 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'
9249 compiler_needs_object=yes
9250 tmp_sharedflag='-G' ;;
9251 *Sun\ F*) # Sun Fortran 8.3
9252 tmp_sharedflag='-G' ;;
9253 esac
9254 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255
9256 if test "x$supports_anon_versioning" = xyes; then
9257 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9259 echo "local: *; };" >> $output_objdir/$libname.ver~
9260 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9261 fi
9262
9263 case $cc_basename in
9264 xlf* | bgf* | bgxlf* | mpixlf*)
9265 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9266 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9267 hardcode_libdir_flag_spec=
9268 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9269 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9270 if test "x$supports_anon_versioning" = xyes; then
9271 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9272 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9273 echo "local: *; };" >> $output_objdir/$libname.ver~
9274 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9275 fi
9276 ;;
9277 esac
9278 else
9279 ld_shlibs=no
9280 fi
9281 ;;
9282
9283 netbsd*)
9284 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9285 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9286 wlarc=
9287 else
9288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9290 fi
9291 ;;
9292
9293 solaris*)
9294 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9295 ld_shlibs=no
9296 cat <<_LT_EOF 1>&2
9297
9298 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9299 *** create shared libraries on Solaris systems. Therefore, libtool
9300 *** is disabling shared libraries support. We urge you to upgrade GNU
9301 *** binutils to release 2.9.1 or newer. Another option is to modify
9302 *** your PATH or compiler configuration so that the native linker is
9303 *** used, and then restart.
9304
9305 _LT_EOF
9306 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9309 else
9310 ld_shlibs=no
9311 fi
9312 ;;
9313
9314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9315 case `$LD -v 2>&1` in
9316 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9317 ld_shlibs=no
9318 cat <<_LT_EOF 1>&2
9319
9320 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9321 *** reliably create shared libraries on SCO systems. Therefore, libtool
9322 *** is disabling shared libraries support. We urge you to upgrade GNU
9323 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9324 *** your PATH or compiler configuration so that the native linker is
9325 *** used, and then restart.
9326
9327 _LT_EOF
9328 ;;
9329 *)
9330 # For security reasons, it is highly recommended that you always
9331 # use absolute paths for naming shared libraries, and exclude the
9332 # DT_RUNPATH tag from executables and libraries. But doing so
9333 # requires that you compile everything twice, which is a pain.
9334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9338 else
9339 ld_shlibs=no
9340 fi
9341 ;;
9342 esac
9343 ;;
9344
9345 sunos4*)
9346 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9347 wlarc=
9348 hardcode_direct=yes
9349 hardcode_shlibpath_var=no
9350 ;;
9351
9352 *)
9353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9356 else
9357 ld_shlibs=no
9358 fi
9359 ;;
9360 esac
9361
9362 if test "$ld_shlibs" = no; then
9363 runpath_var=
9364 hardcode_libdir_flag_spec=
9365 export_dynamic_flag_spec=
9366 whole_archive_flag_spec=
9367 fi
9368 else
9369 # PORTME fill in a description of your system's linker (not GNU ld)
9370 case $host_os in
9371 aix3*)
9372 allow_undefined_flag=unsupported
9373 always_export_symbols=yes
9374 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'
9375 # Note: this linker hardcodes the directories in LIBPATH if there
9376 # are no directories specified by -L.
9377 hardcode_minus_L=yes
9378 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9379 # Neither direct hardcoding nor static linking is supported with a
9380 # broken collect2.
9381 hardcode_direct=unsupported
9382 fi
9383 ;;
9384
9385 aix[4-9]*)
9386 if test "$host_cpu" = ia64; then
9387 # On IA64, the linker does run time linking by default, so we don't
9388 # have to do anything special.
9389 aix_use_runtimelinking=no
9390 exp_sym_flag='-Bexport'
9391 no_entry_flag=""
9392 else
9393 # If we're using GNU nm, then we don't want the "-C" option.
9394 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9395 # Also, AIX nm treats weak defined symbols like other global
9396 # defined symbols, whereas GNU nm marks them as "W".
9397 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9398 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'
9399 else
9400 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9401 fi
9402 aix_use_runtimelinking=no
9403
9404 # Test if we are trying to use run time linking or normal
9405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9406 # need to do runtime linking.
9407 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9408 for ld_flag in $LDFLAGS; do
9409 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9410 aix_use_runtimelinking=yes
9411 break
9412 fi
9413 done
9414 ;;
9415 esac
9416
9417 exp_sym_flag='-bexport'
9418 no_entry_flag='-bnoentry'
9419 fi
9420
9421 # When large executables or shared objects are built, AIX ld can
9422 # have problems creating the table of contents. If linking a library
9423 # or program results in "error TOC overflow" add -mminimal-toc to
9424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9426
9427 archive_cmds=''
9428 hardcode_direct=yes
9429 hardcode_direct_absolute=yes
9430 hardcode_libdir_separator=':'
9431 link_all_deplibs=yes
9432 file_list_spec='${wl}-f,'
9433
9434 if test "$GCC" = yes; then
9435 case $host_os in aix4.[012]|aix4.[012].*)
9436 # We only want to do this on AIX 4.2 and lower, the check
9437 # below for broken collect2 doesn't work under 4.3+
9438 collect2name=`${CC} -print-prog-name=collect2`
9439 if test -f "$collect2name" &&
9440 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9441 then
9442 # We have reworked collect2
9443 :
9444 else
9445 # We have old collect2
9446 hardcode_direct=unsupported
9447 # It fails to find uninstalled libraries when the uninstalled
9448 # path is not listed in the libpath. Setting hardcode_minus_L
9449 # to unsupported forces relinking
9450 hardcode_minus_L=yes
9451 hardcode_libdir_flag_spec='-L$libdir'
9452 hardcode_libdir_separator=
9453 fi
9454 ;;
9455 esac
9456 shared_flag='-shared'
9457 if test "$aix_use_runtimelinking" = yes; then
9458 shared_flag="$shared_flag "'${wl}-G'
9459 fi
9460 else
9461 # not using gcc
9462 if test "$host_cpu" = ia64; then
9463 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9464 # chokes on -Wl,-G. The following line is correct:
9465 shared_flag='-G'
9466 else
9467 if test "$aix_use_runtimelinking" = yes; then
9468 shared_flag='${wl}-G'
9469 else
9470 shared_flag='${wl}-bM:SRE'
9471 fi
9472 fi
9473 fi
9474
9475 export_dynamic_flag_spec='${wl}-bexpall'
9476 # It seems that -bexpall does not export symbols beginning with
9477 # underscore (_), so it is better to generate a list of symbols to export.
9478 always_export_symbols=yes
9479 if test "$aix_use_runtimelinking" = yes; then
9480 # Warning - without using the other runtime loading flags (-brtl),
9481 # -berok will link without error, but may produce a broken library.
9482 allow_undefined_flag='-berok'
9483 # Determine the default libpath from the value encoded in an
9484 # empty executable.
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9487
9488 int
9489 main ()
9490 {
9491
9492 ;
9493 return 0;
9494 }
9495 _ACEOF
9496 if ac_fn_c_try_link "$LINENO"; then :
9497
9498 lt_aix_libpath_sed='
9499 /Import File Strings/,/^$/ {
9500 /^0/ {
9501 s/^0 *\(.*\)$/\1/
9502 p
9503 }
9504 }'
9505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9506 # Check for a 64-bit object if we didn't find anything.
9507 if test -z "$aix_libpath"; then
9508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9509 fi
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9514
9515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9516 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"
9517 else
9518 if test "$host_cpu" = ia64; then
9519 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9520 allow_undefined_flag="-z nodefs"
9521 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"
9522 else
9523 # Determine the default libpath from the value encoded in an
9524 # empty executable.
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527
9528 int
9529 main ()
9530 {
9531
9532 ;
9533 return 0;
9534 }
9535 _ACEOF
9536 if ac_fn_c_try_link "$LINENO"; then :
9537
9538 lt_aix_libpath_sed='
9539 /Import File Strings/,/^$/ {
9540 /^0/ {
9541 s/^0 *\(.*\)$/\1/
9542 p
9543 }
9544 }'
9545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9546 # Check for a 64-bit object if we didn't find anything.
9547 if test -z "$aix_libpath"; then
9548 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9549 fi
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9554
9555 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9556 # Warning - without using the other run time loading flags,
9557 # -berok will link without error, but may produce a broken library.
9558 no_undefined_flag=' ${wl}-bernotok'
9559 allow_undefined_flag=' ${wl}-berok'
9560 if test "$with_gnu_ld" = yes; then
9561 # We only use this code for GNU lds that support --whole-archive.
9562 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9563 else
9564 # Exported symbols can be pulled into shared objects from archives
9565 whole_archive_flag_spec='$convenience'
9566 fi
9567 archive_cmds_need_lc=yes
9568 # This is similar to how AIX traditionally builds its shared libraries.
9569 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'
9570 fi
9571 fi
9572 ;;
9573
9574 amigaos*)
9575 case $host_cpu in
9576 powerpc)
9577 # see comment about AmigaOS4 .so support
9578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 archive_expsym_cmds=''
9580 ;;
9581 m68k)
9582 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)'
9583 hardcode_libdir_flag_spec='-L$libdir'
9584 hardcode_minus_L=yes
9585 ;;
9586 esac
9587 ;;
9588
9589 bsdi[45]*)
9590 export_dynamic_flag_spec=-rdynamic
9591 ;;
9592
9593 cygwin* | mingw* | pw32* | cegcc*)
9594 # When not using gcc, we currently assume that we are using
9595 # Microsoft Visual C++.
9596 # hardcode_libdir_flag_spec is actually meaningless, as there is
9597 # no search path for DLLs.
9598 hardcode_libdir_flag_spec=' '
9599 allow_undefined_flag=unsupported
9600 # Tell ltmain to make .lib files, not .a files.
9601 libext=lib
9602 # Tell ltmain to make .dll files, not .so files.
9603 shrext_cmds=".dll"
9604 # FIXME: Setting linknames here is a bad hack.
9605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9606 # The linker will automatically build a .lib file if we build a DLL.
9607 old_archive_from_new_cmds='true'
9608 # FIXME: Should let the user specify the lib program.
9609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9610 fix_srcfile_path='`cygpath -w "$srcfile"`'
9611 enable_shared_with_static_runtimes=yes
9612 ;;
9613
9614 darwin* | rhapsody*)
9615
9616
9617 archive_cmds_need_lc=no
9618 hardcode_direct=no
9619 hardcode_automatic=yes
9620 hardcode_shlibpath_var=unsupported
9621 if test "$lt_cv_ld_force_load" = "yes"; then
9622 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\"`'
9623 else
9624 whole_archive_flag_spec=''
9625 fi
9626 link_all_deplibs=yes
9627 allow_undefined_flag="$_lt_dar_allow_undefined"
9628 case $cc_basename in
9629 ifort*) _lt_dar_can_shared=yes ;;
9630 *) _lt_dar_can_shared=$GCC ;;
9631 esac
9632 if test "$_lt_dar_can_shared" = "yes"; then
9633 output_verbose_link_cmd=func_echo_all
9634 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9635 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9636 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}"
9637 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}"
9638
9639 else
9640 ld_shlibs=no
9641 fi
9642
9643 ;;
9644
9645 dgux*)
9646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_shlibpath_var=no
9649 ;;
9650
9651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9652 # support. Future versions do this automatically, but an explicit c++rt0.o
9653 # does not break anything, and helps significantly (at the cost of a little
9654 # extra space).
9655 freebsd2.2*)
9656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9657 hardcode_libdir_flag_spec='-R$libdir'
9658 hardcode_direct=yes
9659 hardcode_shlibpath_var=no
9660 ;;
9661
9662 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9663 freebsd2.*)
9664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_direct=yes
9666 hardcode_minus_L=yes
9667 hardcode_shlibpath_var=no
9668 ;;
9669
9670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9671 freebsd* | dragonfly*)
9672 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9673 hardcode_libdir_flag_spec='-R$libdir'
9674 hardcode_direct=yes
9675 hardcode_shlibpath_var=no
9676 ;;
9677
9678 hpux9*)
9679 if test "$GCC" = yes; then
9680 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9681 else
9682 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'
9683 fi
9684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9685 hardcode_libdir_separator=:
9686 hardcode_direct=yes
9687
9688 # hardcode_minus_L: Not really in the search PATH,
9689 # but as the default location of the library.
9690 hardcode_minus_L=yes
9691 export_dynamic_flag_spec='${wl}-E'
9692 ;;
9693
9694 hpux10*)
9695 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9697 else
9698 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9699 fi
9700 if test "$with_gnu_ld" = no; then
9701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9702 hardcode_libdir_flag_spec_ld='+b $libdir'
9703 hardcode_libdir_separator=:
9704 hardcode_direct=yes
9705 hardcode_direct_absolute=yes
9706 export_dynamic_flag_spec='${wl}-E'
9707 # hardcode_minus_L: Not really in the search PATH,
9708 # but as the default location of the library.
9709 hardcode_minus_L=yes
9710 fi
9711 ;;
9712
9713 hpux11*)
9714 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9715 case $host_cpu in
9716 hppa*64*)
9717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9718 ;;
9719 ia64*)
9720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9721 ;;
9722 *)
9723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9724 ;;
9725 esac
9726 else
9727 case $host_cpu in
9728 hppa*64*)
9729 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9730 ;;
9731 ia64*)
9732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9733 ;;
9734 *)
9735
9736 # Older versions of the 11.00 compiler do not understand -b yet
9737 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9739 $as_echo_n "checking if $CC understands -b... " >&6; }
9740 if ${lt_cv_prog_compiler__b+:} false; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 lt_cv_prog_compiler__b=no
9744 save_LDFLAGS="$LDFLAGS"
9745 LDFLAGS="$LDFLAGS -b"
9746 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9748 # The linker can only warn and ignore the option if not recognized
9749 # So say no if there are warnings
9750 if test -s conftest.err; then
9751 # Append any errors to the config.log.
9752 cat conftest.err 1>&5
9753 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9755 if diff conftest.exp conftest.er2 >/dev/null; then
9756 lt_cv_prog_compiler__b=yes
9757 fi
9758 else
9759 lt_cv_prog_compiler__b=yes
9760 fi
9761 fi
9762 $RM -r conftest*
9763 LDFLAGS="$save_LDFLAGS"
9764
9765 fi
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9767 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9768
9769 if test x"$lt_cv_prog_compiler__b" = xyes; then
9770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9771 else
9772 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9773 fi
9774
9775 ;;
9776 esac
9777 fi
9778 if test "$with_gnu_ld" = no; then
9779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9780 hardcode_libdir_separator=:
9781
9782 case $host_cpu in
9783 hppa*64*|ia64*)
9784 hardcode_direct=no
9785 hardcode_shlibpath_var=no
9786 ;;
9787 *)
9788 hardcode_direct=yes
9789 hardcode_direct_absolute=yes
9790 export_dynamic_flag_spec='${wl}-E'
9791
9792 # hardcode_minus_L: Not really in the search PATH,
9793 # but as the default location of the library.
9794 hardcode_minus_L=yes
9795 ;;
9796 esac
9797 fi
9798 ;;
9799
9800 irix5* | irix6* | nonstopux*)
9801 if test "$GCC" = yes; then
9802 archive_cmds='$CC -shared $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'
9803 # Try to use the -exported_symbol ld option, if it does not
9804 # work, assume that -exports_file does not work either and
9805 # implicitly export all symbols.
9806 save_LDFLAGS="$LDFLAGS"
9807 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810 int foo(void) {}
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 archive_expsym_cmds='$CC -shared $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'
9814
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 LDFLAGS="$save_LDFLAGS"
9819 else
9820 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'
9821 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'
9822 fi
9823 archive_cmds_need_lc='no'
9824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9825 hardcode_libdir_separator=:
9826 inherit_rpath=yes
9827 link_all_deplibs=yes
9828 ;;
9829
9830 netbsd*)
9831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9833 else
9834 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9835 fi
9836 hardcode_libdir_flag_spec='-R$libdir'
9837 hardcode_direct=yes
9838 hardcode_shlibpath_var=no
9839 ;;
9840
9841 newsos6)
9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_direct=yes
9844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9845 hardcode_libdir_separator=:
9846 hardcode_shlibpath_var=no
9847 ;;
9848
9849 *nto* | *qnx*)
9850 ;;
9851
9852 openbsd*)
9853 if test -f /usr/libexec/ld.so; then
9854 hardcode_direct=yes
9855 hardcode_shlibpath_var=no
9856 hardcode_direct_absolute=yes
9857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9859 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9861 export_dynamic_flag_spec='${wl}-E'
9862 else
9863 case $host_os in
9864 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec='-R$libdir'
9867 ;;
9868 *)
9869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9871 ;;
9872 esac
9873 fi
9874 else
9875 ld_shlibs=no
9876 fi
9877 ;;
9878
9879 os2*)
9880 hardcode_libdir_flag_spec='-L$libdir'
9881 hardcode_minus_L=yes
9882 allow_undefined_flag=unsupported
9883 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'
9884 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9885 ;;
9886
9887 osf3*)
9888 if test "$GCC" = yes; then
9889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9890 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'
9891 else
9892 allow_undefined_flag=' -expect_unresolved \*'
9893 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'
9894 fi
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator=:
9898 ;;
9899
9900 osf4* | osf5*) # as osf3* with the addition of -msym flag
9901 if test "$GCC" = yes; then
9902 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9903 archive_cmds='$CC -shared${allow_undefined_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'
9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905 else
9906 allow_undefined_flag=' -expect_unresolved \*'
9907 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'
9908 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~
9909 $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'
9910
9911 # Both c and cxx compiler support -rpath directly
9912 hardcode_libdir_flag_spec='-rpath $libdir'
9913 fi
9914 archive_cmds_need_lc='no'
9915 hardcode_libdir_separator=:
9916 ;;
9917
9918 solaris*)
9919 no_undefined_flag=' -z defs'
9920 if test "$GCC" = yes; then
9921 wlarc='${wl}'
9922 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9924 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9925 else
9926 case `$CC -V 2>&1` in
9927 *"Compilers 5.0"*)
9928 wlarc=''
9929 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9931 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9932 ;;
9933 *)
9934 wlarc='${wl}'
9935 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9937 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9938 ;;
9939 esac
9940 fi
9941 hardcode_libdir_flag_spec='-R$libdir'
9942 hardcode_shlibpath_var=no
9943 case $host_os in
9944 solaris2.[0-5] | solaris2.[0-5].*) ;;
9945 *)
9946 # The compiler driver will combine and reorder linker options,
9947 # but understands `-z linker_flag'. GCC discards it without `$wl',
9948 # but is careful enough not to reorder.
9949 # Supported since Solaris 2.6 (maybe 2.5.1?)
9950 if test "$GCC" = yes; then
9951 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9952 else
9953 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9954 fi
9955 ;;
9956 esac
9957 link_all_deplibs=yes
9958 ;;
9959
9960 sunos4*)
9961 if test "x$host_vendor" = xsequent; then
9962 # Use $CC to link under sequent, because it throws in some extra .o
9963 # files that make .init and .fini sections work.
9964 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9965 else
9966 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9967 fi
9968 hardcode_libdir_flag_spec='-L$libdir'
9969 hardcode_direct=yes
9970 hardcode_minus_L=yes
9971 hardcode_shlibpath_var=no
9972 ;;
9973
9974 sysv4)
9975 case $host_vendor in
9976 sni)
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_direct=yes # is this really true???
9979 ;;
9980 siemens)
9981 ## LD is ld it makes a PLAMLIB
9982 ## CC just makes a GrossModule.
9983 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9984 reload_cmds='$CC -r -o $output$reload_objs'
9985 hardcode_direct=no
9986 ;;
9987 motorola)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9990 ;;
9991 esac
9992 runpath_var='LD_RUN_PATH'
9993 hardcode_shlibpath_var=no
9994 ;;
9995
9996 sysv4.3*)
9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 hardcode_shlibpath_var=no
9999 export_dynamic_flag_spec='-Bexport'
10000 ;;
10001
10002 sysv4*MP*)
10003 if test -d /usr/nec; then
10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_shlibpath_var=no
10006 runpath_var=LD_RUN_PATH
10007 hardcode_runpath_var=yes
10008 ld_shlibs=yes
10009 fi
10010 ;;
10011
10012 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10013 no_undefined_flag='${wl}-z,text'
10014 archive_cmds_need_lc=no
10015 hardcode_shlibpath_var=no
10016 runpath_var='LD_RUN_PATH'
10017
10018 if test "$GCC" = yes; then
10019 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 else
10022 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 fi
10025 ;;
10026
10027 sysv5* | sco3.2v5* | sco5v6*)
10028 # Note: We can NOT use -z defs as we might desire, because we do not
10029 # link with -lc, and that would cause any symbols used from libc to
10030 # always be unresolved, which means just about no library would
10031 # ever link correctly. If we're not using GNU ld we use -z text
10032 # though, which does catch some bad symbols but isn't as heavy-handed
10033 # as -z defs.
10034 no_undefined_flag='${wl}-z,text'
10035 allow_undefined_flag='${wl}-z,nodefs'
10036 archive_cmds_need_lc=no
10037 hardcode_shlibpath_var=no
10038 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10039 hardcode_libdir_separator=':'
10040 link_all_deplibs=yes
10041 export_dynamic_flag_spec='${wl}-Bexport'
10042 runpath_var='LD_RUN_PATH'
10043
10044 if test "$GCC" = yes; then
10045 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 else
10048 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 fi
10051 ;;
10052
10053 uts4*)
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_libdir_flag_spec='-L$libdir'
10056 hardcode_shlibpath_var=no
10057 ;;
10058
10059 *)
10060 ld_shlibs=no
10061 ;;
10062 esac
10063
10064 if test x$host_vendor = xsni; then
10065 case $host in
10066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10067 export_dynamic_flag_spec='${wl}-Blargedynsym'
10068 ;;
10069 esac
10070 fi
10071 fi
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10074 $as_echo "$ld_shlibs" >&6; }
10075 test "$ld_shlibs" = no && can_build_shared=no
10076
10077 with_gnu_ld=$with_gnu_ld
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093 #
10094 # Do we need to explicitly link libc?
10095 #
10096 case "x$archive_cmds_need_lc" in
10097 x|xyes)
10098 # Assume -lc should be added
10099 archive_cmds_need_lc=yes
10100
10101 if test "$enable_shared" = yes && test "$GCC" = yes; then
10102 case $archive_cmds in
10103 *'~'*)
10104 # FIXME: we may have to deal with multi-command sequences.
10105 ;;
10106 '$CC '*)
10107 # Test whether the compiler implicitly links with -lc since on some
10108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10109 # to ld, don't add -lc before -lgcc.
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10111 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10112 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 $RM conftest*
10116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10117
10118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10119 (eval $ac_compile) 2>&5
10120 ac_status=$?
10121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10122 test $ac_status = 0; } 2>conftest.err; then
10123 soname=conftest
10124 lib=conftest
10125 libobjs=conftest.$ac_objext
10126 deplibs=
10127 wl=$lt_prog_compiler_wl
10128 pic_flag=$lt_prog_compiler_pic
10129 compiler_flags=-v
10130 linker_flags=-v
10131 verstring=
10132 output_objdir=.
10133 libname=conftest
10134 lt_save_allow_undefined_flag=$allow_undefined_flag
10135 allow_undefined_flag=
10136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10137 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10138 ac_status=$?
10139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10140 test $ac_status = 0; }
10141 then
10142 lt_cv_archive_cmds_need_lc=no
10143 else
10144 lt_cv_archive_cmds_need_lc=yes
10145 fi
10146 allow_undefined_flag=$lt_save_allow_undefined_flag
10147 else
10148 cat conftest.err 1>&5
10149 fi
10150 $RM conftest*
10151
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10154 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10155 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10156 ;;
10157 esac
10158 fi
10159 ;;
10160 esac
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10319 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10320
10321 if test "$GCC" = yes; then
10322 case $host_os in
10323 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10324 *) lt_awk_arg="/^libraries:/" ;;
10325 esac
10326 case $host_os in
10327 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10328 *) lt_sed_strip_eq="s,=/,/,g" ;;
10329 esac
10330 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10331 case $lt_search_path_spec in
10332 *\;*)
10333 # if the path contains ";" then we assume it to be the separator
10334 # otherwise default to the standard path separator (i.e. ":") - it is
10335 # assumed that no part of a normal pathname contains ";" but that should
10336 # okay in the real world where ";" in dirpaths is itself problematic.
10337 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10338 ;;
10339 *)
10340 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10341 ;;
10342 esac
10343 # Ok, now we have the path, separated by spaces, we can step through it
10344 # and add multilib dir if necessary.
10345 lt_tmp_lt_search_path_spec=
10346 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10347 for lt_sys_path in $lt_search_path_spec; do
10348 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10349 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10350 else
10351 test -d "$lt_sys_path" && \
10352 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10353 fi
10354 done
10355 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10356 BEGIN {RS=" "; FS="/|\n";} {
10357 lt_foo="";
10358 lt_count=0;
10359 for (lt_i = NF; lt_i > 0; lt_i--) {
10360 if ($lt_i != "" && $lt_i != ".") {
10361 if ($lt_i == "..") {
10362 lt_count++;
10363 } else {
10364 if (lt_count == 0) {
10365 lt_foo="/" $lt_i lt_foo;
10366 } else {
10367 lt_count--;
10368 }
10369 }
10370 }
10371 }
10372 if (lt_foo != "") { lt_freq[lt_foo]++; }
10373 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10374 }'`
10375 # AWK program above erroneously prepends '/' to C:/dos/paths
10376 # for these hosts.
10377 case $host_os in
10378 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10379 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10380 esac
10381 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10382 else
10383 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10384 fi
10385 library_names_spec=
10386 libname_spec='lib$name'
10387 soname_spec=
10388 shrext_cmds=".so"
10389 postinstall_cmds=
10390 postuninstall_cmds=
10391 finish_cmds=
10392 finish_eval=
10393 shlibpath_var=
10394 shlibpath_overrides_runpath=unknown
10395 version_type=none
10396 dynamic_linker="$host_os ld.so"
10397 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10398 need_lib_prefix=unknown
10399 hardcode_into_libs=no
10400
10401 # when you set need_version to no, make sure it does not cause -set_version
10402 # flags to be left without arguments
10403 need_version=unknown
10404
10405 case $host_os in
10406 aix3*)
10407 version_type=linux
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10409 shlibpath_var=LIBPATH
10410
10411 # AIX 3 has no versioning support, so we append a major version to the name.
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 ;;
10414
10415 aix[4-9]*)
10416 version_type=linux
10417 need_lib_prefix=no
10418 need_version=no
10419 hardcode_into_libs=yes
10420 if test "$host_cpu" = ia64; then
10421 # AIX 5 supports IA64
10422 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 else
10425 # With GCC up to 2.95.x, collect2 would create an import file
10426 # for dependence libraries. The import file would start with
10427 # the line `#! .'. This would cause the generated library to
10428 # depend on `.', always an invalid library. This was fixed in
10429 # development snapshots of GCC prior to 3.0.
10430 case $host_os in
10431 aix4 | aix4.[01] | aix4.[01].*)
10432 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10433 echo ' yes '
10434 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10435 :
10436 else
10437 can_build_shared=no
10438 fi
10439 ;;
10440 esac
10441 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10442 # soname into executable. Probably we can add versioning support to
10443 # collect2, so additional links can be useful in future.
10444 if test "$aix_use_runtimelinking" = yes; then
10445 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10446 # instead of lib<name>.a to let people know that these are not
10447 # typical AIX shared libraries.
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 else
10450 # We preserve .a as extension for shared libraries through AIX4.2
10451 # and later when we are not doing run time linking.
10452 library_names_spec='${libname}${release}.a $libname.a'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 fi
10455 shlibpath_var=LIBPATH
10456 fi
10457 ;;
10458
10459 amigaos*)
10460 case $host_cpu in
10461 powerpc)
10462 # Since July 2007 AmigaOS4 officially supports .so libraries.
10463 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 ;;
10466 m68k)
10467 library_names_spec='$libname.ixlibrary $libname.a'
10468 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10469 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'
10470 ;;
10471 esac
10472 ;;
10473
10474 beos*)
10475 library_names_spec='${libname}${shared_ext}'
10476 dynamic_linker="$host_os ld.so"
10477 shlibpath_var=LIBRARY_PATH
10478 ;;
10479
10480 bsdi[45]*)
10481 version_type=linux
10482 need_version=no
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 soname_spec='${libname}${release}${shared_ext}$major'
10485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10489 # the default ld.so.conf also contains /usr/contrib/lib and
10490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10491 # libtool to hard-code these into programs
10492 ;;
10493
10494 cygwin* | mingw* | pw32* | cegcc*)
10495 version_type=windows
10496 shrext_cmds=".dll"
10497 need_version=no
10498 need_lib_prefix=no
10499
10500 case $GCC,$host_os in
10501 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10502 library_names_spec='$libname.dll.a'
10503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10504 postinstall_cmds='base_file=`basename \${file}`~
10505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10506 dldir=$destdir/`dirname \$dlpath`~
10507 test -d \$dldir || mkdir -p \$dldir~
10508 $install_prog $dir/$dlname \$dldir/$dlname~
10509 chmod a+x \$dldir/$dlname~
10510 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10511 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10512 fi'
10513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10514 dlpath=$dir/\$dldll~
10515 $RM \$dlpath'
10516 shlibpath_overrides_runpath=yes
10517
10518 case $host_os in
10519 cygwin*)
10520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10522
10523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10524 ;;
10525 mingw* | cegcc*)
10526 # MinGW DLLs use traditional 'lib' prefix
10527 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10528 ;;
10529 pw32*)
10530 # pw32 DLLs use 'pw' prefix rather than 'lib'
10531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10532 ;;
10533 esac
10534 ;;
10535
10536 *)
10537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10538 ;;
10539 esac
10540 dynamic_linker='Win32 ld.exe'
10541 # FIXME: first we should search . and the directory the executable is in
10542 shlibpath_var=PATH
10543 ;;
10544
10545 darwin* | rhapsody*)
10546 dynamic_linker="$host_os dyld"
10547 version_type=darwin
10548 need_lib_prefix=no
10549 need_version=no
10550 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10551 soname_spec='${libname}${release}${major}$shared_ext'
10552 shlibpath_overrides_runpath=yes
10553 shlibpath_var=DYLD_LIBRARY_PATH
10554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10555
10556 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10557 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10558 ;;
10559
10560 dgux*)
10561 version_type=linux
10562 need_lib_prefix=no
10563 need_version=no
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 ;;
10568
10569 freebsd* | dragonfly*)
10570 # DragonFly does not have aout. When/if they implement a new
10571 # versioning mechanism, adjust this.
10572 if test -x /usr/bin/objformat; then
10573 objformat=`/usr/bin/objformat`
10574 else
10575 case $host_os in
10576 freebsd[23].*) objformat=aout ;;
10577 *) objformat=elf ;;
10578 esac
10579 fi
10580 version_type=freebsd-$objformat
10581 case $version_type in
10582 freebsd-elf*)
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10584 need_version=no
10585 need_lib_prefix=no
10586 ;;
10587 freebsd-*)
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10589 need_version=yes
10590 ;;
10591 esac
10592 shlibpath_var=LD_LIBRARY_PATH
10593 case $host_os in
10594 freebsd2.*)
10595 shlibpath_overrides_runpath=yes
10596 ;;
10597 freebsd3.[01]* | freebsdelf3.[01]*)
10598 shlibpath_overrides_runpath=yes
10599 hardcode_into_libs=yes
10600 ;;
10601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10603 shlibpath_overrides_runpath=no
10604 hardcode_into_libs=yes
10605 ;;
10606 *) # from 4.6 on, and DragonFly
10607 shlibpath_overrides_runpath=yes
10608 hardcode_into_libs=yes
10609 ;;
10610 esac
10611 ;;
10612
10613 gnu*)
10614 version_type=linux
10615 need_lib_prefix=no
10616 need_version=no
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 hardcode_into_libs=yes
10621 ;;
10622
10623 haiku*)
10624 version_type=linux
10625 need_lib_prefix=no
10626 need_version=no
10627 dynamic_linker="$host_os runtime_loader"
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10633 hardcode_into_libs=yes
10634 ;;
10635
10636 hpux9* | hpux10* | hpux11*)
10637 # Give a soname corresponding to the major version so that dld.sl refuses to
10638 # link against other versions.
10639 version_type=sunos
10640 need_lib_prefix=no
10641 need_version=no
10642 case $host_cpu in
10643 ia64*)
10644 shrext_cmds='.so'
10645 hardcode_into_libs=yes
10646 dynamic_linker="$host_os dld.so"
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 if test "X$HPUX_IA64_MODE" = X32; then
10652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10653 else
10654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10655 fi
10656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10657 ;;
10658 hppa*64*)
10659 shrext_cmds='.sl'
10660 hardcode_into_libs=yes
10661 dynamic_linker="$host_os dld.sl"
10662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10668 ;;
10669 *)
10670 shrext_cmds='.sl'
10671 dynamic_linker="$host_os dld.sl"
10672 shlibpath_var=SHLIB_PATH
10673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 ;;
10677 esac
10678 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10679 postinstall_cmds='chmod 555 $lib'
10680 # or fails outright, so override atomically:
10681 install_override_mode=555
10682 ;;
10683
10684 interix[3-9]*)
10685 version_type=linux
10686 need_lib_prefix=no
10687 need_version=no
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=no
10693 hardcode_into_libs=yes
10694 ;;
10695
10696 irix5* | irix6* | nonstopux*)
10697 case $host_os in
10698 nonstopux*) version_type=nonstopux ;;
10699 *)
10700 if test "$lt_cv_prog_gnu_ld" = yes; then
10701 version_type=linux
10702 else
10703 version_type=irix
10704 fi ;;
10705 esac
10706 need_lib_prefix=no
10707 need_version=no
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10710 case $host_os in
10711 irix5* | nonstopux*)
10712 libsuff= shlibsuff=
10713 ;;
10714 *)
10715 case $LD in # libtool.m4 will add one of these switches to LD
10716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10717 libsuff= shlibsuff= libmagic=32-bit;;
10718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10719 libsuff=32 shlibsuff=N32 libmagic=N32;;
10720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10721 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10722 *) libsuff= shlibsuff= libmagic=never-match;;
10723 esac
10724 ;;
10725 esac
10726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10727 shlibpath_overrides_runpath=no
10728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10730 hardcode_into_libs=yes
10731 ;;
10732
10733 # No shared lib support for Linux oldld, aout, or coff.
10734 linux*oldld* | linux*aout* | linux*coff*)
10735 dynamic_linker=no
10736 ;;
10737
10738 # This must be Linux ELF.
10739
10740 # uclinux* changes (here and below) have been submitted to the libtool
10741 # project, but have not yet been accepted: they are GCC-local changes
10742 # for the time being. (See
10743 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10744 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10745 version_type=linux
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=no
10753
10754 # Some binutils ld are patched to set DT_RUNPATH
10755 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 lt_cv_shlibpath_overrides_runpath=no
10759 save_LDFLAGS=$LDFLAGS
10760 save_libdir=$libdir
10761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765
10766 int
10767 main ()
10768 {
10769
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10776 lt_cv_shlibpath_overrides_runpath=yes
10777 fi
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 LDFLAGS=$save_LDFLAGS
10782 libdir=$save_libdir
10783
10784 fi
10785
10786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10787
10788 # This implies no fast_install, which is unacceptable.
10789 # Some rework will be needed to allow for fast_install
10790 # before this can be enabled.
10791 hardcode_into_libs=yes
10792
10793 # Append ld.so.conf contents to the search path
10794 if test -f /etc/ld.so.conf; then
10795 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' ' '`
10796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10797 fi
10798
10799 # We used to test for /lib/ld.so.1 and disable shared libraries on
10800 # powerpc, because MkLinux only supported shared libraries with the
10801 # GNU dynamic linker. Since this was broken with cross compilers,
10802 # most powerpc-linux boxes support dynamic linking these days and
10803 # people can always --disable-shared, the test was removed, and we
10804 # assume the GNU/Linux dynamic linker is in use.
10805 dynamic_linker='GNU/Linux ld.so'
10806 ;;
10807
10808 netbsd*)
10809 version_type=sunos
10810 need_lib_prefix=no
10811 need_version=no
10812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815 dynamic_linker='NetBSD (a.out) ld.so'
10816 else
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 dynamic_linker='NetBSD ld.elf_so'
10820 fi
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10824 ;;
10825
10826 newsos6)
10827 version_type=linux
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 shlibpath_overrides_runpath=yes
10831 ;;
10832
10833 *nto* | *qnx*)
10834 version_type=qnx
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=no
10841 hardcode_into_libs=yes
10842 dynamic_linker='ldqnx.so'
10843 ;;
10844
10845 openbsd*)
10846 version_type=sunos
10847 sys_lib_dlsearch_path_spec="/usr/lib"
10848 need_lib_prefix=no
10849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10850 case $host_os in
10851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10852 *) need_version=no ;;
10853 esac
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10858 case $host_os in
10859 openbsd2.[89] | openbsd2.[89].*)
10860 shlibpath_overrides_runpath=no
10861 ;;
10862 *)
10863 shlibpath_overrides_runpath=yes
10864 ;;
10865 esac
10866 else
10867 shlibpath_overrides_runpath=yes
10868 fi
10869 ;;
10870
10871 os2*)
10872 libname_spec='$name'
10873 shrext_cmds=".dll"
10874 need_lib_prefix=no
10875 library_names_spec='$libname${shared_ext} $libname.a'
10876 dynamic_linker='OS/2 ld.exe'
10877 shlibpath_var=LIBPATH
10878 ;;
10879
10880 osf3* | osf4* | osf5*)
10881 version_type=osf
10882 need_lib_prefix=no
10883 need_version=no
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10889 ;;
10890
10891 rdos*)
10892 dynamic_linker=no
10893 ;;
10894
10895 solaris*)
10896 version_type=linux
10897 need_lib_prefix=no
10898 need_version=no
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10904 # ldd complains unless libraries are executable
10905 postinstall_cmds='chmod +x $lib'
10906 ;;
10907
10908 sunos4*)
10909 version_type=sunos
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 shlibpath_overrides_runpath=yes
10914 if test "$with_gnu_ld" = yes; then
10915 need_lib_prefix=no
10916 fi
10917 need_version=yes
10918 ;;
10919
10920 sysv4 | sysv4.3*)
10921 version_type=linux
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 case $host_vendor in
10926 sni)
10927 shlibpath_overrides_runpath=no
10928 need_lib_prefix=no
10929 runpath_var=LD_RUN_PATH
10930 ;;
10931 siemens)
10932 need_lib_prefix=no
10933 ;;
10934 motorola)
10935 need_lib_prefix=no
10936 need_version=no
10937 shlibpath_overrides_runpath=no
10938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10939 ;;
10940 esac
10941 ;;
10942
10943 sysv4*MP*)
10944 if test -d /usr/nec ;then
10945 version_type=linux
10946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10947 soname_spec='$libname${shared_ext}.$major'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 fi
10950 ;;
10951
10952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10953 version_type=freebsd-elf
10954 need_lib_prefix=no
10955 need_version=no
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes
10960 hardcode_into_libs=yes
10961 if test "$with_gnu_ld" = yes; then
10962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10963 else
10964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10965 case $host_os in
10966 sco3.2v5*)
10967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10968 ;;
10969 esac
10970 fi
10971 sys_lib_dlsearch_path_spec='/usr/lib'
10972 ;;
10973
10974 tpf*)
10975 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10976 version_type=linux
10977 need_lib_prefix=no
10978 need_version=no
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=no
10982 hardcode_into_libs=yes
10983 ;;
10984
10985 uts4*)
10986 version_type=linux
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 ;;
10991
10992 *)
10993 dynamic_linker=no
10994 ;;
10995 esac
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10997 $as_echo "$dynamic_linker" >&6; }
10998 test "$dynamic_linker" = no && can_build_shared=no
10999
11000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11001 if test "$GCC" = yes; then
11002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11003 fi
11004
11005 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11006 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11007 fi
11008 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11009 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11010 fi
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11104 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11105 hardcode_action=
11106 if test -n "$hardcode_libdir_flag_spec" ||
11107 test -n "$runpath_var" ||
11108 test "X$hardcode_automatic" = "Xyes" ; then
11109
11110 # We can hardcode non-existent directories.
11111 if test "$hardcode_direct" != no &&
11112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11113 # have to relink, otherwise we might link with an installed library
11114 # when we should be linking with a yet-to-be-installed one
11115 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11116 test "$hardcode_minus_L" != no; then
11117 # Linking always hardcodes the temporary library directory.
11118 hardcode_action=relink
11119 else
11120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11121 hardcode_action=immediate
11122 fi
11123 else
11124 # We cannot hardcode anything, or else we can only hardcode existing
11125 # directories.
11126 hardcode_action=unsupported
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11129 $as_echo "$hardcode_action" >&6; }
11130
11131 if test "$hardcode_action" = relink ||
11132 test "$inherit_rpath" = yes; then
11133 # Fast installation is not supported
11134 enable_fast_install=no
11135 elif test "$shlibpath_overrides_runpath" = yes ||
11136 test "$enable_shared" = no; then
11137 # Fast installation is not necessary
11138 enable_fast_install=needless
11139 fi
11140
11141
11142
11143
11144
11145
11146 if test "x$enable_dlopen" != xyes; then
11147 enable_dlopen=unknown
11148 enable_dlopen_self=unknown
11149 enable_dlopen_self_static=unknown
11150 else
11151 lt_cv_dlopen=no
11152 lt_cv_dlopen_libs=
11153
11154 case $host_os in
11155 beos*)
11156 lt_cv_dlopen="load_add_on"
11157 lt_cv_dlopen_libs=
11158 lt_cv_dlopen_self=yes
11159 ;;
11160
11161 mingw* | pw32* | cegcc*)
11162 lt_cv_dlopen="LoadLibrary"
11163 lt_cv_dlopen_libs=
11164 ;;
11165
11166 cygwin*)
11167 lt_cv_dlopen="dlopen"
11168 lt_cv_dlopen_libs=
11169 ;;
11170
11171 darwin*)
11172 # if libdl is installed we need to link against it
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11174 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11175 if ${ac_cv_lib_dl_dlopen+:} false; then :
11176 $as_echo_n "(cached) " >&6
11177 else
11178 ac_check_lib_save_LIBS=$LIBS
11179 LIBS="-ldl $LIBS"
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char dlopen ();
11190 int
11191 main ()
11192 {
11193 return dlopen ();
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_c_try_link "$LINENO"; then :
11199 ac_cv_lib_dl_dlopen=yes
11200 else
11201 ac_cv_lib_dl_dlopen=no
11202 fi
11203 rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11206 fi
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11208 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11209 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11211 else
11212
11213 lt_cv_dlopen="dyld"
11214 lt_cv_dlopen_libs=
11215 lt_cv_dlopen_self=yes
11216
11217 fi
11218
11219 ;;
11220
11221 *)
11222 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11223 if test "x$ac_cv_func_shl_load" = xyes; then :
11224 lt_cv_dlopen="shl_load"
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11227 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11228 if ${ac_cv_lib_dld_shl_load+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 ac_check_lib_save_LIBS=$LIBS
11232 LIBS="-ldld $LIBS"
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char shl_load ();
11243 int
11244 main ()
11245 {
11246 return shl_load ();
11247 ;
11248 return 0;
11249 }
11250 _ACEOF
11251 if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_lib_dld_shl_load=yes
11253 else
11254 ac_cv_lib_dld_shl_load=no
11255 fi
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11261 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11262 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11263 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11264 else
11265 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11266 if test "x$ac_cv_func_dlopen" = xyes; then :
11267 lt_cv_dlopen="dlopen"
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11271 if ${ac_cv_lib_dl_dlopen+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 ac_check_lib_save_LIBS=$LIBS
11275 LIBS="-ldl $LIBS"
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11278
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char dlopen ();
11286 int
11287 main ()
11288 {
11289 return dlopen ();
11290 ;
11291 return 0;
11292 }
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295 ac_cv_lib_dl_dlopen=yes
11296 else
11297 ac_cv_lib_dl_dlopen=no
11298 fi
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301 LIBS=$ac_check_lib_save_LIBS
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11304 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11305 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11309 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11310 if ${ac_cv_lib_svld_dlopen+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 ac_check_lib_save_LIBS=$LIBS
11314 LIBS="-lsvld $LIBS"
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11317
11318 /* Override any GCC internal prototype to avoid an error.
11319 Use char because int might match the return type of a GCC
11320 builtin and then its argument prototype would still apply. */
11321 #ifdef __cplusplus
11322 extern "C"
11323 #endif
11324 char dlopen ();
11325 int
11326 main ()
11327 {
11328 return dlopen ();
11329 ;
11330 return 0;
11331 }
11332 _ACEOF
11333 if ac_fn_c_try_link "$LINENO"; then :
11334 ac_cv_lib_svld_dlopen=yes
11335 else
11336 ac_cv_lib_svld_dlopen=no
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340 LIBS=$ac_check_lib_save_LIBS
11341 fi
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11343 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11344 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11348 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11349 if ${ac_cv_lib_dld_dld_link+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 ac_check_lib_save_LIBS=$LIBS
11353 LIBS="-ldld $LIBS"
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356
11357 /* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 char dld_link ();
11364 int
11365 main ()
11366 {
11367 return dld_link ();
11368 ;
11369 return 0;
11370 }
11371 _ACEOF
11372 if ac_fn_c_try_link "$LINENO"; then :
11373 ac_cv_lib_dld_dld_link=yes
11374 else
11375 ac_cv_lib_dld_dld_link=no
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 LIBS=$ac_check_lib_save_LIBS
11380 fi
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11382 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11383 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11384 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11385 fi
11386
11387
11388 fi
11389
11390
11391 fi
11392
11393
11394 fi
11395
11396
11397 fi
11398
11399
11400 fi
11401
11402 ;;
11403 esac
11404
11405 if test "x$lt_cv_dlopen" != xno; then
11406 enable_dlopen=yes
11407 else
11408 enable_dlopen=no
11409 fi
11410
11411 case $lt_cv_dlopen in
11412 dlopen)
11413 save_CPPFLAGS="$CPPFLAGS"
11414 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11415
11416 save_LDFLAGS="$LDFLAGS"
11417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11418
11419 save_LIBS="$LIBS"
11420 LIBS="$lt_cv_dlopen_libs $LIBS"
11421
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11423 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11424 if ${lt_cv_dlopen_self+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 if test "$cross_compiling" = yes; then :
11428 lt_cv_dlopen_self=cross
11429 else
11430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11431 lt_status=$lt_dlunknown
11432 cat > conftest.$ac_ext <<_LT_EOF
11433 #line 11433 "configure"
11434 #include "confdefs.h"
11435
11436 #if HAVE_DLFCN_H
11437 #include <dlfcn.h>
11438 #endif
11439
11440 #include <stdio.h>
11441
11442 #ifdef RTLD_GLOBAL
11443 # define LT_DLGLOBAL RTLD_GLOBAL
11444 #else
11445 # ifdef DL_GLOBAL
11446 # define LT_DLGLOBAL DL_GLOBAL
11447 # else
11448 # define LT_DLGLOBAL 0
11449 # endif
11450 #endif
11451
11452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11453 find out it does not work in some platform. */
11454 #ifndef LT_DLLAZY_OR_NOW
11455 # ifdef RTLD_LAZY
11456 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11457 # else
11458 # ifdef DL_LAZY
11459 # define LT_DLLAZY_OR_NOW DL_LAZY
11460 # else
11461 # ifdef RTLD_NOW
11462 # define LT_DLLAZY_OR_NOW RTLD_NOW
11463 # else
11464 # ifdef DL_NOW
11465 # define LT_DLLAZY_OR_NOW DL_NOW
11466 # else
11467 # define LT_DLLAZY_OR_NOW 0
11468 # endif
11469 # endif
11470 # endif
11471 # endif
11472 #endif
11473
11474 /* When -fvisbility=hidden is used, assume the code has been annotated
11475 correspondingly for the symbols needed. */
11476 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11477 void fnord () __attribute__((visibility("default")));
11478 #endif
11479
11480 void fnord () { int i=42; }
11481 int main ()
11482 {
11483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11484 int status = $lt_dlunknown;
11485
11486 if (self)
11487 {
11488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11489 else
11490 {
11491 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11492 else puts (dlerror ());
11493 }
11494 /* dlclose (self); */
11495 }
11496 else
11497 puts (dlerror ());
11498
11499 return status;
11500 }
11501 _LT_EOF
11502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11503 (eval $ac_link) 2>&5
11504 ac_status=$?
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11507 (./conftest; exit; ) >&5 2>/dev/null
11508 lt_status=$?
11509 case x$lt_status in
11510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11513 esac
11514 else :
11515 # compilation failed
11516 lt_cv_dlopen_self=no
11517 fi
11518 fi
11519 rm -fr conftest*
11520
11521
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11524 $as_echo "$lt_cv_dlopen_self" >&6; }
11525
11526 if test "x$lt_cv_dlopen_self" = xyes; then
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11529 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11530 if ${lt_cv_dlopen_self_static+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self_static=cross
11535 else
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
11539 #line 11539 "configure"
11540 #include "confdefs.h"
11541
11542 #if HAVE_DLFCN_H
11543 #include <dlfcn.h>
11544 #endif
11545
11546 #include <stdio.h>
11547
11548 #ifdef RTLD_GLOBAL
11549 # define LT_DLGLOBAL RTLD_GLOBAL
11550 #else
11551 # ifdef DL_GLOBAL
11552 # define LT_DLGLOBAL DL_GLOBAL
11553 # else
11554 # define LT_DLGLOBAL 0
11555 # endif
11556 #endif
11557
11558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560 #ifndef LT_DLLAZY_OR_NOW
11561 # ifdef RTLD_LAZY
11562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11563 # else
11564 # ifdef DL_LAZY
11565 # define LT_DLLAZY_OR_NOW DL_LAZY
11566 # else
11567 # ifdef RTLD_NOW
11568 # define LT_DLLAZY_OR_NOW RTLD_NOW
11569 # else
11570 # ifdef DL_NOW
11571 # define LT_DLLAZY_OR_NOW DL_NOW
11572 # else
11573 # define LT_DLLAZY_OR_NOW 0
11574 # endif
11575 # endif
11576 # endif
11577 # endif
11578 #endif
11579
11580 /* When -fvisbility=hidden is used, assume the code has been annotated
11581 correspondingly for the symbols needed. */
11582 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11583 void fnord () __attribute__((visibility("default")));
11584 #endif
11585
11586 void fnord () { int i=42; }
11587 int main ()
11588 {
11589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11590 int status = $lt_dlunknown;
11591
11592 if (self)
11593 {
11594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11595 else
11596 {
11597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 else puts (dlerror ());
11599 }
11600 /* dlclose (self); */
11601 }
11602 else
11603 puts (dlerror ());
11604
11605 return status;
11606 }
11607 _LT_EOF
11608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11609 (eval $ac_link) 2>&5
11610 ac_status=$?
11611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11613 (./conftest; exit; ) >&5 2>/dev/null
11614 lt_status=$?
11615 case x$lt_status in
11616 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11617 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11618 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11619 esac
11620 else :
11621 # compilation failed
11622 lt_cv_dlopen_self_static=no
11623 fi
11624 fi
11625 rm -fr conftest*
11626
11627
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11630 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11631 fi
11632
11633 CPPFLAGS="$save_CPPFLAGS"
11634 LDFLAGS="$save_LDFLAGS"
11635 LIBS="$save_LIBS"
11636 ;;
11637 esac
11638
11639 case $lt_cv_dlopen_self in
11640 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11641 *) enable_dlopen_self=unknown ;;
11642 esac
11643
11644 case $lt_cv_dlopen_self_static in
11645 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11646 *) enable_dlopen_self_static=unknown ;;
11647 esac
11648 fi
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666 striplib=
11667 old_striplib=
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11669 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11670 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674 $as_echo "yes" >&6; }
11675 else
11676 # FIXME - insert some real tests, host_os isn't really good enough
11677 case $host_os in
11678 darwin*)
11679 if test -n "$STRIP" ; then
11680 striplib="$STRIP -x"
11681 old_striplib="$STRIP -S"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11683 $as_echo "yes" >&6; }
11684 else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11687 fi
11688 ;;
11689 *)
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692 ;;
11693 esac
11694 fi
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707 # Report which library types will actually be built
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11709 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11711 $as_echo "$can_build_shared" >&6; }
11712
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11714 $as_echo_n "checking whether to build shared libraries... " >&6; }
11715 test "$can_build_shared" = "no" && enable_shared=no
11716
11717 # On AIX, shared libraries and static libraries use the same namespace, and
11718 # are all built from PIC.
11719 case $host_os in
11720 aix3*)
11721 test "$enable_shared" = yes && enable_static=no
11722 if test -n "$RANLIB"; then
11723 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11724 postinstall_cmds='$RANLIB $lib'
11725 fi
11726 ;;
11727
11728 aix[4-9]*)
11729 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11730 test "$enable_shared" = yes && enable_static=no
11731 fi
11732 ;;
11733 esac
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11735 $as_echo "$enable_shared" >&6; }
11736
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11738 $as_echo_n "checking whether to build static libraries... " >&6; }
11739 # Make sure either enable_shared or enable_static is yes.
11740 test "$enable_shared" = yes || enable_static=yes
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11742 $as_echo "$enable_static" >&6; }
11743
11744
11745
11746
11747 fi
11748 ac_ext=c
11749 ac_cpp='$CPP $CPPFLAGS'
11750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11753
11754 CC="$lt_save_CC"
11755
11756 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11757 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11758 (test "X$CXX" != "Xg++"))) ; then
11759 ac_ext=cpp
11760 ac_cpp='$CXXCPP $CPPFLAGS'
11761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11765 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11766 if test -z "$CXXCPP"; then
11767 if ${ac_cv_prog_CXXCPP+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 # Double quotes because CXXCPP needs to be expanded
11771 for CXXCPP in "$CXX -E" "/lib/cpp"
11772 do
11773 ac_preproc_ok=false
11774 for ac_cxx_preproc_warn_flag in '' yes
11775 do
11776 # Use a header file that comes with gcc, so configuring glibc
11777 # with a fresh cross-compiler works.
11778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11779 # <limits.h> exists even on freestanding compilers.
11780 # On the NeXT, cc -E runs the code through the compiler's parser,
11781 # not just through cpp. "Syntax error" is here to catch this case.
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784 #ifdef __STDC__
11785 # include <limits.h>
11786 #else
11787 # include <assert.h>
11788 #endif
11789 Syntax error
11790 _ACEOF
11791 if ac_fn_cxx_try_cpp "$LINENO"; then :
11792
11793 else
11794 # Broken: fails on valid input.
11795 continue
11796 fi
11797 rm -f conftest.err conftest.i conftest.$ac_ext
11798
11799 # OK, works on sane cases. Now check whether nonexistent headers
11800 # can be detected and how.
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11803 #include <ac_nonexistent.h>
11804 _ACEOF
11805 if ac_fn_cxx_try_cpp "$LINENO"; then :
11806 # Broken: success on invalid input.
11807 continue
11808 else
11809 # Passes both tests.
11810 ac_preproc_ok=:
11811 break
11812 fi
11813 rm -f conftest.err conftest.i conftest.$ac_ext
11814
11815 done
11816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11817 rm -f conftest.i conftest.err conftest.$ac_ext
11818 if $ac_preproc_ok; then :
11819 break
11820 fi
11821
11822 done
11823 ac_cv_prog_CXXCPP=$CXXCPP
11824
11825 fi
11826 CXXCPP=$ac_cv_prog_CXXCPP
11827 else
11828 ac_cv_prog_CXXCPP=$CXXCPP
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11831 $as_echo "$CXXCPP" >&6; }
11832 ac_preproc_ok=false
11833 for ac_cxx_preproc_warn_flag in '' yes
11834 do
11835 # Use a header file that comes with gcc, so configuring glibc
11836 # with a fresh cross-compiler works.
11837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 # <limits.h> exists even on freestanding compilers.
11839 # On the NeXT, cc -E runs the code through the compiler's parser,
11840 # not just through cpp. "Syntax error" is here to catch this case.
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843 #ifdef __STDC__
11844 # include <limits.h>
11845 #else
11846 # include <assert.h>
11847 #endif
11848 Syntax error
11849 _ACEOF
11850 if ac_fn_cxx_try_cpp "$LINENO"; then :
11851
11852 else
11853 # Broken: fails on valid input.
11854 continue
11855 fi
11856 rm -f conftest.err conftest.i conftest.$ac_ext
11857
11858 # OK, works on sane cases. Now check whether nonexistent headers
11859 # can be detected and how.
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862 #include <ac_nonexistent.h>
11863 _ACEOF
11864 if ac_fn_cxx_try_cpp "$LINENO"; then :
11865 # Broken: success on invalid input.
11866 continue
11867 else
11868 # Passes both tests.
11869 ac_preproc_ok=:
11870 break
11871 fi
11872 rm -f conftest.err conftest.i conftest.$ac_ext
11873
11874 done
11875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11876 rm -f conftest.i conftest.err conftest.$ac_ext
11877 if $ac_preproc_ok; then :
11878
11879 else
11880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11882 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11883 See \`config.log' for more details" "$LINENO" 5; }
11884 fi
11885
11886 ac_ext=c
11887 ac_cpp='$CPP $CPPFLAGS'
11888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11891
11892 else
11893 _lt_caught_CXX_error=yes
11894 fi
11895
11896 ac_ext=cpp
11897 ac_cpp='$CXXCPP $CPPFLAGS'
11898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11901
11902 archive_cmds_need_lc_CXX=no
11903 allow_undefined_flag_CXX=
11904 always_export_symbols_CXX=no
11905 archive_expsym_cmds_CXX=
11906 compiler_needs_object_CXX=no
11907 export_dynamic_flag_spec_CXX=
11908 hardcode_direct_CXX=no
11909 hardcode_direct_absolute_CXX=no
11910 hardcode_libdir_flag_spec_CXX=
11911 hardcode_libdir_flag_spec_ld_CXX=
11912 hardcode_libdir_separator_CXX=
11913 hardcode_minus_L_CXX=no
11914 hardcode_shlibpath_var_CXX=unsupported
11915 hardcode_automatic_CXX=no
11916 inherit_rpath_CXX=no
11917 module_cmds_CXX=
11918 module_expsym_cmds_CXX=
11919 link_all_deplibs_CXX=unknown
11920 old_archive_cmds_CXX=$old_archive_cmds
11921 reload_flag_CXX=$reload_flag
11922 reload_cmds_CXX=$reload_cmds
11923 no_undefined_flag_CXX=
11924 whole_archive_flag_spec_CXX=
11925 enable_shared_with_static_runtimes_CXX=no
11926
11927 # Source file extension for C++ test sources.
11928 ac_ext=cpp
11929
11930 # Object file extension for compiled C++ test sources.
11931 objext=o
11932 objext_CXX=$objext
11933
11934 # No sense in running all these tests if we already determined that
11935 # the CXX compiler isn't working. Some variables (like enable_shared)
11936 # are currently assumed to apply to all compilers on this platform,
11937 # and will be corrupted by setting them based on a non-working compiler.
11938 if test "$_lt_caught_CXX_error" != yes; then
11939 # Code to be used in simple compile tests
11940 lt_simple_compile_test_code="int some_variable = 0;"
11941
11942 # Code to be used in simple link tests
11943 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11944
11945 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11946
11947
11948
11949
11950
11951
11952 # If no C compiler was specified, use CC.
11953 LTCC=${LTCC-"$CC"}
11954
11955 # If no C compiler flags were specified, use CFLAGS.
11956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11957
11958 # Allow CC to be a program name with arguments.
11959 compiler=$CC
11960
11961
11962 # save warnings/boilerplate of simple test code
11963 ac_outfile=conftest.$ac_objext
11964 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11966 _lt_compiler_boilerplate=`cat conftest.err`
11967 $RM conftest*
11968
11969 ac_outfile=conftest.$ac_objext
11970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11972 _lt_linker_boilerplate=`cat conftest.err`
11973 $RM -r conftest*
11974
11975
11976 # Allow CC to be a program name with arguments.
11977 lt_save_CC=$CC
11978 lt_save_LD=$LD
11979 lt_save_GCC=$GCC
11980 GCC=$GXX
11981 lt_save_with_gnu_ld=$with_gnu_ld
11982 lt_save_path_LD=$lt_cv_path_LD
11983 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11984 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11985 else
11986 $as_unset lt_cv_prog_gnu_ld
11987 fi
11988 if test -n "${lt_cv_path_LDCXX+set}"; then
11989 lt_cv_path_LD=$lt_cv_path_LDCXX
11990 else
11991 $as_unset lt_cv_path_LD
11992 fi
11993 test -z "${LDCXX+set}" || LD=$LDCXX
11994 CC=${CXX-"c++"}
11995 compiler=$CC
11996 compiler_CXX=$CC
11997 for cc_temp in $compiler""; do
11998 case $cc_temp in
11999 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12000 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12001 \-*) ;;
12002 *) break;;
12003 esac
12004 done
12005 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12006
12007
12008 if test -n "$compiler"; then
12009 # We don't want -fno-exception when compiling C++ code, so set the
12010 # no_builtin_flag separately
12011 if test "$GXX" = yes; then
12012 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12013 else
12014 lt_prog_compiler_no_builtin_flag_CXX=
12015 fi
12016
12017 if test "$GXX" = yes; then
12018 # Set up default GNU C++ configuration
12019
12020
12021
12022 # Check whether --with-gnu-ld was given.
12023 if test "${with_gnu_ld+set}" = set; then :
12024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12025 else
12026 with_gnu_ld=no
12027 fi
12028
12029 ac_prog=ld
12030 if test "$GCC" = yes; then
12031 # Check if gcc -print-prog-name=ld gives a path.
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12033 $as_echo_n "checking for ld used by $CC... " >&6; }
12034 case $host in
12035 *-*-mingw*)
12036 # gcc leaves a trailing carriage return which upsets mingw
12037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12038 *)
12039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12040 esac
12041 case $ac_prog in
12042 # Accept absolute paths.
12043 [\\/]* | ?:[\\/]*)
12044 re_direlt='/[^/][^/]*/\.\./'
12045 # Canonicalize the pathname of ld
12046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12049 done
12050 test -z "$LD" && LD="$ac_prog"
12051 ;;
12052 "")
12053 # If it fails, then pretend we aren't using GCC.
12054 ac_prog=ld
12055 ;;
12056 *)
12057 # If it is relative, then search for the first ld in PATH.
12058 with_gnu_ld=unknown
12059 ;;
12060 esac
12061 elif test "$with_gnu_ld" = yes; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12063 $as_echo_n "checking for GNU ld... " >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12066 $as_echo_n "checking for non-GNU ld... " >&6; }
12067 fi
12068 if ${lt_cv_path_LD+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 if test -z "$LD"; then
12072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12073 for ac_dir in $PATH; do
12074 IFS="$lt_save_ifs"
12075 test -z "$ac_dir" && ac_dir=.
12076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12077 lt_cv_path_LD="$ac_dir/$ac_prog"
12078 # Check to see if the program is GNU ld. I'd rather use --version,
12079 # but apparently some variants of GNU ld only accept -v.
12080 # Break only if it was the GNU/non-GNU ld that we prefer.
12081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12082 *GNU* | *'with BFD'*)
12083 test "$with_gnu_ld" != no && break
12084 ;;
12085 *)
12086 test "$with_gnu_ld" != yes && break
12087 ;;
12088 esac
12089 fi
12090 done
12091 IFS="$lt_save_ifs"
12092 else
12093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12094 fi
12095 fi
12096
12097 LD="$lt_cv_path_LD"
12098 if test -n "$LD"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12100 $as_echo "$LD" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12104 fi
12105 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12108 if ${lt_cv_prog_gnu_ld+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12112 case `$LD -v 2>&1 </dev/null` in
12113 *GNU* | *'with BFD'*)
12114 lt_cv_prog_gnu_ld=yes
12115 ;;
12116 *)
12117 lt_cv_prog_gnu_ld=no
12118 ;;
12119 esac
12120 fi
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12123 with_gnu_ld=$lt_cv_prog_gnu_ld
12124
12125
12126
12127
12128
12129
12130
12131 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12132 # archiving commands below assume that GNU ld is being used.
12133 if test "$with_gnu_ld" = yes; then
12134 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12135 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12136
12137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12138 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12139
12140 # If archive_cmds runs LD, not CC, wlarc should be empty
12141 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12142 # investigate it a little bit more. (MM)
12143 wlarc='${wl}'
12144
12145 # ancient GNU ld didn't support --whole-archive et. al.
12146 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12147 $GREP 'no-whole-archive' > /dev/null; then
12148 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12149 else
12150 whole_archive_flag_spec_CXX=
12151 fi
12152 else
12153 with_gnu_ld=no
12154 wlarc=
12155
12156 # A generic and very simple default shared library creation
12157 # command for GNU C++ for the case where it uses the native
12158 # linker, instead of GNU ld. If possible, this setting should
12159 # overridden to take advantage of the native linker features on
12160 # the platform it is being used on.
12161 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12162 fi
12163
12164 # Commands to make compiler produce verbose output that lists
12165 # what "hidden" libraries, object files and flags are used when
12166 # linking a shared library.
12167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12168
12169 else
12170 GXX=no
12171 with_gnu_ld=no
12172 wlarc=
12173 fi
12174
12175 # PORTME: fill in a description of your system's C++ link characteristics
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12178 ld_shlibs_CXX=yes
12179 case $host_os in
12180 aix3*)
12181 # FIXME: insert proper C++ library support
12182 ld_shlibs_CXX=no
12183 ;;
12184 aix[4-9]*)
12185 if test "$host_cpu" = ia64; then
12186 # On IA64, the linker does run time linking by default, so we don't
12187 # have to do anything special.
12188 aix_use_runtimelinking=no
12189 exp_sym_flag='-Bexport'
12190 no_entry_flag=""
12191 else
12192 aix_use_runtimelinking=no
12193
12194 # Test if we are trying to use run time linking or normal
12195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12196 # need to do runtime linking.
12197 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12198 for ld_flag in $LDFLAGS; do
12199 case $ld_flag in
12200 *-brtl*)
12201 aix_use_runtimelinking=yes
12202 break
12203 ;;
12204 esac
12205 done
12206 ;;
12207 esac
12208
12209 exp_sym_flag='-bexport'
12210 no_entry_flag='-bnoentry'
12211 fi
12212
12213 # When large executables or shared objects are built, AIX ld can
12214 # have problems creating the table of contents. If linking a library
12215 # or program results in "error TOC overflow" add -mminimal-toc to
12216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12218
12219 archive_cmds_CXX=''
12220 hardcode_direct_CXX=yes
12221 hardcode_direct_absolute_CXX=yes
12222 hardcode_libdir_separator_CXX=':'
12223 link_all_deplibs_CXX=yes
12224 file_list_spec_CXX='${wl}-f,'
12225
12226 if test "$GXX" = yes; then
12227 case $host_os in aix4.[012]|aix4.[012].*)
12228 # We only want to do this on AIX 4.2 and lower, the check
12229 # below for broken collect2 doesn't work under 4.3+
12230 collect2name=`${CC} -print-prog-name=collect2`
12231 if test -f "$collect2name" &&
12232 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12233 then
12234 # We have reworked collect2
12235 :
12236 else
12237 # We have old collect2
12238 hardcode_direct_CXX=unsupported
12239 # It fails to find uninstalled libraries when the uninstalled
12240 # path is not listed in the libpath. Setting hardcode_minus_L
12241 # to unsupported forces relinking
12242 hardcode_minus_L_CXX=yes
12243 hardcode_libdir_flag_spec_CXX='-L$libdir'
12244 hardcode_libdir_separator_CXX=
12245 fi
12246 esac
12247 shared_flag='-shared'
12248 if test "$aix_use_runtimelinking" = yes; then
12249 shared_flag="$shared_flag "'${wl}-G'
12250 fi
12251 else
12252 # not using gcc
12253 if test "$host_cpu" = ia64; then
12254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12255 # chokes on -Wl,-G. The following line is correct:
12256 shared_flag='-G'
12257 else
12258 if test "$aix_use_runtimelinking" = yes; then
12259 shared_flag='${wl}-G'
12260 else
12261 shared_flag='${wl}-bM:SRE'
12262 fi
12263 fi
12264 fi
12265
12266 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12267 # It seems that -bexpall does not export symbols beginning with
12268 # underscore (_), so it is better to generate a list of symbols to
12269 # export.
12270 always_export_symbols_CXX=yes
12271 if test "$aix_use_runtimelinking" = yes; then
12272 # Warning - without using the other runtime loading flags (-brtl),
12273 # -berok will link without error, but may produce a broken library.
12274 allow_undefined_flag_CXX='-berok'
12275 # Determine the default libpath from the value encoded in an empty
12276 # executable.
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279
12280 int
12281 main ()
12282 {
12283
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 if ac_fn_cxx_try_link "$LINENO"; then :
12289
12290 lt_aix_libpath_sed='
12291 /Import File Strings/,/^$/ {
12292 /^0/ {
12293 s/^0 *\(.*\)$/\1/
12294 p
12295 }
12296 }'
12297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12298 # Check for a 64-bit object if we didn't find anything.
12299 if test -z "$aix_libpath"; then
12300 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12301 fi
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12306
12307 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12308
12309 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12310 else
12311 if test "$host_cpu" = ia64; then
12312 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12313 allow_undefined_flag_CXX="-z nodefs"
12314 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12315 else
12316 # Determine the default libpath from the value encoded in an
12317 # empty executable.
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320
12321 int
12322 main ()
12323 {
12324
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 if ac_fn_cxx_try_link "$LINENO"; then :
12330
12331 lt_aix_libpath_sed='
12332 /Import File Strings/,/^$/ {
12333 /^0/ {
12334 s/^0 *\(.*\)$/\1/
12335 p
12336 }
12337 }'
12338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12339 # Check for a 64-bit object if we didn't find anything.
12340 if test -z "$aix_libpath"; then
12341 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12342 fi
12343 fi
12344 rm -f core conftest.err conftest.$ac_objext \
12345 conftest$ac_exeext conftest.$ac_ext
12346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12347
12348 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12349 # Warning - without using the other run time loading flags,
12350 # -berok will link without error, but may produce a broken library.
12351 no_undefined_flag_CXX=' ${wl}-bernotok'
12352 allow_undefined_flag_CXX=' ${wl}-berok'
12353 if test "$with_gnu_ld" = yes; then
12354 # We only use this code for GNU lds that support --whole-archive.
12355 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12356 else
12357 # Exported symbols can be pulled into shared objects from archives
12358 whole_archive_flag_spec_CXX='$convenience'
12359 fi
12360 archive_cmds_need_lc_CXX=yes
12361 # This is similar to how AIX traditionally builds its shared
12362 # libraries.
12363 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12364 fi
12365 fi
12366 ;;
12367
12368 beos*)
12369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12370 allow_undefined_flag_CXX=unsupported
12371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12372 # support --undefined. This deserves some investigation. FIXME
12373 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374 else
12375 ld_shlibs_CXX=no
12376 fi
12377 ;;
12378
12379 chorus*)
12380 case $cc_basename in
12381 *)
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 ;;
12385 esac
12386 ;;
12387
12388 cygwin* | mingw* | pw32* | cegcc*)
12389 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12390 # as there is no search path for DLLs.
12391 hardcode_libdir_flag_spec_CXX='-L$libdir'
12392 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12393 allow_undefined_flag_CXX=unsupported
12394 always_export_symbols_CXX=no
12395 enable_shared_with_static_runtimes_CXX=yes
12396
12397 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12398 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12399 # If the export-symbols file already is a .def file (1st line
12400 # is EXPORTS), use it as is; otherwise, prepend...
12401 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12402 cp $export_symbols $output_objdir/$soname.def;
12403 else
12404 echo EXPORTS > $output_objdir/$soname.def;
12405 cat $export_symbols >> $output_objdir/$soname.def;
12406 fi~
12407 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12408 else
12409 ld_shlibs_CXX=no
12410 fi
12411 ;;
12412 darwin* | rhapsody*)
12413
12414
12415 archive_cmds_need_lc_CXX=no
12416 hardcode_direct_CXX=no
12417 hardcode_automatic_CXX=yes
12418 hardcode_shlibpath_var_CXX=unsupported
12419 if test "$lt_cv_ld_force_load" = "yes"; then
12420 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12421 else
12422 whole_archive_flag_spec_CXX=''
12423 fi
12424 link_all_deplibs_CXX=yes
12425 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12426 case $cc_basename in
12427 ifort*) _lt_dar_can_shared=yes ;;
12428 *) _lt_dar_can_shared=$GCC ;;
12429 esac
12430 if test "$_lt_dar_can_shared" = "yes"; then
12431 output_verbose_link_cmd=func_echo_all
12432 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12433 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12434 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12435 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12436 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12437 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12438 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12439 fi
12440
12441 else
12442 ld_shlibs_CXX=no
12443 fi
12444
12445 ;;
12446
12447 dgux*)
12448 case $cc_basename in
12449 ec++*)
12450 # FIXME: insert proper C++ library support
12451 ld_shlibs_CXX=no
12452 ;;
12453 ghcx*)
12454 # Green Hills C++ Compiler
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 *)
12459 # FIXME: insert proper C++ library support
12460 ld_shlibs_CXX=no
12461 ;;
12462 esac
12463 ;;
12464
12465 freebsd2.*)
12466 # C++ shared libraries reported to be fairly broken before
12467 # switch to ELF
12468 ld_shlibs_CXX=no
12469 ;;
12470
12471 freebsd-elf*)
12472 archive_cmds_need_lc_CXX=no
12473 ;;
12474
12475 freebsd* | dragonfly*)
12476 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12477 # conventions
12478 ld_shlibs_CXX=yes
12479 ;;
12480
12481 gnu*)
12482 ;;
12483
12484 haiku*)
12485 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12486 link_all_deplibs_CXX=yes
12487 ;;
12488
12489 hpux9*)
12490 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12491 hardcode_libdir_separator_CXX=:
12492 export_dynamic_flag_spec_CXX='${wl}-E'
12493 hardcode_direct_CXX=yes
12494 hardcode_minus_L_CXX=yes # Not in the search PATH,
12495 # but as the default
12496 # location of the library.
12497
12498 case $cc_basename in
12499 CC*)
12500 # FIXME: insert proper C++ library support
12501 ld_shlibs_CXX=no
12502 ;;
12503 aCC*)
12504 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12505 # Commands to make compiler produce verbose output that lists
12506 # what "hidden" libraries, object files and flags are used when
12507 # linking a shared library.
12508 #
12509 # There doesn't appear to be a way to prevent this compiler from
12510 # explicitly linking system object files so we need to strip them
12511 # from the output so that they don't get included in the library
12512 # dependencies.
12513 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12514 ;;
12515 *)
12516 if test "$GXX" = yes; then
12517 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12518 else
12519 # FIXME: insert proper C++ library support
12520 ld_shlibs_CXX=no
12521 fi
12522 ;;
12523 esac
12524 ;;
12525
12526 hpux10*|hpux11*)
12527 if test $with_gnu_ld = no; then
12528 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12529 hardcode_libdir_separator_CXX=:
12530
12531 case $host_cpu in
12532 hppa*64*|ia64*)
12533 ;;
12534 *)
12535 export_dynamic_flag_spec_CXX='${wl}-E'
12536 ;;
12537 esac
12538 fi
12539 case $host_cpu in
12540 hppa*64*|ia64*)
12541 hardcode_direct_CXX=no
12542 hardcode_shlibpath_var_CXX=no
12543 ;;
12544 *)
12545 hardcode_direct_CXX=yes
12546 hardcode_direct_absolute_CXX=yes
12547 hardcode_minus_L_CXX=yes # Not in the search PATH,
12548 # but as the default
12549 # location of the library.
12550 ;;
12551 esac
12552
12553 case $cc_basename in
12554 CC*)
12555 # FIXME: insert proper C++ library support
12556 ld_shlibs_CXX=no
12557 ;;
12558 aCC*)
12559 case $host_cpu in
12560 hppa*64*)
12561 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12562 ;;
12563 ia64*)
12564 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12565 ;;
12566 *)
12567 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12568 ;;
12569 esac
12570 # Commands to make compiler produce verbose output that lists
12571 # what "hidden" libraries, object files and flags are used when
12572 # linking a shared library.
12573 #
12574 # There doesn't appear to be a way to prevent this compiler from
12575 # explicitly linking system object files so we need to strip them
12576 # from the output so that they don't get included in the library
12577 # dependencies.
12578 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12579 ;;
12580 *)
12581 if test "$GXX" = yes; then
12582 if test $with_gnu_ld = no; then
12583 case $host_cpu in
12584 hppa*64*)
12585 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12586 ;;
12587 ia64*)
12588 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12589 ;;
12590 *)
12591 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12592 ;;
12593 esac
12594 fi
12595 else
12596 # FIXME: insert proper C++ library support
12597 ld_shlibs_CXX=no
12598 fi
12599 ;;
12600 esac
12601 ;;
12602
12603 interix[3-9]*)
12604 hardcode_direct_CXX=no
12605 hardcode_shlibpath_var_CXX=no
12606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12607 export_dynamic_flag_spec_CXX='${wl}-E'
12608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12609 # Instead, shared libraries are loaded at an image base (0x10000000 by
12610 # default) and relocated if they conflict, which is a slow very memory
12611 # consuming and fragmenting process. To avoid this, we pick a random,
12612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12614 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12615 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12616 ;;
12617 irix5* | irix6*)
12618 case $cc_basename in
12619 CC*)
12620 # SGI C++
12621 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12622
12623 # Archives containing C++ object files must be created using
12624 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12625 # necessary to make sure instantiated templates are included
12626 # in the archive.
12627 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12628 ;;
12629 *)
12630 if test "$GXX" = yes; then
12631 if test "$with_gnu_ld" = no; then
12632 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12633 else
12634 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12635 fi
12636 fi
12637 link_all_deplibs_CXX=yes
12638 ;;
12639 esac
12640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12641 hardcode_libdir_separator_CXX=:
12642 inherit_rpath_CXX=yes
12643 ;;
12644
12645 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12646 case $cc_basename in
12647 KCC*)
12648 # Kuck and Associates, Inc. (KAI) C++ Compiler
12649
12650 # KCC will only create a shared library if the output file
12651 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12652 # to its proper name (with version) after linking.
12653 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12654 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12655 # Commands to make compiler produce verbose output that lists
12656 # what "hidden" libraries, object files and flags are used when
12657 # linking a shared library.
12658 #
12659 # There doesn't appear to be a way to prevent this compiler from
12660 # explicitly linking system object files so we need to strip them
12661 # from the output so that they don't get included in the library
12662 # dependencies.
12663 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12664
12665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12667
12668 # Archives containing C++ object files must be created using
12669 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12670 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12671 ;;
12672 icpc* | ecpc* )
12673 # Intel C++
12674 with_gnu_ld=yes
12675 # version 8.0 and above of icpc choke on multiply defined symbols
12676 # if we add $predep_objects and $postdep_objects, however 7.1 and
12677 # earlier do not add the objects themselves.
12678 case `$CC -V 2>&1` in
12679 *"Version 7."*)
12680 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12681 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12682 ;;
12683 *) # Version 8.0 or newer
12684 tmp_idyn=
12685 case $host_cpu in
12686 ia64*) tmp_idyn=' -i_dynamic';;
12687 esac
12688 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12689 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12690 ;;
12691 esac
12692 archive_cmds_need_lc_CXX=no
12693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12695 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12696 ;;
12697 pgCC* | pgcpp*)
12698 # Portland Group C++ compiler
12699 case `$CC -V` in
12700 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12701 prelink_cmds_CXX='tpldir=Template.dir~
12702 rm -rf $tpldir~
12703 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12704 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12705 old_archive_cmds_CXX='tpldir=Template.dir~
12706 rm -rf $tpldir~
12707 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12708 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12709 $RANLIB $oldlib'
12710 archive_cmds_CXX='tpldir=Template.dir~
12711 rm -rf $tpldir~
12712 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12713 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12714 archive_expsym_cmds_CXX='tpldir=Template.dir~
12715 rm -rf $tpldir~
12716 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12717 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12718 ;;
12719 *) # Version 6 and above use weak symbols
12720 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12721 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12722 ;;
12723 esac
12724
12725 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12726 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12727 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12728 ;;
12729 cxx*)
12730 # Compaq C++
12731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12732 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12733
12734 runpath_var=LD_RUN_PATH
12735 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12736 hardcode_libdir_separator_CXX=:
12737
12738 # Commands to make compiler produce verbose output that lists
12739 # what "hidden" libraries, object files and flags are used when
12740 # linking a shared library.
12741 #
12742 # There doesn't appear to be a way to prevent this compiler from
12743 # explicitly linking system object files so we need to strip them
12744 # from the output so that they don't get included in the library
12745 # dependencies.
12746 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12747 ;;
12748 xl* | mpixl* | bgxl*)
12749 # IBM XL 8.0 on PPC, with GNU ld
12750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12752 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753 if test "x$supports_anon_versioning" = xyes; then
12754 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12756 echo "local: *; };" >> $output_objdir/$libname.ver~
12757 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12758 fi
12759 ;;
12760 *)
12761 case `$CC -V 2>&1 | sed 5q` in
12762 *Sun\ C*)
12763 # Sun C++ 5.9
12764 no_undefined_flag_CXX=' -zdefs'
12765 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12766 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12767 hardcode_libdir_flag_spec_CXX='-R$libdir'
12768 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12769 compiler_needs_object_CXX=yes
12770
12771 # Not sure whether something based on
12772 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12773 # would be better.
12774 output_verbose_link_cmd='func_echo_all'
12775
12776 # Archives containing C++ object files must be created using
12777 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12778 # necessary to make sure instantiated templates are included
12779 # in the archive.
12780 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12781 ;;
12782 esac
12783 ;;
12784 esac
12785 ;;
12786
12787 lynxos*)
12788 # FIXME: insert proper C++ library support
12789 ld_shlibs_CXX=no
12790 ;;
12791
12792 m88k*)
12793 # FIXME: insert proper C++ library support
12794 ld_shlibs_CXX=no
12795 ;;
12796
12797 mvs*)
12798 case $cc_basename in
12799 cxx*)
12800 # FIXME: insert proper C++ library support
12801 ld_shlibs_CXX=no
12802 ;;
12803 *)
12804 # FIXME: insert proper C++ library support
12805 ld_shlibs_CXX=no
12806 ;;
12807 esac
12808 ;;
12809
12810 netbsd*)
12811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12812 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12813 wlarc=
12814 hardcode_libdir_flag_spec_CXX='-R$libdir'
12815 hardcode_direct_CXX=yes
12816 hardcode_shlibpath_var_CXX=no
12817 fi
12818 # Workaround some broken pre-1.5 toolchains
12819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12820 ;;
12821
12822 *nto* | *qnx*)
12823 ld_shlibs_CXX=yes
12824 ;;
12825
12826 openbsd2*)
12827 # C++ shared libraries are fairly broken
12828 ld_shlibs_CXX=no
12829 ;;
12830
12831 openbsd*)
12832 if test -f /usr/libexec/ld.so; then
12833 hardcode_direct_CXX=yes
12834 hardcode_shlibpath_var_CXX=no
12835 hardcode_direct_absolute_CXX=yes
12836 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12837 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12839 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12840 export_dynamic_flag_spec_CXX='${wl}-E'
12841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12842 fi
12843 output_verbose_link_cmd=func_echo_all
12844 else
12845 ld_shlibs_CXX=no
12846 fi
12847 ;;
12848
12849 osf3* | osf4* | osf5*)
12850 case $cc_basename in
12851 KCC*)
12852 # Kuck and Associates, Inc. (KAI) C++ Compiler
12853
12854 # KCC will only create a shared library if the output file
12855 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12856 # to its proper name (with version) after linking.
12857 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12858
12859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12860 hardcode_libdir_separator_CXX=:
12861
12862 # Archives containing C++ object files must be created using
12863 # the KAI C++ compiler.
12864 case $host in
12865 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12866 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12867 esac
12868 ;;
12869 RCC*)
12870 # Rational C++ 2.4.1
12871 # FIXME: insert proper C++ library support
12872 ld_shlibs_CXX=no
12873 ;;
12874 cxx*)
12875 case $host in
12876 osf3*)
12877 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12878 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12879 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12880 ;;
12881 *)
12882 allow_undefined_flag_CXX=' -expect_unresolved \*'
12883 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12884 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12885 echo "-hidden">> $lib.exp~
12886 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12887 $RM $lib.exp'
12888 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12889 ;;
12890 esac
12891
12892 hardcode_libdir_separator_CXX=:
12893
12894 # Commands to make compiler produce verbose output that lists
12895 # what "hidden" libraries, object files and flags are used when
12896 # linking a shared library.
12897 #
12898 # There doesn't appear to be a way to prevent this compiler from
12899 # explicitly linking system object files so we need to strip them
12900 # from the output so that they don't get included in the library
12901 # dependencies.
12902 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12903 ;;
12904 *)
12905 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12907 case $host in
12908 osf3*)
12909 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12910 ;;
12911 *)
12912 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12913 ;;
12914 esac
12915
12916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12917 hardcode_libdir_separator_CXX=:
12918
12919 # Commands to make compiler produce verbose output that lists
12920 # what "hidden" libraries, object files and flags are used when
12921 # linking a shared library.
12922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12923
12924 else
12925 # FIXME: insert proper C++ library support
12926 ld_shlibs_CXX=no
12927 fi
12928 ;;
12929 esac
12930 ;;
12931
12932 psos*)
12933 # FIXME: insert proper C++ library support
12934 ld_shlibs_CXX=no
12935 ;;
12936
12937 sunos4*)
12938 case $cc_basename in
12939 CC*)
12940 # Sun C++ 4.x
12941 # FIXME: insert proper C++ library support
12942 ld_shlibs_CXX=no
12943 ;;
12944 lcc*)
12945 # Lucid
12946 # FIXME: insert proper C++ library support
12947 ld_shlibs_CXX=no
12948 ;;
12949 *)
12950 # FIXME: insert proper C++ library support
12951 ld_shlibs_CXX=no
12952 ;;
12953 esac
12954 ;;
12955
12956 solaris*)
12957 case $cc_basename in
12958 CC*)
12959 # Sun C++ 4.2, 5.x and Centerline C++
12960 archive_cmds_need_lc_CXX=yes
12961 no_undefined_flag_CXX=' -zdefs'
12962 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12963 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12964 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12965
12966 hardcode_libdir_flag_spec_CXX='-R$libdir'
12967 hardcode_shlibpath_var_CXX=no
12968 case $host_os in
12969 solaris2.[0-5] | solaris2.[0-5].*) ;;
12970 *)
12971 # The compiler driver will combine and reorder linker options,
12972 # but understands `-z linker_flag'.
12973 # Supported since Solaris 2.6 (maybe 2.5.1?)
12974 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12975 ;;
12976 esac
12977 link_all_deplibs_CXX=yes
12978
12979 output_verbose_link_cmd='func_echo_all'
12980
12981 # Archives containing C++ object files must be created using
12982 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12983 # necessary to make sure instantiated templates are included
12984 # in the archive.
12985 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12986 ;;
12987 gcx*)
12988 # Green Hills C++ Compiler
12989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12990
12991 # The C++ compiler must be used to create the archive.
12992 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12993 ;;
12994 *)
12995 # GNU C++ compiler with Solaris linker
12996 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12997 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12998 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12999 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13000 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13001 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13002
13003 # Commands to make compiler produce verbose output that lists
13004 # what "hidden" libraries, object files and flags are used when
13005 # linking a shared library.
13006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13007 else
13008 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13009 # platform.
13010 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13011 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13012 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13013
13014 # Commands to make compiler produce verbose output that lists
13015 # what "hidden" libraries, object files and flags are used when
13016 # linking a shared library.
13017 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13018 fi
13019
13020 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13021 case $host_os in
13022 solaris2.[0-5] | solaris2.[0-5].*) ;;
13023 *)
13024 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13025 ;;
13026 esac
13027 fi
13028 ;;
13029 esac
13030 ;;
13031
13032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13033 no_undefined_flag_CXX='${wl}-z,text'
13034 archive_cmds_need_lc_CXX=no
13035 hardcode_shlibpath_var_CXX=no
13036 runpath_var='LD_RUN_PATH'
13037
13038 case $cc_basename in
13039 CC*)
13040 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13041 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13042 ;;
13043 *)
13044 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13046 ;;
13047 esac
13048 ;;
13049
13050 sysv5* | sco3.2v5* | sco5v6*)
13051 # Note: We can NOT use -z defs as we might desire, because we do not
13052 # link with -lc, and that would cause any symbols used from libc to
13053 # always be unresolved, which means just about no library would
13054 # ever link correctly. If we're not using GNU ld we use -z text
13055 # though, which does catch some bad symbols but isn't as heavy-handed
13056 # as -z defs.
13057 no_undefined_flag_CXX='${wl}-z,text'
13058 allow_undefined_flag_CXX='${wl}-z,nodefs'
13059 archive_cmds_need_lc_CXX=no
13060 hardcode_shlibpath_var_CXX=no
13061 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13062 hardcode_libdir_separator_CXX=':'
13063 link_all_deplibs_CXX=yes
13064 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13065 runpath_var='LD_RUN_PATH'
13066
13067 case $cc_basename in
13068 CC*)
13069 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13072 '"$old_archive_cmds_CXX"
13073 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13074 '"$reload_cmds_CXX"
13075 ;;
13076 *)
13077 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 ;;
13080 esac
13081 ;;
13082
13083 tandem*)
13084 case $cc_basename in
13085 NCC*)
13086 # NonStop-UX NCC 3.20
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 *)
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13093 ;;
13094 esac
13095 ;;
13096
13097 vxworks*)
13098 # FIXME: insert proper C++ library support
13099 ld_shlibs_CXX=no
13100 ;;
13101
13102 *)
13103 # FIXME: insert proper C++ library support
13104 ld_shlibs_CXX=no
13105 ;;
13106 esac
13107
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13109 $as_echo "$ld_shlibs_CXX" >&6; }
13110 test "$ld_shlibs_CXX" = no && can_build_shared=no
13111
13112 GCC_CXX="$GXX"
13113 LD_CXX="$LD"
13114
13115 ## CAVEAT EMPTOR:
13116 ## There is no encapsulation within the following macros, do not change
13117 ## the running order or otherwise move them around unless you know exactly
13118 ## what you are doing...
13119 # Dependencies to place before and after the object being linked:
13120 predep_objects_CXX=
13121 postdep_objects_CXX=
13122 predeps_CXX=
13123 postdeps_CXX=
13124 compiler_lib_search_path_CXX=
13125
13126 cat > conftest.$ac_ext <<_LT_EOF
13127 class Foo
13128 {
13129 public:
13130 Foo (void) { a = 0; }
13131 private:
13132 int a;
13133 };
13134 _LT_EOF
13135
13136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13137 (eval $ac_compile) 2>&5
13138 ac_status=$?
13139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13140 test $ac_status = 0; }; then
13141 # Parse the compiler output and extract the necessary
13142 # objects, libraries and library flags.
13143
13144 # Sentinel used to keep track of whether or not we are before
13145 # the conftest object file.
13146 pre_test_object_deps_done=no
13147
13148 for p in `eval "$output_verbose_link_cmd"`; do
13149 case $p in
13150
13151 -L* | -R* | -l*)
13152 # Some compilers place space between "-{L,R}" and the path.
13153 # Remove the space.
13154 if test $p = "-L" ||
13155 test $p = "-R"; then
13156 prev=$p
13157 continue
13158 else
13159 prev=
13160 fi
13161
13162 if test "$pre_test_object_deps_done" = no; then
13163 case $p in
13164 -L* | -R*)
13165 # Internal compiler library paths should come after those
13166 # provided the user. The postdeps already come after the
13167 # user supplied libs so there is no need to process them.
13168 if test -z "$compiler_lib_search_path_CXX"; then
13169 compiler_lib_search_path_CXX="${prev}${p}"
13170 else
13171 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13172 fi
13173 ;;
13174 # The "-l" case would never come before the object being
13175 # linked, so don't bother handling this case.
13176 esac
13177 else
13178 if test -z "$postdeps_CXX"; then
13179 postdeps_CXX="${prev}${p}"
13180 else
13181 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13182 fi
13183 fi
13184 ;;
13185
13186 *.$objext)
13187 # This assumes that the test object file only shows up
13188 # once in the compiler output.
13189 if test "$p" = "conftest.$objext"; then
13190 pre_test_object_deps_done=yes
13191 continue
13192 fi
13193
13194 if test "$pre_test_object_deps_done" = no; then
13195 if test -z "$predep_objects_CXX"; then
13196 predep_objects_CXX="$p"
13197 else
13198 predep_objects_CXX="$predep_objects_CXX $p"
13199 fi
13200 else
13201 if test -z "$postdep_objects_CXX"; then
13202 postdep_objects_CXX="$p"
13203 else
13204 postdep_objects_CXX="$postdep_objects_CXX $p"
13205 fi
13206 fi
13207 ;;
13208
13209 *) ;; # Ignore the rest.
13210
13211 esac
13212 done
13213
13214 # Clean up.
13215 rm -f a.out a.exe
13216 else
13217 echo "libtool.m4: error: problem compiling CXX test program"
13218 fi
13219
13220 $RM -f confest.$objext
13221
13222 # PORTME: override above test on systems where it is broken
13223 case $host_os in
13224 interix[3-9]*)
13225 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13226 # hack all around it, let's just trust "g++" to DTRT.
13227 predep_objects_CXX=
13228 postdep_objects_CXX=
13229 postdeps_CXX=
13230 ;;
13231
13232 linux*)
13233 case `$CC -V 2>&1 | sed 5q` in
13234 *Sun\ C*)
13235 # Sun C++ 5.9
13236
13237 # The more standards-conforming stlport4 library is
13238 # incompatible with the Cstd library. Avoid specifying
13239 # it if it's in CXXFLAGS. Ignore libCrun as
13240 # -library=stlport4 depends on it.
13241 case " $CXX $CXXFLAGS " in
13242 *" -library=stlport4 "*)
13243 solaris_use_stlport4=yes
13244 ;;
13245 esac
13246
13247 if test "$solaris_use_stlport4" != yes; then
13248 postdeps_CXX='-library=Cstd -library=Crun'
13249 fi
13250 ;;
13251 esac
13252 ;;
13253
13254 solaris*)
13255 case $cc_basename in
13256 CC*)
13257 # The more standards-conforming stlport4 library is
13258 # incompatible with the Cstd library. Avoid specifying
13259 # it if it's in CXXFLAGS. Ignore libCrun as
13260 # -library=stlport4 depends on it.
13261 case " $CXX $CXXFLAGS " in
13262 *" -library=stlport4 "*)
13263 solaris_use_stlport4=yes
13264 ;;
13265 esac
13266
13267 # Adding this requires a known-good setup of shared libraries for
13268 # Sun compiler versions before 5.6, else PIC objects from an old
13269 # archive will be linked into the output, leading to subtle bugs.
13270 if test "$solaris_use_stlport4" != yes; then
13271 postdeps_CXX='-library=Cstd -library=Crun'
13272 fi
13273 ;;
13274 esac
13275 ;;
13276 esac
13277
13278
13279 case " $postdeps_CXX " in
13280 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13281 esac
13282 compiler_lib_search_dirs_CXX=
13283 if test -n "${compiler_lib_search_path_CXX}"; then
13284 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13285 fi
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317 lt_prog_compiler_wl_CXX=
13318 lt_prog_compiler_pic_CXX=
13319 lt_prog_compiler_static_CXX=
13320
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13323
13324 # C++ specific cases for pic, static, wl, etc.
13325 if test "$GXX" = yes; then
13326 lt_prog_compiler_wl_CXX='-Wl,'
13327 lt_prog_compiler_static_CXX='-static'
13328
13329 case $host_os in
13330 aix*)
13331 # All AIX code is PIC.
13332 if test "$host_cpu" = ia64; then
13333 # AIX 5 now supports IA64 processor
13334 lt_prog_compiler_static_CXX='-Bstatic'
13335 fi
13336 lt_prog_compiler_pic_CXX='-fPIC'
13337 ;;
13338
13339 amigaos*)
13340 case $host_cpu in
13341 powerpc)
13342 # see comment about AmigaOS4 .so support
13343 lt_prog_compiler_pic_CXX='-fPIC'
13344 ;;
13345 m68k)
13346 # FIXME: we need at least 68020 code to build shared libraries, but
13347 # adding the `-m68020' flag to GCC prevents building anything better,
13348 # like `-m68040'.
13349 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13350 ;;
13351 esac
13352 ;;
13353
13354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13355 # PIC is the default for these OSes.
13356 ;;
13357 mingw* | cygwin* | os2* | pw32* | cegcc*)
13358 # This hack is so that the source file can tell whether it is being
13359 # built for inclusion in a dll (and should export symbols for example).
13360 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13361 # (--disable-auto-import) libraries
13362 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13363 ;;
13364 darwin* | rhapsody*)
13365 # PIC is the default on this platform
13366 # Common symbols not allowed in MH_DYLIB files
13367 lt_prog_compiler_pic_CXX='-fno-common'
13368 ;;
13369 *djgpp*)
13370 # DJGPP does not support shared libraries at all
13371 lt_prog_compiler_pic_CXX=
13372 ;;
13373 haiku*)
13374 # PIC is the default for Haiku.
13375 # The "-static" flag exists, but is broken.
13376 lt_prog_compiler_static_CXX=
13377 ;;
13378 interix[3-9]*)
13379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13380 # Instead, we relocate shared libraries at runtime.
13381 ;;
13382 sysv4*MP*)
13383 if test -d /usr/nec; then
13384 lt_prog_compiler_pic_CXX=-Kconform_pic
13385 fi
13386 ;;
13387 hpux*)
13388 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13389 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13390 # sets the default TLS model and affects inlining.
13391 case $host_cpu in
13392 hppa*64*)
13393 ;;
13394 *)
13395 lt_prog_compiler_pic_CXX='-fPIC'
13396 ;;
13397 esac
13398 ;;
13399 *qnx* | *nto*)
13400 # QNX uses GNU C++, but need to define -shared option too, otherwise
13401 # it will coredump.
13402 lt_prog_compiler_pic_CXX='-fPIC -shared'
13403 ;;
13404 *)
13405 lt_prog_compiler_pic_CXX='-fPIC'
13406 ;;
13407 esac
13408 else
13409 case $host_os in
13410 aix[4-9]*)
13411 # All AIX code is PIC.
13412 if test "$host_cpu" = ia64; then
13413 # AIX 5 now supports IA64 processor
13414 lt_prog_compiler_static_CXX='-Bstatic'
13415 else
13416 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13417 fi
13418 ;;
13419 chorus*)
13420 case $cc_basename in
13421 cxch68*)
13422 # Green Hills C++ Compiler
13423 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13424 ;;
13425 esac
13426 ;;
13427 dgux*)
13428 case $cc_basename in
13429 ec++*)
13430 lt_prog_compiler_pic_CXX='-KPIC'
13431 ;;
13432 ghcx*)
13433 # Green Hills C++ Compiler
13434 lt_prog_compiler_pic_CXX='-pic'
13435 ;;
13436 *)
13437 ;;
13438 esac
13439 ;;
13440 freebsd* | dragonfly*)
13441 # FreeBSD uses GNU C++
13442 ;;
13443 hpux9* | hpux10* | hpux11*)
13444 case $cc_basename in
13445 CC*)
13446 lt_prog_compiler_wl_CXX='-Wl,'
13447 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13448 if test "$host_cpu" != ia64; then
13449 lt_prog_compiler_pic_CXX='+Z'
13450 fi
13451 ;;
13452 aCC*)
13453 lt_prog_compiler_wl_CXX='-Wl,'
13454 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13455 case $host_cpu in
13456 hppa*64*|ia64*)
13457 # +Z the default
13458 ;;
13459 *)
13460 lt_prog_compiler_pic_CXX='+Z'
13461 ;;
13462 esac
13463 ;;
13464 *)
13465 ;;
13466 esac
13467 ;;
13468 interix*)
13469 # This is c89, which is MS Visual C++ (no shared libs)
13470 # Anyone wants to do a port?
13471 ;;
13472 irix5* | irix6* | nonstopux*)
13473 case $cc_basename in
13474 CC*)
13475 lt_prog_compiler_wl_CXX='-Wl,'
13476 lt_prog_compiler_static_CXX='-non_shared'
13477 # CC pic flag -KPIC is the default.
13478 ;;
13479 *)
13480 ;;
13481 esac
13482 ;;
13483 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13484 case $cc_basename in
13485 KCC*)
13486 # KAI C++ Compiler
13487 lt_prog_compiler_wl_CXX='--backend -Wl,'
13488 lt_prog_compiler_pic_CXX='-fPIC'
13489 ;;
13490 ecpc* )
13491 # old Intel C++ for x86_64 which still supported -KPIC.
13492 lt_prog_compiler_wl_CXX='-Wl,'
13493 lt_prog_compiler_pic_CXX='-KPIC'
13494 lt_prog_compiler_static_CXX='-static'
13495 ;;
13496 icpc* )
13497 # Intel C++, used to be incompatible with GCC.
13498 # ICC 10 doesn't accept -KPIC any more.
13499 lt_prog_compiler_wl_CXX='-Wl,'
13500 lt_prog_compiler_pic_CXX='-fPIC'
13501 lt_prog_compiler_static_CXX='-static'
13502 ;;
13503 pgCC* | pgcpp*)
13504 # Portland Group C++ compiler
13505 lt_prog_compiler_wl_CXX='-Wl,'
13506 lt_prog_compiler_pic_CXX='-fpic'
13507 lt_prog_compiler_static_CXX='-Bstatic'
13508 ;;
13509 cxx*)
13510 # Compaq C++
13511 # Make sure the PIC flag is empty. It appears that all Alpha
13512 # Linux and Compaq Tru64 Unix objects are PIC.
13513 lt_prog_compiler_pic_CXX=
13514 lt_prog_compiler_static_CXX='-non_shared'
13515 ;;
13516 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13517 # IBM XL 8.0, 9.0 on PPC and BlueGene
13518 lt_prog_compiler_wl_CXX='-Wl,'
13519 lt_prog_compiler_pic_CXX='-qpic'
13520 lt_prog_compiler_static_CXX='-qstaticlink'
13521 ;;
13522 *)
13523 case `$CC -V 2>&1 | sed 5q` in
13524 *Sun\ C*)
13525 # Sun C++ 5.9
13526 lt_prog_compiler_pic_CXX='-KPIC'
13527 lt_prog_compiler_static_CXX='-Bstatic'
13528 lt_prog_compiler_wl_CXX='-Qoption ld '
13529 ;;
13530 esac
13531 ;;
13532 esac
13533 ;;
13534 lynxos*)
13535 ;;
13536 m88k*)
13537 ;;
13538 mvs*)
13539 case $cc_basename in
13540 cxx*)
13541 lt_prog_compiler_pic_CXX='-W c,exportall'
13542 ;;
13543 *)
13544 ;;
13545 esac
13546 ;;
13547 netbsd*)
13548 ;;
13549 *qnx* | *nto*)
13550 # QNX uses GNU C++, but need to define -shared option too, otherwise
13551 # it will coredump.
13552 lt_prog_compiler_pic_CXX='-fPIC -shared'
13553 ;;
13554 osf3* | osf4* | osf5*)
13555 case $cc_basename in
13556 KCC*)
13557 lt_prog_compiler_wl_CXX='--backend -Wl,'
13558 ;;
13559 RCC*)
13560 # Rational C++ 2.4.1
13561 lt_prog_compiler_pic_CXX='-pic'
13562 ;;
13563 cxx*)
13564 # Digital/Compaq C++
13565 lt_prog_compiler_wl_CXX='-Wl,'
13566 # Make sure the PIC flag is empty. It appears that all Alpha
13567 # Linux and Compaq Tru64 Unix objects are PIC.
13568 lt_prog_compiler_pic_CXX=
13569 lt_prog_compiler_static_CXX='-non_shared'
13570 ;;
13571 *)
13572 ;;
13573 esac
13574 ;;
13575 psos*)
13576 ;;
13577 solaris*)
13578 case $cc_basename in
13579 CC*)
13580 # Sun C++ 4.2, 5.x and Centerline C++
13581 lt_prog_compiler_pic_CXX='-KPIC'
13582 lt_prog_compiler_static_CXX='-Bstatic'
13583 lt_prog_compiler_wl_CXX='-Qoption ld '
13584 ;;
13585 gcx*)
13586 # Green Hills C++ Compiler
13587 lt_prog_compiler_pic_CXX='-PIC'
13588 ;;
13589 *)
13590 ;;
13591 esac
13592 ;;
13593 sunos4*)
13594 case $cc_basename in
13595 CC*)
13596 # Sun C++ 4.x
13597 lt_prog_compiler_pic_CXX='-pic'
13598 lt_prog_compiler_static_CXX='-Bstatic'
13599 ;;
13600 lcc*)
13601 # Lucid
13602 lt_prog_compiler_pic_CXX='-pic'
13603 ;;
13604 *)
13605 ;;
13606 esac
13607 ;;
13608 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13609 case $cc_basename in
13610 CC*)
13611 lt_prog_compiler_wl_CXX='-Wl,'
13612 lt_prog_compiler_pic_CXX='-KPIC'
13613 lt_prog_compiler_static_CXX='-Bstatic'
13614 ;;
13615 esac
13616 ;;
13617 tandem*)
13618 case $cc_basename in
13619 NCC*)
13620 # NonStop-UX NCC 3.20
13621 lt_prog_compiler_pic_CXX='-KPIC'
13622 ;;
13623 *)
13624 ;;
13625 esac
13626 ;;
13627 vxworks*)
13628 ;;
13629 *)
13630 lt_prog_compiler_can_build_shared_CXX=no
13631 ;;
13632 esac
13633 fi
13634
13635 case $host_os in
13636 # For platforms which do not support PIC, -DPIC is meaningless:
13637 *djgpp*)
13638 lt_prog_compiler_pic_CXX=
13639 ;;
13640 *)
13641 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13642 ;;
13643 esac
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13645 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13646
13647
13648
13649 #
13650 # Check to make sure the PIC flag actually works.
13651 #
13652 if test -n "$lt_prog_compiler_pic_CXX"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13654 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13655 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 lt_cv_prog_compiler_pic_works_CXX=no
13659 ac_outfile=conftest.$ac_objext
13660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13661 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13662 # Insert the option either (1) after the last *FLAGS variable, or
13663 # (2) before a word containing "conftest.", or (3) at the end.
13664 # Note that $ac_compile itself does not contain backslashes and begins
13665 # with a dollar sign (not a hyphen), so the echo should work correctly.
13666 # The option is referenced via a variable to avoid confusing sed.
13667 lt_compile=`echo "$ac_compile" | $SED \
13668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13670 -e 's:$: $lt_compiler_flag:'`
13671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13672 (eval "$lt_compile" 2>conftest.err)
13673 ac_status=$?
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 if (exit $ac_status) && test -s "$ac_outfile"; then
13677 # The compiler can only warn and ignore the option if not recognized
13678 # So say no if there are warnings other than the usual output.
13679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13681 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13682 lt_cv_prog_compiler_pic_works_CXX=yes
13683 fi
13684 fi
13685 $RM conftest*
13686
13687 fi
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13689 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13690
13691 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13692 case $lt_prog_compiler_pic_CXX in
13693 "" | " "*) ;;
13694 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13695 esac
13696 else
13697 lt_prog_compiler_pic_CXX=
13698 lt_prog_compiler_can_build_shared_CXX=no
13699 fi
13700
13701 fi
13702
13703
13704
13705 #
13706 # Check to make sure the static flag actually works.
13707 #
13708 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13710 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13711 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 lt_cv_prog_compiler_static_works_CXX=no
13715 save_LDFLAGS="$LDFLAGS"
13716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13719 # The linker can only warn and ignore the option if not recognized
13720 # So say no if there are warnings
13721 if test -s conftest.err; then
13722 # Append any errors to the config.log.
13723 cat conftest.err 1>&5
13724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13726 if diff conftest.exp conftest.er2 >/dev/null; then
13727 lt_cv_prog_compiler_static_works_CXX=yes
13728 fi
13729 else
13730 lt_cv_prog_compiler_static_works_CXX=yes
13731 fi
13732 fi
13733 $RM -r conftest*
13734 LDFLAGS="$save_LDFLAGS"
13735
13736 fi
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13738 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13739
13740 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13741 :
13742 else
13743 lt_prog_compiler_static_CXX=
13744 fi
13745
13746
13747
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13750 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13751 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 lt_cv_prog_compiler_c_o_CXX=no
13755 $RM -r conftest 2>/dev/null
13756 mkdir conftest
13757 cd conftest
13758 mkdir out
13759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13760
13761 lt_compiler_flag="-o out/conftest2.$ac_objext"
13762 # Insert the option either (1) after the last *FLAGS variable, or
13763 # (2) before a word containing "conftest.", or (3) at the end.
13764 # Note that $ac_compile itself does not contain backslashes and begins
13765 # with a dollar sign (not a hyphen), so the echo should work correctly.
13766 lt_compile=`echo "$ac_compile" | $SED \
13767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13769 -e 's:$: $lt_compiler_flag:'`
13770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13771 (eval "$lt_compile" 2>out/conftest.err)
13772 ac_status=$?
13773 cat out/conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13776 then
13777 # The compiler can only warn and ignore the option if not recognized
13778 # So say no if there are warnings
13779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13782 lt_cv_prog_compiler_c_o_CXX=yes
13783 fi
13784 fi
13785 chmod u+w . 2>&5
13786 $RM conftest*
13787 # SGI C++ compiler will create directory out/ii_files/ for
13788 # template instantiation
13789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13790 $RM out/* && rmdir out
13791 cd ..
13792 $RM -r conftest
13793 $RM conftest*
13794
13795 fi
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13797 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13798
13799
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13803 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 lt_cv_prog_compiler_c_o_CXX=no
13807 $RM -r conftest 2>/dev/null
13808 mkdir conftest
13809 cd conftest
13810 mkdir out
13811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13812
13813 lt_compiler_flag="-o out/conftest2.$ac_objext"
13814 # Insert the option either (1) after the last *FLAGS variable, or
13815 # (2) before a word containing "conftest.", or (3) at the end.
13816 # Note that $ac_compile itself does not contain backslashes and begins
13817 # with a dollar sign (not a hyphen), so the echo should work correctly.
13818 lt_compile=`echo "$ac_compile" | $SED \
13819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13821 -e 's:$: $lt_compiler_flag:'`
13822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13823 (eval "$lt_compile" 2>out/conftest.err)
13824 ac_status=$?
13825 cat out/conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13828 then
13829 # The compiler can only warn and ignore the option if not recognized
13830 # So say no if there are warnings
13831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13834 lt_cv_prog_compiler_c_o_CXX=yes
13835 fi
13836 fi
13837 chmod u+w . 2>&5
13838 $RM conftest*
13839 # SGI C++ compiler will create directory out/ii_files/ for
13840 # template instantiation
13841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13842 $RM out/* && rmdir out
13843 cd ..
13844 $RM -r conftest
13845 $RM conftest*
13846
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13849 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13850
13851
13852
13853
13854 hard_links="nottested"
13855 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13856 # do not overwrite the value of need_locks provided by the user
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13858 $as_echo_n "checking if we can lock with hard links... " >&6; }
13859 hard_links=yes
13860 $RM conftest*
13861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13862 touch conftest.a
13863 ln conftest.a conftest.b 2>&5 || hard_links=no
13864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13866 $as_echo "$hard_links" >&6; }
13867 if test "$hard_links" = no; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13870 need_locks=warn
13871 fi
13872 else
13873 need_locks=no
13874 fi
13875
13876
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13879 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13880
13881 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13882 case $host_os in
13883 aix[4-9]*)
13884 # If we're using GNU nm, then we don't want the "-C" option.
13885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13886 # Also, AIX nm treats weak defined symbols like other global defined
13887 # symbols, whereas GNU nm marks them as "W".
13888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13889 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13890 else
13891 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13892 fi
13893 ;;
13894 pw32*)
13895 export_symbols_cmds_CXX="$ltdll_cmds"
13896 ;;
13897 cygwin* | mingw* | cegcc*)
13898 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13899 ;;
13900 *)
13901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13902 ;;
13903 esac
13904 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13907 $as_echo "$ld_shlibs_CXX" >&6; }
13908 test "$ld_shlibs_CXX" = no && can_build_shared=no
13909
13910 with_gnu_ld_CXX=$with_gnu_ld
13911
13912
13913
13914
13915
13916
13917 #
13918 # Do we need to explicitly link libc?
13919 #
13920 case "x$archive_cmds_need_lc_CXX" in
13921 x|xyes)
13922 # Assume -lc should be added
13923 archive_cmds_need_lc_CXX=yes
13924
13925 if test "$enable_shared" = yes && test "$GCC" = yes; then
13926 case $archive_cmds_CXX in
13927 *'~'*)
13928 # FIXME: we may have to deal with multi-command sequences.
13929 ;;
13930 '$CC '*)
13931 # Test whether the compiler implicitly links with -lc since on some
13932 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13933 # to ld, don't add -lc before -lgcc.
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13935 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13936 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 $RM conftest*
13940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13941
13942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13943 (eval $ac_compile) 2>&5
13944 ac_status=$?
13945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13946 test $ac_status = 0; } 2>conftest.err; then
13947 soname=conftest
13948 lib=conftest
13949 libobjs=conftest.$ac_objext
13950 deplibs=
13951 wl=$lt_prog_compiler_wl_CXX
13952 pic_flag=$lt_prog_compiler_pic_CXX
13953 compiler_flags=-v
13954 linker_flags=-v
13955 verstring=
13956 output_objdir=.
13957 libname=conftest
13958 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13959 allow_undefined_flag_CXX=
13960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13961 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13962 ac_status=$?
13963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964 test $ac_status = 0; }
13965 then
13966 lt_cv_archive_cmds_need_lc_CXX=no
13967 else
13968 lt_cv_archive_cmds_need_lc_CXX=yes
13969 fi
13970 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13971 else
13972 cat conftest.err 1>&5
13973 fi
13974 $RM conftest*
13975
13976 fi
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13978 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13979 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13980 ;;
13981 esac
13982 fi
13983 ;;
13984 esac
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14050 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14051
14052 library_names_spec=
14053 libname_spec='lib$name'
14054 soname_spec=
14055 shrext_cmds=".so"
14056 postinstall_cmds=
14057 postuninstall_cmds=
14058 finish_cmds=
14059 finish_eval=
14060 shlibpath_var=
14061 shlibpath_overrides_runpath=unknown
14062 version_type=none
14063 dynamic_linker="$host_os ld.so"
14064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14065 need_lib_prefix=unknown
14066 hardcode_into_libs=no
14067
14068 # when you set need_version to no, make sure it does not cause -set_version
14069 # flags to be left without arguments
14070 need_version=unknown
14071
14072 case $host_os in
14073 aix3*)
14074 version_type=linux
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14076 shlibpath_var=LIBPATH
14077
14078 # AIX 3 has no versioning support, so we append a major version to the name.
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 ;;
14081
14082 aix[4-9]*)
14083 version_type=linux
14084 need_lib_prefix=no
14085 need_version=no
14086 hardcode_into_libs=yes
14087 if test "$host_cpu" = ia64; then
14088 # AIX 5 supports IA64
14089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14090 shlibpath_var=LD_LIBRARY_PATH
14091 else
14092 # With GCC up to 2.95.x, collect2 would create an import file
14093 # for dependence libraries. The import file would start with
14094 # the line `#! .'. This would cause the generated library to
14095 # depend on `.', always an invalid library. This was fixed in
14096 # development snapshots of GCC prior to 3.0.
14097 case $host_os in
14098 aix4 | aix4.[01] | aix4.[01].*)
14099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14100 echo ' yes '
14101 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14102 :
14103 else
14104 can_build_shared=no
14105 fi
14106 ;;
14107 esac
14108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14109 # soname into executable. Probably we can add versioning support to
14110 # collect2, so additional links can be useful in future.
14111 if test "$aix_use_runtimelinking" = yes; then
14112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14113 # instead of lib<name>.a to let people know that these are not
14114 # typical AIX shared libraries.
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 else
14117 # We preserve .a as extension for shared libraries through AIX4.2
14118 # and later when we are not doing run time linking.
14119 library_names_spec='${libname}${release}.a $libname.a'
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 fi
14122 shlibpath_var=LIBPATH
14123 fi
14124 ;;
14125
14126 amigaos*)
14127 case $host_cpu in
14128 powerpc)
14129 # Since July 2007 AmigaOS4 officially supports .so libraries.
14130 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 ;;
14133 m68k)
14134 library_names_spec='$libname.ixlibrary $libname.a'
14135 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14136 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'
14137 ;;
14138 esac
14139 ;;
14140
14141 beos*)
14142 library_names_spec='${libname}${shared_ext}'
14143 dynamic_linker="$host_os ld.so"
14144 shlibpath_var=LIBRARY_PATH
14145 ;;
14146
14147 bsdi[45]*)
14148 version_type=linux
14149 need_version=no
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 soname_spec='${libname}${release}${shared_ext}$major'
14152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14153 shlibpath_var=LD_LIBRARY_PATH
14154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14156 # the default ld.so.conf also contains /usr/contrib/lib and
14157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14158 # libtool to hard-code these into programs
14159 ;;
14160
14161 cygwin* | mingw* | pw32* | cegcc*)
14162 version_type=windows
14163 shrext_cmds=".dll"
14164 need_version=no
14165 need_lib_prefix=no
14166
14167 case $GCC,$host_os in
14168 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14169 library_names_spec='$libname.dll.a'
14170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14171 postinstall_cmds='base_file=`basename \${file}`~
14172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14173 dldir=$destdir/`dirname \$dlpath`~
14174 test -d \$dldir || mkdir -p \$dldir~
14175 $install_prog $dir/$dlname \$dldir/$dlname~
14176 chmod a+x \$dldir/$dlname~
14177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14179 fi'
14180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14181 dlpath=$dir/\$dldll~
14182 $RM \$dlpath'
14183 shlibpath_overrides_runpath=yes
14184
14185 case $host_os in
14186 cygwin*)
14187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14189
14190 ;;
14191 mingw* | cegcc*)
14192 # MinGW DLLs use traditional 'lib' prefix
14193 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14194 ;;
14195 pw32*)
14196 # pw32 DLLs use 'pw' prefix rather than 'lib'
14197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14198 ;;
14199 esac
14200 ;;
14201
14202 *)
14203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14204 ;;
14205 esac
14206 dynamic_linker='Win32 ld.exe'
14207 # FIXME: first we should search . and the directory the executable is in
14208 shlibpath_var=PATH
14209 ;;
14210
14211 darwin* | rhapsody*)
14212 dynamic_linker="$host_os dyld"
14213 version_type=darwin
14214 need_lib_prefix=no
14215 need_version=no
14216 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14217 soname_spec='${libname}${release}${major}$shared_ext'
14218 shlibpath_overrides_runpath=yes
14219 shlibpath_var=DYLD_LIBRARY_PATH
14220 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14221
14222 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14223 ;;
14224
14225 dgux*)
14226 version_type=linux
14227 need_lib_prefix=no
14228 need_version=no
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14230 soname_spec='${libname}${release}${shared_ext}$major'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 ;;
14233
14234 freebsd* | dragonfly*)
14235 # DragonFly does not have aout. When/if they implement a new
14236 # versioning mechanism, adjust this.
14237 if test -x /usr/bin/objformat; then
14238 objformat=`/usr/bin/objformat`
14239 else
14240 case $host_os in
14241 freebsd[23].*) objformat=aout ;;
14242 *) objformat=elf ;;
14243 esac
14244 fi
14245 version_type=freebsd-$objformat
14246 case $version_type in
14247 freebsd-elf*)
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14249 need_version=no
14250 need_lib_prefix=no
14251 ;;
14252 freebsd-*)
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14254 need_version=yes
14255 ;;
14256 esac
14257 shlibpath_var=LD_LIBRARY_PATH
14258 case $host_os in
14259 freebsd2.*)
14260 shlibpath_overrides_runpath=yes
14261 ;;
14262 freebsd3.[01]* | freebsdelf3.[01]*)
14263 shlibpath_overrides_runpath=yes
14264 hardcode_into_libs=yes
14265 ;;
14266 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14267 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14268 shlibpath_overrides_runpath=no
14269 hardcode_into_libs=yes
14270 ;;
14271 *) # from 4.6 on, and DragonFly
14272 shlibpath_overrides_runpath=yes
14273 hardcode_into_libs=yes
14274 ;;
14275 esac
14276 ;;
14277
14278 gnu*)
14279 version_type=linux
14280 need_lib_prefix=no
14281 need_version=no
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 hardcode_into_libs=yes
14286 ;;
14287
14288 haiku*)
14289 version_type=linux
14290 need_lib_prefix=no
14291 need_version=no
14292 dynamic_linker="$host_os runtime_loader"
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 shlibpath_var=LIBRARY_PATH
14296 shlibpath_overrides_runpath=yes
14297 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14298 hardcode_into_libs=yes
14299 ;;
14300
14301 hpux9* | hpux10* | hpux11*)
14302 # Give a soname corresponding to the major version so that dld.sl refuses to
14303 # link against other versions.
14304 version_type=sunos
14305 need_lib_prefix=no
14306 need_version=no
14307 case $host_cpu in
14308 ia64*)
14309 shrext_cmds='.so'
14310 hardcode_into_libs=yes
14311 dynamic_linker="$host_os dld.so"
14312 shlibpath_var=LD_LIBRARY_PATH
14313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14315 soname_spec='${libname}${release}${shared_ext}$major'
14316 if test "X$HPUX_IA64_MODE" = X32; then
14317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14318 else
14319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14320 fi
14321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14322 ;;
14323 hppa*64*)
14324 shrext_cmds='.sl'
14325 hardcode_into_libs=yes
14326 dynamic_linker="$host_os dld.sl"
14327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330 soname_spec='${libname}${release}${shared_ext}$major'
14331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14333 ;;
14334 *)
14335 shrext_cmds='.sl'
14336 dynamic_linker="$host_os dld.sl"
14337 shlibpath_var=SHLIB_PATH
14338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 soname_spec='${libname}${release}${shared_ext}$major'
14341 ;;
14342 esac
14343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14344 postinstall_cmds='chmod 555 $lib'
14345 # or fails outright, so override atomically:
14346 install_override_mode=555
14347 ;;
14348
14349 interix[3-9]*)
14350 version_type=linux
14351 need_lib_prefix=no
14352 need_version=no
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14354 soname_spec='${libname}${release}${shared_ext}$major'
14355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14356 shlibpath_var=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath=no
14358 hardcode_into_libs=yes
14359 ;;
14360
14361 irix5* | irix6* | nonstopux*)
14362 case $host_os in
14363 nonstopux*) version_type=nonstopux ;;
14364 *)
14365 if test "$lt_cv_prog_gnu_ld" = yes; then
14366 version_type=linux
14367 else
14368 version_type=irix
14369 fi ;;
14370 esac
14371 need_lib_prefix=no
14372 need_version=no
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14375 case $host_os in
14376 irix5* | nonstopux*)
14377 libsuff= shlibsuff=
14378 ;;
14379 *)
14380 case $LD in # libtool.m4 will add one of these switches to LD
14381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14382 libsuff= shlibsuff= libmagic=32-bit;;
14383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14384 libsuff=32 shlibsuff=N32 libmagic=N32;;
14385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14387 *) libsuff= shlibsuff= libmagic=never-match;;
14388 esac
14389 ;;
14390 esac
14391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14392 shlibpath_overrides_runpath=no
14393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14395 hardcode_into_libs=yes
14396 ;;
14397
14398 # No shared lib support for Linux oldld, aout, or coff.
14399 linux*oldld* | linux*aout* | linux*coff*)
14400 dynamic_linker=no
14401 ;;
14402
14403 # This must be Linux ELF.
14404
14405 # uclinux* changes (here and below) have been submitted to the libtool
14406 # project, but have not yet been accepted: they are GCC-local changes
14407 # for the time being. (See
14408 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14409 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14410 version_type=linux
14411 need_lib_prefix=no
14412 need_version=no
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14416 shlibpath_var=LD_LIBRARY_PATH
14417 shlibpath_overrides_runpath=no
14418
14419 # Some binutils ld are patched to set DT_RUNPATH
14420 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 lt_cv_shlibpath_overrides_runpath=no
14424 save_LDFLAGS=$LDFLAGS
14425 save_libdir=$libdir
14426 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14427 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430
14431 int
14432 main ()
14433 {
14434
14435 ;
14436 return 0;
14437 }
14438 _ACEOF
14439 if ac_fn_cxx_try_link "$LINENO"; then :
14440 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14441 lt_cv_shlibpath_overrides_runpath=yes
14442 fi
14443 fi
14444 rm -f core conftest.err conftest.$ac_objext \
14445 conftest$ac_exeext conftest.$ac_ext
14446 LDFLAGS=$save_LDFLAGS
14447 libdir=$save_libdir
14448
14449 fi
14450
14451 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14452
14453 # This implies no fast_install, which is unacceptable.
14454 # Some rework will be needed to allow for fast_install
14455 # before this can be enabled.
14456 hardcode_into_libs=yes
14457
14458 # Append ld.so.conf contents to the search path
14459 if test -f /etc/ld.so.conf; then
14460 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' ' '`
14461 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14462 fi
14463
14464 # We used to test for /lib/ld.so.1 and disable shared libraries on
14465 # powerpc, because MkLinux only supported shared libraries with the
14466 # GNU dynamic linker. Since this was broken with cross compilers,
14467 # most powerpc-linux boxes support dynamic linking these days and
14468 # people can always --disable-shared, the test was removed, and we
14469 # assume the GNU/Linux dynamic linker is in use.
14470 dynamic_linker='GNU/Linux ld.so'
14471 ;;
14472
14473 netbsd*)
14474 version_type=sunos
14475 need_lib_prefix=no
14476 need_version=no
14477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14480 dynamic_linker='NetBSD (a.out) ld.so'
14481 else
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14483 soname_spec='${libname}${release}${shared_ext}$major'
14484 dynamic_linker='NetBSD ld.elf_so'
14485 fi
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=yes
14488 hardcode_into_libs=yes
14489 ;;
14490
14491 newsos6)
14492 version_type=linux
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 shlibpath_overrides_runpath=yes
14496 ;;
14497
14498 *nto* | *qnx*)
14499 version_type=qnx
14500 need_lib_prefix=no
14501 need_version=no
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=no
14506 hardcode_into_libs=yes
14507 dynamic_linker='ldqnx.so'
14508 ;;
14509
14510 openbsd*)
14511 version_type=sunos
14512 sys_lib_dlsearch_path_spec="/usr/lib"
14513 need_lib_prefix=no
14514 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14515 case $host_os in
14516 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14517 *) need_version=no ;;
14518 esac
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14523 case $host_os in
14524 openbsd2.[89] | openbsd2.[89].*)
14525 shlibpath_overrides_runpath=no
14526 ;;
14527 *)
14528 shlibpath_overrides_runpath=yes
14529 ;;
14530 esac
14531 else
14532 shlibpath_overrides_runpath=yes
14533 fi
14534 ;;
14535
14536 os2*)
14537 libname_spec='$name'
14538 shrext_cmds=".dll"
14539 need_lib_prefix=no
14540 library_names_spec='$libname${shared_ext} $libname.a'
14541 dynamic_linker='OS/2 ld.exe'
14542 shlibpath_var=LIBPATH
14543 ;;
14544
14545 osf3* | osf4* | osf5*)
14546 version_type=osf
14547 need_lib_prefix=no
14548 need_version=no
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14554 ;;
14555
14556 rdos*)
14557 dynamic_linker=no
14558 ;;
14559
14560 solaris*)
14561 version_type=linux
14562 need_lib_prefix=no
14563 need_version=no
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 shlibpath_overrides_runpath=yes
14568 hardcode_into_libs=yes
14569 # ldd complains unless libraries are executable
14570 postinstall_cmds='chmod +x $lib'
14571 ;;
14572
14573 sunos4*)
14574 version_type=sunos
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 shlibpath_overrides_runpath=yes
14579 if test "$with_gnu_ld" = yes; then
14580 need_lib_prefix=no
14581 fi
14582 need_version=yes
14583 ;;
14584
14585 sysv4 | sysv4.3*)
14586 version_type=linux
14587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14588 soname_spec='${libname}${release}${shared_ext}$major'
14589 shlibpath_var=LD_LIBRARY_PATH
14590 case $host_vendor in
14591 sni)
14592 shlibpath_overrides_runpath=no
14593 need_lib_prefix=no
14594 runpath_var=LD_RUN_PATH
14595 ;;
14596 siemens)
14597 need_lib_prefix=no
14598 ;;
14599 motorola)
14600 need_lib_prefix=no
14601 need_version=no
14602 shlibpath_overrides_runpath=no
14603 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14604 ;;
14605 esac
14606 ;;
14607
14608 sysv4*MP*)
14609 if test -d /usr/nec ;then
14610 version_type=linux
14611 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14612 soname_spec='$libname${shared_ext}.$major'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 fi
14615 ;;
14616
14617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14618 version_type=freebsd-elf
14619 need_lib_prefix=no
14620 need_version=no
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=yes
14625 hardcode_into_libs=yes
14626 if test "$with_gnu_ld" = yes; then
14627 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14628 else
14629 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14630 case $host_os in
14631 sco3.2v5*)
14632 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14633 ;;
14634 esac
14635 fi
14636 sys_lib_dlsearch_path_spec='/usr/lib'
14637 ;;
14638
14639 tpf*)
14640 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14641 version_type=linux
14642 need_lib_prefix=no
14643 need_version=no
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=no
14647 hardcode_into_libs=yes
14648 ;;
14649
14650 uts4*)
14651 version_type=linux
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 ;;
14656
14657 *)
14658 dynamic_linker=no
14659 ;;
14660 esac
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14662 $as_echo "$dynamic_linker" >&6; }
14663 test "$dynamic_linker" = no && can_build_shared=no
14664
14665 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14666 if test "$GCC" = yes; then
14667 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14668 fi
14669
14670 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14671 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14672 fi
14673 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14674 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14675 fi
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14715 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14716 hardcode_action_CXX=
14717 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14718 test -n "$runpath_var_CXX" ||
14719 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14720
14721 # We can hardcode non-existent directories.
14722 if test "$hardcode_direct_CXX" != no &&
14723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14724 # have to relink, otherwise we might link with an installed library
14725 # when we should be linking with a yet-to-be-installed one
14726 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14727 test "$hardcode_minus_L_CXX" != no; then
14728 # Linking always hardcodes the temporary library directory.
14729 hardcode_action_CXX=relink
14730 else
14731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14732 hardcode_action_CXX=immediate
14733 fi
14734 else
14735 # We cannot hardcode anything, or else we can only hardcode existing
14736 # directories.
14737 hardcode_action_CXX=unsupported
14738 fi
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14740 $as_echo "$hardcode_action_CXX" >&6; }
14741
14742 if test "$hardcode_action_CXX" = relink ||
14743 test "$inherit_rpath_CXX" = yes; then
14744 # Fast installation is not supported
14745 enable_fast_install=no
14746 elif test "$shlibpath_overrides_runpath" = yes ||
14747 test "$enable_shared" = no; then
14748 # Fast installation is not necessary
14749 enable_fast_install=needless
14750 fi
14751
14752
14753
14754
14755
14756
14757
14758 fi # test -n "$compiler"
14759
14760 CC=$lt_save_CC
14761 LDCXX=$LD
14762 LD=$lt_save_LD
14763 GCC=$lt_save_GCC
14764 with_gnu_ld=$lt_save_with_gnu_ld
14765 lt_cv_path_LDCXX=$lt_cv_path_LD
14766 lt_cv_path_LD=$lt_save_path_LD
14767 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14768 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14769 fi # test "$_lt_caught_CXX_error" != yes
14770
14771 ac_ext=c
14772 ac_cpp='$CPP $CPPFLAGS'
14773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789 ac_config_commands="$ac_config_commands libtool"
14790
14791
14792
14793
14794 # Only expand once:
14795
14796
14797 # Forbid libtool to hardcode RPATH, because we want to be able to specify
14798 # library search directory using LD_LIBRARY_PATH
14799 hardcode_into_libs=no
14800
14801
14802
14803
14804
14805 if test $enable_shared = yes; then
14806 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14807 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14808 else
14809 link_offloadmic_host="-loffloadmic_host $LIBS"
14810 link_offloadmic_target="-loffloadmic_target $LIBS"
14811 fi
14812
14813
14814
14815 # Determine what GCC version number to use in filesystem paths.
14816
14817 get_gcc_base_ver="cat"
14818
14819 # Check whether --with-gcc-major-version-only was given.
14820 if test "${with_gcc_major_version_only+set}" = set; then :
14821 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14822 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14823 fi
14824
14825 fi
14826
14827
14828
14829
14830 # Must be last
14831 cat >confcache <<\_ACEOF
14832 # This file is a shell script that caches the results of configure
14833 # tests run on this system so they can be shared between configure
14834 # scripts and configure runs, see configure's option --config-cache.
14835 # It is not useful on other systems. If it contains results you don't
14836 # want to keep, you may remove or edit it.
14837 #
14838 # config.status only pays attention to the cache file if you give it
14839 # the --recheck option to rerun configure.
14840 #
14841 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14842 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14843 # following values.
14844
14845 _ACEOF
14846
14847 # The following way of writing the cache mishandles newlines in values,
14848 # but we know of no workaround that is simple, portable, and efficient.
14849 # So, we kill variables containing newlines.
14850 # Ultrix sh set writes to stderr and can't be redirected directly,
14851 # and sets the high bit in the cache file unless we assign to the vars.
14852 (
14853 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14854 eval ac_val=\$$ac_var
14855 case $ac_val in #(
14856 *${as_nl}*)
14857 case $ac_var in #(
14858 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14860 esac
14861 case $ac_var in #(
14862 _ | IFS | as_nl) ;; #(
14863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14864 *) { eval $ac_var=; unset $ac_var;} ;;
14865 esac ;;
14866 esac
14867 done
14868
14869 (set) 2>&1 |
14870 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14871 *${as_nl}ac_space=\ *)
14872 # `set' does not quote correctly, so add quotes: double-quote
14873 # substitution turns \\\\ into \\, and sed turns \\ into \.
14874 sed -n \
14875 "s/'/'\\\\''/g;
14876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14877 ;; #(
14878 *)
14879 # `set' quotes correctly as required by POSIX, so do not add quotes.
14880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14881 ;;
14882 esac |
14883 sort
14884 ) |
14885 sed '
14886 /^ac_cv_env_/b end
14887 t clear
14888 :clear
14889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14890 t end
14891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14892 :end' >>confcache
14893 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14894 if test -w "$cache_file"; then
14895 if test "x$cache_file" != "x/dev/null"; then
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14897 $as_echo "$as_me: updating cache $cache_file" >&6;}
14898 if test ! -f "$cache_file" || test -h "$cache_file"; then
14899 cat confcache >"$cache_file"
14900 else
14901 case $cache_file in #(
14902 */* | ?:*)
14903 mv -f confcache "$cache_file"$$ &&
14904 mv -f "$cache_file"$$ "$cache_file" ;; #(
14905 *)
14906 mv -f confcache "$cache_file" ;;
14907 esac
14908 fi
14909 fi
14910 else
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14912 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14913 fi
14914 fi
14915 rm -f confcache
14916
14917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14918 # Let make expand exec_prefix.
14919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14920
14921 # Transform confdefs.h into DEFS.
14922 # Protect against shell expansion while executing Makefile rules.
14923 # Protect against Makefile macro expansion.
14924 #
14925 # If the first sed substitution is executed (which looks for macros that
14926 # take arguments), then branch to the quote section. Otherwise,
14927 # look for a macro that doesn't take arguments.
14928 ac_script='
14929 :mline
14930 /\\$/{
14931 N
14932 s,\\\n,,
14933 b mline
14934 }
14935 t clear
14936 :clear
14937 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14938 t quote
14939 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14940 t quote
14941 b any
14942 :quote
14943 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14944 s/\[/\\&/g
14945 s/\]/\\&/g
14946 s/\$/$$/g
14947 H
14948 :any
14949 ${
14950 g
14951 s/^\n//
14952 s/\n/ /g
14953 p
14954 }
14955 '
14956 DEFS=`sed -n "$ac_script" confdefs.h`
14957
14958
14959 ac_libobjs=
14960 ac_ltlibobjs=
14961 U=
14962 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14963 # 1. Remove the extension, and $U if already installed.
14964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14965 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14967 # will be set to the directory where LIBOBJS objects are built.
14968 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14969 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14970 done
14971 LIBOBJS=$ac_libobjs
14972
14973 LTLIBOBJS=$ac_ltlibobjs
14974
14975
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14977 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14978 if test -n "$am_sleep_pid"; then
14979 # Hide warnings about reused PIDs.
14980 wait $am_sleep_pid 2>/dev/null
14981 fi
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14983 $as_echo "done" >&6; }
14984 if test -n "$EXEEXT"; then
14985 am__EXEEXT_TRUE=
14986 am__EXEEXT_FALSE='#'
14987 else
14988 am__EXEEXT_TRUE='#'
14989 am__EXEEXT_FALSE=
14990 fi
14991
14992 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14993 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995 fi
14996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14997 as_fn_error $? "conditional \"AMDEP\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999 fi
15000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15001 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15003 fi
15004 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15005 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007 fi
15008 if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
15009 as_fn_error $? "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15011 fi
15012
15013 : "${CONFIG_STATUS=./config.status}"
15014 ac_write_fail=0
15015 ac_clean_files_save=$ac_clean_files
15016 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15018 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15019 as_write_fail=0
15020 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15021 #! $SHELL
15022 # Generated by $as_me.
15023 # Run this file to recreate the current configuration.
15024 # Compiler output produced by configure, useful for debugging
15025 # configure, is in config.log if it exists.
15026
15027 debug=false
15028 ac_cs_recheck=false
15029 ac_cs_silent=false
15030
15031 SHELL=\${CONFIG_SHELL-$SHELL}
15032 export SHELL
15033 _ASEOF
15034 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15035 ## -------------------- ##
15036 ## M4sh Initialization. ##
15037 ## -------------------- ##
15038
15039 # Be more Bourne compatible
15040 DUALCASE=1; export DUALCASE # for MKS sh
15041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15042 emulate sh
15043 NULLCMD=:
15044 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15045 # is contrary to our usage. Disable this feature.
15046 alias -g '${1+"$@"}'='"$@"'
15047 setopt NO_GLOB_SUBST
15048 else
15049 case `(set -o) 2>/dev/null` in #(
15050 *posix*) :
15051 set -o posix ;; #(
15052 *) :
15053 ;;
15054 esac
15055 fi
15056
15057
15058 as_nl='
15059 '
15060 export as_nl
15061 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15062 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15063 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15065 # Prefer a ksh shell builtin over an external printf program on Solaris,
15066 # but without wasting forks for bash or zsh.
15067 if test -z "$BASH_VERSION$ZSH_VERSION" \
15068 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15069 as_echo='print -r --'
15070 as_echo_n='print -rn --'
15071 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15072 as_echo='printf %s\n'
15073 as_echo_n='printf %s'
15074 else
15075 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15076 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15077 as_echo_n='/usr/ucb/echo -n'
15078 else
15079 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15080 as_echo_n_body='eval
15081 arg=$1;
15082 case $arg in #(
15083 *"$as_nl"*)
15084 expr "X$arg" : "X\\(.*\\)$as_nl";
15085 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15086 esac;
15087 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15088 '
15089 export as_echo_n_body
15090 as_echo_n='sh -c $as_echo_n_body as_echo'
15091 fi
15092 export as_echo_body
15093 as_echo='sh -c $as_echo_body as_echo'
15094 fi
15095
15096 # The user is always right.
15097 if test "${PATH_SEPARATOR+set}" != set; then
15098 PATH_SEPARATOR=:
15099 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15100 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15101 PATH_SEPARATOR=';'
15102 }
15103 fi
15104
15105
15106 # IFS
15107 # We need space, tab and new line, in precisely that order. Quoting is
15108 # there to prevent editors from complaining about space-tab.
15109 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15110 # splitting by setting IFS to empty value.)
15111 IFS=" "" $as_nl"
15112
15113 # Find who we are. Look in the path if we contain no directory separator.
15114 as_myself=
15115 case $0 in #((
15116 *[\\/]* ) as_myself=$0 ;;
15117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118 for as_dir in $PATH
15119 do
15120 IFS=$as_save_IFS
15121 test -z "$as_dir" && as_dir=.
15122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15123 done
15124 IFS=$as_save_IFS
15125
15126 ;;
15127 esac
15128 # We did not find ourselves, most probably we were run as `sh COMMAND'
15129 # in which case we are not to be found in the path.
15130 if test "x$as_myself" = x; then
15131 as_myself=$0
15132 fi
15133 if test ! -f "$as_myself"; then
15134 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15135 exit 1
15136 fi
15137
15138 # Unset variables that we do not need and which cause bugs (e.g. in
15139 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15140 # suppresses any "Segmentation fault" message there. '((' could
15141 # trigger a bug in pdksh 5.2.14.
15142 for as_var in BASH_ENV ENV MAIL MAILPATH
15143 do eval test x\${$as_var+set} = xset \
15144 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15145 done
15146 PS1='$ '
15147 PS2='> '
15148 PS4='+ '
15149
15150 # NLS nuisances.
15151 LC_ALL=C
15152 export LC_ALL
15153 LANGUAGE=C
15154 export LANGUAGE
15155
15156 # CDPATH.
15157 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15158
15159
15160 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15161 # ----------------------------------------
15162 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15163 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15164 # script with STATUS, using 1 if that was 0.
15165 as_fn_error ()
15166 {
15167 as_status=$1; test $as_status -eq 0 && as_status=1
15168 if test "$4"; then
15169 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15170 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15171 fi
15172 $as_echo "$as_me: error: $2" >&2
15173 as_fn_exit $as_status
15174 } # as_fn_error
15175
15176
15177 # as_fn_set_status STATUS
15178 # -----------------------
15179 # Set $? to STATUS, without forking.
15180 as_fn_set_status ()
15181 {
15182 return $1
15183 } # as_fn_set_status
15184
15185 # as_fn_exit STATUS
15186 # -----------------
15187 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15188 as_fn_exit ()
15189 {
15190 set +e
15191 as_fn_set_status $1
15192 exit $1
15193 } # as_fn_exit
15194
15195 # as_fn_unset VAR
15196 # ---------------
15197 # Portably unset VAR.
15198 as_fn_unset ()
15199 {
15200 { eval $1=; unset $1;}
15201 }
15202 as_unset=as_fn_unset
15203 # as_fn_append VAR VALUE
15204 # ----------------------
15205 # Append the text in VALUE to the end of the definition contained in VAR. Take
15206 # advantage of any shell optimizations that allow amortized linear growth over
15207 # repeated appends, instead of the typical quadratic growth present in naive
15208 # implementations.
15209 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15210 eval 'as_fn_append ()
15211 {
15212 eval $1+=\$2
15213 }'
15214 else
15215 as_fn_append ()
15216 {
15217 eval $1=\$$1\$2
15218 }
15219 fi # as_fn_append
15220
15221 # as_fn_arith ARG...
15222 # ------------------
15223 # Perform arithmetic evaluation on the ARGs, and store the result in the
15224 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15225 # must be portable across $(()) and expr.
15226 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15227 eval 'as_fn_arith ()
15228 {
15229 as_val=$(( $* ))
15230 }'
15231 else
15232 as_fn_arith ()
15233 {
15234 as_val=`expr "$@" || test $? -eq 1`
15235 }
15236 fi # as_fn_arith
15237
15238
15239 if expr a : '\(a\)' >/dev/null 2>&1 &&
15240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15241 as_expr=expr
15242 else
15243 as_expr=false
15244 fi
15245
15246 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15247 as_basename=basename
15248 else
15249 as_basename=false
15250 fi
15251
15252 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15253 as_dirname=dirname
15254 else
15255 as_dirname=false
15256 fi
15257
15258 as_me=`$as_basename -- "$0" ||
15259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15260 X"$0" : 'X\(//\)$' \| \
15261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15262 $as_echo X/"$0" |
15263 sed '/^.*\/\([^/][^/]*\)\/*$/{
15264 s//\1/
15265 q
15266 }
15267 /^X\/\(\/\/\)$/{
15268 s//\1/
15269 q
15270 }
15271 /^X\/\(\/\).*/{
15272 s//\1/
15273 q
15274 }
15275 s/.*/./; q'`
15276
15277 # Avoid depending upon Character Ranges.
15278 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15279 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15280 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15281 as_cr_digits='0123456789'
15282 as_cr_alnum=$as_cr_Letters$as_cr_digits
15283
15284 ECHO_C= ECHO_N= ECHO_T=
15285 case `echo -n x` in #(((((
15286 -n*)
15287 case `echo 'xy\c'` in
15288 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15289 xy) ECHO_C='\c';;
15290 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15291 ECHO_T=' ';;
15292 esac;;
15293 *)
15294 ECHO_N='-n';;
15295 esac
15296
15297 rm -f conf$$ conf$$.exe conf$$.file
15298 if test -d conf$$.dir; then
15299 rm -f conf$$.dir/conf$$.file
15300 else
15301 rm -f conf$$.dir
15302 mkdir conf$$.dir 2>/dev/null
15303 fi
15304 if (echo >conf$$.file) 2>/dev/null; then
15305 if ln -s conf$$.file conf$$ 2>/dev/null; then
15306 as_ln_s='ln -s'
15307 # ... but there are two gotchas:
15308 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15309 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15310 # In both cases, we have to default to `cp -pR'.
15311 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15312 as_ln_s='cp -pR'
15313 elif ln conf$$.file conf$$ 2>/dev/null; then
15314 as_ln_s=ln
15315 else
15316 as_ln_s='cp -pR'
15317 fi
15318 else
15319 as_ln_s='cp -pR'
15320 fi
15321 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15322 rmdir conf$$.dir 2>/dev/null
15323
15324
15325 # as_fn_mkdir_p
15326 # -------------
15327 # Create "$as_dir" as a directory, including parents if necessary.
15328 as_fn_mkdir_p ()
15329 {
15330
15331 case $as_dir in #(
15332 -*) as_dir=./$as_dir;;
15333 esac
15334 test -d "$as_dir" || eval $as_mkdir_p || {
15335 as_dirs=
15336 while :; do
15337 case $as_dir in #(
15338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15339 *) as_qdir=$as_dir;;
15340 esac
15341 as_dirs="'$as_qdir' $as_dirs"
15342 as_dir=`$as_dirname -- "$as_dir" ||
15343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15344 X"$as_dir" : 'X\(//\)[^/]' \| \
15345 X"$as_dir" : 'X\(//\)$' \| \
15346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15347 $as_echo X"$as_dir" |
15348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15349 s//\1/
15350 q
15351 }
15352 /^X\(\/\/\)[^/].*/{
15353 s//\1/
15354 q
15355 }
15356 /^X\(\/\/\)$/{
15357 s//\1/
15358 q
15359 }
15360 /^X\(\/\).*/{
15361 s//\1/
15362 q
15363 }
15364 s/.*/./; q'`
15365 test -d "$as_dir" && break
15366 done
15367 test -z "$as_dirs" || eval "mkdir $as_dirs"
15368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15369
15370
15371 } # as_fn_mkdir_p
15372 if mkdir -p . 2>/dev/null; then
15373 as_mkdir_p='mkdir -p "$as_dir"'
15374 else
15375 test -d ./-p && rmdir ./-p
15376 as_mkdir_p=false
15377 fi
15378
15379
15380 # as_fn_executable_p FILE
15381 # -----------------------
15382 # Test if FILE is an executable regular file.
15383 as_fn_executable_p ()
15384 {
15385 test -f "$1" && test -x "$1"
15386 } # as_fn_executable_p
15387 as_test_x='test -x'
15388 as_executable_p=as_fn_executable_p
15389
15390 # Sed expression to map a string onto a valid CPP name.
15391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15392
15393 # Sed expression to map a string onto a valid variable name.
15394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15395
15396
15397 exec 6>&1
15398 ## ----------------------------------- ##
15399 ## Main body of $CONFIG_STATUS script. ##
15400 ## ----------------------------------- ##
15401 _ASEOF
15402 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15403
15404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15405 # Save the log message, to keep $0 and so on meaningful, and to
15406 # report actual input values of CONFIG_FILES etc. instead of their
15407 # values after options handling.
15408 ac_log="
15409 This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
15410 generated by GNU Autoconf 2.69. Invocation command line was
15411
15412 CONFIG_FILES = $CONFIG_FILES
15413 CONFIG_HEADERS = $CONFIG_HEADERS
15414 CONFIG_LINKS = $CONFIG_LINKS
15415 CONFIG_COMMANDS = $CONFIG_COMMANDS
15416 $ $0 $@
15417
15418 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15419 "
15420
15421 _ACEOF
15422
15423 case $ac_config_files in *"
15424 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15425 esac
15426
15427
15428
15429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15430 # Files that config.status was made for.
15431 config_files="$ac_config_files"
15432 config_commands="$ac_config_commands"
15433
15434 _ACEOF
15435
15436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15437 ac_cs_usage="\
15438 \`$as_me' instantiates files and other configuration actions
15439 from templates according to the current configuration. Unless the files
15440 and actions are specified as TAGs, all are instantiated by default.
15441
15442 Usage: $0 [OPTION]... [TAG]...
15443
15444 -h, --help print this help, then exit
15445 -V, --version print version number and configuration settings, then exit
15446 --config print configuration, then exit
15447 -q, --quiet, --silent
15448 do not print progress messages
15449 -d, --debug don't remove temporary files
15450 --recheck update $as_me by reconfiguring in the same conditions
15451 --file=FILE[:TEMPLATE]
15452 instantiate the configuration file FILE
15453
15454 Configuration files:
15455 $config_files
15456
15457 Configuration commands:
15458 $config_commands
15459
15460 Report bugs to the package provider."
15461
15462 _ACEOF
15463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15464 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15465 ac_cs_version="\\
15466 MIC Offload Runtime Library config.status 1.0
15467 configured by $0, generated by GNU Autoconf 2.69,
15468 with options \\"\$ac_cs_config\\"
15469
15470 Copyright (C) 2012 Free Software Foundation, Inc.
15471 This config.status script is free software; the Free Software Foundation
15472 gives unlimited permission to copy, distribute and modify it."
15473
15474 ac_pwd='$ac_pwd'
15475 srcdir='$srcdir'
15476 INSTALL='$INSTALL'
15477 MKDIR_P='$MKDIR_P'
15478 AWK='$AWK'
15479 test -n "\$AWK" || AWK=awk
15480 _ACEOF
15481
15482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15483 # The default lists apply if the user does not specify any file.
15484 ac_need_defaults=:
15485 while test $# != 0
15486 do
15487 case $1 in
15488 --*=?*)
15489 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15490 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15491 ac_shift=:
15492 ;;
15493 --*=)
15494 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15495 ac_optarg=
15496 ac_shift=:
15497 ;;
15498 *)
15499 ac_option=$1
15500 ac_optarg=$2
15501 ac_shift=shift
15502 ;;
15503 esac
15504
15505 case $ac_option in
15506 # Handling of the options.
15507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15508 ac_cs_recheck=: ;;
15509 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15510 $as_echo "$ac_cs_version"; exit ;;
15511 --config | --confi | --conf | --con | --co | --c )
15512 $as_echo "$ac_cs_config"; exit ;;
15513 --debug | --debu | --deb | --de | --d | -d )
15514 debug=: ;;
15515 --file | --fil | --fi | --f )
15516 $ac_shift
15517 case $ac_optarg in
15518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15519 '') as_fn_error $? "missing file argument" ;;
15520 esac
15521 as_fn_append CONFIG_FILES " '$ac_optarg'"
15522 ac_need_defaults=false;;
15523 --he | --h | --help | --hel | -h )
15524 $as_echo "$ac_cs_usage"; exit ;;
15525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15527 ac_cs_silent=: ;;
15528
15529 # This is an error.
15530 -*) as_fn_error $? "unrecognized option: \`$1'
15531 Try \`$0 --help' for more information." ;;
15532
15533 *) as_fn_append ac_config_targets " $1"
15534 ac_need_defaults=false ;;
15535
15536 esac
15537 shift
15538 done
15539
15540 ac_configure_extra_args=
15541
15542 if $ac_cs_silent; then
15543 exec 6>/dev/null
15544 ac_configure_extra_args="$ac_configure_extra_args --silent"
15545 fi
15546
15547 _ACEOF
15548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15549 if \$ac_cs_recheck; then
15550 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15551 shift
15552 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15553 CONFIG_SHELL='$SHELL'
15554 export CONFIG_SHELL
15555 exec "\$@"
15556 fi
15557
15558 _ACEOF
15559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560 exec 5>>config.log
15561 {
15562 echo
15563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15564 ## Running $as_me. ##
15565 _ASBOX
15566 $as_echo "$ac_log"
15567 } >&5
15568
15569 _ACEOF
15570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571 #
15572 # INIT-COMMANDS
15573 #
15574 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15575
15576 srcdir="$srcdir"
15577 host="$host"
15578 target="$target"
15579 with_multisubdir="$with_multisubdir"
15580 with_multisrctop="$with_multisrctop"
15581 with_target_subdir="$with_target_subdir"
15582 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15583 multi_basedir="$multi_basedir"
15584 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15585 CC="$CC"
15586 CXX="$CXX"
15587 GFORTRAN="$GFORTRAN"
15588 GDC="$GDC"
15589
15590
15591 # The HP-UX ksh and POSIX shell print the target directory to stdout
15592 # if CDPATH is set.
15593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15594
15595 sed_quote_subst='$sed_quote_subst'
15596 double_quote_subst='$double_quote_subst'
15597 delay_variable_subst='$delay_variable_subst'
15598 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15599 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15600 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15601 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15602 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15603 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15604 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15605 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15606 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15607 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15608 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15609 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15610 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15611 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15612 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15613 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15614 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15615 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15616 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15617 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15618 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15619 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15620 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15621 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15622 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15623 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15624 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15625 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15626 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15627 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15628 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15629 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15630 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15631 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15632 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15633 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15634 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15635 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15636 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15637 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15638 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15639 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15640 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15641 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15642 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15643 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15644 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15645 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15646 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"`'
15647 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15648 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15649 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15650 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15651 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15652 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15653 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15654 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15655 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15656 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15657 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15658 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15659 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15660 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15661 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15662 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15663 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15664 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15665 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15666 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15667 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15668 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15669 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15670 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15671 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15672 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15673 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15674 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15675 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15676 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15677 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15678 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15679 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15680 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15681 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15682 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15683 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15684 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15685 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15686 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15687 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15688 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15689 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15690 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15691 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15692 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15693 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15694 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15695 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15696 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15697 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15698 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15699 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15700 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15701 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15702 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15703 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15704 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15705 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15706 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15707 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15708 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15709 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15710 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15711 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15712 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15713 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15714 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15715 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15716 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15717 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15718 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15719 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15720 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15721 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15722 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15723 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15724 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15725 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15726 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15727 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15728 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15729 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15730 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15731 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15732 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15733 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15734 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15735 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15736 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15737 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15738 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15739 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15740 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15741 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15742 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15743 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15744 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15745 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15746 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15747 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15748 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15749 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15750 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15751 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15752 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15753 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15754 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15755 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15756 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15757 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15758 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15759 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15760 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15761 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15762 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15763 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15764 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15765 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15766 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15767 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15768 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15769 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15770 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15771 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15772 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15773
15774 LTCC='$LTCC'
15775 LTCFLAGS='$LTCFLAGS'
15776 compiler='$compiler_DEFAULT'
15777
15778 # A function that is used when there is no print builtin or printf.
15779 func_fallback_echo ()
15780 {
15781 eval 'cat <<_LTECHO_EOF
15782 \$1
15783 _LTECHO_EOF'
15784 }
15785
15786 # Quote evaled strings.
15787 for var in SHELL \
15788 ECHO \
15789 SED \
15790 GREP \
15791 EGREP \
15792 FGREP \
15793 LD \
15794 NM \
15795 LN_S \
15796 lt_SP2NL \
15797 lt_NL2SP \
15798 reload_flag \
15799 OBJDUMP \
15800 deplibs_check_method \
15801 file_magic_cmd \
15802 AR \
15803 AR_FLAGS \
15804 STRIP \
15805 RANLIB \
15806 CC \
15807 CFLAGS \
15808 compiler \
15809 lt_cv_sys_global_symbol_pipe \
15810 lt_cv_sys_global_symbol_to_cdecl \
15811 lt_cv_sys_global_symbol_to_c_name_address \
15812 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15813 lt_prog_compiler_no_builtin_flag \
15814 lt_prog_compiler_wl \
15815 lt_prog_compiler_pic \
15816 lt_prog_compiler_static \
15817 lt_cv_prog_compiler_c_o \
15818 need_locks \
15819 DSYMUTIL \
15820 NMEDIT \
15821 LIPO \
15822 OTOOL \
15823 OTOOL64 \
15824 shrext_cmds \
15825 export_dynamic_flag_spec \
15826 whole_archive_flag_spec \
15827 compiler_needs_object \
15828 with_gnu_ld \
15829 allow_undefined_flag \
15830 no_undefined_flag \
15831 hardcode_libdir_flag_spec \
15832 hardcode_libdir_flag_spec_ld \
15833 hardcode_libdir_separator \
15834 fix_srcfile_path \
15835 exclude_expsyms \
15836 include_expsyms \
15837 file_list_spec \
15838 variables_saved_for_relink \
15839 libname_spec \
15840 library_names_spec \
15841 soname_spec \
15842 install_override_mode \
15843 finish_eval \
15844 old_striplib \
15845 striplib \
15846 compiler_lib_search_dirs \
15847 predep_objects \
15848 postdep_objects \
15849 predeps \
15850 postdeps \
15851 compiler_lib_search_path \
15852 LD_CXX \
15853 reload_flag_CXX \
15854 compiler_CXX \
15855 lt_prog_compiler_no_builtin_flag_CXX \
15856 lt_prog_compiler_wl_CXX \
15857 lt_prog_compiler_pic_CXX \
15858 lt_prog_compiler_static_CXX \
15859 lt_cv_prog_compiler_c_o_CXX \
15860 export_dynamic_flag_spec_CXX \
15861 whole_archive_flag_spec_CXX \
15862 compiler_needs_object_CXX \
15863 with_gnu_ld_CXX \
15864 allow_undefined_flag_CXX \
15865 no_undefined_flag_CXX \
15866 hardcode_libdir_flag_spec_CXX \
15867 hardcode_libdir_flag_spec_ld_CXX \
15868 hardcode_libdir_separator_CXX \
15869 fix_srcfile_path_CXX \
15870 exclude_expsyms_CXX \
15871 include_expsyms_CXX \
15872 file_list_spec_CXX \
15873 compiler_lib_search_dirs_CXX \
15874 predep_objects_CXX \
15875 postdep_objects_CXX \
15876 predeps_CXX \
15877 postdeps_CXX \
15878 compiler_lib_search_path_CXX; do
15879 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15880 *[\\\\\\\`\\"\\\$]*)
15881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15882 ;;
15883 *)
15884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15885 ;;
15886 esac
15887 done
15888
15889 # Double-quote double-evaled strings.
15890 for var in reload_cmds \
15891 old_postinstall_cmds \
15892 old_postuninstall_cmds \
15893 old_archive_cmds \
15894 extract_expsyms_cmds \
15895 old_archive_from_new_cmds \
15896 old_archive_from_expsyms_cmds \
15897 archive_cmds \
15898 archive_expsym_cmds \
15899 module_cmds \
15900 module_expsym_cmds \
15901 export_symbols_cmds \
15902 prelink_cmds \
15903 postinstall_cmds \
15904 postuninstall_cmds \
15905 finish_cmds \
15906 sys_lib_search_path_spec \
15907 sys_lib_dlsearch_path_spec \
15908 reload_cmds_CXX \
15909 old_archive_cmds_CXX \
15910 old_archive_from_new_cmds_CXX \
15911 old_archive_from_expsyms_cmds_CXX \
15912 archive_cmds_CXX \
15913 archive_expsym_cmds_CXX \
15914 module_cmds_CXX \
15915 module_expsym_cmds_CXX \
15916 export_symbols_cmds_CXX \
15917 prelink_cmds_CXX; do
15918 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15919 *[\\\\\\\`\\"\\\$]*)
15920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15921 ;;
15922 *)
15923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15924 ;;
15925 esac
15926 done
15927
15928 ac_aux_dir='$ac_aux_dir'
15929 xsi_shell='$xsi_shell'
15930 lt_shell_append='$lt_shell_append'
15931
15932 # See if we are running on zsh, and set the options which allow our
15933 # commands through without removal of \ escapes INIT.
15934 if test -n "\${ZSH_VERSION+set}" ; then
15935 setopt NO_GLOB_SUBST
15936 fi
15937
15938
15939 PACKAGE='$PACKAGE'
15940 VERSION='$VERSION'
15941 TIMESTAMP='$TIMESTAMP'
15942 RM='$RM'
15943 ofile='$ofile'
15944
15945
15946
15947
15948
15949
15950 _ACEOF
15951
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953
15954 # Handling of arguments.
15955 for ac_config_target in $ac_config_targets
15956 do
15957 case $ac_config_target in
15958 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15959 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15960 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15961 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15962 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15963 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15964
15965 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15966 esac
15967 done
15968
15969
15970 # If the user did not use the arguments to specify the items to instantiate,
15971 # then the envvar interface is used. Set only those that are not.
15972 # We use the long form for the default assignment because of an extremely
15973 # bizarre bug on SunOS 4.1.3.
15974 if $ac_need_defaults; then
15975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15976 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15977 fi
15978
15979 # Have a temporary directory for convenience. Make it in the build tree
15980 # simply because there is no reason against having it here, and in addition,
15981 # creating and moving files from /tmp can sometimes cause problems.
15982 # Hook for its removal unless debugging.
15983 # Note that there is a small window in which the directory will not be cleaned:
15984 # after its creation but before its name has been assigned to `$tmp'.
15985 $debug ||
15986 {
15987 tmp= ac_tmp=
15988 trap 'exit_status=$?
15989 : "${ac_tmp:=$tmp}"
15990 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15991 ' 0
15992 trap 'as_fn_exit 1' 1 2 13 15
15993 }
15994 # Create a (secure) tmp directory for tmp files.
15995
15996 {
15997 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15998 test -d "$tmp"
15999 } ||
16000 {
16001 tmp=./conf$$-$RANDOM
16002 (umask 077 && mkdir "$tmp")
16003 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16004 ac_tmp=$tmp
16005
16006 # Set up the scripts for CONFIG_FILES section.
16007 # No need to generate them if there are no CONFIG_FILES.
16008 # This happens for instance with `./config.status config.h'.
16009 if test -n "$CONFIG_FILES"; then
16010
16011
16012 ac_cr=`echo X | tr X '\015'`
16013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16014 # But we know of no other shell where ac_cr would be empty at this
16015 # point, so we can use a bashism as a fallback.
16016 if test "x$ac_cr" = x; then
16017 eval ac_cr=\$\'\\r\'
16018 fi
16019 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16021 ac_cs_awk_cr='\\r'
16022 else
16023 ac_cs_awk_cr=$ac_cr
16024 fi
16025
16026 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16027 _ACEOF
16028
16029
16030 {
16031 echo "cat >conf$$subs.awk <<_ACEOF" &&
16032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16033 echo "_ACEOF"
16034 } >conf$$subs.sh ||
16035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16036 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16037 ac_delim='%!_!# '
16038 for ac_last_try in false false false false false :; do
16039 . ./conf$$subs.sh ||
16040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16041
16042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16043 if test $ac_delim_n = $ac_delim_num; then
16044 break
16045 elif $ac_last_try; then
16046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16047 else
16048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16049 fi
16050 done
16051 rm -f conf$$subs.sh
16052
16053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16054 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16055 _ACEOF
16056 sed -n '
16057 h
16058 s/^/S["/; s/!.*/"]=/
16059 p
16060 g
16061 s/^[^!]*!//
16062 :repl
16063 t repl
16064 s/'"$ac_delim"'$//
16065 t delim
16066 :nl
16067 h
16068 s/\(.\{148\}\)..*/\1/
16069 t more1
16070 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16071 p
16072 n
16073 b repl
16074 :more1
16075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16076 p
16077 g
16078 s/.\{148\}//
16079 t nl
16080 :delim
16081 h
16082 s/\(.\{148\}\)..*/\1/
16083 t more2
16084 s/["\\]/\\&/g; s/^/"/; s/$/"/
16085 p
16086 b
16087 :more2
16088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16089 p
16090 g
16091 s/.\{148\}//
16092 t delim
16093 ' <conf$$subs.awk | sed '
16094 /^[^""]/{
16095 N
16096 s/\n//
16097 }
16098 ' >>$CONFIG_STATUS || ac_write_fail=1
16099 rm -f conf$$subs.awk
16100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101 _ACAWK
16102 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16103 for (key in S) S_is_set[key] = 1
16104 FS = "\a"
16105
16106 }
16107 {
16108 line = $ 0
16109 nfields = split(line, field, "@")
16110 substed = 0
16111 len = length(field[1])
16112 for (i = 2; i < nfields; i++) {
16113 key = field[i]
16114 keylen = length(key)
16115 if (S_is_set[key]) {
16116 value = S[key]
16117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16118 len += length(value) + length(field[++i])
16119 substed = 1
16120 } else
16121 len += 1 + keylen
16122 }
16123
16124 print line
16125 }
16126
16127 _ACAWK
16128 _ACEOF
16129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16130 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16131 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16132 else
16133 cat
16134 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16135 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16136 _ACEOF
16137
16138 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16139 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16140 # trailing colons and then remove the whole line if VPATH becomes empty
16141 # (actually we leave an empty line to preserve line numbers).
16142 if test "x$srcdir" = x.; then
16143 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16144 h
16145 s///
16146 s/^/:/
16147 s/[ ]*$/:/
16148 s/:\$(srcdir):/:/g
16149 s/:\${srcdir}:/:/g
16150 s/:@srcdir@:/:/g
16151 s/^:*//
16152 s/:*$//
16153 x
16154 s/\(=[ ]*\).*/\1/
16155 G
16156 s/\n//
16157 s/^[^=]*=[ ]*$//
16158 }'
16159 fi
16160
16161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16162 fi # test -n "$CONFIG_FILES"
16163
16164
16165 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16166 shift
16167 for ac_tag
16168 do
16169 case $ac_tag in
16170 :[FHLC]) ac_mode=$ac_tag; continue;;
16171 esac
16172 case $ac_mode$ac_tag in
16173 :[FHL]*:*);;
16174 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16175 :[FH]-) ac_tag=-:-;;
16176 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16177 esac
16178 ac_save_IFS=$IFS
16179 IFS=:
16180 set x $ac_tag
16181 IFS=$ac_save_IFS
16182 shift
16183 ac_file=$1
16184 shift
16185
16186 case $ac_mode in
16187 :L) ac_source=$1;;
16188 :[FH])
16189 ac_file_inputs=
16190 for ac_f
16191 do
16192 case $ac_f in
16193 -) ac_f="$ac_tmp/stdin";;
16194 *) # Look for the file first in the build tree, then in the source tree
16195 # (if the path is not absolute). The absolute path cannot be DOS-style,
16196 # because $ac_f cannot contain `:'.
16197 test -f "$ac_f" ||
16198 case $ac_f in
16199 [\\/$]*) false;;
16200 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16201 esac ||
16202 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16203 esac
16204 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16205 as_fn_append ac_file_inputs " '$ac_f'"
16206 done
16207
16208 # Let's still pretend it is `configure' which instantiates (i.e., don't
16209 # use $as_me), people would be surprised to read:
16210 # /* config.h. Generated by config.status. */
16211 configure_input='Generated from '`
16212 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16213 `' by configure.'
16214 if test x"$ac_file" != x-; then
16215 configure_input="$ac_file. $configure_input"
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16217 $as_echo "$as_me: creating $ac_file" >&6;}
16218 fi
16219 # Neutralize special characters interpreted by sed in replacement strings.
16220 case $configure_input in #(
16221 *\&* | *\|* | *\\* )
16222 ac_sed_conf_input=`$as_echo "$configure_input" |
16223 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16224 *) ac_sed_conf_input=$configure_input;;
16225 esac
16226
16227 case $ac_tag in
16228 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16230 esac
16231 ;;
16232 esac
16233
16234 ac_dir=`$as_dirname -- "$ac_file" ||
16235 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16236 X"$ac_file" : 'X\(//\)[^/]' \| \
16237 X"$ac_file" : 'X\(//\)$' \| \
16238 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16239 $as_echo X"$ac_file" |
16240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16241 s//\1/
16242 q
16243 }
16244 /^X\(\/\/\)[^/].*/{
16245 s//\1/
16246 q
16247 }
16248 /^X\(\/\/\)$/{
16249 s//\1/
16250 q
16251 }
16252 /^X\(\/\).*/{
16253 s//\1/
16254 q
16255 }
16256 s/.*/./; q'`
16257 as_dir="$ac_dir"; as_fn_mkdir_p
16258 ac_builddir=.
16259
16260 case "$ac_dir" in
16261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16262 *)
16263 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16264 # A ".." for each directory in $ac_dir_suffix.
16265 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16266 case $ac_top_builddir_sub in
16267 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16268 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16269 esac ;;
16270 esac
16271 ac_abs_top_builddir=$ac_pwd
16272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16273 # for backward compatibility:
16274 ac_top_builddir=$ac_top_build_prefix
16275
16276 case $srcdir in
16277 .) # We are building in place.
16278 ac_srcdir=.
16279 ac_top_srcdir=$ac_top_builddir_sub
16280 ac_abs_top_srcdir=$ac_pwd ;;
16281 [\\/]* | ?:[\\/]* ) # Absolute name.
16282 ac_srcdir=$srcdir$ac_dir_suffix;
16283 ac_top_srcdir=$srcdir
16284 ac_abs_top_srcdir=$srcdir ;;
16285 *) # Relative name.
16286 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16287 ac_top_srcdir=$ac_top_build_prefix$srcdir
16288 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16289 esac
16290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16291
16292
16293 case $ac_mode in
16294 :F)
16295 #
16296 # CONFIG_FILE
16297 #
16298
16299 case $INSTALL in
16300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16301 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16302 esac
16303 ac_MKDIR_P=$MKDIR_P
16304 case $MKDIR_P in
16305 [\\/$]* | ?:[\\/]* ) ;;
16306 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16307 esac
16308 _ACEOF
16309
16310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16311 # If the template does not know about datarootdir, expand it.
16312 # FIXME: This hack should be removed a few years after 2.60.
16313 ac_datarootdir_hack=; ac_datarootdir_seen=
16314 ac_sed_dataroot='
16315 /datarootdir/ {
16316 p
16317 q
16318 }
16319 /@datadir@/p
16320 /@docdir@/p
16321 /@infodir@/p
16322 /@localedir@/p
16323 /@mandir@/p'
16324 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16325 *datarootdir*) ac_datarootdir_seen=yes;;
16326 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16328 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16329 _ACEOF
16330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331 ac_datarootdir_hack='
16332 s&@datadir@&$datadir&g
16333 s&@docdir@&$docdir&g
16334 s&@infodir@&$infodir&g
16335 s&@localedir@&$localedir&g
16336 s&@mandir@&$mandir&g
16337 s&\\\${datarootdir}&$datarootdir&g' ;;
16338 esac
16339 _ACEOF
16340
16341 # Neutralize VPATH when `$srcdir' = `.'.
16342 # Shell code in configure.ac might set extrasub.
16343 # FIXME: do we really want to maintain this feature?
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 ac_sed_extra="$ac_vpsub
16346 $extrasub
16347 _ACEOF
16348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16349 :t
16350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16351 s|@configure_input@|$ac_sed_conf_input|;t t
16352 s&@top_builddir@&$ac_top_builddir_sub&;t t
16353 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16354 s&@srcdir@&$ac_srcdir&;t t
16355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16356 s&@top_srcdir@&$ac_top_srcdir&;t t
16357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16358 s&@builddir@&$ac_builddir&;t t
16359 s&@abs_builddir@&$ac_abs_builddir&;t t
16360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16361 s&@INSTALL@&$ac_INSTALL&;t t
16362 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16363 $ac_datarootdir_hack
16364 "
16365 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16366 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16367
16368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16369 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16371 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16373 which seems to be undefined. Please make sure it is defined" >&5
16374 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16375 which seems to be undefined. Please make sure it is defined" >&2;}
16376
16377 rm -f "$ac_tmp/stdin"
16378 case $ac_file in
16379 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16380 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16381 esac \
16382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16383 ;;
16384
16385
16386 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16387 $as_echo "$as_me: executing $ac_file commands" >&6;}
16388 ;;
16389 esac
16390
16391
16392 case $ac_file$ac_mode in
16393 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16394 # Older Autoconf quotes --file arguments for eval, but not when files
16395 # are listed without --file. Let's play safe and only enable the eval
16396 # if we detect the quoting.
16397 case $CONFIG_FILES in
16398 *\'*) eval set x "$CONFIG_FILES" ;;
16399 *) set x $CONFIG_FILES ;;
16400 esac
16401 shift
16402 for mf
16403 do
16404 # Strip MF so we end up with the name of the file.
16405 mf=`echo "$mf" | sed -e 's/:.*$//'`
16406 # Check whether this is an Automake generated Makefile or not.
16407 # We used to match only the files named 'Makefile.in', but
16408 # some people rename them; so instead we look at the file content.
16409 # Grep'ing the first line is not enough: some people post-process
16410 # each Makefile.in and add a new line on top of each file to say so.
16411 # Grep'ing the whole file is not good either: AIX grep has a line
16412 # limit of 2048, but all sed's we know have understand at least 4000.
16413 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16414 dirpart=`$as_dirname -- "$mf" ||
16415 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16416 X"$mf" : 'X\(//\)[^/]' \| \
16417 X"$mf" : 'X\(//\)$' \| \
16418 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16419 $as_echo X"$mf" |
16420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16421 s//\1/
16422 q
16423 }
16424 /^X\(\/\/\)[^/].*/{
16425 s//\1/
16426 q
16427 }
16428 /^X\(\/\/\)$/{
16429 s//\1/
16430 q
16431 }
16432 /^X\(\/\).*/{
16433 s//\1/
16434 q
16435 }
16436 s/.*/./; q'`
16437 else
16438 continue
16439 fi
16440 # Extract the definition of DEPDIR, am__include, and am__quote
16441 # from the Makefile without running 'make'.
16442 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16443 test -z "$DEPDIR" && continue
16444 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16445 test -z "$am__include" && continue
16446 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16447 # Find all dependency output files, they are included files with
16448 # $(DEPDIR) in their names. We invoke sed twice because it is the
16449 # simplest approach to changing $(DEPDIR) to its actual value in the
16450 # expansion.
16451 for file in `sed -n "
16452 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16453 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16454 # Make sure the directory exists.
16455 test -f "$dirpart/$file" && continue
16456 fdir=`$as_dirname -- "$file" ||
16457 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16458 X"$file" : 'X\(//\)[^/]' \| \
16459 X"$file" : 'X\(//\)$' \| \
16460 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16461 $as_echo X"$file" |
16462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16463 s//\1/
16464 q
16465 }
16466 /^X\(\/\/\)[^/].*/{
16467 s//\1/
16468 q
16469 }
16470 /^X\(\/\/\)$/{
16471 s//\1/
16472 q
16473 }
16474 /^X\(\/\).*/{
16475 s//\1/
16476 q
16477 }
16478 s/.*/./; q'`
16479 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16480 # echo "creating $dirpart/$file"
16481 echo '# dummy' > "$dirpart/$file"
16482 done
16483 done
16484 }
16485 ;;
16486 "default-1":C)
16487 # Only add multilib support code if we just rebuilt the top-level
16488 # Makefile.
16489 case " $CONFIG_FILES " in
16490 *" Makefile "*)
16491 ac_file=Makefile . ${multi_basedir}/config-ml.in
16492 ;;
16493 esac ;;
16494 "libtool":C)
16495
16496 # See if we are running on zsh, and set the options which allow our
16497 # commands through without removal of \ escapes.
16498 if test -n "${ZSH_VERSION+set}" ; then
16499 setopt NO_GLOB_SUBST
16500 fi
16501
16502 cfgfile="${ofile}T"
16503 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16504 $RM "$cfgfile"
16505
16506 cat <<_LT_EOF >> "$cfgfile"
16507 #! $SHELL
16508
16509 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16510 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16512 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16513 #
16514 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16515 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16516 # Written by Gordon Matzigkeit, 1996
16517 #
16518 # This file is part of GNU Libtool.
16519 #
16520 # GNU Libtool is free software; you can redistribute it and/or
16521 # modify it under the terms of the GNU General Public License as
16522 # published by the Free Software Foundation; either version 2 of
16523 # the License, or (at your option) any later version.
16524 #
16525 # As a special exception to the GNU General Public License,
16526 # if you distribute this file as part of a program or library that
16527 # is built using GNU Libtool, you may include this file under the
16528 # same distribution terms that you use for the rest of that program.
16529 #
16530 # GNU Libtool is distributed in the hope that it will be useful,
16531 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16532 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16533 # GNU General Public License for more details.
16534 #
16535 # You should have received a copy of the GNU General Public License
16536 # along with GNU Libtool; see the file COPYING. If not, a copy
16537 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16538 # obtained by writing to the Free Software Foundation, Inc.,
16539 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16540
16541
16542 # The names of the tagged configurations supported by this script.
16543 available_tags="CXX "
16544
16545 # ### BEGIN LIBTOOL CONFIG
16546
16547 # Which release of libtool.m4 was used?
16548 macro_version=$macro_version
16549 macro_revision=$macro_revision
16550
16551 # Whether or not to build shared libraries.
16552 build_libtool_libs=$enable_shared
16553
16554 # Whether or not to build static libraries.
16555 build_old_libs=$enable_static
16556
16557 # What type of objects to build.
16558 pic_mode=$pic_mode
16559
16560 # Whether or not to optimize for fast installation.
16561 fast_install=$enable_fast_install
16562
16563 # Shell to use when invoking shell scripts.
16564 SHELL=$lt_SHELL
16565
16566 # An echo program that protects backslashes.
16567 ECHO=$lt_ECHO
16568
16569 # The host system.
16570 host_alias=$host_alias
16571 host=$host
16572 host_os=$host_os
16573
16574 # The build system.
16575 build_alias=$build_alias
16576 build=$build
16577 build_os=$build_os
16578
16579 # A sed program that does not truncate output.
16580 SED=$lt_SED
16581
16582 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16583 Xsed="\$SED -e 1s/^X//"
16584
16585 # A grep program that handles long lines.
16586 GREP=$lt_GREP
16587
16588 # An ERE matcher.
16589 EGREP=$lt_EGREP
16590
16591 # A literal string matcher.
16592 FGREP=$lt_FGREP
16593
16594 # A BSD- or MS-compatible name lister.
16595 NM=$lt_NM
16596
16597 # Whether we need soft or hard links.
16598 LN_S=$lt_LN_S
16599
16600 # What is the maximum length of a command?
16601 max_cmd_len=$max_cmd_len
16602
16603 # Object file suffix (normally "o").
16604 objext=$ac_objext
16605
16606 # Executable file suffix (normally "").
16607 exeext=$exeext
16608
16609 # whether the shell understands "unset".
16610 lt_unset=$lt_unset
16611
16612 # turn spaces into newlines.
16613 SP2NL=$lt_lt_SP2NL
16614
16615 # turn newlines into spaces.
16616 NL2SP=$lt_lt_NL2SP
16617
16618 # An object symbol dumper.
16619 OBJDUMP=$lt_OBJDUMP
16620
16621 # Method to check whether dependent libraries are shared objects.
16622 deplibs_check_method=$lt_deplibs_check_method
16623
16624 # Command to use when deplibs_check_method == "file_magic".
16625 file_magic_cmd=$lt_file_magic_cmd
16626
16627 # The archiver.
16628 AR=$lt_AR
16629 AR_FLAGS=$lt_AR_FLAGS
16630
16631 # A symbol stripping program.
16632 STRIP=$lt_STRIP
16633
16634 # Commands used to install an old-style archive.
16635 RANLIB=$lt_RANLIB
16636 old_postinstall_cmds=$lt_old_postinstall_cmds
16637 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16638
16639 # Whether to use a lock for old archive extraction.
16640 lock_old_archive_extraction=$lock_old_archive_extraction
16641
16642 # A C compiler.
16643 LTCC=$lt_CC
16644
16645 # LTCC compiler flags.
16646 LTCFLAGS=$lt_CFLAGS
16647
16648 # Take the output of nm and produce a listing of raw symbols and C names.
16649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16650
16651 # Transform the output of nm in a proper C declaration.
16652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16653
16654 # Transform the output of nm in a C name address pair.
16655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16656
16657 # Transform the output of nm in a C name address pair when lib prefix is needed.
16658 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16659
16660 # The name of the directory that contains temporary libtool files.
16661 objdir=$objdir
16662
16663 # Used to examine libraries when file_magic_cmd begins with "file".
16664 MAGIC_CMD=$MAGIC_CMD
16665
16666 # Must we lock files when doing compilation?
16667 need_locks=$lt_need_locks
16668
16669 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16670 DSYMUTIL=$lt_DSYMUTIL
16671
16672 # Tool to change global to local symbols on Mac OS X.
16673 NMEDIT=$lt_NMEDIT
16674
16675 # Tool to manipulate fat objects and archives on Mac OS X.
16676 LIPO=$lt_LIPO
16677
16678 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16679 OTOOL=$lt_OTOOL
16680
16681 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16682 OTOOL64=$lt_OTOOL64
16683
16684 # Old archive suffix (normally "a").
16685 libext=$libext
16686
16687 # Shared library suffix (normally ".so").
16688 shrext_cmds=$lt_shrext_cmds
16689
16690 # The commands to extract the exported symbol list from a shared archive.
16691 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16692
16693 # Variables whose values should be saved in libtool wrapper scripts and
16694 # restored at link time.
16695 variables_saved_for_relink=$lt_variables_saved_for_relink
16696
16697 # Do we need the "lib" prefix for modules?
16698 need_lib_prefix=$need_lib_prefix
16699
16700 # Do we need a version for libraries?
16701 need_version=$need_version
16702
16703 # Library versioning type.
16704 version_type=$version_type
16705
16706 # Shared library runtime path variable.
16707 runpath_var=$runpath_var
16708
16709 # Shared library path variable.
16710 shlibpath_var=$shlibpath_var
16711
16712 # Is shlibpath searched before the hard-coded library search path?
16713 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16714
16715 # Format of library name prefix.
16716 libname_spec=$lt_libname_spec
16717
16718 # List of archive names. First name is the real one, the rest are links.
16719 # The last name is the one that the linker finds with -lNAME
16720 library_names_spec=$lt_library_names_spec
16721
16722 # The coded name of the library, if different from the real name.
16723 soname_spec=$lt_soname_spec
16724
16725 # Permission mode override for installation of shared libraries.
16726 install_override_mode=$lt_install_override_mode
16727
16728 # Command to use after installation of a shared archive.
16729 postinstall_cmds=$lt_postinstall_cmds
16730
16731 # Command to use after uninstallation of a shared archive.
16732 postuninstall_cmds=$lt_postuninstall_cmds
16733
16734 # Commands used to finish a libtool library installation in a directory.
16735 finish_cmds=$lt_finish_cmds
16736
16737 # As "finish_cmds", except a single script fragment to be evaled but
16738 # not shown.
16739 finish_eval=$lt_finish_eval
16740
16741 # Whether we should hardcode library paths into libraries.
16742 hardcode_into_libs=$hardcode_into_libs
16743
16744 # Compile-time system search path for libraries.
16745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16746
16747 # Run-time system search path for libraries.
16748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16749
16750 # Whether dlopen is supported.
16751 dlopen_support=$enable_dlopen
16752
16753 # Whether dlopen of programs is supported.
16754 dlopen_self=$enable_dlopen_self
16755
16756 # Whether dlopen of statically linked programs is supported.
16757 dlopen_self_static=$enable_dlopen_self_static
16758
16759 # Commands to strip libraries.
16760 old_striplib=$lt_old_striplib
16761 striplib=$lt_striplib
16762
16763
16764 # The linker used to build libraries.
16765 LD=$lt_LD
16766
16767 # How to create reloadable object files.
16768 reload_flag=$lt_reload_flag
16769 reload_cmds=$lt_reload_cmds
16770
16771 # Commands used to build an old-style archive.
16772 old_archive_cmds=$lt_old_archive_cmds
16773
16774 # A language specific compiler.
16775 CC=$lt_compiler
16776
16777 # Is the compiler the GNU compiler?
16778 with_gcc=$GCC
16779
16780 # Compiler flag to turn off builtin functions.
16781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16782
16783 # How to pass a linker flag through the compiler.
16784 wl=$lt_lt_prog_compiler_wl
16785
16786 # Additional compiler flags for building library objects.
16787 pic_flag=$lt_lt_prog_compiler_pic
16788
16789 # Compiler flag to prevent dynamic linking.
16790 link_static_flag=$lt_lt_prog_compiler_static
16791
16792 # Does compiler simultaneously support -c and -o options?
16793 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16794
16795 # Whether or not to add -lc for building shared libraries.
16796 build_libtool_need_lc=$archive_cmds_need_lc
16797
16798 # Whether or not to disallow shared libs when runtime libs are static.
16799 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16800
16801 # Compiler flag to allow reflexive dlopens.
16802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16803
16804 # Compiler flag to generate shared objects directly from archives.
16805 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16806
16807 # Whether the compiler copes with passing no objects directly.
16808 compiler_needs_object=$lt_compiler_needs_object
16809
16810 # Create an old-style archive from a shared archive.
16811 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16812
16813 # Create a temporary old-style archive to link instead of a shared archive.
16814 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16815
16816 # Commands used to build a shared archive.
16817 archive_cmds=$lt_archive_cmds
16818 archive_expsym_cmds=$lt_archive_expsym_cmds
16819
16820 # Commands used to build a loadable module if different from building
16821 # a shared archive.
16822 module_cmds=$lt_module_cmds
16823 module_expsym_cmds=$lt_module_expsym_cmds
16824
16825 # Whether we are building with GNU ld or not.
16826 with_gnu_ld=$lt_with_gnu_ld
16827
16828 # Flag that allows shared libraries with undefined symbols to be built.
16829 allow_undefined_flag=$lt_allow_undefined_flag
16830
16831 # Flag that enforces no undefined symbols.
16832 no_undefined_flag=$lt_no_undefined_flag
16833
16834 # Flag to hardcode \$libdir into a binary during linking.
16835 # This must work even if \$libdir does not exist
16836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16837
16838 # If ld is used when linking, flag to hardcode \$libdir into a binary
16839 # during linking. This must work even if \$libdir does not exist.
16840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16841
16842 # Whether we need a single "-rpath" flag with a separated argument.
16843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16844
16845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16846 # DIR into the resulting binary.
16847 hardcode_direct=$hardcode_direct
16848
16849 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16850 # DIR into the resulting binary and the resulting library dependency is
16851 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16852 # library is relocated.
16853 hardcode_direct_absolute=$hardcode_direct_absolute
16854
16855 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16856 # into the resulting binary.
16857 hardcode_minus_L=$hardcode_minus_L
16858
16859 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16860 # into the resulting binary.
16861 hardcode_shlibpath_var=$hardcode_shlibpath_var
16862
16863 # Set to "yes" if building a shared library automatically hardcodes DIR
16864 # into the library and all subsequent libraries and executables linked
16865 # against it.
16866 hardcode_automatic=$hardcode_automatic
16867
16868 # Set to yes if linker adds runtime paths of dependent libraries
16869 # to runtime path list.
16870 inherit_rpath=$inherit_rpath
16871
16872 # Whether libtool must link a program against all its dependency libraries.
16873 link_all_deplibs=$link_all_deplibs
16874
16875 # Fix the shell variable \$srcfile for the compiler.
16876 fix_srcfile_path=$lt_fix_srcfile_path
16877
16878 # Set to "yes" if exported symbols are required.
16879 always_export_symbols=$always_export_symbols
16880
16881 # The commands to list exported symbols.
16882 export_symbols_cmds=$lt_export_symbols_cmds
16883
16884 # Symbols that should not be listed in the preloaded symbols.
16885 exclude_expsyms=$lt_exclude_expsyms
16886
16887 # Symbols that must always be exported.
16888 include_expsyms=$lt_include_expsyms
16889
16890 # Commands necessary for linking programs (against libraries) with templates.
16891 prelink_cmds=$lt_prelink_cmds
16892
16893 # Specify filename containing input files.
16894 file_list_spec=$lt_file_list_spec
16895
16896 # How to hardcode a shared library path into an executable.
16897 hardcode_action=$hardcode_action
16898
16899 # The directories searched by this compiler when creating a shared library.
16900 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16901
16902 # Dependencies to place before and after the objects being linked to
16903 # create a shared library.
16904 predep_objects=$lt_predep_objects
16905 postdep_objects=$lt_postdep_objects
16906 predeps=$lt_predeps
16907 postdeps=$lt_postdeps
16908
16909 # The library search path used internally by the compiler when linking
16910 # a shared library.
16911 compiler_lib_search_path=$lt_compiler_lib_search_path
16912
16913 # ### END LIBTOOL CONFIG
16914
16915 _LT_EOF
16916
16917 case $host_os in
16918 aix3*)
16919 cat <<\_LT_EOF >> "$cfgfile"
16920 # AIX sometimes has problems with the GCC collect2 program. For some
16921 # reason, if we set the COLLECT_NAMES environment variable, the problems
16922 # vanish in a puff of smoke.
16923 if test "X${COLLECT_NAMES+set}" != Xset; then
16924 COLLECT_NAMES=
16925 export COLLECT_NAMES
16926 fi
16927 _LT_EOF
16928 ;;
16929 esac
16930
16931
16932 ltmain="$ac_aux_dir/ltmain.sh"
16933
16934
16935 # We use sed instead of cat because bash on DJGPP gets confused if
16936 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16937 # text mode, it properly converts lines to CR/LF. This bash problem
16938 # is reportedly fixed, but why not run on old versions too?
16939 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16940 || (rm -f "$cfgfile"; exit 1)
16941
16942 case $xsi_shell in
16943 yes)
16944 cat << \_LT_EOF >> "$cfgfile"
16945
16946 # func_dirname file append nondir_replacement
16947 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16948 # otherwise set result to NONDIR_REPLACEMENT.
16949 func_dirname ()
16950 {
16951 case ${1} in
16952 */*) func_dirname_result="${1%/*}${2}" ;;
16953 * ) func_dirname_result="${3}" ;;
16954 esac
16955 }
16956
16957 # func_basename file
16958 func_basename ()
16959 {
16960 func_basename_result="${1##*/}"
16961 }
16962
16963 # func_dirname_and_basename file append nondir_replacement
16964 # perform func_basename and func_dirname in a single function
16965 # call:
16966 # dirname: Compute the dirname of FILE. If nonempty,
16967 # add APPEND to the result, otherwise set result
16968 # to NONDIR_REPLACEMENT.
16969 # value returned in "$func_dirname_result"
16970 # basename: Compute filename of FILE.
16971 # value retuned in "$func_basename_result"
16972 # Implementation must be kept synchronized with func_dirname
16973 # and func_basename. For efficiency, we do not delegate to
16974 # those functions but instead duplicate the functionality here.
16975 func_dirname_and_basename ()
16976 {
16977 case ${1} in
16978 */*) func_dirname_result="${1%/*}${2}" ;;
16979 * ) func_dirname_result="${3}" ;;
16980 esac
16981 func_basename_result="${1##*/}"
16982 }
16983
16984 # func_stripname prefix suffix name
16985 # strip PREFIX and SUFFIX off of NAME.
16986 # PREFIX and SUFFIX must not contain globbing or regex special
16987 # characters, hashes, percent signs, but SUFFIX may contain a leading
16988 # dot (in which case that matches only a dot).
16989 func_stripname ()
16990 {
16991 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16992 # positional parameters, so assign one to ordinary parameter first.
16993 func_stripname_result=${3}
16994 func_stripname_result=${func_stripname_result#"${1}"}
16995 func_stripname_result=${func_stripname_result%"${2}"}
16996 }
16997
16998 # func_opt_split
16999 func_opt_split ()
17000 {
17001 func_opt_split_opt=${1%%=*}
17002 func_opt_split_arg=${1#*=}
17003 }
17004
17005 # func_lo2o object
17006 func_lo2o ()
17007 {
17008 case ${1} in
17009 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17010 *) func_lo2o_result=${1} ;;
17011 esac
17012 }
17013
17014 # func_xform libobj-or-source
17015 func_xform ()
17016 {
17017 func_xform_result=${1%.*}.lo
17018 }
17019
17020 # func_arith arithmetic-term...
17021 func_arith ()
17022 {
17023 func_arith_result=$(( $* ))
17024 }
17025
17026 # func_len string
17027 # STRING may not start with a hyphen.
17028 func_len ()
17029 {
17030 func_len_result=${#1}
17031 }
17032
17033 _LT_EOF
17034 ;;
17035 *) # Bourne compatible functions.
17036 cat << \_LT_EOF >> "$cfgfile"
17037
17038 # func_dirname file append nondir_replacement
17039 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17040 # otherwise set result to NONDIR_REPLACEMENT.
17041 func_dirname ()
17042 {
17043 # Extract subdirectory from the argument.
17044 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17045 if test "X$func_dirname_result" = "X${1}"; then
17046 func_dirname_result="${3}"
17047 else
17048 func_dirname_result="$func_dirname_result${2}"
17049 fi
17050 }
17051
17052 # func_basename file
17053 func_basename ()
17054 {
17055 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17056 }
17057
17058
17059 # func_stripname prefix suffix name
17060 # strip PREFIX and SUFFIX off of NAME.
17061 # PREFIX and SUFFIX must not contain globbing or regex special
17062 # characters, hashes, percent signs, but SUFFIX may contain a leading
17063 # dot (in which case that matches only a dot).
17064 # func_strip_suffix prefix name
17065 func_stripname ()
17066 {
17067 case ${2} in
17068 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17069 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17070 esac
17071 }
17072
17073 # sed scripts:
17074 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17075 my_sed_long_arg='1s/^-[^=]*=//'
17076
17077 # func_opt_split
17078 func_opt_split ()
17079 {
17080 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17081 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17082 }
17083
17084 # func_lo2o object
17085 func_lo2o ()
17086 {
17087 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17088 }
17089
17090 # func_xform libobj-or-source
17091 func_xform ()
17092 {
17093 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17094 }
17095
17096 # func_arith arithmetic-term...
17097 func_arith ()
17098 {
17099 func_arith_result=`expr "$@"`
17100 }
17101
17102 # func_len string
17103 # STRING may not start with a hyphen.
17104 func_len ()
17105 {
17106 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17107 }
17108
17109 _LT_EOF
17110 esac
17111
17112 case $lt_shell_append in
17113 yes)
17114 cat << \_LT_EOF >> "$cfgfile"
17115
17116 # func_append var value
17117 # Append VALUE to the end of shell variable VAR.
17118 func_append ()
17119 {
17120 eval "$1+=\$2"
17121 }
17122 _LT_EOF
17123 ;;
17124 *)
17125 cat << \_LT_EOF >> "$cfgfile"
17126
17127 # func_append var value
17128 # Append VALUE to the end of shell variable VAR.
17129 func_append ()
17130 {
17131 eval "$1=\$$1\$2"
17132 }
17133
17134 _LT_EOF
17135 ;;
17136 esac
17137
17138
17139 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17140 || (rm -f "$cfgfile"; exit 1)
17141
17142 mv -f "$cfgfile" "$ofile" ||
17143 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17144 chmod +x "$ofile"
17145
17146
17147 cat <<_LT_EOF >> "$ofile"
17148
17149 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17150
17151 # The linker used to build libraries.
17152 LD=$lt_LD_CXX
17153
17154 # How to create reloadable object files.
17155 reload_flag=$lt_reload_flag_CXX
17156 reload_cmds=$lt_reload_cmds_CXX
17157
17158 # Commands used to build an old-style archive.
17159 old_archive_cmds=$lt_old_archive_cmds_CXX
17160
17161 # A language specific compiler.
17162 CC=$lt_compiler_CXX
17163
17164 # Is the compiler the GNU compiler?
17165 with_gcc=$GCC_CXX
17166
17167 # Compiler flag to turn off builtin functions.
17168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17169
17170 # How to pass a linker flag through the compiler.
17171 wl=$lt_lt_prog_compiler_wl_CXX
17172
17173 # Additional compiler flags for building library objects.
17174 pic_flag=$lt_lt_prog_compiler_pic_CXX
17175
17176 # Compiler flag to prevent dynamic linking.
17177 link_static_flag=$lt_lt_prog_compiler_static_CXX
17178
17179 # Does compiler simultaneously support -c and -o options?
17180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17181
17182 # Whether or not to add -lc for building shared libraries.
17183 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17184
17185 # Whether or not to disallow shared libs when runtime libs are static.
17186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17187
17188 # Compiler flag to allow reflexive dlopens.
17189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17190
17191 # Compiler flag to generate shared objects directly from archives.
17192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17193
17194 # Whether the compiler copes with passing no objects directly.
17195 compiler_needs_object=$lt_compiler_needs_object_CXX
17196
17197 # Create an old-style archive from a shared archive.
17198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17199
17200 # Create a temporary old-style archive to link instead of a shared archive.
17201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17202
17203 # Commands used to build a shared archive.
17204 archive_cmds=$lt_archive_cmds_CXX
17205 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17206
17207 # Commands used to build a loadable module if different from building
17208 # a shared archive.
17209 module_cmds=$lt_module_cmds_CXX
17210 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17211
17212 # Whether we are building with GNU ld or not.
17213 with_gnu_ld=$lt_with_gnu_ld_CXX
17214
17215 # Flag that allows shared libraries with undefined symbols to be built.
17216 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17217
17218 # Flag that enforces no undefined symbols.
17219 no_undefined_flag=$lt_no_undefined_flag_CXX
17220
17221 # Flag to hardcode \$libdir into a binary during linking.
17222 # This must work even if \$libdir does not exist
17223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17224
17225 # If ld is used when linking, flag to hardcode \$libdir into a binary
17226 # during linking. This must work even if \$libdir does not exist.
17227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17228
17229 # Whether we need a single "-rpath" flag with a separated argument.
17230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17231
17232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17233 # DIR into the resulting binary.
17234 hardcode_direct=$hardcode_direct_CXX
17235
17236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17237 # DIR into the resulting binary and the resulting library dependency is
17238 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17239 # library is relocated.
17240 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17241
17242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17243 # into the resulting binary.
17244 hardcode_minus_L=$hardcode_minus_L_CXX
17245
17246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17247 # into the resulting binary.
17248 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17249
17250 # Set to "yes" if building a shared library automatically hardcodes DIR
17251 # into the library and all subsequent libraries and executables linked
17252 # against it.
17253 hardcode_automatic=$hardcode_automatic_CXX
17254
17255 # Set to yes if linker adds runtime paths of dependent libraries
17256 # to runtime path list.
17257 inherit_rpath=$inherit_rpath_CXX
17258
17259 # Whether libtool must link a program against all its dependency libraries.
17260 link_all_deplibs=$link_all_deplibs_CXX
17261
17262 # Fix the shell variable \$srcfile for the compiler.
17263 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17264
17265 # Set to "yes" if exported symbols are required.
17266 always_export_symbols=$always_export_symbols_CXX
17267
17268 # The commands to list exported symbols.
17269 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17270
17271 # Symbols that should not be listed in the preloaded symbols.
17272 exclude_expsyms=$lt_exclude_expsyms_CXX
17273
17274 # Symbols that must always be exported.
17275 include_expsyms=$lt_include_expsyms_CXX
17276
17277 # Commands necessary for linking programs (against libraries) with templates.
17278 prelink_cmds=$lt_prelink_cmds_CXX
17279
17280 # Specify filename containing input files.
17281 file_list_spec=$lt_file_list_spec_CXX
17282
17283 # How to hardcode a shared library path into an executable.
17284 hardcode_action=$hardcode_action_CXX
17285
17286 # The directories searched by this compiler when creating a shared library.
17287 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17288
17289 # Dependencies to place before and after the objects being linked to
17290 # create a shared library.
17291 predep_objects=$lt_predep_objects_CXX
17292 postdep_objects=$lt_postdep_objects_CXX
17293 predeps=$lt_predeps_CXX
17294 postdeps=$lt_postdeps_CXX
17295
17296 # The library search path used internally by the compiler when linking
17297 # a shared library.
17298 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17299
17300 # ### END LIBTOOL TAG CONFIG: CXX
17301 _LT_EOF
17302
17303 ;;
17304
17305 esac
17306 done # for ac_tag
17307
17308
17309 as_fn_exit 0
17310 _ACEOF
17311 ac_clean_files=$ac_clean_files_save
17312
17313 test $ac_write_fail = 0 ||
17314 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17315
17316
17317 # configure is writing to config.log, and then calls config.status.
17318 # config.status does its own redirection, appending to config.log.
17319 # Unfortunately, on DOS this fails, as config.log is still kept open
17320 # by configure, so config.status won't be able to write to it; its
17321 # output is simply discarded. So we exec the FD to /dev/null,
17322 # effectively closing config.log, so it can be properly (re)opened and
17323 # appended to by config.status. When coming back to configure, we
17324 # need to make the FD available again.
17325 if test "$no_create" != yes; then
17326 ac_cs_success=:
17327 ac_config_status_args=
17328 test "$silent" = yes &&
17329 ac_config_status_args="$ac_config_status_args --quiet"
17330 exec 5>/dev/null
17331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17332 exec 5>>config.log
17333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17334 # would make configure fail if this is the last instruction.
17335 $ac_cs_success || as_fn_exit 1
17336 fi
17337
17338 #
17339 # CONFIG_SUBDIRS section.
17340 #
17341 if test "$no_recursion" != yes; then
17342
17343 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17344 # so they do not pile up.
17345 ac_sub_configure_args=
17346 ac_prev=
17347 eval "set x $ac_configure_args"
17348 shift
17349 for ac_arg
17350 do
17351 if test -n "$ac_prev"; then
17352 ac_prev=
17353 continue
17354 fi
17355 case $ac_arg in
17356 -cache-file | --cache-file | --cache-fil | --cache-fi \
17357 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17358 ac_prev=cache_file ;;
17359 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17360 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17361 | --c=*)
17362 ;;
17363 --config-cache | -C)
17364 ;;
17365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17366 ac_prev=srcdir ;;
17367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17368 ;;
17369 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17370 ac_prev=prefix ;;
17371 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17372 ;;
17373 --disable-option-checking)
17374 ;;
17375 *)
17376 case $ac_arg in
17377 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17378 esac
17379 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17380 esac
17381 done
17382
17383 # Always prepend --prefix to ensure using the same prefix
17384 # in subdir configurations.
17385 ac_arg="--prefix=$prefix"
17386 case $ac_arg in
17387 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17388 esac
17389 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17390
17391 # Pass --silent
17392 if test "$silent" = yes; then
17393 ac_sub_configure_args="--silent $ac_sub_configure_args"
17394 fi
17395
17396 # Always prepend --disable-option-checking to silence warnings, since
17397 # different subdirs can have different --enable and --with options.
17398 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17399
17400 ac_popdir=`pwd`
17401 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17402
17403 # Do not complain, so a configure script can configure whichever
17404 # parts of a large source tree are present.
17405 test -d "$srcdir/$ac_dir" || continue
17406
17407 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17408 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17409 $as_echo "$ac_msg" >&6
17410 as_dir="$ac_dir"; as_fn_mkdir_p
17411 ac_builddir=.
17412
17413 case "$ac_dir" in
17414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17415 *)
17416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17417 # A ".." for each directory in $ac_dir_suffix.
17418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17419 case $ac_top_builddir_sub in
17420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17422 esac ;;
17423 esac
17424 ac_abs_top_builddir=$ac_pwd
17425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17426 # for backward compatibility:
17427 ac_top_builddir=$ac_top_build_prefix
17428
17429 case $srcdir in
17430 .) # We are building in place.
17431 ac_srcdir=.
17432 ac_top_srcdir=$ac_top_builddir_sub
17433 ac_abs_top_srcdir=$ac_pwd ;;
17434 [\\/]* | ?:[\\/]* ) # Absolute name.
17435 ac_srcdir=$srcdir$ac_dir_suffix;
17436 ac_top_srcdir=$srcdir
17437 ac_abs_top_srcdir=$srcdir ;;
17438 *) # Relative name.
17439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17440 ac_top_srcdir=$ac_top_build_prefix$srcdir
17441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17442 esac
17443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17444
17445
17446 cd "$ac_dir"
17447
17448 # Check for guested configure; otherwise get Cygnus style configure.
17449 if test -f "$ac_srcdir/configure.gnu"; then
17450 ac_sub_configure=$ac_srcdir/configure.gnu
17451 elif test -f "$ac_srcdir/configure"; then
17452 ac_sub_configure=$ac_srcdir/configure
17453 elif test -f "$ac_srcdir/configure.in"; then
17454 # This should be Cygnus configure.
17455 ac_sub_configure=$ac_aux_dir/configure
17456 else
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17459 ac_sub_configure=
17460 fi
17461
17462 # The recursion is here.
17463 if test -n "$ac_sub_configure"; then
17464 # Make the cache file name correct relative to the subdirectory.
17465 case $cache_file in
17466 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17467 *) # Relative name.
17468 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17469 esac
17470
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17472 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17473 # The eval makes quoting arguments work.
17474 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17475 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17476 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17477 fi
17478
17479 cd "$ac_popdir"
17480 done
17481 fi
17482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17484 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17485 fi
17486