Debian Codegraph @

debian/external_deps/fetk/gamer/swig/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gamer 1.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell [email protected] and [email protected]
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254 fi
255 exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273 { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282 return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353 else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370 else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 else
506 as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='gamer'
572 PACKAGE_TARNAME='gamer'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='gamer 1.0'
575 PACKAGE_BUGREPORT='[email protected]'
576 PACKAGE_URL=''
577
578 ac_unique_file="src/gamer.i"
579 ac_default_prefix=${HOME}
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 gamer_inc
621 gamer_lib
622 maloc_inc
623 maloc_lib
624 vtst
625 zfence_lib
626 zfence
627 profile_lib
628 profile
629 pedantic_ansi
630 wall_pedantic_ansi
631 wall_pedantic
632 wall
633 superlu_lib
634 umfpack_lib
635 amd_lib
636 blas_lib
637 vf2c_lib
638 fetk_inc
639 fetk_lib
640 mpi_lib
641 rl_lib
642 fetk_cpu_vendor_os
643 thread_lib
644 socket_lib
645 nsl_lib
646 liberty_lib
647 math_lib
648 SWIG_PYTHON_CPPFLAGS
649 SWIG_PYTHON_OPT
650 PYTHON_EXTRA_LDFLAGS
651 PYTHON_EXTRA_LIBS
652 PYTHON_SITE_PKG
653 PYTHON_LDFLAGS
654 PYTHON_CPPFLAGS
655 SWIG_LIB
656 SWIG
657 pkgpyexecdir
658 pyexecdir
659 pkgpythondir
660 pythondir
661 PYTHON_PLATFORM
662 PYTHON_EXEC_PREFIX
663 PYTHON_PREFIX
664 PYTHON_VERSION
665 PYTHON
666 CXXCPP
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 MANIFEST_TOOL
673 RANLIB
674 ac_ct_AR
675 AR
676 DLLTOOL
677 OBJDUMP
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 LIBTOOL
688 am__fastdepCXX_FALSE
689 am__fastdepCXX_TRUE
690 CXXDEPMODE
691 ac_ct_CXX
692 CXXFLAGS
693 CXX
694 CPP
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 FETK_VERSION
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
720 AWK
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 target_os
739 target_vendor
740 target_cpu
741 target
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_maintainer_mode
792 enable_dependency_tracking
793 enable_static
794 enable_shared
795 with_pic
796 enable_fast_install
797 with_gnu_ld
798 with_sysroot
799 enable_libtool_lock
800 with_gnu_ld
801 enable_triplet
802 enable_pansi
803 enable_gprof
804 enable_efence
805 enable_vtst
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CPP
816 CPPFLAGS
817 CXX
818 CXXFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CCC
823 CXXCPP
824 PYTHON_VERSION'
825
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
884 fi
885
886 case $ac_option in
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *=) ac_optarg= ;;
889 *) ac_optarg=yes ;;
890 esac
891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
902
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
917
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
922
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
955
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
991
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
996
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1026
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1043
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1064
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1100
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
1119 sbindir=$ac_optarg ;;
1120
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
1130 sharedstatedir=$ac_optarg ;;
1131
1132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
1135 site=$ac_optarg ;;
1136
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140 srcdir=$ac_optarg ;;
1141
1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147 sysconfdir=$ac_optarg ;;
1148
1149 -target | --target | --targe | --targ | --tar | --ta | --t)
1150 ac_prev=target_alias ;;
1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152 target_alias=$ac_optarg ;;
1153
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1156
1157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
1159
1160 -with-* | --with-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
1175
1176 -without-* | --without-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1209
1210 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211 Try \`$0 --help' for more information"
1212 ;;
1213
1214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220 esac
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1223
1224 *)
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 ;;
1231
1232 esac
1233 done
1234
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 as_fn_error $? "missing argument to $ac_option"
1238 fi
1239
1240 if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246 fi
1247
1248 # Check all directory arguments for consistency.
1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1253 do
1254 eval ac_val=\$$ac_var
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267 done
1268
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1275
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used" >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285 fi
1286
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290 test "$silent" = yes && exec 6>/dev/null
1291
1292
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1331 fi
1332 else
1333 ac_srcdir_defaulted=no
1334 fi
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 fi
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346 fi
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1359
1360 #
1361 # Report the --help message.
1362 #
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 \`configure' configures gamer 1.0 to adapt to many kinds of systems.
1368
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374 Defaults for the options are specified in brackets.
1375
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1392
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1397
1398 For better control, use the options below.
1399
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/gamer]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1421
1422 cat <<\_ACEOF
1423
1424 Program names:
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of gamer 1.0:";;
1439 esac
1440 cat <<\_ACEOF
1441
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --disable-dependency-tracking speeds up one-time build
1449 --enable-dependency-tracking do not reject slow dependency extractors
1450 --enable-static[=PKGS] build static libraries [default=no]
1451 --enable-shared[=PKGS] build shared libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --disable-triplet disable CPU-VENDOR-OS install triplet [default=no]
1456 --enable-pansi enable pedantic ANSI compilation
1457 --enable-gprof enable gprof profiling default=no
1458 --enable-efence enable ElectricFence malloc lib default=no
1459 --enable-vtst enable building of library tests default=no
1460
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-pic try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467 --with-sysroot=DIR Search for dependent libraries within DIR
1468 (or the compiler's sysroot if not specified).
1469
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CPP C preprocessor
1479 CXX C++ compiler command
1480 CXXFLAGS C++ compiler flags
1481 CXXCPP C++ preprocessor
1482 PYTHON_VERSION
1483 The installed Python version to use, for example '2.3'. This
1484 string will be appended to the Python interpreter canonical
1485 name.
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 Report bugs to <[email protected]>.
1491 _ACEOF
1492 ac_status=$?
1493 fi
1494
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" ||
1499 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500 continue
1501 ac_builddir=.
1502
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1518
1519 case $srcdir in
1520 .) # We are building in place.
1521 ac_srcdir=.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1543 else
1544 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1547 done
1548 fi
1549
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552 cat <<\_ACEOF
1553 gamer configure 1.0
1554 generated by GNU Autoconf 2.68
1555
1556 Copyright (C) 2010 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1559 _ACEOF
1560 exit
1561 fi
1562
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1566
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_compile
1604
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_cpp ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_cpp
1641
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_cxx_try_compile
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 $as_test_x conftest$ac_exeext
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 eval "$3=yes"
1745 else
1746 eval "$3=no"
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_header_compile
1756
1757 # ac_fn_c_try_run LINENO
1758 # ----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760 # that executables *can* be run.
1761 ac_fn_c_try_run ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775 { { case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_try") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; }; }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: program exited with status $ac_status" >&5
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=$ac_status
1792 fi
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_run
1798
1799 # ac_fn_c_check_func LINENO FUNC VAR
1800 # ----------------------------------
1801 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1802 ac_fn_c_check_func ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1809 else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814 #define $2 innocuous_$2
1815
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1820
1821 #ifdef __STDC__
1822 # include <limits.h>
1823 #else
1824 # include <assert.h>
1825 #endif
1826
1827 #undef $2
1828
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1832 #ifdef __cplusplus
1833 extern "C"
1834 #endif
1835 char $2 ();
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1840 choke me
1841 #endif
1842
1843 int
1844 main ()
1845 {
1846 return $2 ();
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_link "$LINENO"; then :
1852 eval "$3=yes"
1853 else
1854 eval "$3=no"
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1858 fi
1859 eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_c_check_func
1865
1866 # ac_fn_cxx_try_cpp LINENO
1867 # ------------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_cxx_try_cpp ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1885 fi
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } > conftest.i && {
1888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1889 test ! -s conftest.err
1890 }; then :
1891 ac_retval=0
1892 else
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=1
1897 fi
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1900
1901 } # ac_fn_cxx_try_cpp
1902
1903 # ac_fn_cxx_try_link LINENO
1904 # -------------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_cxx_try_link ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 rm -f conftest.$ac_objext conftest$ac_exeext
1910 if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>conftest.err
1918 ac_status=$?
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1923 fi
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && {
1926 test -z "$ac_cxx_werror_flag" ||
1927 test ! -s conftest.err
1928 } && test -s conftest$ac_exeext && {
1929 test "$cross_compiling" = yes ||
1930 $as_test_x conftest$ac_exeext
1931 }; then :
1932 ac_retval=0
1933 else
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937 ac_retval=1
1938 fi
1939 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1940 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1941 # interfere with the next link command; also delete a directory that is
1942 # left behind by Apple's compiler. We do this before executing the actions.
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1946
1947 } # ac_fn_cxx_try_link
1948
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_c_check_header_mongrel ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if eval \${$3+:} false; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1983
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1995 fi
1996 rm -f conftest.err conftest.i conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
1999
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 ;;
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 ( $as_echo "## --------------------------------- ##
2020 ## Report this to [email protected] ##
2021 ## --------------------------------- ##"
2022 ) | sed "s/^/$as_me: WARNING: /" >&2
2023 ;;
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=\$ac_header_compiler"
2031 fi
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 fi
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_c_check_header_mongrel
2039
2040 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2041 # ---------------------------------------------------------
2042 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2043 # the include files in INCLUDES and setting the cache variable VAR
2044 # accordingly.
2045 ac_fn_cxx_check_header_mongrel ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 if eval \${$3+:} false; then :
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 fi
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 else
2058 # Is the header compilable?
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2060 $as_echo_n "checking $2 usability... " >&6; }
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $4
2064 #include <$2>
2065 _ACEOF
2066 if ac_fn_cxx_try_compile "$LINENO"; then :
2067 ac_header_compiler=yes
2068 else
2069 ac_header_compiler=no
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2073 $as_echo "$ac_header_compiler" >&6; }
2074
2075 # Is the header present?
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2077 $as_echo_n "checking $2 presence... " >&6; }
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 #include <$2>
2081 _ACEOF
2082 if ac_fn_cxx_try_cpp "$LINENO"; then :
2083 ac_header_preproc=yes
2084 else
2085 ac_header_preproc=no
2086 fi
2087 rm -f conftest.err conftest.i conftest.$ac_ext
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2089 $as_echo "$ac_header_preproc" >&6; }
2090
2091 # So? What about this header?
2092 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2093 yes:no: )
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2095 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2097 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2098 ;;
2099 no:yes:* )
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2101 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2103 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2105 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2107 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2109 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2110 ( $as_echo "## --------------------------------- ##
2111 ## Report this to [email protected] ##
2112 ## --------------------------------- ##"
2113 ) | sed "s/^/$as_me: WARNING: /" >&2
2114 ;;
2115 esac
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if eval \${$3+:} false; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 eval "$3=\$ac_header_compiler"
2122 fi
2123 eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 fi
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129 } # ac_fn_cxx_check_header_mongrel
2130 cat >config.log <<_ACEOF
2131 This file contains any messages produced by compilers while
2132 running configure, to aid debugging if configure makes a mistake.
2133
2134 It was created by gamer $as_me 1.0, which was
2135 generated by GNU Autoconf 2.68. Invocation command line was
2136
2137 $ $0 $@
2138
2139 _ACEOF
2140 exec 5>>config.log
2141 {
2142 cat <<_ASUNAME
2143 ## --------- ##
2144 ## Platform. ##
2145 ## --------- ##
2146
2147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2152
2153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2154 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2155
2156 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2157 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2159 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2160 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2161 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2162 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2163
2164 _ASUNAME
2165
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 $as_echo "PATH: $as_dir"
2172 done
2173 IFS=$as_save_IFS
2174
2175 } >&5
2176
2177 cat >&5 <<_ACEOF
2178
2179
2180 ## ----------- ##
2181 ## Core tests. ##
2182 ## ----------- ##
2183
2184 _ACEOF
2185
2186
2187 # Keep a trace of the command line.
2188 # Strip out --no-create and --no-recursion so they do not pile up.
2189 # Strip out --silent because we don't want to record it for future runs.
2190 # Also quote any args containing shell meta-characters.
2191 # Make two passes to allow for proper duplicate-argument suppression.
2192 ac_configure_args=
2193 ac_configure_args0=
2194 ac_configure_args1=
2195 ac_must_keep_next=false
2196 for ac_pass in 1 2
2197 do
2198 for ac_arg
2199 do
2200 case $ac_arg in
2201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2203 | -silent | --silent | --silen | --sile | --sil)
2204 continue ;;
2205 *\'*)
2206 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 esac
2208 case $ac_pass in
2209 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2210 2)
2211 as_fn_append ac_configure_args1 " '$ac_arg'"
2212 if test $ac_must_keep_next = true; then
2213 ac_must_keep_next=false # Got value, back to normal.
2214 else
2215 case $ac_arg in
2216 *=* | --config-cache | -C | -disable-* | --disable-* \
2217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2219 | -with-* | --with-* | -without-* | --without-* | --x)
2220 case "$ac_configure_args0 " in
2221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222 esac
2223 ;;
2224 -* ) ac_must_keep_next=true ;;
2225 esac
2226 fi
2227 as_fn_append ac_configure_args " '$ac_arg'"
2228 ;;
2229 esac
2230 done
2231 done
2232 { ac_configure_args0=; unset ac_configure_args0;}
2233 { ac_configure_args1=; unset ac_configure_args1;}
2234
2235 # When interrupted or exit'd, cleanup temporary files, and complete
2236 # config.log. We remove comments because anyway the quotes in there
2237 # would cause problems or look ugly.
2238 # WARNING: Use '\'' to represent an apostrophe within the trap.
2239 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2240 trap 'exit_status=$?
2241 # Save into config.log some information that might help in debugging.
2242 {
2243 echo
2244
2245 $as_echo "## ---------------- ##
2246 ## Cache variables. ##
2247 ## ---------------- ##"
2248 echo
2249 # The following way of writing the cache mishandles newlines in values,
2250 (
2251 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2252 eval ac_val=\$$ac_var
2253 case $ac_val in #(
2254 *${as_nl}*)
2255 case $ac_var in #(
2256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2258 esac
2259 case $ac_var in #(
2260 _ | IFS | as_nl) ;; #(
2261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2262 *) { eval $ac_var=; unset $ac_var;} ;;
2263 esac ;;
2264 esac
2265 done
2266 (set) 2>&1 |
2267 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2268 *${as_nl}ac_space=\ *)
2269 sed -n \
2270 "s/'\''/'\''\\\\'\'''\''/g;
2271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2272 ;; #(
2273 *)
2274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2275 ;;
2276 esac |
2277 sort
2278 )
2279 echo
2280
2281 $as_echo "## ----------------- ##
2282 ## Output variables. ##
2283 ## ----------------- ##"
2284 echo
2285 for ac_var in $ac_subst_vars
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2292 done | sort
2293 echo
2294
2295 if test -n "$ac_subst_files"; then
2296 $as_echo "## ------------------- ##
2297 ## File substitutions. ##
2298 ## ------------------- ##"
2299 echo
2300 for ac_var in $ac_subst_files
2301 do
2302 eval ac_val=\$$ac_var
2303 case $ac_val in
2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 esac
2306 $as_echo "$ac_var='\''$ac_val'\''"
2307 done | sort
2308 echo
2309 fi
2310
2311 if test -s confdefs.h; then
2312 $as_echo "## ----------- ##
2313 ## confdefs.h. ##
2314 ## ----------- ##"
2315 echo
2316 cat confdefs.h
2317 echo
2318 fi
2319 test "$ac_signal" != 0 &&
2320 $as_echo "$as_me: caught signal $ac_signal"
2321 $as_echo "$as_me: exit $exit_status"
2322 } >&5
2323 rm -f core *.core core.conftest.* &&
2324 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2325 exit $exit_status
2326 ' 0
2327 for ac_signal in 1 2 13 15; do
2328 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2329 done
2330 ac_signal=0
2331
2332 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2333 rm -f -r conftest* confdefs.h
2334
2335 $as_echo "/* confdefs.h */" > confdefs.h
2336
2337 # Predefined preprocessor variables.
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_NAME "$PACKAGE_NAME"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_STRING "$PACKAGE_STRING"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357 _ACEOF
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_URL "$PACKAGE_URL"
2361 _ACEOF
2362
2363
2364 # Let the site file select an alternate cache file if it wants to.
2365 # Prefer an explicitly selected file to automatically selected ones.
2366 ac_site_file1=NONE
2367 ac_site_file2=NONE
2368 if test -n "$CONFIG_SITE"; then
2369 # We do not want a PATH search for config.site.
2370 case $CONFIG_SITE in #((
2371 -*) ac_site_file1=./$CONFIG_SITE;;
2372 */*) ac_site_file1=$CONFIG_SITE;;
2373 *) ac_site_file1=./$CONFIG_SITE;;
2374 esac
2375 elif test "x$prefix" != xNONE; then
2376 ac_site_file1=$prefix/share/config.site
2377 ac_site_file2=$prefix/etc/config.site
2378 else
2379 ac_site_file1=$ac_default_prefix/share/config.site
2380 ac_site_file2=$ac_default_prefix/etc/config.site
2381 fi
2382 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383 do
2384 test "x$ac_site_file" = xNONE && continue
2385 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2387 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2388 sed 's/^/| /' "$ac_site_file" >&5
2389 . "$ac_site_file" \
2390 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392 as_fn_error $? "failed to load site script $ac_site_file
2393 See \`config.log' for more details" "$LINENO" 5; }
2394 fi
2395 done
2396
2397 if test -r "$cache_file"; then
2398 # Some versions of bash will fail to source /dev/null (special files
2399 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2400 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402 $as_echo "$as_me: loading cache $cache_file" >&6;}
2403 case $cache_file in
2404 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405 *) . "./$cache_file";;
2406 esac
2407 fi
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410 $as_echo "$as_me: creating cache $cache_file" >&6;}
2411 >$cache_file
2412 fi
2413
2414 # Check that the precious variables saved in the cache have kept the same
2415 # value.
2416 ac_cache_corrupted=false
2417 for ac_var in $ac_precious_vars; do
2418 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419 eval ac_new_set=\$ac_env_${ac_var}_set
2420 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421 eval ac_new_val=\$ac_env_${ac_var}_value
2422 case $ac_old_set,$ac_new_set in
2423 set,)
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2427 ,set)
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2431 ,);;
2432 *)
2433 if test "x$ac_old_val" != "x$ac_new_val"; then
2434 # differences in whitespace do not lead to failure.
2435 ac_old_val_w=`echo x $ac_old_val`
2436 ac_new_val_w=`echo x $ac_new_val`
2437 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440 ac_cache_corrupted=:
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444 eval $ac_var=\$ac_old_val
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2447 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2449 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2450 fi;;
2451 esac
2452 # Pass precious variables to config.status.
2453 if test "$ac_new_set" = set; then
2454 case $ac_new_val in
2455 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456 *) ac_arg=$ac_var=$ac_new_val ;;
2457 esac
2458 case " $ac_configure_args " in
2459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2460 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461 esac
2462 fi
2463 done
2464 if $ac_cache_corrupted; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470 fi
2471 ## -------------------- ##
2472 ## Main body of script. ##
2473 ## -------------------- ##
2474
2475 ac_ext=c
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480
2481
2482
2483 ac_aux_dir=
2484 for ac_dir in config "$srcdir"/config; do
2485 if test -f "$ac_dir/install-sh"; then
2486 ac_aux_dir=$ac_dir
2487 ac_install_sh="$ac_aux_dir/install-sh -c"
2488 break
2489 elif test -f "$ac_dir/install.sh"; then
2490 ac_aux_dir=$ac_dir
2491 ac_install_sh="$ac_aux_dir/install.sh -c"
2492 break
2493 elif test -f "$ac_dir/shtool"; then
2494 ac_aux_dir=$ac_dir
2495 ac_install_sh="$ac_aux_dir/shtool install -c"
2496 break
2497 fi
2498 done
2499 if test -z "$ac_aux_dir"; then
2500 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2501 fi
2502
2503 # These three variables are undocumented and unsupported,
2504 # and are intended to be withdrawn in a future Autoconf release.
2505 # They can cause serious problems if a builder's source tree is in a directory
2506 # whose full name contains unusual characters.
2507 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2508 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2509 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2510
2511
2512
2513 # Make sure we can run config.sub.
2514 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2515 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2516
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2518 $as_echo_n "checking build system type... " >&6; }
2519 if ${ac_cv_build+:} false; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 ac_build_alias=$build_alias
2523 test "x$ac_build_alias" = x &&
2524 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2525 test "x$ac_build_alias" = x &&
2526 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2527 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2528 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2529
2530 fi
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2532 $as_echo "$ac_cv_build" >&6; }
2533 case $ac_cv_build in
2534 *-*-*) ;;
2535 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2536 esac
2537 build=$ac_cv_build
2538 ac_save_IFS=$IFS; IFS='-'
2539 set x $ac_cv_build
2540 shift
2541 build_cpu=$1
2542 build_vendor=$2
2543 shift; shift
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2546 build_os=$*
2547 IFS=$ac_save_IFS
2548 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2549
2550
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2552 $as_echo_n "checking host system type... " >&6; }
2553 if ${ac_cv_host+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test "x$host_alias" = x; then
2557 ac_cv_host=$ac_cv_build
2558 else
2559 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2561 fi
2562
2563 fi
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2565 $as_echo "$ac_cv_host" >&6; }
2566 case $ac_cv_host in
2567 *-*-*) ;;
2568 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2569 esac
2570 host=$ac_cv_host
2571 ac_save_IFS=$IFS; IFS='-'
2572 set x $ac_cv_host
2573 shift
2574 host_cpu=$1
2575 host_vendor=$2
2576 shift; shift
2577 # Remember, the first character of IFS is used to create $*,
2578 # except with old shells:
2579 host_os=$*
2580 IFS=$ac_save_IFS
2581 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2582
2583
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2585 $as_echo_n "checking target system type... " >&6; }
2586 if ${ac_cv_target+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 if test "x$target_alias" = x; then
2590 ac_cv_target=$ac_cv_host
2591 else
2592 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2593 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2594 fi
2595
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2598 $as_echo "$ac_cv_target" >&6; }
2599 case $ac_cv_target in
2600 *-*-*) ;;
2601 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2602 esac
2603 target=$ac_cv_target
2604 ac_save_IFS=$IFS; IFS='-'
2605 set x $ac_cv_target
2606 shift
2607 target_cpu=$1
2608 target_vendor=$2
2609 shift; shift
2610 # Remember, the first character of IFS is used to create $*,
2611 # except with old shells:
2612 target_os=$*
2613 IFS=$ac_save_IFS
2614 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2615
2616
2617 # The aliases save the names the user supplied, while $host etc.
2618 # will get canonicalized.
2619 test -n "$target_alias" &&
2620 test "$program_prefix$program_suffix$program_transform_name" = \
2621 NONENONEs,x,x, &&
2622 program_prefix=${target_alias}-
2623
2624 am__api_version='1.11'
2625
2626 # Find a good install program. We prefer a C program (faster),
2627 # so one script is as good as another. But avoid the broken or
2628 # incompatible versions:
2629 # SysV /etc/install, /usr/sbin/install
2630 # SunOS /usr/etc/install
2631 # IRIX /sbin/install
2632 # AIX /bin/install
2633 # AmigaOS /C/install, which installs bootblocks on floppy discs
2634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2637 # OS/2's system install, which has a completely different semantic
2638 # ./install, which can be erroneously created by make from ./install.sh.
2639 # Reject install programs that cannot install multiple files.
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2641 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2642 if test -z "$INSTALL"; then
2643 if ${ac_cv_path_install+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 # Account for people who put trailing slashes in PATH elements.
2652 case $as_dir/ in #((
2653 ./ | .// | /[cC]/* | \
2654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2655 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2656 /usr/ucb/* ) ;;
2657 *)
2658 # OSF1 and SCO ODT 3.0 have their own names for install.
2659 # Don't use installbsd from OSF since it installs stuff as root
2660 # by default.
2661 for ac_prog in ginstall scoinst install; do
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2664 if test $ac_prog = install &&
2665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666 # AIX install. It has an incompatible calling convention.
2667 :
2668 elif test $ac_prog = install &&
2669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2670 # program-specific install script used by HP pwplus--don't use.
2671 :
2672 else
2673 rm -rf conftest.one conftest.two conftest.dir
2674 echo one > conftest.one
2675 echo two > conftest.two
2676 mkdir conftest.dir
2677 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2678 test -s conftest.one && test -s conftest.two &&
2679 test -s conftest.dir/conftest.one &&
2680 test -s conftest.dir/conftest.two
2681 then
2682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2683 break 3
2684 fi
2685 fi
2686 fi
2687 done
2688 done
2689 ;;
2690 esac
2691
2692 done
2693 IFS=$as_save_IFS
2694
2695 rm -rf conftest.one conftest.two conftest.dir
2696
2697 fi
2698 if test "${ac_cv_path_install+set}" = set; then
2699 INSTALL=$ac_cv_path_install
2700 else
2701 # As a last resort, use the slow shell script. Don't cache a
2702 # value for INSTALL within a source directory, because that will
2703 # break other packages using the cache if that directory is
2704 # removed, or if the value is a relative name.
2705 INSTALL=$ac_install_sh
2706 fi
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2709 $as_echo "$INSTALL" >&6; }
2710
2711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712 # It thinks the first close brace ends the variable substitution.
2713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2714
2715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2716
2717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2720 $as_echo_n "checking whether build environment is sane... " >&6; }
2721 # Just in case
2722 sleep 1
2723 echo timestamp > conftest.file
2724 # Reject unsafe characters in $srcdir or the absolute working directory
2725 # name. Accept space and tab only in the latter.
2726 am_lf='
2727 '
2728 case `pwd` in
2729 *[\\\"\#\$\&\'\`$am_lf]*)
2730 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2731 esac
2732 case $srcdir in
2733 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2734 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2735 esac
2736
2737 # Do `set' in a subshell so we don't clobber the current shell's
2738 # arguments. Must try -L first in case configure is actually a
2739 # symlink; some systems play weird games with the mod time of symlinks
2740 # (eg FreeBSD returns the mod time of the symlink's containing
2741 # directory).
2742 if (
2743 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2744 if test "$*" = "X"; then
2745 # -L didn't work.
2746 set X `ls -t "$srcdir/configure" conftest.file`
2747 fi
2748 rm -f conftest.file
2749 if test "$*" != "X $srcdir/configure conftest.file" \
2750 && test "$*" != "X conftest.file $srcdir/configure"; then
2751
2752 # If neither matched, then we have a broken ls. This can happen
2753 # if, for instance, CONFIG_SHELL is bash and it inherits a
2754 # broken ls alias from the environment. This has actually
2755 # happened. Such a system could not be considered "sane".
2756 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2757 alias in your environment" "$LINENO" 5
2758 fi
2759
2760 test "$2" = conftest.file
2761 )
2762 then
2763 # Ok.
2764 :
2765 else
2766 as_fn_error $? "newly created file is older than distributed files!
2767 Check your system clock" "$LINENO" 5
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2770 $as_echo "yes" >&6; }
2771 test "$program_prefix" != NONE &&
2772 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2773 # Use a double $ so make ignores it.
2774 test "$program_suffix" != NONE &&
2775 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2776 # Double any \ or $.
2777 # By default was `s,x,x', remove it if useless.
2778 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2779 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2780
2781 # expand $ac_aux_dir to an absolute path
2782 am_aux_dir=`cd $ac_aux_dir && pwd`
2783
2784 if test x"${MISSING+set}" != xset; then
2785 case $am_aux_dir in
2786 *\ * | *\ *)
2787 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2788 *)
2789 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2790 esac
2791 fi
2792 # Use eval to expand $SHELL
2793 if eval "$MISSING --run true"; then
2794 am_missing_run="$MISSING --run "
2795 else
2796 am_missing_run=
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2798 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2799 fi
2800
2801 if test x"${install_sh}" != xset; then
2802 case $am_aux_dir in
2803 *\ * | *\ *)
2804 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2805 *)
2806 install_sh="\${SHELL} $am_aux_dir/install-sh"
2807 esac
2808 fi
2809
2810 # Installed binaries are usually stripped using `strip' when the user
2811 # run `make install-strip'. However `strip' might not be the right
2812 # tool to use in cross-compilation environments, therefore Automake
2813 # will honor the `STRIP' environment variable to overrule this program.
2814 if test "$cross_compiling" != no; then
2815 if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}strip; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_STRIP+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$STRIP"; then
2824 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 STRIP=$ac_cv_prog_STRIP
2844 if test -n "$STRIP"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2846 $as_echo "$STRIP" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852
2853 fi
2854 if test -z "$ac_cv_prog_STRIP"; then
2855 ac_ct_STRIP=$STRIP
2856 # Extract the first word of "strip", so it can be a program name with args.
2857 set dummy strip; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$ac_ct_STRIP"; then
2864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_ac_ct_STRIP="strip"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879 IFS=$as_save_IFS
2880
2881 fi
2882 fi
2883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2884 if test -n "$ac_ct_STRIP"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2886 $as_echo "$ac_ct_STRIP" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 fi
2891
2892 if test "x$ac_ct_STRIP" = x; then
2893 STRIP=":"
2894 else
2895 case $cross_compiling:$ac_tool_warned in
2896 yes:)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2899 ac_tool_warned=yes ;;
2900 esac
2901 STRIP=$ac_ct_STRIP
2902 fi
2903 else
2904 STRIP="$ac_cv_prog_STRIP"
2905 fi
2906
2907 fi
2908 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2909
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2911 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2912 if test -z "$MKDIR_P"; then
2913 if ${ac_cv_path_mkdir+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2918 do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_prog in mkdir gmkdir; do
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2924 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2925 'mkdir (GNU coreutils) '* | \
2926 'mkdir (coreutils) '* | \
2927 'mkdir (fileutils) '4.1*)
2928 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2929 break 3;;
2930 esac
2931 done
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937
2938 test -d ./--version && rmdir ./--version
2939 if test "${ac_cv_path_mkdir+set}" = set; then
2940 MKDIR_P="$ac_cv_path_mkdir -p"
2941 else
2942 # As a last resort, use the slow shell script. Don't cache a
2943 # value for MKDIR_P within a source directory, because that will
2944 # break other packages using the cache if that directory is
2945 # removed, or if the value is a relative name.
2946 MKDIR_P="$ac_install_sh -d"
2947 fi
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2950 $as_echo "$MKDIR_P" >&6; }
2951
2952 mkdir_p="$MKDIR_P"
2953 case $mkdir_p in
2954 [\\/$]* | ?:[\\/]*) ;;
2955 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2956 esac
2957
2958 for ac_prog in gawk mawk nawk awk
2959 do
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy $ac_prog; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_AWK+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$AWK"; then
2968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_AWK="$ac_prog"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 AWK=$ac_cv_prog_AWK
2988 if test -n "$AWK"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2990 $as_echo "$AWK" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 test -n "$AWK" && break
2998 done
2999
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3001 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3002 set x ${MAKE-make}
3003 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3004 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 cat >conftest.make <<\_ACEOF
3008 SHELL = /bin/sh
3009 all:
3010 @echo '@@@%%%=$(MAKE)=@@@%%%'
3011 _ACEOF
3012 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3013 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3014 *@@@%%%=?*=@@@%%%*)
3015 eval ac_cv_prog_make_${ac_make}_set=yes;;
3016 *)
3017 eval ac_cv_prog_make_${ac_make}_set=no;;
3018 esac
3019 rm -f conftest.make
3020 fi
3021 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3023 $as_echo "yes" >&6; }
3024 SET_MAKE=
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 SET_MAKE="MAKE=${MAKE-make}"
3029 fi
3030
3031 rm -rf .tst 2>/dev/null
3032 mkdir .tst 2>/dev/null
3033 if test -d .tst; then
3034 am__leading_dot=.
3035 else
3036 am__leading_dot=_
3037 fi
3038 rmdir .tst 2>/dev/null
3039
3040 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3042 # is not polluted with repeated "-I."
3043 am__isrc=' -I$(srcdir)'
3044 # test to see if srcdir already configured
3045 if test -f $srcdir/config.status; then
3046 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3047 fi
3048 fi
3049
3050 # test whether we have cygpath
3051 if test -z "$CYGPATH_W"; then
3052 if (cygpath --version) >/dev/null 2>/dev/null; then
3053 CYGPATH_W='cygpath -w'
3054 else
3055 CYGPATH_W=echo
3056 fi
3057 fi
3058
3059
3060 # Define the identity of the package.
3061 PACKAGE='gamer'
3062 VERSION='1.0'
3063
3064
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE "$PACKAGE"
3067 _ACEOF
3068
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define VERSION "$VERSION"
3072 _ACEOF
3073
3074 # Some tools Automake needs.
3075
3076 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3077
3078
3079 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3080
3081
3082 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3083
3084
3085 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3086
3087
3088 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3089
3090 # We need awk for the "check" target. The system "awk" is bad on
3091 # some platforms.
3092 # Always define AMTAR for backward compatibility.
3093
3094 AMTAR=${AMTAR-"${am_missing_run}tar"}
3095
3096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3097
3098
3099
3100
3101
3102 FETK_VERSION="1:0:0"
3103
3104
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3106 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3107 # Check whether --enable-maintainer-mode was given.
3108 if test "${enable_maintainer_mode+set}" = set; then :
3109 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3110 else
3111 USE_MAINTAINER_MODE=no
3112 fi
3113
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3115 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3116 if test $USE_MAINTAINER_MODE = yes; then
3117 MAINTAINER_MODE_TRUE=
3118 MAINTAINER_MODE_FALSE='#'
3119 else
3120 MAINTAINER_MODE_TRUE='#'
3121 MAINTAINER_MODE_FALSE=
3122 fi
3123
3124 MAINT=$MAINTAINER_MODE_TRUE
3125
3126
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177 fi
3178 if test -z "$ac_cv_prog_CC"; then
3179 ac_ct_CC=$CC
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181 set dummy gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_ac_ct_CC="gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216 if test "x$ac_ct_CC" = x; then
3217 CC=""
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 CC=$ac_ct_CC
3226 fi
3227 else
3228 CC="$ac_cv_prog_CC"
3229 fi
3230
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC="${ac_tool_prefix}cc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 fi
3271 fi
3272 if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 ac_prog_rejected=no
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3293 continue
3294 fi
3295 ac_cv_prog_CC="cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3306 shift
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3311 shift
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3313 fi
3314 fi
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3331 do
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353 done
3354 done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369 test -n "$CC" && break
3370 done
3371 fi
3372 if test -z "$CC"; then
3373 ac_ct_CC=$CC
3374 for ac_prog in cl.exe
3375 do
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413 test -n "$ac_ct_CC" && break
3414 done
3415
3416 if test "x$ac_ct_CC" = x; then
3417 CC=""
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3424 esac
3425 CC=$ac_ct_CC
3426 fi
3427 fi
3428
3429 fi
3430
3431
3432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "no acceptable C compiler found in \$PATH
3435 See \`config.log' for more details" "$LINENO" 5; }
3436
3437 # Provide some information about the compiler.
3438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 set X $ac_compile
3440 ac_compiler=$2
3441 for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 ac_status=$?
3451 if test -s conftest.err; then
3452 sed '10a\
3453 ... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
3456 fi
3457 rm -f conftest.er1 conftest.err
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 done
3461
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464
3465 int
3466 main ()
3467 {
3468
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 ac_clean_files_save=$ac_clean_files
3474 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3475 # Try to create an executable without -o first, disregard a.out.
3476 # It will help us diagnose broken compilers, and finding out an intuition
3477 # of exeext.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3479 $as_echo_n "checking whether the C compiler works... " >&6; }
3480 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3481
3482 # The possible output files:
3483 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484
3485 ac_rmfiles=
3486 for ac_file in $ac_files
3487 do
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3491 esac
3492 done
3493 rm -f $ac_rmfiles
3494
3495 if { { ac_try="$ac_link_default"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link_default") 2>&5
3503 ac_status=$?
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; then :
3506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3508 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3509 # so that the user can short-circuit this test for compilers unknown to
3510 # Autoconf.
3511 for ac_file in $ac_files ''
3512 do
3513 test -f "$ac_file" || continue
3514 case $ac_file in
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3516 ;;
3517 [ab].out )
3518 # We found the default executable, but exeext='' is most
3519 # certainly right.
3520 break;;
3521 *.* )
3522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3523 then :; else
3524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525 fi
3526 # We set ac_cv_exeext here because the later test for it is not
3527 # safe: cross compilers may not add the suffix if given an `-o'
3528 # argument, so we may need to know it at that point already.
3529 # Even if this section looks crufty: it has the advantage of
3530 # actually working.
3531 break;;
3532 * )
3533 break;;
3534 esac
3535 done
3536 test "$ac_cv_exeext" = no && ac_cv_exeext=
3537
3538 else
3539 ac_file=''
3540 fi
3541 if test -z "$ac_file"; then :
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 $as_echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error 77 "C compiler cannot create executables
3550 See \`config.log' for more details" "$LINENO" 5; }
3551 else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3553 $as_echo "yes" >&6; }
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3556 $as_echo_n "checking for C compiler default output file name... " >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558 $as_echo "$ac_file" >&6; }
3559 ac_exeext=$ac_cv_exeext
3560
3561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3562 ac_clean_files=$ac_clean_files_save
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3564 $as_echo_n "checking for suffix of executables... " >&6; }
3565 if { { ac_try="$ac_link"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_link") 2>&5
3573 ac_status=$?
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
3576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3577 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3578 # work properly (i.e., refer to `conftest.exe'), while it won't with
3579 # `rm'.
3580 for ac_file in conftest.exe conftest conftest.*; do
3581 test -f "$ac_file" || continue
3582 case $ac_file in
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585 break;;
3586 * ) break;;
3587 esac
3588 done
3589 else
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3593 See \`config.log' for more details" "$LINENO" 5; }
3594 fi
3595 rm -f conftest conftest$ac_cv_exeext
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3597 $as_echo "$ac_cv_exeext" >&6; }
3598
3599 rm -f conftest.$ac_ext
3600 EXEEXT=$ac_cv_exeext
3601 ac_exeext=$EXEEXT
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604 #include <stdio.h>
3605 int
3606 main ()
3607 {
3608 FILE *f = fopen ("conftest.out", "w");
3609 return ferror (f) || fclose (f) != 0;
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 ac_clean_files="$ac_clean_files conftest.out"
3616 # Check that the compiler produces executables we can run. If not, either
3617 # the compiler is broken, or we cross compile.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3619 $as_echo_n "checking whether we are cross compiling... " >&6; }
3620 if test "$cross_compiling" != yes; then
3621 { { ac_try="$ac_link"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_link") 2>&5
3629 ac_status=$?
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }
3632 if { ac_try='./conftest$ac_cv_exeext'
3633 { { case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_try") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; }; then
3643 cross_compiling=no
3644 else
3645 if test "$cross_compiling" = maybe; then
3646 cross_compiling=yes
3647 else
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details" "$LINENO" 5; }
3653 fi
3654 fi
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3657 $as_echo "$cross_compiling" >&6; }
3658
3659 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3660 ac_clean_files=$ac_clean_files_save
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3662 $as_echo_n "checking for suffix of object files... " >&6; }
3663 if ${ac_cv_objext+:} false; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.o conftest.obj
3678 if { { ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compile") 2>&5
3686 ac_status=$?
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }; then :
3689 for ac_file in conftest.o conftest.obj conftest.*; do
3690 test -f "$ac_file" || continue;
3691 case $ac_file in
3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3694 break;;
3695 esac
3696 done
3697 else
3698 $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "cannot compute suffix of object files: cannot compile
3704 See \`config.log' for more details" "$LINENO" 5; }
3705 fi
3706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3709 $as_echo "$ac_cv_objext" >&6; }
3710 OBJEXT=$ac_cv_objext
3711 ac_objext=$OBJEXT
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3714 if ${ac_cv_c_compiler_gnu+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719
3720 int
3721 main ()
3722 {
3723 #ifndef __GNUC__
3724 choke me
3725 #endif
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_compiler_gnu=yes
3733 else
3734 ac_compiler_gnu=no
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3742 if test $ac_compiler_gnu = yes; then
3743 GCC=yes
3744 else
3745 GCC=
3746 fi
3747 ac_test_CFLAGS=${CFLAGS+set}
3748 ac_save_CFLAGS=$CFLAGS
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3751 if ${ac_cv_prog_cc_g+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 ac_save_c_werror_flag=$ac_c_werror_flag
3755 ac_c_werror_flag=yes
3756 ac_cv_prog_cc_g=no
3757 CFLAGS="-g"
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760
3761 int
3762 main ()
3763 {
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_cv_prog_cc_g=yes
3771 else
3772 CFLAGS=""
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775
3776 int
3777 main ()
3778 {
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785
3786 else
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788 CFLAGS="-g"
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791
3792 int
3793 main ()
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_prog_cc_g=yes
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3811 $as_echo "$ac_cv_prog_cc_g" >&6; }
3812 if test "$ac_test_CFLAGS" = set; then
3813 CFLAGS=$ac_save_CFLAGS
3814 elif test $ac_cv_prog_cc_g = yes; then
3815 if test "$GCC" = yes; then
3816 CFLAGS="-g -O2"
3817 else
3818 CFLAGS="-g"
3819 fi
3820 else
3821 if test "$GCC" = yes; then
3822 CFLAGS="-O2"
3823 else
3824 CFLAGS=
3825 fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3829 if ${ac_cv_prog_cc_c89+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 ac_cv_prog_cc_c89=no
3833 ac_save_CC=$CC
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #include <stdarg.h>
3837 #include <stdio.h>
3838 #include <sys/types.h>
3839 #include <sys/stat.h>
3840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3841 struct buf { int x; };
3842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3843 static char *e (p, i)
3844 char **p;
3845 int i;
3846 {
3847 return p[i];
3848 }
3849 static char *f (char * (*g) (char **, int), char **p, ...)
3850 {
3851 char *s;
3852 va_list v;
3853 va_start (v,p);
3854 s = g (p, va_arg (v,int));
3855 va_end (v);
3856 return s;
3857 }
3858
3859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3860 function prototypes and stuff, but not '\xHH' hex character constants.
3861 These don't provoke an error unfortunately, instead are silently treated
3862 as 'x'. The following induces an error, until -std is added to get
3863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3864 array size at least. It's necessary to write '\x00'==0 to get something
3865 that's true only with -std. */
3866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3867
3868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3869 inside strings and character constants. */
3870 #define FOO(x) 'x'
3871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3872
3873 int test (int i, double x);
3874 struct s1 {int (*f) (int a);};
3875 struct s2 {int (*f) (double a);};
3876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3877 int argc;
3878 char **argv;
3879 int
3880 main ()
3881 {
3882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3889 do
3890 CC="$ac_save_CC $ac_arg"
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_prog_cc_c89=$ac_arg
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext
3895 test "x$ac_cv_prog_cc_c89" != "xno" && break
3896 done
3897 rm -f conftest.$ac_ext
3898 CC=$ac_save_CC
3899
3900 fi
3901 # AC_CACHE_VAL
3902 case "x$ac_cv_prog_cc_c89" in
3903 x)
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3905 $as_echo "none needed" >&6; } ;;
3906 xno)
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3908 $as_echo "unsupported" >&6; } ;;
3909 *)
3910 CC="$CC $ac_cv_prog_cc_c89"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3913 esac
3914 if test "x$ac_cv_prog_cc_c89" != xno; then :
3915
3916 fi
3917
3918 ac_ext=c
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 DEPDIR="${am__leading_dot}deps"
3924
3925 ac_config_commands="$ac_config_commands depfiles"
3926
3927
3928 am_make=${MAKE-make}
3929 cat > confinc << 'END'
3930 am__doit:
3931 @echo this is the am__doit target
3932 .PHONY: am__doit
3933 END
3934 # If we don't find an include directive, just comment out the code.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3936 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3937 am__include="#"
3938 am__quote=
3939 _am_result=none
3940 # First try GNU make style include.
3941 echo "include confinc" > confmf
3942 # Ignore all kinds of additional output from `make'.
3943 case `$am_make -s -f confmf 2> /dev/null` in #(
3944 *the\ am__doit\ target*)
3945 am__include=include
3946 am__quote=
3947 _am_result=GNU
3948 ;;
3949 esac
3950 # Now try BSD make style include.
3951 if test "$am__include" = "#"; then
3952 echo '.include "confinc"' > confmf
3953 case `$am_make -s -f confmf 2> /dev/null` in #(
3954 *the\ am__doit\ target*)
3955 am__include=.include
3956 am__quote="\""
3957 _am_result=BSD
3958 ;;
3959 esac
3960 fi
3961
3962
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3964 $as_echo "$_am_result" >&6; }
3965 rm -f confinc confmf
3966
3967 # Check whether --enable-dependency-tracking was given.
3968 if test "${enable_dependency_tracking+set}" = set; then :
3969 enableval=$enable_dependency_tracking;
3970 fi
3971
3972 if test "x$enable_dependency_tracking" != xno; then
3973 am_depcomp="$ac_aux_dir/depcomp"
3974 AMDEPBACKSLASH='\'
3975 fi
3976 if test "x$enable_dependency_tracking" != xno; then
3977 AMDEP_TRUE=
3978 AMDEP_FALSE='#'
3979 else
3980 AMDEP_TRUE='#'
3981 AMDEP_FALSE=
3982 fi
3983
3984
3985
3986 depcc="$CC" am_compiler_list=
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3989 $as_echo_n "checking dependency style of $depcc... " >&6; }
3990 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3994 # We make a subdir and do the tests there. Otherwise we can end up
3995 # making bogus files that we don't know about and never remove. For
3996 # instance it was reported that on HP-UX the gcc test will end up
3997 # making a dummy file named `D' -- because `-MD' means `put the output
3998 # in D'.
3999 mkdir conftest.dir
4000 # Copy depcomp to subdir because otherwise we won't find it if we're
4001 # using a relative directory.
4002 cp "$am_depcomp" conftest.dir
4003 cd conftest.dir
4004 # We will build objects and dependencies in a subdirectory because
4005 # it helps to detect inapplicable dependency modes. For instance
4006 # both Tru64's cc and ICC support -MD to output dependencies as a
4007 # side effect of compilation, but ICC will put the dependencies in
4008 # the current directory while Tru64 will put them in the object
4009 # directory.
4010 mkdir sub
4011
4012 am_cv_CC_dependencies_compiler_type=none
4013 if test "$am_compiler_list" = ""; then
4014 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4015 fi
4016 am__universal=false
4017 case " $depcc " in #(
4018 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4019 esac
4020
4021 for depmode in $am_compiler_list; do
4022 # Setup a source with many dependencies, because some compilers
4023 # like to wrap large dependency lists on column 80 (with \), and
4024 # we should not choose a depcomp mode which is confused by this.
4025 #
4026 # We need to recreate these files for each test, as the compiler may
4027 # overwrite some of them when testing with obscure command lines.
4028 # This happens at least with the AIX C compiler.
4029 : > sub/conftest.c
4030 for i in 1 2 3 4 5 6; do
4031 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4032 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4033 # Solaris 8's {/usr,}/bin/sh.
4034 touch sub/conftst$i.h
4035 done
4036 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4037
4038 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4039 # mode. It turns out that the SunPro C++ compiler does not properly
4040 # handle `-M -o', and we need to detect this. Also, some Intel
4041 # versions had trouble with output in subdirs
4042 am__obj=sub/conftest.${OBJEXT-o}
4043 am__minus_obj="-o $am__obj"
4044 case $depmode in
4045 gcc)
4046 # This depmode causes a compiler race in universal mode.
4047 test "$am__universal" = false || continue
4048 ;;
4049 nosideeffect)
4050 # after this tag, mechanisms are not by side-effect, so they'll
4051 # only be used when explicitly requested
4052 if test "x$enable_dependency_tracking" = xyes; then
4053 continue
4054 else
4055 break
4056 fi
4057 ;;
4058 msvisualcpp | msvcmsys)
4059 # This compiler won't grok `-c -o', but also, the minuso test has
4060 # not run yet. These depmodes are late enough in the game, and
4061 # so weak that their functioning should not be impacted.
4062 am__obj=conftest.${OBJEXT-o}
4063 am__minus_obj=
4064 ;;
4065 none) break ;;
4066 esac
4067 if depmode=$depmode \
4068 source=sub/conftest.c object=$am__obj \
4069 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4070 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4071 >/dev/null 2>conftest.err &&
4072 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4073 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4074 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4075 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4076 # icc doesn't choke on unknown options, it will just issue warnings
4077 # or remarks (even with -Werror). So we grep stderr for any message
4078 # that says an option was ignored or not supported.
4079 # When given -MP, icc 7.0 and 7.1 complain thusly:
4080 # icc: Command line warning: ignoring option '-M'; no argument required
4081 # The diagnosis changed in icc 8.0:
4082 # icc: Command line remark: option '-MP' not supported
4083 if (grep 'ignoring option' conftest.err ||
4084 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4085 am_cv_CC_dependencies_compiler_type=$depmode
4086 break
4087 fi
4088 fi
4089 done
4090
4091 cd ..
4092 rm -rf conftest.dir
4093 else
4094 am_cv_CC_dependencies_compiler_type=none
4095 fi
4096
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4099 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4101
4102 if
4103 test "x$enable_dependency_tracking" != xno \
4104 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4105 am__fastdepCC_TRUE=
4106 am__fastdepCC_FALSE='#'
4107 else
4108 am__fastdepCC_TRUE='#'
4109 am__fastdepCC_FALSE=
4110 fi
4111
4112
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4119 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4120 # On Suns, sometimes $CPP names a directory.
4121 if test -n "$CPP" && test -d "$CPP"; then
4122 CPP=
4123 fi
4124 if test -z "$CPP"; then
4125 if ${ac_cv_prog_CPP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 # Double quotes because CPP needs to be expanded
4129 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4130 do
4131 ac_preproc_ok=false
4132 for ac_c_preproc_warn_flag in '' yes
4133 do
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4147 Syntax error
4148 _ACEOF
4149 if ac_fn_c_try_cpp "$LINENO"; then :
4150
4151 else
4152 # Broken: fails on valid input.
4153 continue
4154 fi
4155 rm -f conftest.err conftest.i conftest.$ac_ext
4156
4157 # OK, works on sane cases. Now check whether nonexistent headers
4158 # can be detected and how.
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164 # Broken: success on invalid input.
4165 continue
4166 else
4167 # Passes both tests.
4168 ac_preproc_ok=:
4169 break
4170 fi
4171 rm -f conftest.err conftest.i conftest.$ac_ext
4172
4173 done
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.i conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then :
4177 break
4178 fi
4179
4180 done
4181 ac_cv_prog_CPP=$CPP
4182
4183 fi
4184 CPP=$ac_cv_prog_CPP
4185 else
4186 ac_cv_prog_CPP=$CPP
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4189 $as_echo "$CPP" >&6; }
4190 ac_preproc_ok=false
4191 for ac_c_preproc_warn_flag in '' yes
4192 do
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #ifdef __STDC__
4202 # include <limits.h>
4203 #else
4204 # include <assert.h>
4205 #endif
4206 Syntax error
4207 _ACEOF
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4209
4210 else
4211 # Broken: fails on valid input.
4212 continue
4213 fi
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4215
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <ac_nonexistent.h>
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223 # Broken: success on invalid input.
4224 continue
4225 else
4226 # Passes both tests.
4227 ac_preproc_ok=:
4228 break
4229 fi
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232 done
4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234 rm -f conftest.i conftest.err conftest.$ac_ext
4235 if $ac_preproc_ok; then :
4236
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4241 See \`config.log' for more details" "$LINENO" 5; }
4242 fi
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250 ac_ext=cpp
4251 ac_cpp='$CXXCPP $CPPFLAGS'
4252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4255 if test -z "$CXX"; then
4256 if test -n "$CCC"; then
4257 CXX=$CCC
4258 else
4259 if test -n "$ac_tool_prefix"; then
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_tool_prefix$ac_prog", so it can be a program name with args.
4263 set dummy $ac_tool_prefix$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_CXX+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$CXX"; then
4270 ac_cv_prog_CXX="$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_CXX="$ac_tool_prefix$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 CXX=$ac_cv_prog_CXX
4290 if test -n "$CXX"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4292 $as_echo "$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 "$CXX" && break
4300 done
4301 fi
4302 if test -z "$CXX"; then
4303 ac_ct_CXX=$CXX
4304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4305 do
4306 # Extract the first word of "$ac_prog", so it can be a program name with args.
4307 set dummy $ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$ac_ct_CXX"; then
4314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_ac_ct_CXX="$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4334 if test -n "$ac_ct_CXX"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4336 $as_echo "$ac_ct_CXX" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342
4343 test -n "$ac_ct_CXX" && break
4344 done
4345
4346 if test "x$ac_ct_CXX" = x; then
4347 CXX="g++"
4348 else
4349 case $cross_compiling:$ac_tool_warned in
4350 yes:)
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353 ac_tool_warned=yes ;;
4354 esac
4355 CXX=$ac_ct_CXX
4356 fi
4357 fi
4358
4359 fi
4360 fi
4361 # Provide some information about the compiler.
4362 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4363 set X $ac_compile
4364 ac_compiler=$2
4365 for ac_option in --version -v -V -qversion; do
4366 { { ac_try="$ac_compiler $ac_option >&5"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4374 ac_status=$?
4375 if test -s conftest.err; then
4376 sed '10a\
4377 ... rest of stderr output deleted ...
4378 10q' conftest.err >conftest.er1
4379 cat conftest.er1 >&5
4380 fi
4381 rm -f conftest.er1 conftest.err
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; }
4384 done
4385
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4387 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4388 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393
4394 int
4395 main ()
4396 {
4397 #ifndef __GNUC__
4398 choke me
4399 #endif
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_cxx_try_compile "$LINENO"; then :
4406 ac_compiler_gnu=yes
4407 else
4408 ac_compiler_gnu=no
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4412
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4415 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4416 if test $ac_compiler_gnu = yes; then
4417 GXX=yes
4418 else
4419 GXX=
4420 fi
4421 ac_test_CXXFLAGS=${CXXFLAGS+set}
4422 ac_save_CXXFLAGS=$CXXFLAGS
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4424 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4425 if ${ac_cv_prog_cxx_g+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4429 ac_cxx_werror_flag=yes
4430 ac_cv_prog_cxx_g=no
4431 CXXFLAGS="-g"
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434
4435 int
4436 main ()
4437 {
4438
4439 ;
4440 return 0;
4441 }
4442 _ACEOF
4443 if ac_fn_cxx_try_compile "$LINENO"; then :
4444 ac_cv_prog_cxx_g=yes
4445 else
4446 CXXFLAGS=""
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449
4450 int
4451 main ()
4452 {
4453
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 if ac_fn_cxx_try_compile "$LINENO"; then :
4459
4460 else
4461 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4462 CXXFLAGS="-g"
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465
4466 int
4467 main ()
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 if ac_fn_cxx_try_compile "$LINENO"; then :
4475 ac_cv_prog_cxx_g=yes
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4485 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4486 if test "$ac_test_CXXFLAGS" = set; then
4487 CXXFLAGS=$ac_save_CXXFLAGS
4488 elif test $ac_cv_prog_cxx_g = yes; then
4489 if test "$GXX" = yes; then
4490 CXXFLAGS="-g -O2"
4491 else
4492 CXXFLAGS="-g"
4493 fi
4494 else
4495 if test "$GXX" = yes; then
4496 CXXFLAGS="-O2"
4497 else
4498 CXXFLAGS=
4499 fi
4500 fi
4501 ac_ext=c
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506
4507 depcc="$CXX" am_compiler_list=
4508
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4510 $as_echo_n "checking dependency style of $depcc... " >&6; }
4511 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4515 # We make a subdir and do the tests there. Otherwise we can end up
4516 # making bogus files that we don't know about and never remove. For
4517 # instance it was reported that on HP-UX the gcc test will end up
4518 # making a dummy file named `D' -- because `-MD' means `put the output
4519 # in D'.
4520 mkdir conftest.dir
4521 # Copy depcomp to subdir because otherwise we won't find it if we're
4522 # using a relative directory.
4523 cp "$am_depcomp" conftest.dir
4524 cd conftest.dir
4525 # We will build objects and dependencies in a subdirectory because
4526 # it helps to detect inapplicable dependency modes. For instance
4527 # both Tru64's cc and ICC support -MD to output dependencies as a
4528 # side effect of compilation, but ICC will put the dependencies in
4529 # the current directory while Tru64 will put them in the object
4530 # directory.
4531 mkdir sub
4532
4533 am_cv_CXX_dependencies_compiler_type=none
4534 if test "$am_compiler_list" = ""; then
4535 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4536 fi
4537 am__universal=false
4538 case " $depcc " in #(
4539 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4540 esac
4541
4542 for depmode in $am_compiler_list; do
4543 # Setup a source with many dependencies, because some compilers
4544 # like to wrap large dependency lists on column 80 (with \), and
4545 # we should not choose a depcomp mode which is confused by this.
4546 #
4547 # We need to recreate these files for each test, as the compiler may
4548 # overwrite some of them when testing with obscure command lines.
4549 # This happens at least with the AIX C compiler.
4550 : > sub/conftest.c
4551 for i in 1 2 3 4 5 6; do
4552 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4553 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4554 # Solaris 8's {/usr,}/bin/sh.
4555 touch sub/conftst$i.h
4556 done
4557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4558
4559 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4560 # mode. It turns out that the SunPro C++ compiler does not properly
4561 # handle `-M -o', and we need to detect this. Also, some Intel
4562 # versions had trouble with output in subdirs
4563 am__obj=sub/conftest.${OBJEXT-o}
4564 am__minus_obj="-o $am__obj"
4565 case $depmode in
4566 gcc)
4567 # This depmode causes a compiler race in universal mode.
4568 test "$am__universal" = false || continue
4569 ;;
4570 nosideeffect)
4571 # after this tag, mechanisms are not by side-effect, so they'll
4572 # only be used when explicitly requested
4573 if test "x$enable_dependency_tracking" = xyes; then
4574 continue
4575 else
4576 break
4577 fi
4578 ;;
4579 msvisualcpp | msvcmsys)
4580 # This compiler won't grok `-c -o', but also, the minuso test has
4581 # not run yet. These depmodes are late enough in the game, and
4582 # so weak that their functioning should not be impacted.
4583 am__obj=conftest.${OBJEXT-o}
4584 am__minus_obj=
4585 ;;
4586 none) break ;;
4587 esac
4588 if depmode=$depmode \
4589 source=sub/conftest.c object=$am__obj \
4590 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4591 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4592 >/dev/null 2>conftest.err &&
4593 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4595 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4597 # icc doesn't choke on unknown options, it will just issue warnings
4598 # or remarks (even with -Werror). So we grep stderr for any message
4599 # that says an option was ignored or not supported.
4600 # When given -MP, icc 7.0 and 7.1 complain thusly:
4601 # icc: Command line warning: ignoring option '-M'; no argument required
4602 # The diagnosis changed in icc 8.0:
4603 # icc: Command line remark: option '-MP' not supported
4604 if (grep 'ignoring option' conftest.err ||
4605 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4606 am_cv_CXX_dependencies_compiler_type=$depmode
4607 break
4608 fi
4609 fi
4610 done
4611
4612 cd ..
4613 rm -rf conftest.dir
4614 else
4615 am_cv_CXX_dependencies_compiler_type=none
4616 fi
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4620 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4621 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4622
4623 if
4624 test "x$enable_dependency_tracking" != xno \
4625 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4626 am__fastdepCXX_TRUE=
4627 am__fastdepCXX_FALSE='#'
4628 else
4629 am__fastdepCXX_TRUE='#'
4630 am__fastdepCXX_FALSE=
4631 fi
4632
4633
4634 # Check whether --enable-static was given.
4635 if test "${enable_static+set}" = set; then :
4636 enableval=$enable_static; p=${PACKAGE-default}
4637 case $enableval in
4638 yes) enable_static=yes ;;
4639 no) enable_static=no ;;
4640 *)
4641 enable_static=no
4642 # Look at the argument we got. We use all the common list separators.
4643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4644 for pkg in $enableval; do
4645 IFS="$lt_save_ifs"
4646 if test "X$pkg" = "X$p"; then
4647 enable_static=yes
4648 fi
4649 done
4650 IFS="$lt_save_ifs"
4651 ;;
4652 esac
4653 else
4654 enable_static=no
4655 fi
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665 case `pwd` in
4666 *\ * | *\ *)
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4668 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4669 esac
4670
4671
4672
4673 macro_version='2.4'
4674 macro_revision='1.3293'
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688 ltmain="$ac_aux_dir/ltmain.sh"
4689
4690 # Backslashify metacharacters that are still active within
4691 # double-quoted strings.
4692 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4693
4694 # Same as above, but do not quote variable references.
4695 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4696
4697 # Sed substitution to delay expansion of an escaped shell variable in a
4698 # double_quote_subst'ed string.
4699 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4700
4701 # Sed substitution to delay expansion of an escaped single quote.
4702 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4703
4704 # Sed substitution to avoid accidental globbing in evaled expressions
4705 no_glob_subst='s/\*/\\\*/g'
4706
4707 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4708 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4709 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4712 $as_echo_n "checking how to print strings... " >&6; }
4713 # Test print first, because it will be a builtin if present.
4714 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4715 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4716 ECHO='print -r --'
4717 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4718 ECHO='printf %s\n'
4719 else
4720 # Use this function as a fallback that always works.
4721 func_fallback_echo ()
4722 {
4723 eval 'cat <<_LTECHO_EOF
4724 $1
4725 _LTECHO_EOF'
4726 }
4727 ECHO='func_fallback_echo'
4728 fi
4729
4730 # func_echo_all arg...
4731 # Invoke $ECHO with all args, space-separated.
4732 func_echo_all ()
4733 {
4734 $ECHO ""
4735 }
4736
4737 case "$ECHO" in
4738 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4739 $as_echo "printf" >&6; } ;;
4740 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4741 $as_echo "print -r" >&6; } ;;
4742 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4743 $as_echo "cat" >&6; } ;;
4744 esac
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4760 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4761 if ${ac_cv_path_SED+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4765 for ac_i in 1 2 3 4 5 6 7; do
4766 ac_script="$ac_script$as_nl$ac_script"
4767 done
4768 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4769 { ac_script=; unset ac_script;}
4770 if test -z "$SED"; then
4771 ac_path_SED_found=false
4772 # Loop through the user's path and test for each of PROGNAME-LIST
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_prog in sed gsed; do
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4781 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4782 # Check for GNU ac_path_SED and select it if it is found.
4783 # Check for GNU $ac_path_SED
4784 case `"$ac_path_SED" --version 2>&1` in
4785 *GNU*)
4786 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4787 *)
4788 ac_count=0
4789 $as_echo_n 0123456789 >"conftest.in"
4790 while :
4791 do
4792 cat "conftest.in" "conftest.in" >"conftest.tmp"
4793 mv "conftest.tmp" "conftest.in"
4794 cp "conftest.in" "conftest.nl"
4795 $as_echo '' >> "conftest.nl"
4796 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4798 as_fn_arith $ac_count + 1 && ac_count=$as_val
4799 if test $ac_count -gt ${ac_path_SED_max-0}; then
4800 # Best one so far, save it but keep looking for a better one
4801 ac_cv_path_SED="$ac_path_SED"
4802 ac_path_SED_max=$ac_count
4803 fi
4804 # 10*(2^10) chars as input seems more than enough
4805 test $ac_count -gt 10 && break
4806 done
4807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4808 esac
4809
4810 $ac_path_SED_found && break 3
4811 done
4812 done
4813 done
4814 IFS=$as_save_IFS
4815 if test -z "$ac_cv_path_SED"; then
4816 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4817 fi
4818 else
4819 ac_cv_path_SED=$SED
4820 fi
4821
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4824 $as_echo "$ac_cv_path_SED" >&6; }
4825 SED="$ac_cv_path_SED"
4826 rm -f conftest.sed
4827
4828 test -z "$SED" && SED=sed
4829 Xsed="$SED -e 1s/^X//"
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4842 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4843 if ${ac_cv_path_GREP+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 if test -z "$GREP"; then
4847 ac_path_GREP_found=false
4848 # Loop through the user's path and test for each of PROGNAME-LIST
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4851 do
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 for ac_prog in grep ggrep; do
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4857 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4858 # Check for GNU ac_path_GREP and select it if it is found.
4859 # Check for GNU $ac_path_GREP
4860 case `"$ac_path_GREP" --version 2>&1` in
4861 *GNU*)
4862 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4863 *)
4864 ac_count=0
4865 $as_echo_n 0123456789 >"conftest.in"
4866 while :
4867 do
4868 cat "conftest.in" "conftest.in" >"conftest.tmp"
4869 mv "conftest.tmp" "conftest.in"
4870 cp "conftest.in" "conftest.nl"
4871 $as_echo 'GREP' >> "conftest.nl"
4872 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4874 as_fn_arith $ac_count + 1 && ac_count=$as_val
4875 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4876 # Best one so far, save it but keep looking for a better one
4877 ac_cv_path_GREP="$ac_path_GREP"
4878 ac_path_GREP_max=$ac_count
4879 fi
4880 # 10*(2^10) chars as input seems more than enough
4881 test $ac_count -gt 10 && break
4882 done
4883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4884 esac
4885
4886 $ac_path_GREP_found && break 3
4887 done
4888 done
4889 done
4890 IFS=$as_save_IFS
4891 if test -z "$ac_cv_path_GREP"; then
4892 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4893 fi
4894 else
4895 ac_cv_path_GREP=$GREP
4896 fi
4897
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4900 $as_echo "$ac_cv_path_GREP" >&6; }
4901 GREP="$ac_cv_path_GREP"
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4905 $as_echo_n "checking for egrep... " >&6; }
4906 if ${ac_cv_path_EGREP+:} false; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4910 then ac_cv_path_EGREP="$GREP -E"
4911 else
4912 if test -z "$EGREP"; then
4913 ac_path_EGREP_found=false
4914 # Loop through the user's path and test for each of PROGNAME-LIST
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4917 do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_prog in egrep; do
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4923 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4924 # Check for GNU ac_path_EGREP and select it if it is found.
4925 # Check for GNU $ac_path_EGREP
4926 case `"$ac_path_EGREP" --version 2>&1` in
4927 *GNU*)
4928 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4929 *)
4930 ac_count=0
4931 $as_echo_n 0123456789 >"conftest.in"
4932 while :
4933 do
4934 cat "conftest.in" "conftest.in" >"conftest.tmp"
4935 mv "conftest.tmp" "conftest.in"
4936 cp "conftest.in" "conftest.nl"
4937 $as_echo 'EGREP' >> "conftest.nl"
4938 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4940 as_fn_arith $ac_count + 1 && ac_count=$as_val
4941 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4942 # Best one so far, save it but keep looking for a better one
4943 ac_cv_path_EGREP="$ac_path_EGREP"
4944 ac_path_EGREP_max=$ac_count
4945 fi
4946 # 10*(2^10) chars as input seems more than enough
4947 test $ac_count -gt 10 && break
4948 done
4949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4950 esac
4951
4952 $ac_path_EGREP_found && break 3
4953 done
4954 done
4955 done
4956 IFS=$as_save_IFS
4957 if test -z "$ac_cv_path_EGREP"; then
4958 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4959 fi
4960 else
4961 ac_cv_path_EGREP=$EGREP
4962 fi
4963
4964 fi
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4967 $as_echo "$ac_cv_path_EGREP" >&6; }
4968 EGREP="$ac_cv_path_EGREP"
4969
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4972 $as_echo_n "checking for fgrep... " >&6; }
4973 if ${ac_cv_path_FGREP+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4977 then ac_cv_path_FGREP="$GREP -F"
4978 else
4979 if test -z "$FGREP"; then
4980 ac_path_FGREP_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4984 do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_prog in fgrep; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4990 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4991 # Check for GNU ac_path_FGREP and select it if it is found.
4992 # Check for GNU $ac_path_FGREP
4993 case `"$ac_path_FGREP" --version 2>&1` in
4994 *GNU*)
4995 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4996 *)
4997 ac_count=0
4998 $as_echo_n 0123456789 >"conftest.in"
4999 while :
5000 do
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 $as_echo 'FGREP' >> "conftest.nl"
5005 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 as_fn_arith $ac_count + 1 && ac_count=$as_val
5008 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_FGREP="$ac_path_FGREP"
5011 ac_path_FGREP_max=$ac_count
5012 fi
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5015 done
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 esac
5018
5019 $ac_path_FGREP_found && break 3
5020 done
5021 done
5022 done
5023 IFS=$as_save_IFS
5024 if test -z "$ac_cv_path_FGREP"; then
5025 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5026 fi
5027 else
5028 ac_cv_path_FGREP=$FGREP
5029 fi
5030
5031 fi
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5034 $as_echo "$ac_cv_path_FGREP" >&6; }
5035 FGREP="$ac_cv_path_FGREP"
5036
5037
5038 test -z "$GREP" && GREP=grep
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058 # Check whether --with-gnu-ld was given.
5059 if test "${with_gnu_ld+set}" = set; then :
5060 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5061 else
5062 with_gnu_ld=no
5063 fi
5064
5065 ac_prog=ld
5066 if test "$GCC" = yes; then
5067 # Check if gcc -print-prog-name=ld gives a path.
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5069 $as_echo_n "checking for ld used by $CC... " >&6; }
5070 case $host in
5071 *-*-mingw*)
5072 # gcc leaves a trailing carriage return which upsets mingw
5073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5074 *)
5075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5076 esac
5077 case $ac_prog in
5078 # Accept absolute paths.
5079 [\\/]* | ?:[\\/]*)
5080 re_direlt='/[^/][^/]*/\.\./'
5081 # Canonicalize the pathname of ld
5082 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5083 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5084 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5085 done
5086 test -z "$LD" && LD="$ac_prog"
5087 ;;
5088 "")
5089 # If it fails, then pretend we aren't using GCC.
5090 ac_prog=ld
5091 ;;
5092 *)
5093 # If it is relative, then search for the first ld in PATH.
5094 with_gnu_ld=unknown
5095 ;;
5096 esac
5097 elif test "$with_gnu_ld" = yes; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5099 $as_echo_n "checking for GNU ld... " >&6; }
5100 else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5102 $as_echo_n "checking for non-GNU ld... " >&6; }
5103 fi
5104 if ${lt_cv_path_LD+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -z "$LD"; then
5108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5109 for ac_dir in $PATH; do
5110 IFS="$lt_save_ifs"
5111 test -z "$ac_dir" && ac_dir=.
5112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5113 lt_cv_path_LD="$ac_dir/$ac_prog"
5114 # Check to see if the program is GNU ld. I'd rather use --version,
5115 # but apparently some variants of GNU ld only accept -v.
5116 # Break only if it was the GNU/non-GNU ld that we prefer.
5117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5118 *GNU* | *'with BFD'*)
5119 test "$with_gnu_ld" != no && break
5120 ;;
5121 *)
5122 test "$with_gnu_ld" != yes && break
5123 ;;
5124 esac
5125 fi
5126 done
5127 IFS="$lt_save_ifs"
5128 else
5129 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5130 fi
5131 fi
5132
5133 LD="$lt_cv_path_LD"
5134 if test -n "$LD"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5136 $as_echo "$LD" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5143 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5144 if ${lt_cv_prog_gnu_ld+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5148 case `$LD -v 2>&1 </dev/null` in
5149 *GNU* | *'with BFD'*)
5150 lt_cv_prog_gnu_ld=yes
5151 ;;
5152 *)
5153 lt_cv_prog_gnu_ld=no
5154 ;;
5155 esac
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5158 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5159 with_gnu_ld=$lt_cv_prog_gnu_ld
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5170 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5171 if ${lt_cv_path_NM+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$NM"; then
5175 # Let the user override the test.
5176 lt_cv_path_NM="$NM"
5177 else
5178 lt_nm_to_check="${ac_tool_prefix}nm"
5179 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5180 lt_nm_to_check="$lt_nm_to_check nm"
5181 fi
5182 for lt_tmp_nm in $lt_nm_to_check; do
5183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5184 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5185 IFS="$lt_save_ifs"
5186 test -z "$ac_dir" && ac_dir=.
5187 tmp_nm="$ac_dir/$lt_tmp_nm"
5188 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5189 # Check to see if the nm accepts a BSD-compat flag.
5190 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5191 # nm: unknown option "B" ignored
5192 # Tru64's nm complains that /dev/null is an invalid object file
5193 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5194 */dev/null* | *'Invalid file or object type'*)
5195 lt_cv_path_NM="$tmp_nm -B"
5196 break
5197 ;;
5198 *)
5199 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5200 */dev/null*)
5201 lt_cv_path_NM="$tmp_nm -p"
5202 break
5203 ;;
5204 *)
5205 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5206 continue # so that we can try to find one that supports BSD flags
5207 ;;
5208 esac
5209 ;;
5210 esac
5211 fi
5212 done
5213 IFS="$lt_save_ifs"
5214 done
5215 : ${lt_cv_path_NM=no}
5216 fi
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5219 $as_echo "$lt_cv_path_NM" >&6; }
5220 if test "$lt_cv_path_NM" != "no"; then
5221 NM="$lt_cv_path_NM"
5222 else
5223 # Didn't find any BSD compatible name lister, look for dumpbin.
5224 if test -n "$DUMPBIN"; then :
5225 # Let the user override the test.
5226 else
5227 if test -n "$ac_tool_prefix"; then
5228 for ac_prog in dumpbin "link -dump"
5229 do
5230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_prog_DUMPBIN+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$DUMPBIN"; then
5238 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255 fi
5256 fi
5257 DUMPBIN=$ac_cv_prog_DUMPBIN
5258 if test -n "$DUMPBIN"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5260 $as_echo "$DUMPBIN" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267 test -n "$DUMPBIN" && break
5268 done
5269 fi
5270 if test -z "$DUMPBIN"; then
5271 ac_ct_DUMPBIN=$DUMPBIN
5272 for ac_prog in dumpbin "link -dump"
5273 do
5274 # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$ac_ct_DUMPBIN"; then
5282 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5294 fi
5295 done
5296 done
5297 IFS=$as_save_IFS
5298
5299 fi
5300 fi
5301 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5302 if test -n "$ac_ct_DUMPBIN"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5304 $as_echo "$ac_ct_DUMPBIN" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5308 fi
5309
5310
5311 test -n "$ac_ct_DUMPBIN" && break
5312 done
5313
5314 if test "x$ac_ct_DUMPBIN" = x; then
5315 DUMPBIN=":"
5316 else
5317 case $cross_compiling:$ac_tool_warned in
5318 yes:)
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5321 ac_tool_warned=yes ;;
5322 esac
5323 DUMPBIN=$ac_ct_DUMPBIN
5324 fi
5325 fi
5326
5327 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5328 *COFF*)
5329 DUMPBIN="$DUMPBIN -symbols"
5330 ;;
5331 *)
5332 DUMPBIN=:
5333 ;;
5334 esac
5335 fi
5336
5337 if test "$DUMPBIN" != ":"; then
5338 NM="$DUMPBIN"
5339 fi
5340 fi
5341 test -z "$NM" && NM=nm
5342
5343
5344
5345
5346
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5349 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5350 if ${lt_cv_nm_interface+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 lt_cv_nm_interface="BSD nm"
5354 echo "int some_variable = 0;" > conftest.$ac_ext
5355 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5356 (eval "$ac_compile" 2>conftest.err)
5357 cat conftest.err >&5
5358 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5359 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5360 cat conftest.err >&5
5361 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5362 cat conftest.out >&5
5363 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5364 lt_cv_nm_interface="MS dumpbin"
5365 fi
5366 rm -f conftest*
5367 fi
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5369 $as_echo "$lt_cv_nm_interface" >&6; }
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5372 $as_echo_n "checking whether ln -s works... " >&6; }
5373 LN_S=$as_ln_s
5374 if test "$LN_S" = "ln -s"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376 $as_echo "yes" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5379 $as_echo "no, using $LN_S" >&6; }
5380 fi
5381
5382 # find the maximum length of command line arguments
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5384 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5385 if ${lt_cv_sys_max_cmd_len+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 i=0
5389 teststring="ABCD"
5390
5391 case $build_os in
5392 msdosdjgpp*)
5393 # On DJGPP, this test can blow up pretty badly due to problems in libc
5394 # (any single argument exceeding 2000 bytes causes a buffer overrun
5395 # during glob expansion). Even if it were fixed, the result of this
5396 # check would be larger than it should be.
5397 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5398 ;;
5399
5400 gnu*)
5401 # Under GNU Hurd, this test is not required because there is
5402 # no limit to the length of command line arguments.
5403 # Libtool will interpret -1 as no limit whatsoever
5404 lt_cv_sys_max_cmd_len=-1;
5405 ;;
5406
5407 cygwin* | mingw* | cegcc*)
5408 # On Win9x/ME, this test blows up -- it succeeds, but takes
5409 # about 5 minutes as the teststring grows exponentially.
5410 # Worse, since 9x/ME are not pre-emptively multitasking,
5411 # you end up with a "frozen" computer, even though with patience
5412 # the test eventually succeeds (with a max line length of 256k).
5413 # Instead, let's just punt: use the minimum linelength reported by
5414 # all of the supported platforms: 8192 (on NT/2K/XP).
5415 lt_cv_sys_max_cmd_len=8192;
5416 ;;
5417
5418 mint*)
5419 # On MiNT this can take a long time and run out of memory.
5420 lt_cv_sys_max_cmd_len=8192;
5421 ;;
5422
5423 amigaos*)
5424 # On AmigaOS with pdksh, this test takes hours, literally.
5425 # So we just punt and use a minimum line length of 8192.
5426 lt_cv_sys_max_cmd_len=8192;
5427 ;;
5428
5429 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5430 # This has been around since 386BSD, at least. Likely further.
5431 if test -x /sbin/sysctl; then
5432 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5433 elif test -x /usr/sbin/sysctl; then
5434 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5435 else
5436 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5437 fi
5438 # And add a safety zone
5439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5441 ;;
5442
5443 interix*)
5444 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5445 lt_cv_sys_max_cmd_len=196608
5446 ;;
5447
5448 osf*)
5449 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5450 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5451 # nice to cause kernel panics so lets avoid the loop below.
5452 # First set a reasonable default.
5453 lt_cv_sys_max_cmd_len=16384
5454 #
5455 if test -x /sbin/sysconfig; then
5456 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5457 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5458 esac
5459 fi
5460 ;;
5461 sco3.2v5*)
5462 lt_cv_sys_max_cmd_len=102400
5463 ;;
5464 sysv5* | sco5v6* | sysv4.2uw2*)
5465 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5466 if test -n "$kargmax"; then
5467 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5468 else
5469 lt_cv_sys_max_cmd_len=32768
5470 fi
5471 ;;
5472 *)
5473 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5474 if test -n "$lt_cv_sys_max_cmd_len"; then
5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5477 else
5478 # Make teststring a little bigger before we do anything with it.
5479 # a 1K string should be a reasonable start.
5480 for i in 1 2 3 4 5 6 7 8 ; do
5481 teststring=$teststring$teststring
5482 done
5483 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5484 # If test is not a shell built-in, we'll probably end up computing a
5485 # maximum length that is only half of the actual maximum length, but
5486 # we can't tell.
5487 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5488 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5489 test $i != 17 # 1/2 MB should be enough
5490 do
5491 i=`expr $i + 1`
5492 teststring=$teststring$teststring
5493 done
5494 # Only check the string length outside the loop.
5495 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5496 teststring=
5497 # Add a significant safety factor because C++ compilers can tack on
5498 # massive amounts of additional arguments before passing them to the
5499 # linker. It appears as though 1/2 is a usable value.
5500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5501 fi
5502 ;;
5503 esac
5504
5505 fi
5506
5507 if test -n $lt_cv_sys_max_cmd_len ; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5509 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5512 $as_echo "none" >&6; }
5513 fi
5514 max_cmd_len=$lt_cv_sys_max_cmd_len
5515
5516
5517
5518
5519
5520
5521 : ${CP="cp -f"}
5522 : ${MV="mv -f"}
5523 : ${RM="rm -f"}
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5526 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5527 # Try some XSI features
5528 xsi_shell=no
5529 ( _lt_dummy="a/b/c"
5530 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5531 = c,a/b,b/c, \
5532 && eval 'test $(( 1 + 1 )) -eq 2 \
5533 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5534 && xsi_shell=yes
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5536 $as_echo "$xsi_shell" >&6; }
5537
5538
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5540 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5541 lt_shell_append=no
5542 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5543 >/dev/null 2>&1 \
5544 && lt_shell_append=yes
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5546 $as_echo "$lt_shell_append" >&6; }
5547
5548
5549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5550 lt_unset=unset
5551 else
5552 lt_unset=false
5553 fi
5554
5555
5556
5557
5558
5559 # test EBCDIC or ASCII
5560 case `echo X|tr X '\101'` in
5561 A) # ASCII based system
5562 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5563 lt_SP2NL='tr \040 \012'
5564 lt_NL2SP='tr \015\012 \040\040'
5565 ;;
5566 *) # EBCDIC based system
5567 lt_SP2NL='tr \100 \n'
5568 lt_NL2SP='tr \r\n \100\100'
5569 ;;
5570 esac
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5581 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5582 if ${lt_cv_to_host_file_cmd+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 case $host in
5586 *-*-mingw* )
5587 case $build in
5588 *-*-mingw* ) # actually msys
5589 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5590 ;;
5591 *-*-cygwin* )
5592 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5593 ;;
5594 * ) # otherwise, assume *nix
5595 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5596 ;;
5597 esac
5598 ;;
5599 *-*-cygwin* )
5600 case $build in
5601 *-*-mingw* ) # actually msys
5602 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5603 ;;
5604 *-*-cygwin* )
5605 lt_cv_to_host_file_cmd=func_convert_file_noop
5606 ;;
5607 * ) # otherwise, assume *nix
5608 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5609 ;;
5610 esac
5611 ;;
5612 * ) # unhandled hosts (and "normal" native builds)
5613 lt_cv_to_host_file_cmd=func_convert_file_noop
5614 ;;
5615 esac
5616
5617 fi
5618
5619 to_host_file_cmd=$lt_cv_to_host_file_cmd
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5621 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5622
5623
5624
5625
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5628 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5629 if ${lt_cv_to_tool_file_cmd+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 #assume ordinary cross tools, or native build.
5633 lt_cv_to_tool_file_cmd=func_convert_file_noop
5634 case $host in
5635 *-*-mingw* )
5636 case $build in
5637 *-*-mingw* ) # actually msys
5638 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5639 ;;
5640 esac
5641 ;;
5642 esac
5643
5644 fi
5645
5646 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5648 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5649
5650
5651
5652
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5655 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5656 if ${lt_cv_ld_reload_flag+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 lt_cv_ld_reload_flag='-r'
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5662 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5663 reload_flag=$lt_cv_ld_reload_flag
5664 case $reload_flag in
5665 "" | " "*) ;;
5666 *) reload_flag=" $reload_flag" ;;
5667 esac
5668 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5669 case $host_os in
5670 cygwin* | mingw* | pw32* | cegcc*)
5671 if test "$GCC" != yes; then
5672 reload_cmds=false
5673 fi
5674 ;;
5675 darwin*)
5676 if test "$GCC" = yes; then
5677 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5678 else
5679 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5680 fi
5681 ;;
5682 esac
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 if test -n "$ac_tool_prefix"; then
5693 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5694 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_OBJDUMP+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$OBJDUMP"; then
5701 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714 done
5715 done
5716 IFS=$as_save_IFS
5717
5718 fi
5719 fi
5720 OBJDUMP=$ac_cv_prog_OBJDUMP
5721 if test -n "$OBJDUMP"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5723 $as_echo "$OBJDUMP" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730 fi
5731 if test -z "$ac_cv_prog_OBJDUMP"; then
5732 ac_ct_OBJDUMP=$OBJDUMP
5733 # Extract the first word of "objdump", so it can be a program name with args.
5734 set dummy objdump; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$ac_ct_OBJDUMP"; then
5741 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5761 if test -n "$ac_ct_OBJDUMP"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5763 $as_echo "$ac_ct_OBJDUMP" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769 if test "x$ac_ct_OBJDUMP" = x; then
5770 OBJDUMP="false"
5771 else
5772 case $cross_compiling:$ac_tool_warned in
5773 yes:)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776 ac_tool_warned=yes ;;
5777 esac
5778 OBJDUMP=$ac_ct_OBJDUMP
5779 fi
5780 else
5781 OBJDUMP="$ac_cv_prog_OBJDUMP"
5782 fi
5783
5784 test -z "$OBJDUMP" && OBJDUMP=objdump
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5795 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5796 if ${lt_cv_deplibs_check_method+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 lt_cv_file_magic_cmd='$MAGIC_CMD'
5800 lt_cv_file_magic_test_file=
5801 lt_cv_deplibs_check_method='unknown'
5802 # Need to set the preceding variable on all platforms that support
5803 # interlibrary dependencies.
5804 # 'none' -- dependencies not supported.
5805 # `unknown' -- same as none, but documents that we really don't know.
5806 # 'pass_all' -- all dependencies passed with no checks.
5807 # 'test_compile' -- check by making test program.
5808 # 'file_magic [[regex]]' -- check by looking for files in library path
5809 # which responds to the $file_magic_cmd with a given extended regex.
5810 # If you have `file' or equivalent on your system and you're not sure
5811 # whether `pass_all' will *always* work, you probably want this one.
5812
5813 case $host_os in
5814 aix[4-9]*)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817
5818 beos*)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821
5822 bsdi[45]*)
5823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5824 lt_cv_file_magic_cmd='/usr/bin/file -L'
5825 lt_cv_file_magic_test_file=/shlib/libc.so
5826 ;;
5827
5828 cygwin*)
5829 # func_win32_libid is a shell function defined in ltmain.sh
5830 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5831 lt_cv_file_magic_cmd='func_win32_libid'
5832 ;;
5833
5834 mingw* | pw32*)
5835 # Base MSYS/MinGW do not provide the 'file' command needed by
5836 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5837 # unless we find 'file', for example because we are cross-compiling.
5838 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5839 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5840 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5841 lt_cv_file_magic_cmd='func_win32_libid'
5842 else
5843 # Keep this pattern in sync with the one in func_win32_libid.
5844 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5845 lt_cv_file_magic_cmd='$OBJDUMP -f'
5846 fi
5847 ;;
5848
5849 cegcc*)
5850 # use the weaker test based on 'objdump'. See mingw*.
5851 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5852 lt_cv_file_magic_cmd='$OBJDUMP -f'
5853 ;;
5854
5855 darwin* | rhapsody*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 freebsd* | dragonfly*)
5860 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5861 case $host_cpu in
5862 i*86 )
5863 # Not sure whether the presence of OpenBSD here was a mistake.
5864 # Let's accept both of them until this is cleared up.
5865 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5866 lt_cv_file_magic_cmd=/usr/bin/file
5867 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5868 ;;
5869 esac
5870 else
5871 lt_cv_deplibs_check_method=pass_all
5872 fi
5873 ;;
5874
5875 gnu*)
5876 lt_cv_deplibs_check_method=pass_all
5877 ;;
5878
5879 haiku*)
5880 lt_cv_deplibs_check_method=pass_all
5881 ;;
5882
5883 hpux10.20* | hpux11*)
5884 lt_cv_file_magic_cmd=/usr/bin/file
5885 case $host_cpu in
5886 ia64*)
5887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5888 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5889 ;;
5890 hppa*64*)
5891 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]'
5892 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5893 ;;
5894 *)
5895 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5896 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5897 ;;
5898 esac
5899 ;;
5900
5901 interix[3-9]*)
5902 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5904 ;;
5905
5906 irix5* | irix6* | nonstopux*)
5907 case $LD in
5908 *-32|*"-32 ") libmagic=32-bit;;
5909 *-n32|*"-n32 ") libmagic=N32;;
5910 *-64|*"-64 ") libmagic=64-bit;;
5911 *) libmagic=never-match;;
5912 esac
5913 lt_cv_deplibs_check_method=pass_all
5914 ;;
5915
5916 # This must be Linux ELF.
5917 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5918 lt_cv_deplibs_check_method=pass_all
5919 ;;
5920
5921 netbsd*)
5922 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5924 else
5925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5926 fi
5927 ;;
5928
5929 newos6*)
5930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5931 lt_cv_file_magic_cmd=/usr/bin/file
5932 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5933 ;;
5934
5935 *nto* | *qnx*)
5936 lt_cv_deplibs_check_method=pass_all
5937 ;;
5938
5939 openbsd*)
5940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5942 else
5943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5944 fi
5945 ;;
5946
5947 osf3* | osf4* | osf5*)
5948 lt_cv_deplibs_check_method=pass_all
5949 ;;
5950
5951 rdos*)
5952 lt_cv_deplibs_check_method=pass_all
5953 ;;
5954
5955 solaris*)
5956 lt_cv_deplibs_check_method=pass_all
5957 ;;
5958
5959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5960 lt_cv_deplibs_check_method=pass_all
5961 ;;
5962
5963 sysv4 | sysv4.3*)
5964 case $host_vendor in
5965 motorola)
5966 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]'
5967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5968 ;;
5969 ncr)
5970 lt_cv_deplibs_check_method=pass_all
5971 ;;
5972 sequent)
5973 lt_cv_file_magic_cmd='/bin/file'
5974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5975 ;;
5976 sni)
5977 lt_cv_file_magic_cmd='/bin/file'
5978 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5979 lt_cv_file_magic_test_file=/lib/libc.so
5980 ;;
5981 siemens)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984 pc)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987 esac
5988 ;;
5989
5990 tpf*)
5991 lt_cv_deplibs_check_method=pass_all
5992 ;;
5993 esac
5994
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5997 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5998
5999 file_magic_glob=
6000 want_nocaseglob=no
6001 if test "$build" = "$host"; then
6002 case $host_os in
6003 mingw* | pw32*)
6004 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6005 want_nocaseglob=yes
6006 else
6007 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6008 fi
6009 ;;
6010 esac
6011 fi
6012
6013 file_magic_cmd=$lt_cv_file_magic_cmd
6014 deplibs_check_method=$lt_cv_deplibs_check_method
6015 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_DLLTOOL+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$DLLTOOL"; then
6047 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 DLLTOOL=$ac_cv_prog_DLLTOOL
6067 if test -n "$DLLTOOL"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6069 $as_echo "$DLLTOOL" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075
6076 fi
6077 if test -z "$ac_cv_prog_DLLTOOL"; then
6078 ac_ct_DLLTOOL=$DLLTOOL
6079 # Extract the first word of "dlltool", so it can be a program name with args.
6080 set dummy dlltool; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$ac_ct_DLLTOOL"; then
6087 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6107 if test -n "$ac_ct_DLLTOOL"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6109 $as_echo "$ac_ct_DLLTOOL" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115 if test "x$ac_ct_DLLTOOL" = x; then
6116 DLLTOOL="false"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122 ac_tool_warned=yes ;;
6123 esac
6124 DLLTOOL=$ac_ct_DLLTOOL
6125 fi
6126 else
6127 DLLTOOL="$ac_cv_prog_DLLTOOL"
6128 fi
6129
6130 test -z "$DLLTOOL" && DLLTOOL=dlltool
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6142 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6143 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 lt_cv_sharedlib_from_linklib_cmd='unknown'
6147
6148 case $host_os in
6149 cygwin* | mingw* | pw32* | cegcc*)
6150 # two different shell functions defined in ltmain.sh
6151 # decide which to use based on capabilities of $DLLTOOL
6152 case `$DLLTOOL --help 2>&1` in
6153 *--identify-strict*)
6154 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6155 ;;
6156 *)
6157 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6158 ;;
6159 esac
6160 ;;
6161 *)
6162 # fallback: assume linklib IS sharedlib
6163 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6164 ;;
6165 esac
6166
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6169 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6170 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6171 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6172
6173
6174
6175
6176
6177
6178
6179
6180 if test -n "$ac_tool_prefix"; then
6181 for ac_prog in ar
6182 do
6183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_AR+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$AR"; then
6191 ac_cv_prog_AR="$AR" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 AR=$ac_cv_prog_AR
6211 if test -n "$AR"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6213 $as_echo "$AR" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219
6220 test -n "$AR" && break
6221 done
6222 fi
6223 if test -z "$AR"; then
6224 ac_ct_AR=$AR
6225 for ac_prog in ar
6226 do
6227 # Extract the first word of "$ac_prog", so it can be a program name with args.
6228 set dummy $ac_prog; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$ac_ct_AR"; then
6235 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_ac_ct_AR="$ac_prog"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6255 if test -n "$ac_ct_AR"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6257 $as_echo "$ac_ct_AR" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 test -n "$ac_ct_AR" && break
6265 done
6266
6267 if test "x$ac_ct_AR" = x; then
6268 AR="false"
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271 yes:)
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274 ac_tool_warned=yes ;;
6275 esac
6276 AR=$ac_ct_AR
6277 fi
6278 fi
6279
6280 : ${AR=ar}
6281 : ${AR_FLAGS=cru}
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6294 $as_echo_n "checking for archiver @FILE support... " >&6; }
6295 if ${lt_cv_ar_at_file+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 lt_cv_ar_at_file=no
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301
6302 int
6303 main ()
6304 {
6305
6306 ;
6307 return 0;
6308 }
6309 _ACEOF
6310 if ac_fn_c_try_compile "$LINENO"; then :
6311 echo conftest.$ac_objext > conftest.lst
6312 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6314 (eval $lt_ar_try) 2>&5
6315 ac_status=$?
6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317 test $ac_status = 0; }
6318 if test "$ac_status" -eq 0; then
6319 # Ensure the archiver fails upon bogus file names.
6320 rm -f conftest.$ac_objext libconftest.a
6321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6322 (eval $lt_ar_try) 2>&5
6323 ac_status=$?
6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325 test $ac_status = 0; }
6326 if test "$ac_status" -ne 0; then
6327 lt_cv_ar_at_file=@
6328 fi
6329 fi
6330 rm -f conftest.* libconftest.a
6331
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334
6335 fi
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6337 $as_echo "$lt_cv_ar_at_file" >&6; }
6338
6339 if test "x$lt_cv_ar_at_file" = xno; then
6340 archiver_list_spec=
6341 else
6342 archiver_list_spec=$lt_cv_ar_at_file
6343 fi
6344
6345
6346
6347
6348
6349
6350
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}strip; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_STRIP+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$STRIP"; then
6360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 STRIP=$ac_cv_prog_STRIP
6380 if test -n "$STRIP"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6382 $as_echo "$STRIP" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389 fi
6390 if test -z "$ac_cv_prog_STRIP"; then
6391 ac_ct_STRIP=$STRIP
6392 # Extract the first word of "strip", so it can be a program name with args.
6393 set dummy strip; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$ac_ct_STRIP"; then
6400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_STRIP="strip"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6420 if test -n "$ac_ct_STRIP"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6422 $as_echo "$ac_ct_STRIP" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428 if test "x$ac_ct_STRIP" = x; then
6429 STRIP=":"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 STRIP=$ac_ct_STRIP
6438 fi
6439 else
6440 STRIP="$ac_cv_prog_STRIP"
6441 fi
6442
6443 test -z "$STRIP" && STRIP=:
6444
6445
6446
6447
6448
6449
6450 if test -n "$ac_tool_prefix"; then
6451 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6452 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_RANLIB+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if test -n "$RANLIB"; then
6459 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 RANLIB=$ac_cv_prog_RANLIB
6479 if test -n "$RANLIB"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6481 $as_echo "$RANLIB" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488 fi
6489 if test -z "$ac_cv_prog_RANLIB"; then
6490 ac_ct_RANLIB=$RANLIB
6491 # Extract the first word of "ranlib", so it can be a program name with args.
6492 set dummy ranlib; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 if test -n "$ac_ct_RANLIB"; then
6499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_prog_ac_ct_RANLIB="ranlib"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6511 fi
6512 done
6513 done
6514 IFS=$as_save_IFS
6515
6516 fi
6517 fi
6518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6519 if test -n "$ac_ct_RANLIB"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6521 $as_echo "$ac_ct_RANLIB" >&6; }
6522 else
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6525 fi
6526
6527 if test "x$ac_ct_RANLIB" = x; then
6528 RANLIB=":"
6529 else
6530 case $cross_compiling:$ac_tool_warned in
6531 yes:)
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536 RANLIB=$ac_ct_RANLIB
6537 fi
6538 else
6539 RANLIB="$ac_cv_prog_RANLIB"
6540 fi
6541
6542 test -z "$RANLIB" && RANLIB=:
6543
6544
6545
6546
6547
6548
6549 # Determine commands to create old-style static archives.
6550 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6551 old_postinstall_cmds='chmod 644 $oldlib'
6552 old_postuninstall_cmds=
6553
6554 if test -n "$RANLIB"; then
6555 case $host_os in
6556 openbsd*)
6557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6558 ;;
6559 *)
6560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6561 ;;
6562 esac
6563 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6564 fi
6565
6566 case $host_os in
6567 darwin*)
6568 lock_old_archive_extraction=yes ;;
6569 *)
6570 lock_old_archive_extraction=no ;;
6571 esac
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 # If no C compiler was specified, use CC.
6612 LTCC=${LTCC-"$CC"}
6613
6614 # If no C compiler flags were specified, use CFLAGS.
6615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6616
6617 # Allow CC to be a program name with arguments.
6618 compiler=$CC
6619
6620
6621 # Check for command to grab the raw symbol name followed by C symbol from nm.
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6623 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6624 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627
6628 # These are sane defaults that work on at least a few old systems.
6629 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6630
6631 # Character class describing NM global symbol codes.
6632 symcode='[BCDEGRST]'
6633
6634 # Regexp to match symbols that can be accessed directly from C.
6635 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6636
6637 # Define system-specific variables.
6638 case $host_os in
6639 aix*)
6640 symcode='[BCDT]'
6641 ;;
6642 cygwin* | mingw* | pw32* | cegcc*)
6643 symcode='[ABCDGISTW]'
6644 ;;
6645 hpux*)
6646 if test "$host_cpu" = ia64; then
6647 symcode='[ABCDEGRST]'
6648 fi
6649 ;;
6650 irix* | nonstopux*)
6651 symcode='[BCDEGRST]'
6652 ;;
6653 osf*)
6654 symcode='[BCDEGQRST]'
6655 ;;
6656 solaris*)
6657 symcode='[BDRT]'
6658 ;;
6659 sco3.2v5*)
6660 symcode='[DT]'
6661 ;;
6662 sysv4.2uw2*)
6663 symcode='[DT]'
6664 ;;
6665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6666 symcode='[ABDT]'
6667 ;;
6668 sysv4)
6669 symcode='[DFNSTU]'
6670 ;;
6671 esac
6672
6673 # If we're using GNU nm, then use its standard symbol codes.
6674 case `$NM -V 2>&1` in
6675 *GNU* | *'with BFD'*)
6676 symcode='[ABCDGIRSTW]' ;;
6677 esac
6678
6679 # Transform an extracted symbol line into a proper C declaration.
6680 # Some systems (esp. on ia64) link data and code symbols differently,
6681 # so use this general approach.
6682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6683
6684 # Transform an extracted symbol line into symbol name and symbol address
6685 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6686 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'"
6687
6688 # Handle CRLF in mingw tool chain
6689 opt_cr=
6690 case $build_os in
6691 mingw*)
6692 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6693 ;;
6694 esac
6695
6696 # Try without a prefix underscore, then with it.
6697 for ac_symprfx in "" "_"; do
6698
6699 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6700 symxfrm="\\1 $ac_symprfx\\2 \\2"
6701
6702 # Write the raw and C identifiers.
6703 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6704 # Fake it for dumpbin and say T for any non-static function
6705 # and D for any global variable.
6706 # Also find C++ and __fastcall symbols from MSVC++,
6707 # which start with @ or ?.
6708 lt_cv_sys_global_symbol_pipe="$AWK '"\
6709 " {last_section=section; section=\$ 3};"\
6710 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6711 " \$ 0!~/External *\|/{next};"\
6712 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6713 " {if(hide[section]) next};"\
6714 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6715 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6716 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6717 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6718 " ' prfx=^$ac_symprfx"
6719 else
6720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6721 fi
6722 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6723
6724 # Check to see that the pipe works correctly.
6725 pipe_works=no
6726
6727 rm -f conftest*
6728 cat > conftest.$ac_ext <<_LT_EOF
6729 #ifdef __cplusplus
6730 extern "C" {
6731 #endif
6732 char nm_test_var;
6733 void nm_test_func(void);
6734 void nm_test_func(void){}
6735 #ifdef __cplusplus
6736 }
6737 #endif
6738 int main(){nm_test_var='a';nm_test_func();return(0);}
6739 _LT_EOF
6740
6741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6742 (eval $ac_compile) 2>&5
6743 ac_status=$?
6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745 test $ac_status = 0; }; then
6746 # Now try to grab the symbols.
6747 nlist=conftest.nm
6748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6749 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6750 ac_status=$?
6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752 test $ac_status = 0; } && test -s "$nlist"; then
6753 # Try sorting and uniquifying the output.
6754 if sort "$nlist" | uniq > "$nlist"T; then
6755 mv -f "$nlist"T "$nlist"
6756 else
6757 rm -f "$nlist"T
6758 fi
6759
6760 # Make sure that we snagged all the symbols we need.
6761 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6762 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6763 cat <<_LT_EOF > conftest.$ac_ext
6764 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6765 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6766 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6767 relocations are performed -- see ld's documentation on pseudo-relocs. */
6768 # define LT_DLSYM_CONST
6769 #elif defined(__osf__)
6770 /* This system does not cope well with relocations in const data. */
6771 # define LT_DLSYM_CONST
6772 #else
6773 # define LT_DLSYM_CONST const
6774 #endif
6775
6776 #ifdef __cplusplus
6777 extern "C" {
6778 #endif
6779
6780 _LT_EOF
6781 # Now generate the symbol file.
6782 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6783
6784 cat <<_LT_EOF >> conftest.$ac_ext
6785
6786 /* The mapping between symbol names and symbols. */
6787 LT_DLSYM_CONST struct {
6788 const char *name;
6789 void *address;
6790 }
6791 lt__PROGRAM__LTX_preloaded_symbols[] =
6792 {
6793 { "@PROGRAM@", (void *) 0 },
6794 _LT_EOF
6795 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6796 cat <<\_LT_EOF >> conftest.$ac_ext
6797 {0, (void *) 0}
6798 };
6799
6800 /* This works around a problem in FreeBSD linker */
6801 #ifdef FREEBSD_WORKAROUND
6802 static const void *lt_preloaded_setup() {
6803 return lt__PROGRAM__LTX_preloaded_symbols;
6804 }
6805 #endif
6806
6807 #ifdef __cplusplus
6808 }
6809 #endif
6810 _LT_EOF
6811 # Now try linking the two files.
6812 mv conftest.$ac_objext conftstm.$ac_objext
6813 lt_globsym_save_LIBS=$LIBS
6814 lt_globsym_save_CFLAGS=$CFLAGS
6815 LIBS="conftstm.$ac_objext"
6816 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6818 (eval $ac_link) 2>&5
6819 ac_status=$?
6820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6822 pipe_works=yes
6823 fi
6824 LIBS=$lt_globsym_save_LIBS
6825 CFLAGS=$lt_globsym_save_CFLAGS
6826 else
6827 echo "cannot find nm_test_func in $nlist" >&5
6828 fi
6829 else
6830 echo "cannot find nm_test_var in $nlist" >&5
6831 fi
6832 else
6833 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6834 fi
6835 else
6836 echo "$progname: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6838 fi
6839 rm -rf conftest* conftst*
6840
6841 # Do not use the global_symbol_pipe unless it works.
6842 if test "$pipe_works" = yes; then
6843 break
6844 else
6845 lt_cv_sys_global_symbol_pipe=
6846 fi
6847 done
6848
6849 fi
6850
6851 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6852 lt_cv_sys_global_symbol_to_cdecl=
6853 fi
6854 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6856 $as_echo "failed" >&6; }
6857 else
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6859 $as_echo "ok" >&6; }
6860 fi
6861
6862 # Response file support.
6863 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6864 nm_file_list_spec='@'
6865 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6866 nm_file_list_spec='@'
6867 fi
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6896 $as_echo_n "checking for sysroot... " >&6; }
6897
6898 # Check whether --with-sysroot was given.
6899 if test "${with_sysroot+set}" = set; then :
6900 withval=$with_sysroot;
6901 else
6902 with_sysroot=no
6903 fi
6904
6905
6906 lt_sysroot=
6907 case ${with_sysroot} in #(
6908 yes)
6909 if test "$GCC" = yes; then
6910 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6911 fi
6912 ;; #(
6913 /*)
6914 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6915 ;; #(
6916 no|'')
6917 ;; #(
6918 *)
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6920 $as_echo "${with_sysroot}" >&6; }
6921 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6922 ;;
6923 esac
6924
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6926 $as_echo "${lt_sysroot:-no}" >&6; }
6927
6928
6929
6930
6931
6932 # Check whether --enable-libtool-lock was given.
6933 if test "${enable_libtool_lock+set}" = set; then :
6934 enableval=$enable_libtool_lock;
6935 fi
6936
6937 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6938
6939 # Some flags need to be propagated to the compiler or linker for good
6940 # libtool support.
6941 case $host in
6942 ia64-*-hpux*)
6943 # Find out which ABI we are using.
6944 echo 'int i;' > conftest.$ac_ext
6945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946 (eval $ac_compile) 2>&5
6947 ac_status=$?
6948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949 test $ac_status = 0; }; then
6950 case `/usr/bin/file conftest.$ac_objext` in
6951 *ELF-32*)
6952 HPUX_IA64_MODE="32"
6953 ;;
6954 *ELF-64*)
6955 HPUX_IA64_MODE="64"
6956 ;;
6957 esac
6958 fi
6959 rm -rf conftest*
6960 ;;
6961 *-*-irix6*)
6962 # Find out which ABI we are using.
6963 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6965 (eval $ac_compile) 2>&5
6966 ac_status=$?
6967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968 test $ac_status = 0; }; then
6969 if test "$lt_cv_prog_gnu_ld" = yes; then
6970 case `/usr/bin/file conftest.$ac_objext` in
6971 *32-bit*)
6972 LD="${LD-ld} -melf32bsmip"
6973 ;;
6974 *N32*)
6975 LD="${LD-ld} -melf32bmipn32"
6976 ;;
6977 *64-bit*)
6978 LD="${LD-ld} -melf64bmip"
6979 ;;
6980 esac
6981 else
6982 case `/usr/bin/file conftest.$ac_objext` in
6983 *32-bit*)
6984 LD="${LD-ld} -32"
6985 ;;
6986 *N32*)
6987 LD="${LD-ld} -n32"
6988 ;;
6989 *64-bit*)
6990 LD="${LD-ld} -64"
6991 ;;
6992 esac
6993 fi
6994 fi
6995 rm -rf conftest*
6996 ;;
6997
6998 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6999 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7000 # Find out which ABI we are using.
7001 echo 'int i;' > conftest.$ac_ext
7002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7003 (eval $ac_compile) 2>&5
7004 ac_status=$?
7005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7006 test $ac_status = 0; }; then
7007 case `/usr/bin/file conftest.o` in
7008 *32-bit*)
7009 case $host in
7010 x86_64-*kfreebsd*-gnu)
7011 LD="${LD-ld} -m elf_i386_fbsd"
7012 ;;
7013 x86_64-*linux*)
7014 LD="${LD-ld} -m elf_i386"
7015 ;;
7016 ppc64-*linux*|powerpc64-*linux*)
7017 LD="${LD-ld} -m elf32ppclinux"
7018 ;;
7019 s390x-*linux*)
7020 LD="${LD-ld} -m elf_s390"
7021 ;;
7022 sparc64-*linux*)
7023 LD="${LD-ld} -m elf32_sparc"
7024 ;;
7025 esac
7026 ;;
7027 *64-bit*)
7028 case $host in
7029 x86_64-*kfreebsd*-gnu)
7030 LD="${LD-ld} -m elf_x86_64_fbsd"
7031 ;;
7032 x86_64-*linux*)
7033 LD="${LD-ld} -m elf_x86_64"
7034 ;;
7035 ppc*-*linux*|powerpc*-*linux*)
7036 LD="${LD-ld} -m elf64ppc"
7037 ;;
7038 s390*-*linux*|s390*-*tpf*)
7039 LD="${LD-ld} -m elf64_s390"
7040 ;;
7041 sparc*-*linux*)
7042 LD="${LD-ld} -m elf64_sparc"
7043 ;;
7044 esac
7045 ;;
7046 esac
7047 fi
7048 rm -rf conftest*
7049 ;;
7050
7051 *-*-sco3.2v5*)
7052 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7053 SAVE_CFLAGS="$CFLAGS"
7054 CFLAGS="$CFLAGS -belf"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7056 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7057 if ${lt_cv_cc_needs_belf+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 ac_ext=c
7061 ac_cpp='$CPP $CPPFLAGS'
7062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068
7069 int
7070 main ()
7071 {
7072
7073 ;
7074 return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_link "$LINENO"; then :
7078 lt_cv_cc_needs_belf=yes
7079 else
7080 lt_cv_cc_needs_belf=no
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext \
7083 conftest$ac_exeext conftest.$ac_ext
7084 ac_ext=c
7085 ac_cpp='$CPP $CPPFLAGS'
7086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7089
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7092 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7093 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7094 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7095 CFLAGS="$SAVE_CFLAGS"
7096 fi
7097 ;;
7098 sparc*-*solaris*)
7099 # Find out which ABI we are using.
7100 echo 'int i;' > conftest.$ac_ext
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 case `/usr/bin/file conftest.o` in
7107 *64-bit*)
7108 case $lt_cv_prog_gnu_ld in
7109 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7110 *)
7111 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7112 LD="${LD-ld} -64"
7113 fi
7114 ;;
7115 esac
7116 ;;
7117 esac
7118 fi
7119 rm -rf conftest*
7120 ;;
7121 esac
7122
7123 need_locks="$enable_libtool_lock"
7124
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}mt; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$MANIFEST_TOOL"; then
7134 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7154 if test -n "$MANIFEST_TOOL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7156 $as_echo "$MANIFEST_TOOL" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7165 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7166 # Extract the first word of "mt", so it can be a program name with args.
7167 set dummy mt; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$ac_ct_MANIFEST_TOOL"; then
7174 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7194 if test -n "$ac_ct_MANIFEST_TOOL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7196 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7203 MANIFEST_TOOL=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7212 fi
7213 else
7214 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7215 fi
7216
7217 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7219 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7220 if ${lt_cv_path_mainfest_tool+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 lt_cv_path_mainfest_tool=no
7224 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7225 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7226 cat conftest.err >&5
7227 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7228 lt_cv_path_mainfest_tool=yes
7229 fi
7230 rm -f conftest*
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7233 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7234 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7235 MANIFEST_TOOL=:
7236 fi
7237
7238
7239
7240
7241
7242
7243 case $host_os in
7244 rhapsody* | darwin*)
7245 if test -n "$ac_tool_prefix"; then
7246 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7247 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 if test -n "$DSYMUTIL"; then
7254 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7274 if test -n "$DSYMUTIL"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7276 $as_echo "$DSYMUTIL" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282
7283 fi
7284 if test -z "$ac_cv_prog_DSYMUTIL"; then
7285 ac_ct_DSYMUTIL=$DSYMUTIL
7286 # Extract the first word of "dsymutil", so it can be a program name with args.
7287 set dummy dsymutil; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 if test -n "$ac_ct_DSYMUTIL"; then
7294 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7314 if test -n "$ac_ct_DSYMUTIL"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7316 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321
7322 if test "x$ac_ct_DSYMUTIL" = x; then
7323 DSYMUTIL=":"
7324 else
7325 case $cross_compiling:$ac_tool_warned in
7326 yes:)
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7329 ac_tool_warned=yes ;;
7330 esac
7331 DSYMUTIL=$ac_ct_DSYMUTIL
7332 fi
7333 else
7334 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7335 fi
7336
7337 if test -n "$ac_tool_prefix"; then
7338 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7339 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_NMEDIT+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 if test -n "$NMEDIT"; then
7346 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359 done
7360 done
7361 IFS=$as_save_IFS
7362
7363 fi
7364 fi
7365 NMEDIT=$ac_cv_prog_NMEDIT
7366 if test -n "$NMEDIT"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7368 $as_echo "$NMEDIT" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374
7375 fi
7376 if test -z "$ac_cv_prog_NMEDIT"; then
7377 ac_ct_NMEDIT=$NMEDIT
7378 # Extract the first word of "nmedit", so it can be a program name with args.
7379 set dummy nmedit; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$ac_ct_NMEDIT"; then
7386 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403 fi
7404 fi
7405 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7406 if test -n "$ac_ct_NMEDIT"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7408 $as_echo "$ac_ct_NMEDIT" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412 fi
7413
7414 if test "x$ac_ct_NMEDIT" = x; then
7415 NMEDIT=":"
7416 else
7417 case $cross_compiling:$ac_tool_warned in
7418 yes:)
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7421 ac_tool_warned=yes ;;
7422 esac
7423 NMEDIT=$ac_ct_NMEDIT
7424 fi
7425 else
7426 NMEDIT="$ac_cv_prog_NMEDIT"
7427 fi
7428
7429 if test -n "$ac_tool_prefix"; then
7430 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7431 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_prog_LIPO+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 if test -n "$LIPO"; then
7438 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451 done
7452 done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 LIPO=$ac_cv_prog_LIPO
7458 if test -n "$LIPO"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7460 $as_echo "$LIPO" >&6; }
7461 else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466
7467 fi
7468 if test -z "$ac_cv_prog_LIPO"; then
7469 ac_ct_LIPO=$LIPO
7470 # Extract the first word of "lipo", so it can be a program name with args.
7471 set dummy lipo; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 if test -n "$ac_ct_LIPO"; then
7478 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_ac_ct_LIPO="lipo"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7498 if test -n "$ac_ct_LIPO"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7500 $as_echo "$ac_ct_LIPO" >&6; }
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506 if test "x$ac_ct_LIPO" = x; then
7507 LIPO=":"
7508 else
7509 case $cross_compiling:$ac_tool_warned in
7510 yes:)
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513 ac_tool_warned=yes ;;
7514 esac
7515 LIPO=$ac_ct_LIPO
7516 fi
7517 else
7518 LIPO="$ac_cv_prog_LIPO"
7519 fi
7520
7521 if test -n "$ac_tool_prefix"; then
7522 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7523 set dummy ${ac_tool_prefix}otool; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_OTOOL+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 if test -n "$OTOOL"; then
7530 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7539 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543 done
7544 done
7545 IFS=$as_save_IFS
7546
7547 fi
7548 fi
7549 OTOOL=$ac_cv_prog_OTOOL
7550 if test -n "$OTOOL"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7552 $as_echo "$OTOOL" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558
7559 fi
7560 if test -z "$ac_cv_prog_OTOOL"; then
7561 ac_ct_OTOOL=$OTOOL
7562 # Extract the first word of "otool", so it can be a program name with args.
7563 set dummy otool; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 if test -n "$ac_ct_OTOOL"; then
7570 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_prog_ac_ct_OTOOL="otool"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583 done
7584 done
7585 IFS=$as_save_IFS
7586
7587 fi
7588 fi
7589 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7590 if test -n "$ac_ct_OTOOL"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7592 $as_echo "$ac_ct_OTOOL" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 fi
7597
7598 if test "x$ac_ct_OTOOL" = x; then
7599 OTOOL=":"
7600 else
7601 case $cross_compiling:$ac_tool_warned in
7602 yes:)
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7605 ac_tool_warned=yes ;;
7606 esac
7607 OTOOL=$ac_ct_OTOOL
7608 fi
7609 else
7610 OTOOL="$ac_cv_prog_OTOOL"
7611 fi
7612
7613 if test -n "$ac_tool_prefix"; then
7614 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7615 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_OTOOL64+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 if test -n "$OTOOL64"; then
7622 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635 done
7636 done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 OTOOL64=$ac_cv_prog_OTOOL64
7642 if test -n "$OTOOL64"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7644 $as_echo "$OTOOL64" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650
7651 fi
7652 if test -z "$ac_cv_prog_OTOOL64"; then
7653 ac_ct_OTOOL64=$OTOOL64
7654 # Extract the first word of "otool64", so it can be a program name with args.
7655 set dummy otool64; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test -n "$ac_ct_OTOOL64"; then
7662 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_ac_ct_OTOOL64="otool64"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675 done
7676 done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7682 if test -n "$ac_ct_OTOOL64"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7684 $as_echo "$ac_ct_OTOOL64" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690 if test "x$ac_ct_OTOOL64" = x; then
7691 OTOOL64=":"
7692 else
7693 case $cross_compiling:$ac_tool_warned in
7694 yes:)
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7697 ac_tool_warned=yes ;;
7698 esac
7699 OTOOL64=$ac_ct_OTOOL64
7700 fi
7701 else
7702 OTOOL64="$ac_cv_prog_OTOOL64"
7703 fi
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7732 $as_echo_n "checking for -single_module linker flag... " >&6; }
7733 if ${lt_cv_apple_cc_single_mod+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 lt_cv_apple_cc_single_mod=no
7737 if test -z "${LT_MULTI_MODULE}"; then
7738 # By default we will add the -single_module flag. You can override
7739 # by either setting the environment variable LT_MULTI_MODULE
7740 # non-empty at configure time, or by adding -multi_module to the
7741 # link flags.
7742 rm -rf libconftest.dylib*
7743 echo "int foo(void){return 1;}" > conftest.c
7744 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7745 -dynamiclib -Wl,-single_module conftest.c" >&5
7746 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7747 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7748 _lt_result=$?
7749 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7750 lt_cv_apple_cc_single_mod=yes
7751 else
7752 cat conftest.err >&5
7753 fi
7754 rm -rf libconftest.dylib*
7755 rm -f conftest.*
7756 fi
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7759 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7761 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7762 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 lt_cv_ld_exported_symbols_list=no
7766 save_LDFLAGS=$LDFLAGS
7767 echo "_main" > conftest.sym
7768 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7771
7772 int
7773 main ()
7774 {
7775
7776 ;
7777 return 0;
7778 }
7779 _ACEOF
7780 if ac_fn_c_try_link "$LINENO"; then :
7781 lt_cv_ld_exported_symbols_list=yes
7782 else
7783 lt_cv_ld_exported_symbols_list=no
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext \
7786 conftest$ac_exeext conftest.$ac_ext
7787 LDFLAGS="$save_LDFLAGS"
7788
7789 fi
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7791 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7793 $as_echo_n "checking for -force_load linker flag... " >&6; }
7794 if ${lt_cv_ld_force_load+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 lt_cv_ld_force_load=no
7798 cat > conftest.c << _LT_EOF
7799 int forced_loaded() { return 2;}
7800 _LT_EOF
7801 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7802 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7803 echo "$AR cru libconftest.a conftest.o" >&5
7804 $AR cru libconftest.a conftest.o 2>&5
7805 echo "$RANLIB libconftest.a" >&5
7806 $RANLIB libconftest.a 2>&5
7807 cat > conftest.c << _LT_EOF
7808 int main() { return 0;}
7809 _LT_EOF
7810 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7811 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7812 _lt_result=$?
7813 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7814 lt_cv_ld_force_load=yes
7815 else
7816 cat conftest.err >&5
7817 fi
7818 rm -f conftest.err libconftest.a conftest conftest.c
7819 rm -rf conftest.dSYM
7820
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7823 $as_echo "$lt_cv_ld_force_load" >&6; }
7824 case $host_os in
7825 rhapsody* | darwin1.[012])
7826 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7827 darwin1.*)
7828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7829 darwin*) # darwin 5.x on
7830 # if running on 10.5 or later, the deployment target defaults
7831 # to the OS version, if on x86, and 10.4, the deployment
7832 # target defaults to 10.4. Don't you love it?
7833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7834 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7836 10.[012]*)
7837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7838 10.*)
7839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7840 esac
7841 ;;
7842 esac
7843 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7844 _lt_dar_single_mod='$single_module'
7845 fi
7846 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7847 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7848 else
7849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7850 fi
7851 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7852 _lt_dsymutil='~$DSYMUTIL $lib || :'
7853 else
7854 _lt_dsymutil=
7855 fi
7856 ;;
7857 esac
7858
7859
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7861 $as_echo_n "checking for ANSI C header files... " >&6; }
7862 if ${ac_cv_header_stdc+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <stdlib.h>
7868 #include <stdarg.h>
7869 #include <string.h>
7870 #include <float.h>
7871
7872 int
7873 main ()
7874 {
7875
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881 ac_cv_header_stdc=yes
7882 else
7883 ac_cv_header_stdc=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886
7887 if test $ac_cv_header_stdc = yes; then
7888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 #include <string.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "memchr" >/dev/null 2>&1; then :
7896
7897 else
7898 ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 #include <stdlib.h>
7909
7910 _ACEOF
7911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7912 $EGREP "free" >/dev/null 2>&1; then :
7913
7914 else
7915 ac_cv_header_stdc=no
7916 fi
7917 rm -f conftest*
7918
7919 fi
7920
7921 if test $ac_cv_header_stdc = yes; then
7922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7923 if test "$cross_compiling" = yes; then :
7924 :
7925 else
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #include <ctype.h>
7929 #include <stdlib.h>
7930 #if ((' ' & 0x0FF) == 0x020)
7931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7933 #else
7934 # define ISLOWER(c) \
7935 (('a' <= (c) && (c) <= 'i') \
7936 || ('j' <= (c) && (c) <= 'r') \
7937 || ('s' <= (c) && (c) <= 'z'))
7938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7939 #endif
7940
7941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7942 int
7943 main ()
7944 {
7945 int i;
7946 for (i = 0; i < 256; i++)
7947 if (XOR (islower (i), ISLOWER (i))
7948 || toupper (i) != TOUPPER (i))
7949 return 2;
7950 return 0;
7951 }
7952 _ACEOF
7953 if ac_fn_c_try_run "$LINENO"; then :
7954
7955 else
7956 ac_cv_header_stdc=no
7957 fi
7958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7959 conftest.$ac_objext conftest.beam conftest.$ac_ext
7960 fi
7961
7962 fi
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7965 $as_echo "$ac_cv_header_stdc" >&6; }
7966 if test $ac_cv_header_stdc = yes; then
7967
7968 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7969
7970 fi
7971
7972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7973 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7974 inttypes.h stdint.h unistd.h
7975 do :
7976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7977 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7978 "
7979 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7980 cat >>confdefs.h <<_ACEOF
7981 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7982 _ACEOF
7983
7984 fi
7985
7986 done
7987
7988
7989 for ac_header in dlfcn.h
7990 do :
7991 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7992 "
7993 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7994 cat >>confdefs.h <<_ACEOF
7995 #define HAVE_DLFCN_H 1
7996 _ACEOF
7997
7998 fi
7999
8000 done
8001
8002
8003
8004
8005 func_stripname_cnf ()
8006 {
8007 case ${2} in
8008 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8009 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8010 esac
8011 } # func_stripname_cnf
8012
8013
8014
8015
8016
8017 # Set options
8018
8019
8020
8021 enable_dlopen=no
8022
8023
8024 enable_win32_dll=no
8025
8026
8027 # Check whether --enable-shared was given.
8028 if test "${enable_shared+set}" = set; then :
8029 enableval=$enable_shared; p=${PACKAGE-default}
8030 case $enableval in
8031 yes) enable_shared=yes ;;
8032 no) enable_shared=no ;;
8033 *)
8034 enable_shared=no
8035 # Look at the argument we got. We use all the common list separators.
8036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8037 for pkg in $enableval; do
8038 IFS="$lt_save_ifs"
8039 if test "X$pkg" = "X$p"; then
8040 enable_shared=yes
8041 fi
8042 done
8043 IFS="$lt_save_ifs"
8044 ;;
8045 esac
8046 else
8047 enable_shared=yes
8048 fi
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 # Check whether --with-pic was given.
8061 if test "${with_pic+set}" = set; then :
8062 withval=$with_pic; pic_mode="$withval"
8063 else
8064 pic_mode=default
8065 fi
8066
8067
8068 test -z "$pic_mode" && pic_mode=default
8069
8070
8071
8072
8073
8074
8075
8076 # Check whether --enable-fast-install was given.
8077 if test "${enable_fast_install+set}" = set; then :
8078 enableval=$enable_fast_install; p=${PACKAGE-default}
8079 case $enableval in
8080 yes) enable_fast_install=yes ;;
8081 no) enable_fast_install=no ;;
8082 *)
8083 enable_fast_install=no
8084 # Look at the argument we got. We use all the common list separators.
8085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8086 for pkg in $enableval; do
8087 IFS="$lt_save_ifs"
8088 if test "X$pkg" = "X$p"; then
8089 enable_fast_install=yes
8090 fi
8091 done
8092 IFS="$lt_save_ifs"
8093 ;;
8094 esac
8095 else
8096 enable_fast_install=yes
8097 fi
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109 # This can be used to rebuild libtool when needed
8110 LIBTOOL_DEPS="$ltmain"
8111
8112 # Always use our own libtool.
8113 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140 test -z "$LN_S" && LN_S="ln -s"
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155 if test -n "${ZSH_VERSION+set}" ; then
8156 setopt NO_GLOB_SUBST
8157 fi
8158
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8160 $as_echo_n "checking for objdir... " >&6; }
8161 if ${lt_cv_objdir+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 rm -f .libs 2>/dev/null
8165 mkdir .libs 2>/dev/null
8166 if test -d .libs; then
8167 lt_cv_objdir=.libs
8168 else
8169 # MS-DOS does not allow filenames that begin with a dot.
8170 lt_cv_objdir=_libs
8171 fi
8172 rmdir .libs 2>/dev/null
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8175 $as_echo "$lt_cv_objdir" >&6; }
8176 objdir=$lt_cv_objdir
8177
8178
8179
8180
8181
8182 cat >>confdefs.h <<_ACEOF
8183 #define LT_OBJDIR "$lt_cv_objdir/"
8184 _ACEOF
8185
8186
8187
8188
8189 case $host_os in
8190 aix3*)
8191 # AIX sometimes has problems with the GCC collect2 program. For some
8192 # reason, if we set the COLLECT_NAMES environment variable, the problems
8193 # vanish in a puff of smoke.
8194 if test "X${COLLECT_NAMES+set}" != Xset; then
8195 COLLECT_NAMES=
8196 export COLLECT_NAMES
8197 fi
8198 ;;
8199 esac
8200
8201 # Global variables:
8202 ofile=libtool
8203 can_build_shared=yes
8204
8205 # All known linkers require a `.a' archive for static linking (except MSVC,
8206 # which needs '.lib').
8207 libext=a
8208
8209 with_gnu_ld="$lt_cv_prog_gnu_ld"
8210
8211 old_CC="$CC"
8212 old_CFLAGS="$CFLAGS"
8213
8214 # Set sane defaults for various variables
8215 test -z "$CC" && CC=cc
8216 test -z "$LTCC" && LTCC=$CC
8217 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8218 test -z "$LD" && LD=ld
8219 test -z "$ac_objext" && ac_objext=o
8220
8221 for cc_temp in $compiler""; do
8222 case $cc_temp in
8223 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8224 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8225 \-*) ;;
8226 *) break;;
8227 esac
8228 done
8229 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8230
8231
8232 # Only perform the check for file, if the check method requires it
8233 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8234 case $deplibs_check_method in
8235 file_magic*)
8236 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8238 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8239 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 case $MAGIC_CMD in
8243 [\\/*] | ?:[\\/]*)
8244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8245 ;;
8246 *)
8247 lt_save_MAGIC_CMD="$MAGIC_CMD"
8248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250 for ac_dir in $ac_dummy; do
8251 IFS="$lt_save_ifs"
8252 test -z "$ac_dir" && ac_dir=.
8253 if test -f $ac_dir/${ac_tool_prefix}file; then
8254 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8255 if test -n "$file_magic_test_file"; then
8256 case $deplibs_check_method in
8257 "file_magic "*)
8258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261 $EGREP "$file_magic_regex" > /dev/null; then
8262 :
8263 else
8264 cat <<_LT_EOF 1>&2
8265
8266 *** Warning: the command libtool uses to detect shared libraries,
8267 *** $file_magic_cmd, produces output that libtool cannot recognize.
8268 *** The result is that libtool may fail to recognize shared libraries
8269 *** as such. This will affect the creation of libtool libraries that
8270 *** depend on shared libraries, but programs linked with such libtool
8271 *** libraries will work regardless of this problem. Nevertheless, you
8272 *** may want to report the problem to your system manager and/or to
8273 *** [email protected]
8274
8275 _LT_EOF
8276 fi ;;
8277 esac
8278 fi
8279 break
8280 fi
8281 done
8282 IFS="$lt_save_ifs"
8283 MAGIC_CMD="$lt_save_MAGIC_CMD"
8284 ;;
8285 esac
8286 fi
8287
8288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289 if test -n "$MAGIC_CMD"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291 $as_echo "$MAGIC_CMD" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298
8299
8300
8301 if test -z "$lt_cv_path_MAGIC_CMD"; then
8302 if test -n "$ac_tool_prefix"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8304 $as_echo_n "checking for file... " >&6; }
8305 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 case $MAGIC_CMD in
8309 [\\/*] | ?:[\\/]*)
8310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8311 ;;
8312 *)
8313 lt_save_MAGIC_CMD="$MAGIC_CMD"
8314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8316 for ac_dir in $ac_dummy; do
8317 IFS="$lt_save_ifs"
8318 test -z "$ac_dir" && ac_dir=.
8319 if test -f $ac_dir/file; then
8320 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8321 if test -n "$file_magic_test_file"; then
8322 case $deplibs_check_method in
8323 "file_magic "*)
8324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8327 $EGREP "$file_magic_regex" > /dev/null; then
8328 :
8329 else
8330 cat <<_LT_EOF 1>&2
8331
8332 *** Warning: the command libtool uses to detect shared libraries,
8333 *** $file_magic_cmd, produces output that libtool cannot recognize.
8334 *** The result is that libtool may fail to recognize shared libraries
8335 *** as such. This will affect the creation of libtool libraries that
8336 *** depend on shared libraries, but programs linked with such libtool
8337 *** libraries will work regardless of this problem. Nevertheless, you
8338 *** may want to report the problem to your system manager and/or to
8339 *** [email protected]
8340
8341 _LT_EOF
8342 fi ;;
8343 esac
8344 fi
8345 break
8346 fi
8347 done
8348 IFS="$lt_save_ifs"
8349 MAGIC_CMD="$lt_save_MAGIC_CMD"
8350 ;;
8351 esac
8352 fi
8353
8354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355 if test -n "$MAGIC_CMD"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8357 $as_echo "$MAGIC_CMD" >&6; }
8358 else
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362
8363
8364 else
8365 MAGIC_CMD=:
8366 fi
8367 fi
8368
8369 fi
8370 ;;
8371 esac
8372
8373 # Use C for the default configuration in the libtool script
8374
8375 lt_save_CC="$CC"
8376 ac_ext=c
8377 ac_cpp='$CPP $CPPFLAGS'
8378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8381
8382
8383 # Source file extension for C test sources.
8384 ac_ext=c
8385
8386 # Object file extension for compiled C test sources.
8387 objext=o
8388 objext=$objext
8389
8390 # Code to be used in simple compile tests
8391 lt_simple_compile_test_code="int some_variable = 0;"
8392
8393 # Code to be used in simple link tests
8394 lt_simple_link_test_code='int main(){return(0);}'
8395
8396
8397
8398
8399
8400
8401
8402 # If no C compiler was specified, use CC.
8403 LTCC=${LTCC-"$CC"}
8404
8405 # If no C compiler flags were specified, use CFLAGS.
8406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8407
8408 # Allow CC to be a program name with arguments.
8409 compiler=$CC
8410
8411 # Save the default compiler, since it gets overwritten when the other
8412 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8413 compiler_DEFAULT=$CC
8414
8415 # save warnings/boilerplate of simple test code
8416 ac_outfile=conftest.$ac_objext
8417 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8418 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8419 _lt_compiler_boilerplate=`cat conftest.err`
8420 $RM conftest*
8421
8422 ac_outfile=conftest.$ac_objext
8423 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8424 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8425 _lt_linker_boilerplate=`cat conftest.err`
8426 $RM -r conftest*
8427
8428
8429 ## CAVEAT EMPTOR:
8430 ## There is no encapsulation within the following macros, do not change
8431 ## the running order or otherwise move them around unless you know exactly
8432 ## what you are doing...
8433 if test -n "$compiler"; then
8434
8435 lt_prog_compiler_no_builtin_flag=
8436
8437 if test "$GCC" = yes; then
8438 case $cc_basename in
8439 nvcc*)
8440 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8441 *)
8442 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8443 esac
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8446 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8447 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 lt_cv_prog_compiler_rtti_exceptions=no
8451 ac_outfile=conftest.$ac_objext
8452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8453 lt_compiler_flag="-fno-rtti -fno-exceptions"
8454 # Insert the option either (1) after the last *FLAGS variable, or
8455 # (2) before a word containing "conftest.", or (3) at the end.
8456 # Note that $ac_compile itself does not contain backslashes and begins
8457 # with a dollar sign (not a hyphen), so the echo should work correctly.
8458 # The option is referenced via a variable to avoid confusing sed.
8459 lt_compile=`echo "$ac_compile" | $SED \
8460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462 -e 's:$: $lt_compiler_flag:'`
8463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8464 (eval "$lt_compile" 2>conftest.err)
8465 ac_status=$?
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 if (exit $ac_status) && test -s "$ac_outfile"; then
8469 # The compiler can only warn and ignore the option if not recognized
8470 # So say no if there are warnings other than the usual output.
8471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8474 lt_cv_prog_compiler_rtti_exceptions=yes
8475 fi
8476 fi
8477 $RM conftest*
8478
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8481 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8482
8483 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8484 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8485 else
8486 :
8487 fi
8488
8489 fi
8490
8491
8492
8493
8494
8495
8496 lt_prog_compiler_wl=
8497 lt_prog_compiler_pic=
8498 lt_prog_compiler_static=
8499
8500
8501 if test "$GCC" = yes; then
8502 lt_prog_compiler_wl='-Wl,'
8503 lt_prog_compiler_static='-static'
8504
8505 case $host_os in
8506 aix*)
8507 # All AIX code is PIC.
8508 if test "$host_cpu" = ia64; then
8509 # AIX 5 now supports IA64 processor
8510 lt_prog_compiler_static='-Bstatic'
8511 fi
8512 ;;
8513
8514 amigaos*)
8515 case $host_cpu in
8516 powerpc)
8517 # see comment about AmigaOS4 .so support
8518 lt_prog_compiler_pic='-fPIC'
8519 ;;
8520 m68k)
8521 # FIXME: we need at least 68020 code to build shared libraries, but
8522 # adding the `-m68020' flag to GCC prevents building anything better,
8523 # like `-m68040'.
8524 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8525 ;;
8526 esac
8527 ;;
8528
8529 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8530 # PIC is the default for these OSes.
8531 ;;
8532
8533 mingw* | cygwin* | pw32* | os2* | cegcc*)
8534 # This hack is so that the source file can tell whether it is being
8535 # built for inclusion in a dll (and should export symbols for example).
8536 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8537 # (--disable-auto-import) libraries
8538 lt_prog_compiler_pic='-DDLL_EXPORT'
8539 ;;
8540
8541 darwin* | rhapsody*)
8542 # PIC is the default on this platform
8543 # Common symbols not allowed in MH_DYLIB files
8544 lt_prog_compiler_pic='-fno-common'
8545 ;;
8546
8547 haiku*)
8548 # PIC is the default for Haiku.
8549 # The "-static" flag exists, but is broken.
8550 lt_prog_compiler_static=
8551 ;;
8552
8553 hpux*)
8554 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8555 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8556 # sets the default TLS model and affects inlining.
8557 case $host_cpu in
8558 hppa*64*)
8559 # +Z the default
8560 ;;
8561 *)
8562 lt_prog_compiler_pic='-fPIC'
8563 ;;
8564 esac
8565 ;;
8566
8567 interix[3-9]*)
8568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8569 # Instead, we relocate shared libraries at runtime.
8570 ;;
8571
8572 msdosdjgpp*)
8573 # Just because we use GCC doesn't mean we suddenly get shared libraries
8574 # on systems that don't support them.
8575 lt_prog_compiler_can_build_shared=no
8576 enable_shared=no
8577 ;;
8578
8579 *nto* | *qnx*)
8580 # QNX uses GNU C++, but need to define -shared option too, otherwise
8581 # it will coredump.
8582 lt_prog_compiler_pic='-fPIC -shared'
8583 ;;
8584
8585 sysv4*MP*)
8586 if test -d /usr/nec; then
8587 lt_prog_compiler_pic=-Kconform_pic
8588 fi
8589 ;;
8590
8591 *)
8592 lt_prog_compiler_pic='-fPIC'
8593 ;;
8594 esac
8595
8596 case $cc_basename in
8597 nvcc*) # Cuda Compiler Driver 2.2
8598 lt_prog_compiler_wl='-Xlinker '
8599 lt_prog_compiler_pic='-Xcompiler -fPIC'
8600 ;;
8601 esac
8602 else
8603 # PORTME Check for flag to pass linker flags through the system compiler.
8604 case $host_os in
8605 aix*)
8606 lt_prog_compiler_wl='-Wl,'
8607 if test "$host_cpu" = ia64; then
8608 # AIX 5 now supports IA64 processor
8609 lt_prog_compiler_static='-Bstatic'
8610 else
8611 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8612 fi
8613 ;;
8614
8615 mingw* | cygwin* | pw32* | os2* | cegcc*)
8616 # This hack is so that the source file can tell whether it is being
8617 # built for inclusion in a dll (and should export symbols for example).
8618 lt_prog_compiler_pic='-DDLL_EXPORT'
8619 ;;
8620
8621 hpux9* | hpux10* | hpux11*)
8622 lt_prog_compiler_wl='-Wl,'
8623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8624 # not for PA HP-UX.
8625 case $host_cpu in
8626 hppa*64*|ia64*)
8627 # +Z the default
8628 ;;
8629 *)
8630 lt_prog_compiler_pic='+Z'
8631 ;;
8632 esac
8633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8634 lt_prog_compiler_static='${wl}-a ${wl}archive'
8635 ;;
8636
8637 irix5* | irix6* | nonstopux*)
8638 lt_prog_compiler_wl='-Wl,'
8639 # PIC (with -KPIC) is the default.
8640 lt_prog_compiler_static='-non_shared'
8641 ;;
8642
8643 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8644 case $cc_basename in
8645 # old Intel for x86_64 which still supported -KPIC.
8646 ecc*)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_pic='-KPIC'
8649 lt_prog_compiler_static='-static'
8650 ;;
8651 # icc used to be incompatible with GCC.
8652 # ICC 10 doesn't accept -KPIC any more.
8653 icc* | ifort*)
8654 lt_prog_compiler_wl='-Wl,'
8655 lt_prog_compiler_pic='-fPIC'
8656 lt_prog_compiler_static='-static'
8657 ;;
8658 # Lahey Fortran 8.1.
8659 lf95*)
8660 lt_prog_compiler_wl='-Wl,'
8661 lt_prog_compiler_pic='--shared'
8662 lt_prog_compiler_static='--static'
8663 ;;
8664 nagfor*)
8665 # NAG Fortran compiler
8666 lt_prog_compiler_wl='-Wl,-Wl,,'
8667 lt_prog_compiler_pic='-PIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 ;;
8670 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8671 # Portland Group compilers (*not* the Pentium gcc compiler,
8672 # which looks to be a dead project)
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-fpic'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677 ccc*)
8678 lt_prog_compiler_wl='-Wl,'
8679 # All Alpha code is PIC.
8680 lt_prog_compiler_static='-non_shared'
8681 ;;
8682 xl* | bgxl* | bgf* | mpixl*)
8683 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-qpic'
8686 lt_prog_compiler_static='-qstaticlink'
8687 ;;
8688 *)
8689 case `$CC -V 2>&1 | sed 5q` in
8690 *Sun\ F* | *Sun*Fortran*)
8691 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8692 lt_prog_compiler_pic='-KPIC'
8693 lt_prog_compiler_static='-Bstatic'
8694 lt_prog_compiler_wl=''
8695 ;;
8696 *Sun\ C*)
8697 # Sun C 5.9
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 lt_prog_compiler_wl='-Wl,'
8701 ;;
8702 esac
8703 ;;
8704 esac
8705 ;;
8706
8707 newsos6)
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8710 ;;
8711
8712 *nto* | *qnx*)
8713 # QNX uses GNU C++, but need to define -shared option too, otherwise
8714 # it will coredump.
8715 lt_prog_compiler_pic='-fPIC -shared'
8716 ;;
8717
8718 osf3* | osf4* | osf5*)
8719 lt_prog_compiler_wl='-Wl,'
8720 # All OSF/1 code is PIC.
8721 lt_prog_compiler_static='-non_shared'
8722 ;;
8723
8724 rdos*)
8725 lt_prog_compiler_static='-non_shared'
8726 ;;
8727
8728 solaris*)
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 case $cc_basename in
8732 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8733 lt_prog_compiler_wl='-Qoption ld ';;
8734 *)
8735 lt_prog_compiler_wl='-Wl,';;
8736 esac
8737 ;;
8738
8739 sunos4*)
8740 lt_prog_compiler_wl='-Qoption ld '
8741 lt_prog_compiler_pic='-PIC'
8742 lt_prog_compiler_static='-Bstatic'
8743 ;;
8744
8745 sysv4 | sysv4.2uw2* | sysv4.3*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8749 ;;
8750
8751 sysv4*MP*)
8752 if test -d /usr/nec ;then
8753 lt_prog_compiler_pic='-Kconform_pic'
8754 lt_prog_compiler_static='-Bstatic'
8755 fi
8756 ;;
8757
8758 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-KPIC'
8761 lt_prog_compiler_static='-Bstatic'
8762 ;;
8763
8764 unicos*)
8765 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_can_build_shared=no
8767 ;;
8768
8769 uts4*)
8770 lt_prog_compiler_pic='-pic'
8771 lt_prog_compiler_static='-Bstatic'
8772 ;;
8773
8774 *)
8775 lt_prog_compiler_can_build_shared=no
8776 ;;
8777 esac
8778 fi
8779
8780 case $host_os in
8781 # For platforms which do not support PIC, -DPIC is meaningless:
8782 *djgpp*)
8783 lt_prog_compiler_pic=
8784 ;;
8785 *)
8786 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8787 ;;
8788 esac
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8791 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8792 if ${lt_cv_prog_compiler_pic+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8798 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8799 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8800
8801 #
8802 # Check to make sure the PIC flag actually works.
8803 #
8804 if test -n "$lt_prog_compiler_pic"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8806 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8807 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 lt_cv_prog_compiler_pic_works=no
8811 ac_outfile=conftest.$ac_objext
8812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8813 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8814 # Insert the option either (1) after the last *FLAGS variable, or
8815 # (2) before a word containing "conftest.", or (3) at the end.
8816 # Note that $ac_compile itself does not contain backslashes and begins
8817 # with a dollar sign (not a hyphen), so the echo should work correctly.
8818 # The option is referenced via a variable to avoid confusing sed.
8819 lt_compile=`echo "$ac_compile" | $SED \
8820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8822 -e 's:$: $lt_compiler_flag:'`
8823 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8824 (eval "$lt_compile" 2>conftest.err)
8825 ac_status=$?
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 if (exit $ac_status) && test -s "$ac_outfile"; then
8829 # The compiler can only warn and ignore the option if not recognized
8830 # So say no if there are warnings other than the usual output.
8831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8833 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8834 lt_cv_prog_compiler_pic_works=yes
8835 fi
8836 fi
8837 $RM conftest*
8838
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8841 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8842
8843 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8844 case $lt_prog_compiler_pic in
8845 "" | " "*) ;;
8846 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8847 esac
8848 else
8849 lt_prog_compiler_pic=
8850 lt_prog_compiler_can_build_shared=no
8851 fi
8852
8853 fi
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865 #
8866 # Check to make sure the static flag actually works.
8867 #
8868 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8870 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8871 if ${lt_cv_prog_compiler_static_works+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 lt_cv_prog_compiler_static_works=no
8875 save_LDFLAGS="$LDFLAGS"
8876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8877 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8879 # The linker can only warn and ignore the option if not recognized
8880 # So say no if there are warnings
8881 if test -s conftest.err; then
8882 # Append any errors to the config.log.
8883 cat conftest.err 1>&5
8884 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8886 if diff conftest.exp conftest.er2 >/dev/null; then
8887 lt_cv_prog_compiler_static_works=yes
8888 fi
8889 else
8890 lt_cv_prog_compiler_static_works=yes
8891 fi
8892 fi
8893 $RM -r conftest*
8894 LDFLAGS="$save_LDFLAGS"
8895
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8898 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8899
8900 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8901 :
8902 else
8903 lt_prog_compiler_static=
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8913 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8914 if ${lt_cv_prog_compiler_c_o+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 lt_cv_prog_compiler_c_o=no
8918 $RM -r conftest 2>/dev/null
8919 mkdir conftest
8920 cd conftest
8921 mkdir out
8922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923
8924 lt_compiler_flag="-o out/conftest2.$ac_objext"
8925 # Insert the option either (1) after the last *FLAGS variable, or
8926 # (2) before a word containing "conftest.", or (3) at the end.
8927 # Note that $ac_compile itself does not contain backslashes and begins
8928 # with a dollar sign (not a hyphen), so the echo should work correctly.
8929 lt_compile=`echo "$ac_compile" | $SED \
8930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8932 -e 's:$: $lt_compiler_flag:'`
8933 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8934 (eval "$lt_compile" 2>out/conftest.err)
8935 ac_status=$?
8936 cat out/conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8939 then
8940 # The compiler can only warn and ignore the option if not recognized
8941 # So say no if there are warnings
8942 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8943 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8944 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8945 lt_cv_prog_compiler_c_o=yes
8946 fi
8947 fi
8948 chmod u+w . 2>&5
8949 $RM conftest*
8950 # SGI C++ compiler will create directory out/ii_files/ for
8951 # template instantiation
8952 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8953 $RM out/* && rmdir out
8954 cd ..
8955 $RM -r conftest
8956 $RM conftest*
8957
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8960 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8961
8962
8963
8964
8965
8966
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8968 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8969 if ${lt_cv_prog_compiler_c_o+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 lt_cv_prog_compiler_c_o=no
8973 $RM -r conftest 2>/dev/null
8974 mkdir conftest
8975 cd conftest
8976 mkdir out
8977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8978
8979 lt_compiler_flag="-o out/conftest2.$ac_objext"
8980 # Insert the option either (1) after the last *FLAGS variable, or
8981 # (2) before a word containing "conftest.", or (3) at the end.
8982 # Note that $ac_compile itself does not contain backslashes and begins
8983 # with a dollar sign (not a hyphen), so the echo should work correctly.
8984 lt_compile=`echo "$ac_compile" | $SED \
8985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8987 -e 's:$: $lt_compiler_flag:'`
8988 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8989 (eval "$lt_compile" 2>out/conftest.err)
8990 ac_status=$?
8991 cat out/conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8994 then
8995 # The compiler can only warn and ignore the option if not recognized
8996 # So say no if there are warnings
8997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8998 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8999 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9000 lt_cv_prog_compiler_c_o=yes
9001 fi
9002 fi
9003 chmod u+w . 2>&5
9004 $RM conftest*
9005 # SGI C++ compiler will create directory out/ii_files/ for
9006 # template instantiation
9007 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9008 $RM out/* && rmdir out
9009 cd ..
9010 $RM -r conftest
9011 $RM conftest*
9012
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9015 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9016
9017
9018
9019
9020 hard_links="nottested"
9021 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9022 # do not overwrite the value of need_locks provided by the user
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9024 $as_echo_n "checking if we can lock with hard links... " >&6; }
9025 hard_links=yes
9026 $RM conftest*
9027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9028 touch conftest.a
9029 ln conftest.a conftest.b 2>&5 || hard_links=no
9030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9032 $as_echo "$hard_links" >&6; }
9033 if test "$hard_links" = no; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9035 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9036 need_locks=warn
9037 fi
9038 else
9039 need_locks=no
9040 fi
9041
9042
9043
9044
9045
9046
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9048 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9049
9050 runpath_var=
9051 allow_undefined_flag=
9052 always_export_symbols=no
9053 archive_cmds=
9054 archive_expsym_cmds=
9055 compiler_needs_object=no
9056 enable_shared_with_static_runtimes=no
9057 export_dynamic_flag_spec=
9058 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9059 hardcode_automatic=no
9060 hardcode_direct=no
9061 hardcode_direct_absolute=no
9062 hardcode_libdir_flag_spec=
9063 hardcode_libdir_flag_spec_ld=
9064 hardcode_libdir_separator=
9065 hardcode_minus_L=no
9066 hardcode_shlibpath_var=unsupported
9067 inherit_rpath=no
9068 link_all_deplibs=unknown
9069 module_cmds=
9070 module_expsym_cmds=
9071 old_archive_from_new_cmds=
9072 old_archive_from_expsyms_cmds=
9073 thread_safe_flag_spec=
9074 whole_archive_flag_spec=
9075 # include_expsyms should be a list of space-separated symbols to be *always*
9076 # included in the symbol list
9077 include_expsyms=
9078 # exclude_expsyms can be an extended regexp of symbols to exclude
9079 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9080 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9081 # as well as any symbol that contains `d'.
9082 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9083 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9084 # platforms (ab)use it in PIC code, but their linkers get confused if
9085 # the symbol is explicitly referenced. Since portable code cannot
9086 # rely on this symbol name, it's probably fine to never include it in
9087 # preloaded symbol tables.
9088 # Exclude shared library initialization/finalization symbols.
9089 extract_expsyms_cmds=
9090
9091 case $host_os in
9092 cygwin* | mingw* | pw32* | cegcc*)
9093 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9094 # When not using gcc, we currently assume that we are using
9095 # Microsoft Visual C++.
9096 if test "$GCC" != yes; then
9097 with_gnu_ld=no
9098 fi
9099 ;;
9100 interix*)
9101 # we just hope/assume this is gcc and not c89 (= MSVC++)
9102 with_gnu_ld=yes
9103 ;;
9104 openbsd*)
9105 with_gnu_ld=no
9106 ;;
9107 esac
9108
9109 ld_shlibs=yes
9110
9111 # On some targets, GNU ld is compatible enough with the native linker
9112 # that we're better off using the native interface for both.
9113 lt_use_gnu_ld_interface=no
9114 if test "$with_gnu_ld" = yes; then
9115 case $host_os in
9116 aix*)
9117 # The AIX port of GNU ld has always aspired to compatibility
9118 # with the native linker. However, as the warning in the GNU ld
9119 # block says, versions before 2.19.5* couldn't really create working
9120 # shared libraries, regardless of the interface used.
9121 case `$LD -v 2>&1` in
9122 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9123 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9124 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9125 *)
9126 lt_use_gnu_ld_interface=yes
9127 ;;
9128 esac
9129 ;;
9130 *)
9131 lt_use_gnu_ld_interface=yes
9132 ;;
9133 esac
9134 fi
9135
9136 if test "$lt_use_gnu_ld_interface" = yes; then
9137 # If archive_cmds runs LD, not CC, wlarc should be empty
9138 wlarc='${wl}'
9139
9140 # Set some defaults for GNU ld with shared library support. These
9141 # are reset later if shared libraries are not supported. Putting them
9142 # here allows them to be overridden if necessary.
9143 runpath_var=LD_RUN_PATH
9144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145 export_dynamic_flag_spec='${wl}--export-dynamic'
9146 # ancient GNU ld didn't support --whole-archive et. al.
9147 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9148 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9149 else
9150 whole_archive_flag_spec=
9151 fi
9152 supports_anon_versioning=no
9153 case `$LD -v 2>&1` in
9154 *GNU\ gold*) supports_anon_versioning=yes ;;
9155 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9156 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9157 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9158 *\ 2.11.*) ;; # other 2.11 versions
9159 *) supports_anon_versioning=yes ;;
9160 esac
9161
9162 # See if GNU ld supports shared libraries.
9163 case $host_os in
9164 aix[3-9]*)
9165 # On AIX/PPC, the GNU linker is very broken
9166 if test "$host_cpu" != ia64; then
9167 ld_shlibs=no
9168 cat <<_LT_EOF 1>&2
9169
9170 *** Warning: the GNU linker, at least up to release 2.19, is reported
9171 *** to be unable to reliably create shared libraries on AIX.
9172 *** Therefore, libtool is disabling shared libraries support. If you
9173 *** really care for shared libraries, you may want to install binutils
9174 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9175 *** You will then need to restart the configuration process.
9176
9177 _LT_EOF
9178 fi
9179 ;;
9180
9181 amigaos*)
9182 case $host_cpu in
9183 powerpc)
9184 # see comment about AmigaOS4 .so support
9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186 archive_expsym_cmds=''
9187 ;;
9188 m68k)
9189 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)'
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 hardcode_minus_L=yes
9192 ;;
9193 esac
9194 ;;
9195
9196 beos*)
9197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9198 allow_undefined_flag=unsupported
9199 # Joseph Beckenbach <[email protected]> says some releases of gcc
9200 # support --undefined. This deserves some investigation. FIXME
9201 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 else
9203 ld_shlibs=no
9204 fi
9205 ;;
9206
9207 cygwin* | mingw* | pw32* | cegcc*)
9208 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9209 # as there is no search path for DLLs.
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 export_dynamic_flag_spec='${wl}--export-all-symbols'
9212 allow_undefined_flag=unsupported
9213 always_export_symbols=no
9214 enable_shared_with_static_runtimes=yes
9215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9216 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9217
9218 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9220 # If the export-symbols file already is a .def file (1st line
9221 # is EXPORTS), use it as is; otherwise, prepend...
9222 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9223 cp $export_symbols $output_objdir/$soname.def;
9224 else
9225 echo EXPORTS > $output_objdir/$soname.def;
9226 cat $export_symbols >> $output_objdir/$soname.def;
9227 fi~
9228 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9229 else
9230 ld_shlibs=no
9231 fi
9232 ;;
9233
9234 haiku*)
9235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236 link_all_deplibs=yes
9237 ;;
9238
9239 interix[3-9]*)
9240 hardcode_direct=no
9241 hardcode_shlibpath_var=no
9242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9243 export_dynamic_flag_spec='${wl}-E'
9244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9245 # Instead, shared libraries are loaded at an image base (0x10000000 by
9246 # default) and relocated if they conflict, which is a slow very memory
9247 # consuming and fragmenting process. To avoid this, we pick a random,
9248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9249 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9250 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9251 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'
9252 ;;
9253
9254 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9255 tmp_diet=no
9256 if test "$host_os" = linux-dietlibc; then
9257 case $cc_basename in
9258 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9259 esac
9260 fi
9261 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9262 && test "$tmp_diet" = no
9263 then
9264 tmp_addflag=' $pic_flag'
9265 tmp_sharedflag='-shared'
9266 case $cc_basename,$host_cpu in
9267 pgcc*) # Portland Group C compiler
9268 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'
9269 tmp_addflag=' $pic_flag'
9270 ;;
9271 pgf77* | pgf90* | pgf95* | pgfortran*)
9272 # Portland Group f77 and f90 compilers
9273 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'
9274 tmp_addflag=' $pic_flag -Mnomain' ;;
9275 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9276 tmp_addflag=' -i_dynamic' ;;
9277 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9278 tmp_addflag=' -i_dynamic -nofor_main' ;;
9279 ifc* | ifort*) # Intel Fortran compiler
9280 tmp_addflag=' -nofor_main' ;;
9281 lf95*) # Lahey Fortran 8.1
9282 whole_archive_flag_spec=
9283 tmp_sharedflag='--shared' ;;
9284 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9285 tmp_sharedflag='-qmkshrobj'
9286 tmp_addflag= ;;
9287 nvcc*) # Cuda Compiler Driver 2.2
9288 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'
9289 compiler_needs_object=yes
9290 ;;
9291 esac
9292 case `$CC -V 2>&1 | sed 5q` in
9293 *Sun\ C*) # Sun C 5.9
9294 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'
9295 compiler_needs_object=yes
9296 tmp_sharedflag='-G' ;;
9297 *Sun\ F*) # Sun Fortran 8.3
9298 tmp_sharedflag='-G' ;;
9299 esac
9300 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301
9302 if test "x$supports_anon_versioning" = xyes; then
9303 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9305 echo "local: *; };" >> $output_objdir/$libname.ver~
9306 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9307 fi
9308
9309 case $cc_basename in
9310 xlf* | bgf* | bgxlf* | mpixlf*)
9311 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9312 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9313 hardcode_libdir_flag_spec=
9314 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9315 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9316 if test "x$supports_anon_versioning" = xyes; then
9317 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9319 echo "local: *; };" >> $output_objdir/$libname.ver~
9320 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9321 fi
9322 ;;
9323 esac
9324 else
9325 ld_shlibs=no
9326 fi
9327 ;;
9328
9329 netbsd*)
9330 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9331 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9332 wlarc=
9333 else
9334 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9335 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9336 fi
9337 ;;
9338
9339 solaris*)
9340 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9341 ld_shlibs=no
9342 cat <<_LT_EOF 1>&2
9343
9344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9345 *** create shared libraries on Solaris systems. Therefore, libtool
9346 *** is disabling shared libraries support. We urge you to upgrade GNU
9347 *** binutils to release 2.9.1 or newer. Another option is to modify
9348 *** your PATH or compiler configuration so that the native linker is
9349 *** used, and then restart.
9350
9351 _LT_EOF
9352 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 else
9356 ld_shlibs=no
9357 fi
9358 ;;
9359
9360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9361 case `$LD -v 2>&1` in
9362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9363 ld_shlibs=no
9364 cat <<_LT_EOF 1>&2
9365
9366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9367 *** reliably create shared libraries on SCO systems. Therefore, libtool
9368 *** is disabling shared libraries support. We urge you to upgrade GNU
9369 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9370 *** your PATH or compiler configuration so that the native linker is
9371 *** used, and then restart.
9372
9373 _LT_EOF
9374 ;;
9375 *)
9376 # For security reasons, it is highly recommended that you always
9377 # use absolute paths for naming shared libraries, and exclude the
9378 # DT_RUNPATH tag from executables and libraries. But doing so
9379 # requires that you compile everything twice, which is a pain.
9380 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384 else
9385 ld_shlibs=no
9386 fi
9387 ;;
9388 esac
9389 ;;
9390
9391 sunos4*)
9392 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9393 wlarc=
9394 hardcode_direct=yes
9395 hardcode_shlibpath_var=no
9396 ;;
9397
9398 *)
9399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9402 else
9403 ld_shlibs=no
9404 fi
9405 ;;
9406 esac
9407
9408 if test "$ld_shlibs" = no; then
9409 runpath_var=
9410 hardcode_libdir_flag_spec=
9411 export_dynamic_flag_spec=
9412 whole_archive_flag_spec=
9413 fi
9414 else
9415 # PORTME fill in a description of your system's linker (not GNU ld)
9416 case $host_os in
9417 aix3*)
9418 allow_undefined_flag=unsupported
9419 always_export_symbols=yes
9420 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'
9421 # Note: this linker hardcodes the directories in LIBPATH if there
9422 # are no directories specified by -L.
9423 hardcode_minus_L=yes
9424 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9425 # Neither direct hardcoding nor static linking is supported with a
9426 # broken collect2.
9427 hardcode_direct=unsupported
9428 fi
9429 ;;
9430
9431 aix[4-9]*)
9432 if test "$host_cpu" = ia64; then
9433 # On IA64, the linker does run time linking by default, so we don't
9434 # have to do anything special.
9435 aix_use_runtimelinking=no
9436 exp_sym_flag='-Bexport'
9437 no_entry_flag=""
9438 else
9439 # If we're using GNU nm, then we don't want the "-C" option.
9440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9441 # Also, AIX nm treats weak defined symbols like other global
9442 # defined symbols, whereas GNU nm marks them as "W".
9443 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9444 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'
9445 else
9446 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9447 fi
9448 aix_use_runtimelinking=no
9449
9450 # Test if we are trying to use run time linking or normal
9451 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9452 # need to do runtime linking.
9453 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9454 for ld_flag in $LDFLAGS; do
9455 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9456 aix_use_runtimelinking=yes
9457 break
9458 fi
9459 done
9460 ;;
9461 esac
9462
9463 exp_sym_flag='-bexport'
9464 no_entry_flag='-bnoentry'
9465 fi
9466
9467 # When large executables or shared objects are built, AIX ld can
9468 # have problems creating the table of contents. If linking a library
9469 # or program results in "error TOC overflow" add -mminimal-toc to
9470 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9471 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9472
9473 archive_cmds=''
9474 hardcode_direct=yes
9475 hardcode_direct_absolute=yes
9476 hardcode_libdir_separator=':'
9477 link_all_deplibs=yes
9478 file_list_spec='${wl}-f,'
9479
9480 if test "$GCC" = yes; then
9481 case $host_os in aix4.[012]|aix4.[012].*)
9482 # We only want to do this on AIX 4.2 and lower, the check
9483 # below for broken collect2 doesn't work under 4.3+
9484 collect2name=`${CC} -print-prog-name=collect2`
9485 if test -f "$collect2name" &&
9486 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9487 then
9488 # We have reworked collect2
9489 :
9490 else
9491 # We have old collect2
9492 hardcode_direct=unsupported
9493 # It fails to find uninstalled libraries when the uninstalled
9494 # path is not listed in the libpath. Setting hardcode_minus_L
9495 # to unsupported forces relinking
9496 hardcode_minus_L=yes
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_libdir_separator=
9499 fi
9500 ;;
9501 esac
9502 shared_flag='-shared'
9503 if test "$aix_use_runtimelinking" = yes; then
9504 shared_flag="$shared_flag "'${wl}-G'
9505 fi
9506 else
9507 # not using gcc
9508 if test "$host_cpu" = ia64; then
9509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9510 # chokes on -Wl,-G. The following line is correct:
9511 shared_flag='-G'
9512 else
9513 if test "$aix_use_runtimelinking" = yes; then
9514 shared_flag='${wl}-G'
9515 else
9516 shared_flag='${wl}-bM:SRE'
9517 fi
9518 fi
9519 fi
9520
9521 export_dynamic_flag_spec='${wl}-bexpall'
9522 # It seems that -bexpall does not export symbols beginning with
9523 # underscore (_), so it is better to generate a list of symbols to export.
9524 always_export_symbols=yes
9525 if test "$aix_use_runtimelinking" = yes; then
9526 # Warning - without using the other runtime loading flags (-brtl),
9527 # -berok will link without error, but may produce a broken library.
9528 allow_undefined_flag='-berok'
9529 # Determine the default libpath from the value encoded in an
9530 # empty executable.
9531 if test "${lt_cv_aix_libpath+set}" = set; then
9532 aix_libpath=$lt_cv_aix_libpath
9533 else
9534 if ${lt_cv_aix_libpath_+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9539
9540 int
9541 main ()
9542 {
9543
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 if ac_fn_c_try_link "$LINENO"; then :
9549
9550 lt_aix_libpath_sed='
9551 /Import File Strings/,/^$/ {
9552 /^0/ {
9553 s/^0 *\([^ ]*\) *$/\1/
9554 p
9555 }
9556 }'
9557 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9558 # Check for a 64-bit object if we didn't find anything.
9559 if test -z "$lt_cv_aix_libpath_"; then
9560 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561 fi
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 if test -z "$lt_cv_aix_libpath_"; then
9566 lt_cv_aix_libpath_="/usr/lib:/lib"
9567 fi
9568
9569 fi
9570
9571 aix_libpath=$lt_cv_aix_libpath_
9572 fi
9573
9574 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9575 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"
9576 else
9577 if test "$host_cpu" = ia64; then
9578 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9579 allow_undefined_flag="-z nodefs"
9580 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"
9581 else
9582 # Determine the default libpath from the value encoded in an
9583 # empty executable.
9584 if test "${lt_cv_aix_libpath+set}" = set; then
9585 aix_libpath=$lt_cv_aix_libpath
9586 else
9587 if ${lt_cv_aix_libpath_+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592
9593 int
9594 main ()
9595 {
9596
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602
9603 lt_aix_libpath_sed='
9604 /Import File Strings/,/^$/ {
9605 /^0/ {
9606 s/^0 *\([^ ]*\) *$/\1/
9607 p
9608 }
9609 }'
9610 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611 # Check for a 64-bit object if we didn't find anything.
9612 if test -z "$lt_cv_aix_libpath_"; then
9613 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614 fi
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 if test -z "$lt_cv_aix_libpath_"; then
9619 lt_cv_aix_libpath_="/usr/lib:/lib"
9620 fi
9621
9622 fi
9623
9624 aix_libpath=$lt_cv_aix_libpath_
9625 fi
9626
9627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9628 # Warning - without using the other run time loading flags,
9629 # -berok will link without error, but may produce a broken library.
9630 no_undefined_flag=' ${wl}-bernotok'
9631 allow_undefined_flag=' ${wl}-berok'
9632 if test "$with_gnu_ld" = yes; then
9633 # We only use this code for GNU lds that support --whole-archive.
9634 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9635 else
9636 # Exported symbols can be pulled into shared objects from archives
9637 whole_archive_flag_spec='$convenience'
9638 fi
9639 archive_cmds_need_lc=yes
9640 # This is similar to how AIX traditionally builds its shared libraries.
9641 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'
9642 fi
9643 fi
9644 ;;
9645
9646 amigaos*)
9647 case $host_cpu in
9648 powerpc)
9649 # see comment about AmigaOS4 .so support
9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651 archive_expsym_cmds=''
9652 ;;
9653 m68k)
9654 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)'
9655 hardcode_libdir_flag_spec='-L$libdir'
9656 hardcode_minus_L=yes
9657 ;;
9658 esac
9659 ;;
9660
9661 bsdi[45]*)
9662 export_dynamic_flag_spec=-rdynamic
9663 ;;
9664
9665 cygwin* | mingw* | pw32* | cegcc*)
9666 # When not using gcc, we currently assume that we are using
9667 # Microsoft Visual C++.
9668 # hardcode_libdir_flag_spec is actually meaningless, as there is
9669 # no search path for DLLs.
9670 case $cc_basename in
9671 cl*)
9672 # Native MSVC
9673 hardcode_libdir_flag_spec=' '
9674 allow_undefined_flag=unsupported
9675 always_export_symbols=yes
9676 file_list_spec='@'
9677 # Tell ltmain to make .lib files, not .a files.
9678 libext=lib
9679 # Tell ltmain to make .dll files, not .so files.
9680 shrext_cmds=".dll"
9681 # FIXME: Setting linknames here is a bad hack.
9682 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9683 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9684 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9685 else
9686 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9687 fi~
9688 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9689 linknames='
9690 # The linker will not automatically build a static lib if we build a DLL.
9691 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9692 enable_shared_with_static_runtimes=yes
9693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9694 # Don't use ranlib
9695 old_postinstall_cmds='chmod 644 $oldlib'
9696 postlink_cmds='lt_outputfile="@OUTPUT@"~
9697 lt_tool_outputfile="@TOOL_OUTPUT@"~
9698 case $lt_outputfile in
9699 *.exe|*.EXE) ;;
9700 *)
9701 lt_outputfile="$lt_outputfile.exe"
9702 lt_tool_outputfile="$lt_tool_outputfile.exe"
9703 ;;
9704 esac~
9705 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9706 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9707 $RM "$lt_outputfile.manifest";
9708 fi'
9709 ;;
9710 *)
9711 # Assume MSVC wrapper
9712 hardcode_libdir_flag_spec=' '
9713 allow_undefined_flag=unsupported
9714 # Tell ltmain to make .lib files, not .a files.
9715 libext=lib
9716 # Tell ltmain to make .dll files, not .so files.
9717 shrext_cmds=".dll"
9718 # FIXME: Setting linknames here is a bad hack.
9719 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9720 # The linker will automatically build a .lib file if we build a DLL.
9721 old_archive_from_new_cmds='true'
9722 # FIXME: Should let the user specify the lib program.
9723 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9724 enable_shared_with_static_runtimes=yes
9725 ;;
9726 esac
9727 ;;
9728
9729 darwin* | rhapsody*)
9730
9731
9732 archive_cmds_need_lc=no
9733 hardcode_direct=no
9734 hardcode_automatic=yes
9735 hardcode_shlibpath_var=unsupported
9736 if test "$lt_cv_ld_force_load" = "yes"; then
9737 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\"`'
9738 else
9739 whole_archive_flag_spec=''
9740 fi
9741 link_all_deplibs=yes
9742 allow_undefined_flag="$_lt_dar_allow_undefined"
9743 case $cc_basename in
9744 ifort*) _lt_dar_can_shared=yes ;;
9745 *) _lt_dar_can_shared=$GCC ;;
9746 esac
9747 if test "$_lt_dar_can_shared" = "yes"; then
9748 output_verbose_link_cmd=func_echo_all
9749 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9750 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9751 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}"
9752 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}"
9753
9754 else
9755 ld_shlibs=no
9756 fi
9757
9758 ;;
9759
9760 dgux*)
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_shlibpath_var=no
9764 ;;
9765
9766 freebsd1*)
9767 ld_shlibs=no
9768 ;;
9769
9770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9771 # support. Future versions do this automatically, but an explicit c++rt0.o
9772 # does not break anything, and helps significantly (at the cost of a little
9773 # extra space).
9774 freebsd2.2*)
9775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9776 hardcode_libdir_flag_spec='-R$libdir'
9777 hardcode_direct=yes
9778 hardcode_shlibpath_var=no
9779 ;;
9780
9781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9782 freebsd2*)
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9784 hardcode_direct=yes
9785 hardcode_minus_L=yes
9786 hardcode_shlibpath_var=no
9787 ;;
9788
9789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9790 freebsd* | dragonfly*)
9791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9792 hardcode_libdir_flag_spec='-R$libdir'
9793 hardcode_direct=yes
9794 hardcode_shlibpath_var=no
9795 ;;
9796
9797 hpux9*)
9798 if test "$GCC" = yes; then
9799 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9800 else
9801 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'
9802 fi
9803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804 hardcode_libdir_separator=:
9805 hardcode_direct=yes
9806
9807 # hardcode_minus_L: Not really in the search PATH,
9808 # but as the default location of the library.
9809 hardcode_minus_L=yes
9810 export_dynamic_flag_spec='${wl}-E'
9811 ;;
9812
9813 hpux10*)
9814 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9815 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816 else
9817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9818 fi
9819 if test "$with_gnu_ld" = no; then
9820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9821 hardcode_libdir_flag_spec_ld='+b $libdir'
9822 hardcode_libdir_separator=:
9823 hardcode_direct=yes
9824 hardcode_direct_absolute=yes
9825 export_dynamic_flag_spec='${wl}-E'
9826 # hardcode_minus_L: Not really in the search PATH,
9827 # but as the default location of the library.
9828 hardcode_minus_L=yes
9829 fi
9830 ;;
9831
9832 hpux11*)
9833 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9834 case $host_cpu in
9835 hppa*64*)
9836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 ;;
9838 ia64*)
9839 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9840 ;;
9841 *)
9842 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 esac
9845 else
9846 case $host_cpu in
9847 hppa*64*)
9848 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 ;;
9850 ia64*)
9851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852 ;;
9853 *)
9854
9855 # Older versions of the 11.00 compiler do not understand -b yet
9856 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9858 $as_echo_n "checking if $CC understands -b... " >&6; }
9859 if ${lt_cv_prog_compiler__b+:} false; then :
9860 $as_echo_n "(cached) " >&6
9861 else
9862 lt_cv_prog_compiler__b=no
9863 save_LDFLAGS="$LDFLAGS"
9864 LDFLAGS="$LDFLAGS -b"
9865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9867 # The linker can only warn and ignore the option if not recognized
9868 # So say no if there are warnings
9869 if test -s conftest.err; then
9870 # Append any errors to the config.log.
9871 cat conftest.err 1>&5
9872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9874 if diff conftest.exp conftest.er2 >/dev/null; then
9875 lt_cv_prog_compiler__b=yes
9876 fi
9877 else
9878 lt_cv_prog_compiler__b=yes
9879 fi
9880 fi
9881 $RM -r conftest*
9882 LDFLAGS="$save_LDFLAGS"
9883
9884 fi
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9886 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9887
9888 if test x"$lt_cv_prog_compiler__b" = xyes; then
9889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9890 else
9891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9892 fi
9893
9894 ;;
9895 esac
9896 fi
9897 if test "$with_gnu_ld" = no; then
9898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_separator=:
9900
9901 case $host_cpu in
9902 hppa*64*|ia64*)
9903 hardcode_direct=no
9904 hardcode_shlibpath_var=no
9905 ;;
9906 *)
9907 hardcode_direct=yes
9908 hardcode_direct_absolute=yes
9909 export_dynamic_flag_spec='${wl}-E'
9910
9911 # hardcode_minus_L: Not really in the search PATH,
9912 # but as the default location of the library.
9913 hardcode_minus_L=yes
9914 ;;
9915 esac
9916 fi
9917 ;;
9918
9919 irix5* | irix6* | nonstopux*)
9920 if test "$GCC" = yes; then
9921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9922 # Try to use the -exported_symbol ld option, if it does not
9923 # work, assume that -exports_file does not work either and
9924 # implicitly export all symbols.
9925 # This should be the same for all languages, so no per-tag cache variable.
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9927 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9928 if ${lt_cv_irix_exported_symbol+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 save_LDFLAGS="$LDFLAGS"
9932 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935 int foo (void) { return 0; }
9936 _ACEOF
9937 if ac_fn_c_try_link "$LINENO"; then :
9938 lt_cv_irix_exported_symbol=yes
9939 else
9940 lt_cv_irix_exported_symbol=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LDFLAGS="$save_LDFLAGS"
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9947 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9948 if test "$lt_cv_irix_exported_symbol" = yes; then
9949 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9950 fi
9951 else
9952 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'
9953 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'
9954 fi
9955 archive_cmds_need_lc='no'
9956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957 hardcode_libdir_separator=:
9958 inherit_rpath=yes
9959 link_all_deplibs=yes
9960 ;;
9961
9962 netbsd*)
9963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9965 else
9966 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9967 fi
9968 hardcode_libdir_flag_spec='-R$libdir'
9969 hardcode_direct=yes
9970 hardcode_shlibpath_var=no
9971 ;;
9972
9973 newsos6)
9974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9975 hardcode_direct=yes
9976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9977 hardcode_libdir_separator=:
9978 hardcode_shlibpath_var=no
9979 ;;
9980
9981 *nto* | *qnx*)
9982 ;;
9983
9984 openbsd*)
9985 if test -f /usr/libexec/ld.so; then
9986 hardcode_direct=yes
9987 hardcode_shlibpath_var=no
9988 hardcode_direct_absolute=yes
9989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9993 export_dynamic_flag_spec='${wl}-E'
9994 else
9995 case $host_os in
9996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9998 hardcode_libdir_flag_spec='-R$libdir'
9999 ;;
10000 *)
10001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10003 ;;
10004 esac
10005 fi
10006 else
10007 ld_shlibs=no
10008 fi
10009 ;;
10010
10011 os2*)
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_minus_L=yes
10014 allow_undefined_flag=unsupported
10015 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'
10016 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10017 ;;
10018
10019 osf3*)
10020 if test "$GCC" = yes; then
10021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10022 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'
10023 else
10024 allow_undefined_flag=' -expect_unresolved \*'
10025 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'
10026 fi
10027 archive_cmds_need_lc='no'
10028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10029 hardcode_libdir_separator=:
10030 ;;
10031
10032 osf4* | osf5*) # as osf3* with the addition of -msym flag
10033 if test "$GCC" = yes; then
10034 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10035 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037 else
10038 allow_undefined_flag=' -expect_unresolved \*'
10039 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'
10040 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~
10041 $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'
10042
10043 # Both c and cxx compiler support -rpath directly
10044 hardcode_libdir_flag_spec='-rpath $libdir'
10045 fi
10046 archive_cmds_need_lc='no'
10047 hardcode_libdir_separator=:
10048 ;;
10049
10050 solaris*)
10051 no_undefined_flag=' -z defs'
10052 if test "$GCC" = yes; then
10053 wlarc='${wl}'
10054 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10056 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10057 else
10058 case `$CC -V 2>&1` in
10059 *"Compilers 5.0"*)
10060 wlarc=''
10061 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10063 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10064 ;;
10065 *)
10066 wlarc='${wl}'
10067 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10069 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10070 ;;
10071 esac
10072 fi
10073 hardcode_libdir_flag_spec='-R$libdir'
10074 hardcode_shlibpath_var=no
10075 case $host_os in
10076 solaris2.[0-5] | solaris2.[0-5].*) ;;
10077 *)
10078 # The compiler driver will combine and reorder linker options,
10079 # but understands `-z linker_flag'. GCC discards it without `$wl',
10080 # but is careful enough not to reorder.
10081 # Supported since Solaris 2.6 (maybe 2.5.1?)
10082 if test "$GCC" = yes; then
10083 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10084 else
10085 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10086 fi
10087 ;;
10088 esac
10089 link_all_deplibs=yes
10090 ;;
10091
10092 sunos4*)
10093 if test "x$host_vendor" = xsequent; then
10094 # Use $CC to link under sequent, because it throws in some extra .o
10095 # files that make .init and .fini sections work.
10096 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10097 else
10098 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10099 fi
10100 hardcode_libdir_flag_spec='-L$libdir'
10101 hardcode_direct=yes
10102 hardcode_minus_L=yes
10103 hardcode_shlibpath_var=no
10104 ;;
10105
10106 sysv4)
10107 case $host_vendor in
10108 sni)
10109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10110 hardcode_direct=yes # is this really true???
10111 ;;
10112 siemens)
10113 ## LD is ld it makes a PLAMLIB
10114 ## CC just makes a GrossModule.
10115 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10116 reload_cmds='$CC -r -o $output$reload_objs'
10117 hardcode_direct=no
10118 ;;
10119 motorola)
10120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10122 ;;
10123 esac
10124 runpath_var='LD_RUN_PATH'
10125 hardcode_shlibpath_var=no
10126 ;;
10127
10128 sysv4.3*)
10129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_shlibpath_var=no
10131 export_dynamic_flag_spec='-Bexport'
10132 ;;
10133
10134 sysv4*MP*)
10135 if test -d /usr/nec; then
10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_shlibpath_var=no
10138 runpath_var=LD_RUN_PATH
10139 hardcode_runpath_var=yes
10140 ld_shlibs=yes
10141 fi
10142 ;;
10143
10144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10145 no_undefined_flag='${wl}-z,text'
10146 archive_cmds_need_lc=no
10147 hardcode_shlibpath_var=no
10148 runpath_var='LD_RUN_PATH'
10149
10150 if test "$GCC" = yes; then
10151 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 else
10154 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 fi
10157 ;;
10158
10159 sysv5* | sco3.2v5* | sco5v6*)
10160 # Note: We can NOT use -z defs as we might desire, because we do not
10161 # link with -lc, and that would cause any symbols used from libc to
10162 # always be unresolved, which means just about no library would
10163 # ever link correctly. If we're not using GNU ld we use -z text
10164 # though, which does catch some bad symbols but isn't as heavy-handed
10165 # as -z defs.
10166 no_undefined_flag='${wl}-z,text'
10167 allow_undefined_flag='${wl}-z,nodefs'
10168 archive_cmds_need_lc=no
10169 hardcode_shlibpath_var=no
10170 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10171 hardcode_libdir_separator=':'
10172 link_all_deplibs=yes
10173 export_dynamic_flag_spec='${wl}-Bexport'
10174 runpath_var='LD_RUN_PATH'
10175
10176 if test "$GCC" = yes; then
10177 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 else
10180 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 fi
10183 ;;
10184
10185 uts4*)
10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_shlibpath_var=no
10189 ;;
10190
10191 *)
10192 ld_shlibs=no
10193 ;;
10194 esac
10195
10196 if test x$host_vendor = xsni; then
10197 case $host in
10198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10199 export_dynamic_flag_spec='${wl}-Blargedynsym'
10200 ;;
10201 esac
10202 fi
10203 fi
10204
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10206 $as_echo "$ld_shlibs" >&6; }
10207 test "$ld_shlibs" = no && can_build_shared=no
10208
10209 with_gnu_ld=$with_gnu_ld
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225 #
10226 # Do we need to explicitly link libc?
10227 #
10228 case "x$archive_cmds_need_lc" in
10229 x|xyes)
10230 # Assume -lc should be added
10231 archive_cmds_need_lc=yes
10232
10233 if test "$enable_shared" = yes && test "$GCC" = yes; then
10234 case $archive_cmds in
10235 *'~'*)
10236 # FIXME: we may have to deal with multi-command sequences.
10237 ;;
10238 '$CC '*)
10239 # Test whether the compiler implicitly links with -lc since on some
10240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10241 # to ld, don't add -lc before -lgcc.
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10243 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10244 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 $RM conftest*
10248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10249
10250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10254 test $ac_status = 0; } 2>conftest.err; then
10255 soname=conftest
10256 lib=conftest
10257 libobjs=conftest.$ac_objext
10258 deplibs=
10259 wl=$lt_prog_compiler_wl
10260 pic_flag=$lt_prog_compiler_pic
10261 compiler_flags=-v
10262 linker_flags=-v
10263 verstring=
10264 output_objdir=.
10265 libname=conftest
10266 lt_save_allow_undefined_flag=$allow_undefined_flag
10267 allow_undefined_flag=
10268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10269 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10270 ac_status=$?
10271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10272 test $ac_status = 0; }
10273 then
10274 lt_cv_archive_cmds_need_lc=no
10275 else
10276 lt_cv_archive_cmds_need_lc=yes
10277 fi
10278 allow_undefined_flag=$lt_save_allow_undefined_flag
10279 else
10280 cat conftest.err 1>&5
10281 fi
10282 $RM conftest*
10283
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10286 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10287 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10288 ;;
10289 esac
10290 fi
10291 ;;
10292 esac
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10451 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10452
10453 if test "$GCC" = yes; then
10454 case $host_os in
10455 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10456 *) lt_awk_arg="/^libraries:/" ;;
10457 esac
10458 case $host_os in
10459 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10460 *) lt_sed_strip_eq="s,=/,/,g" ;;
10461 esac
10462 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10463 case $lt_search_path_spec in
10464 *\;*)
10465 # if the path contains ";" then we assume it to be the separator
10466 # otherwise default to the standard path separator (i.e. ":") - it is
10467 # assumed that no part of a normal pathname contains ";" but that should
10468 # okay in the real world where ";" in dirpaths is itself problematic.
10469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10470 ;;
10471 *)
10472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10473 ;;
10474 esac
10475 # Ok, now we have the path, separated by spaces, we can step through it
10476 # and add multilib dir if necessary.
10477 lt_tmp_lt_search_path_spec=
10478 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10479 for lt_sys_path in $lt_search_path_spec; do
10480 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10482 else
10483 test -d "$lt_sys_path" && \
10484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10485 fi
10486 done
10487 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10488 BEGIN {RS=" "; FS="/|\n";} {
10489 lt_foo="";
10490 lt_count=0;
10491 for (lt_i = NF; lt_i > 0; lt_i--) {
10492 if ($lt_i != "" && $lt_i != ".") {
10493 if ($lt_i == "..") {
10494 lt_count++;
10495 } else {
10496 if (lt_count == 0) {
10497 lt_foo="/" $lt_i lt_foo;
10498 } else {
10499 lt_count--;
10500 }
10501 }
10502 }
10503 }
10504 if (lt_foo != "") { lt_freq[lt_foo]++; }
10505 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10506 }'`
10507 # AWK program above erroneously prepends '/' to C:/dos/paths
10508 # for these hosts.
10509 case $host_os in
10510 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10511 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10512 esac
10513 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10514 else
10515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10516 fi
10517 library_names_spec=
10518 libname_spec='lib$name'
10519 soname_spec=
10520 shrext_cmds=".so"
10521 postinstall_cmds=
10522 postuninstall_cmds=
10523 finish_cmds=
10524 finish_eval=
10525 shlibpath_var=
10526 shlibpath_overrides_runpath=unknown
10527 version_type=none
10528 dynamic_linker="$host_os ld.so"
10529 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10530 need_lib_prefix=unknown
10531 hardcode_into_libs=no
10532
10533 # when you set need_version to no, make sure it does not cause -set_version
10534 # flags to be left without arguments
10535 need_version=unknown
10536
10537 case $host_os in
10538 aix3*)
10539 version_type=linux
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10541 shlibpath_var=LIBPATH
10542
10543 # AIX 3 has no versioning support, so we append a major version to the name.
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 ;;
10546
10547 aix[4-9]*)
10548 version_type=linux
10549 need_lib_prefix=no
10550 need_version=no
10551 hardcode_into_libs=yes
10552 if test "$host_cpu" = ia64; then
10553 # AIX 5 supports IA64
10554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 else
10557 # With GCC up to 2.95.x, collect2 would create an import file
10558 # for dependence libraries. The import file would start with
10559 # the line `#! .'. This would cause the generated library to
10560 # depend on `.', always an invalid library. This was fixed in
10561 # development snapshots of GCC prior to 3.0.
10562 case $host_os in
10563 aix4 | aix4.[01] | aix4.[01].*)
10564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10565 echo ' yes '
10566 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10567 :
10568 else
10569 can_build_shared=no
10570 fi
10571 ;;
10572 esac
10573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10574 # soname into executable. Probably we can add versioning support to
10575 # collect2, so additional links can be useful in future.
10576 if test "$aix_use_runtimelinking" = yes; then
10577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10578 # instead of lib<name>.a to let people know that these are not
10579 # typical AIX shared libraries.
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 else
10582 # We preserve .a as extension for shared libraries through AIX4.2
10583 # and later when we are not doing run time linking.
10584 library_names_spec='${libname}${release}.a $libname.a'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 fi
10587 shlibpath_var=LIBPATH
10588 fi
10589 ;;
10590
10591 amigaos*)
10592 case $host_cpu in
10593 powerpc)
10594 # Since July 2007 AmigaOS4 officially supports .so libraries.
10595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 ;;
10598 m68k)
10599 library_names_spec='$libname.ixlibrary $libname.a'
10600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10601 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'
10602 ;;
10603 esac
10604 ;;
10605
10606 beos*)
10607 library_names_spec='${libname}${shared_ext}'
10608 dynamic_linker="$host_os ld.so"
10609 shlibpath_var=LIBRARY_PATH
10610 ;;
10611
10612 bsdi[45]*)
10613 version_type=linux
10614 need_version=no
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10621 # the default ld.so.conf also contains /usr/contrib/lib and
10622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10623 # libtool to hard-code these into programs
10624 ;;
10625
10626 cygwin* | mingw* | pw32* | cegcc*)
10627 version_type=windows
10628 shrext_cmds=".dll"
10629 need_version=no
10630 need_lib_prefix=no
10631
10632 case $GCC,$cc_basename in
10633 yes,*)
10634 # gcc
10635 library_names_spec='$libname.dll.a'
10636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10637 postinstall_cmds='base_file=`basename \${file}`~
10638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10639 dldir=$destdir/`dirname \$dlpath`~
10640 test -d \$dldir || mkdir -p \$dldir~
10641 $install_prog $dir/$dlname \$dldir/$dlname~
10642 chmod a+x \$dldir/$dlname~
10643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10645 fi'
10646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10647 dlpath=$dir/\$dldll~
10648 $RM \$dlpath'
10649 shlibpath_overrides_runpath=yes
10650
10651 case $host_os in
10652 cygwin*)
10653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10655
10656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10657 ;;
10658 mingw* | cegcc*)
10659 # MinGW DLLs use traditional 'lib' prefix
10660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661 ;;
10662 pw32*)
10663 # pw32 DLLs use 'pw' prefix rather than 'lib'
10664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10665 ;;
10666 esac
10667 dynamic_linker='Win32 ld.exe'
10668 ;;
10669
10670 *,cl*)
10671 # Native MSVC
10672 libname_spec='$name'
10673 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674 library_names_spec='${libname}.dll.lib'
10675
10676 case $build_os in
10677 mingw*)
10678 sys_lib_search_path_spec=
10679 lt_save_ifs=$IFS
10680 IFS=';'
10681 for lt_path in $LIB
10682 do
10683 IFS=$lt_save_ifs
10684 # Let DOS variable expansion print the short 8.3 style file name.
10685 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10686 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10687 done
10688 IFS=$lt_save_ifs
10689 # Convert to MSYS style.
10690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10691 ;;
10692 cygwin*)
10693 # Convert to unix form, then to dos form, then back to unix form
10694 # but this time dos style (no spaces!) so that the unix form looks
10695 # like /cygdrive/c/PROGRA~1:/cygdr...
10696 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10697 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10698 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10699 ;;
10700 *)
10701 sys_lib_search_path_spec="$LIB"
10702 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10703 # It is most probably a Windows format PATH.
10704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10705 else
10706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10707 fi
10708 # FIXME: find the short name or the path components, as spaces are
10709 # common. (e.g. "Program Files" -> "PROGRA~1")
10710 ;;
10711 esac
10712
10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714 postinstall_cmds='base_file=`basename \${file}`~
10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716 dldir=$destdir/`dirname \$dlpath`~
10717 test -d \$dldir || mkdir -p \$dldir~
10718 $install_prog $dir/$dlname \$dldir/$dlname'
10719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10720 dlpath=$dir/\$dldll~
10721 $RM \$dlpath'
10722 shlibpath_overrides_runpath=yes
10723 dynamic_linker='Win32 link.exe'
10724 ;;
10725
10726 *)
10727 # Assume MSVC wrapper
10728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10729 dynamic_linker='Win32 ld.exe'
10730 ;;
10731 esac
10732 # FIXME: first we should search . and the directory the executable is in
10733 shlibpath_var=PATH
10734 ;;
10735
10736 darwin* | rhapsody*)
10737 dynamic_linker="$host_os dyld"
10738 version_type=darwin
10739 need_lib_prefix=no
10740 need_version=no
10741 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10742 soname_spec='${libname}${release}${major}$shared_ext'
10743 shlibpath_overrides_runpath=yes
10744 shlibpath_var=DYLD_LIBRARY_PATH
10745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10746
10747 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10749 ;;
10750
10751 dgux*)
10752 version_type=linux
10753 need_lib_prefix=no
10754 need_version=no
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10756 soname_spec='${libname}${release}${shared_ext}$major'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 ;;
10759
10760 freebsd1*)
10761 dynamic_linker=no
10762 ;;
10763
10764 freebsd* | dragonfly*)
10765 # DragonFly does not have aout. When/if they implement a new
10766 # versioning mechanism, adjust this.
10767 if test -x /usr/bin/objformat; then
10768 objformat=`/usr/bin/objformat`
10769 else
10770 case $host_os in
10771 freebsd[123]*) objformat=aout ;;
10772 *) objformat=elf ;;
10773 esac
10774 fi
10775 version_type=freebsd-$objformat
10776 case $version_type in
10777 freebsd-elf*)
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10779 need_version=no
10780 need_lib_prefix=no
10781 ;;
10782 freebsd-*)
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10784 need_version=yes
10785 ;;
10786 esac
10787 shlibpath_var=LD_LIBRARY_PATH
10788 case $host_os in
10789 freebsd2*)
10790 shlibpath_overrides_runpath=yes
10791 ;;
10792 freebsd3.[01]* | freebsdelf3.[01]*)
10793 shlibpath_overrides_runpath=yes
10794 hardcode_into_libs=yes
10795 ;;
10796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10798 shlibpath_overrides_runpath=no
10799 hardcode_into_libs=yes
10800 ;;
10801 *) # from 4.6 on, and DragonFly
10802 shlibpath_overrides_runpath=yes
10803 hardcode_into_libs=yes
10804 ;;
10805 esac
10806 ;;
10807
10808 gnu*)
10809 version_type=linux
10810 need_lib_prefix=no
10811 need_version=no
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 hardcode_into_libs=yes
10816 ;;
10817
10818 haiku*)
10819 version_type=linux
10820 need_lib_prefix=no
10821 need_version=no
10822 dynamic_linker="$host_os runtime_loader"
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 shlibpath_var=LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
10827 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10828 hardcode_into_libs=yes
10829 ;;
10830
10831 hpux9* | hpux10* | hpux11*)
10832 # Give a soname corresponding to the major version so that dld.sl refuses to
10833 # link against other versions.
10834 version_type=sunos
10835 need_lib_prefix=no
10836 need_version=no
10837 case $host_cpu in
10838 ia64*)
10839 shrext_cmds='.so'
10840 hardcode_into_libs=yes
10841 dynamic_linker="$host_os dld.so"
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 if test "X$HPUX_IA64_MODE" = X32; then
10847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10848 else
10849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10850 fi
10851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10852 ;;
10853 hppa*64*)
10854 shrext_cmds='.sl'
10855 hardcode_into_libs=yes
10856 dynamic_linker="$host_os dld.sl"
10857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10863 ;;
10864 *)
10865 shrext_cmds='.sl'
10866 dynamic_linker="$host_os dld.sl"
10867 shlibpath_var=SHLIB_PATH
10868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 ;;
10872 esac
10873 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10874 postinstall_cmds='chmod 555 $lib'
10875 # or fails outright, so override atomically:
10876 install_override_mode=555
10877 ;;
10878
10879 interix[3-9]*)
10880 version_type=linux
10881 need_lib_prefix=no
10882 need_version=no
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=no
10888 hardcode_into_libs=yes
10889 ;;
10890
10891 irix5* | irix6* | nonstopux*)
10892 case $host_os in
10893 nonstopux*) version_type=nonstopux ;;
10894 *)
10895 if test "$lt_cv_prog_gnu_ld" = yes; then
10896 version_type=linux
10897 else
10898 version_type=irix
10899 fi ;;
10900 esac
10901 need_lib_prefix=no
10902 need_version=no
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10905 case $host_os in
10906 irix5* | nonstopux*)
10907 libsuff= shlibsuff=
10908 ;;
10909 *)
10910 case $LD in # libtool.m4 will add one of these switches to LD
10911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10912 libsuff= shlibsuff= libmagic=32-bit;;
10913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10914 libsuff=32 shlibsuff=N32 libmagic=N32;;
10915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10917 *) libsuff= shlibsuff= libmagic=never-match;;
10918 esac
10919 ;;
10920 esac
10921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10922 shlibpath_overrides_runpath=no
10923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10925 hardcode_into_libs=yes
10926 ;;
10927
10928 # No shared lib support for Linux oldld, aout, or coff.
10929 linux*oldld* | linux*aout* | linux*coff*)
10930 dynamic_linker=no
10931 ;;
10932
10933 # This must be Linux ELF.
10934 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10935 version_type=linux
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=no
10943
10944 # Some binutils ld are patched to set DT_RUNPATH
10945 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 lt_cv_shlibpath_overrides_runpath=no
10949 save_LDFLAGS=$LDFLAGS
10950 save_libdir=$libdir
10951 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10952 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955
10956 int
10957 main ()
10958 {
10959
10960 ;
10961 return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10966 lt_cv_shlibpath_overrides_runpath=yes
10967 fi
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LDFLAGS=$save_LDFLAGS
10972 libdir=$save_libdir
10973
10974 fi
10975
10976 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10977
10978 # This implies no fast_install, which is unacceptable.
10979 # Some rework will be needed to allow for fast_install
10980 # before this can be enabled.
10981 hardcode_into_libs=yes
10982
10983 # Append ld.so.conf contents to the search path
10984 if test -f /etc/ld.so.conf; then
10985 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' ' '`
10986 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10987 fi
10988
10989 # We used to test for /lib/ld.so.1 and disable shared libraries on
10990 # powerpc, because MkLinux only supported shared libraries with the
10991 # GNU dynamic linker. Since this was broken with cross compilers,
10992 # most powerpc-linux boxes support dynamic linking these days and
10993 # people can always --disable-shared, the test was removed, and we
10994 # assume the GNU/Linux dynamic linker is in use.
10995 dynamic_linker='GNU/Linux ld.so'
10996 ;;
10997
10998 netbsd*)
10999 version_type=sunos
11000 need_lib_prefix=no
11001 need_version=no
11002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11005 dynamic_linker='NetBSD (a.out) ld.so'
11006 else
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 dynamic_linker='NetBSD ld.elf_so'
11010 fi
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=yes
11013 hardcode_into_libs=yes
11014 ;;
11015
11016 newsos6)
11017 version_type=linux
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes
11021 ;;
11022
11023 *nto* | *qnx*)
11024 version_type=qnx
11025 need_lib_prefix=no
11026 need_version=no
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=no
11031 hardcode_into_libs=yes
11032 dynamic_linker='ldqnx.so'
11033 ;;
11034
11035 openbsd*)
11036 version_type=sunos
11037 sys_lib_dlsearch_path_spec="/usr/lib"
11038 need_lib_prefix=no
11039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11040 case $host_os in
11041 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11042 *) need_version=no ;;
11043 esac
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11048 case $host_os in
11049 openbsd2.[89] | openbsd2.[89].*)
11050 shlibpath_overrides_runpath=no
11051 ;;
11052 *)
11053 shlibpath_overrides_runpath=yes
11054 ;;
11055 esac
11056 else
11057 shlibpath_overrides_runpath=yes
11058 fi
11059 ;;
11060
11061 os2*)
11062 libname_spec='$name'
11063 shrext_cmds=".dll"
11064 need_lib_prefix=no
11065 library_names_spec='$libname${shared_ext} $libname.a'
11066 dynamic_linker='OS/2 ld.exe'
11067 shlibpath_var=LIBPATH
11068 ;;
11069
11070 osf3* | osf4* | osf5*)
11071 version_type=osf
11072 need_lib_prefix=no
11073 need_version=no
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11079 ;;
11080
11081 rdos*)
11082 dynamic_linker=no
11083 ;;
11084
11085 solaris*)
11086 version_type=linux
11087 need_lib_prefix=no
11088 need_version=no
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 shlibpath_overrides_runpath=yes
11093 hardcode_into_libs=yes
11094 # ldd complains unless libraries are executable
11095 postinstall_cmds='chmod +x $lib'
11096 ;;
11097
11098 sunos4*)
11099 version_type=sunos
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11104 if test "$with_gnu_ld" = yes; then
11105 need_lib_prefix=no
11106 fi
11107 need_version=yes
11108 ;;
11109
11110 sysv4 | sysv4.3*)
11111 version_type=linux
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 case $host_vendor in
11116 sni)
11117 shlibpath_overrides_runpath=no
11118 need_lib_prefix=no
11119 runpath_var=LD_RUN_PATH
11120 ;;
11121 siemens)
11122 need_lib_prefix=no
11123 ;;
11124 motorola)
11125 need_lib_prefix=no
11126 need_version=no
11127 shlibpath_overrides_runpath=no
11128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11129 ;;
11130 esac
11131 ;;
11132
11133 sysv4*MP*)
11134 if test -d /usr/nec ;then
11135 version_type=linux
11136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11137 soname_spec='$libname${shared_ext}.$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 fi
11140 ;;
11141
11142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11143 version_type=freebsd-elf
11144 need_lib_prefix=no
11145 need_version=no
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=yes
11150 hardcode_into_libs=yes
11151 if test "$with_gnu_ld" = yes; then
11152 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11153 else
11154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11155 case $host_os in
11156 sco3.2v5*)
11157 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11158 ;;
11159 esac
11160 fi
11161 sys_lib_dlsearch_path_spec='/usr/lib'
11162 ;;
11163
11164 tpf*)
11165 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11166 version_type=linux
11167 need_lib_prefix=no
11168 need_version=no
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=no
11172 hardcode_into_libs=yes
11173 ;;
11174
11175 uts4*)
11176 version_type=linux
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 ;;
11181
11182 *)
11183 dynamic_linker=no
11184 ;;
11185 esac
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11187 $as_echo "$dynamic_linker" >&6; }
11188 test "$dynamic_linker" = no && can_build_shared=no
11189
11190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11191 if test "$GCC" = yes; then
11192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11193 fi
11194
11195 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11196 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11197 fi
11198 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11199 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11200 fi
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11294 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11295 hardcode_action=
11296 if test -n "$hardcode_libdir_flag_spec" ||
11297 test -n "$runpath_var" ||
11298 test "X$hardcode_automatic" = "Xyes" ; then
11299
11300 # We can hardcode non-existent directories.
11301 if test "$hardcode_direct" != no &&
11302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11303 # have to relink, otherwise we might link with an installed library
11304 # when we should be linking with a yet-to-be-installed one
11305 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11306 test "$hardcode_minus_L" != no; then
11307 # Linking always hardcodes the temporary library directory.
11308 hardcode_action=relink
11309 else
11310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11311 hardcode_action=immediate
11312 fi
11313 else
11314 # We cannot hardcode anything, or else we can only hardcode existing
11315 # directories.
11316 hardcode_action=unsupported
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11319 $as_echo "$hardcode_action" >&6; }
11320
11321 if test "$hardcode_action" = relink ||
11322 test "$inherit_rpath" = yes; then
11323 # Fast installation is not supported
11324 enable_fast_install=no
11325 elif test "$shlibpath_overrides_runpath" = yes ||
11326 test "$enable_shared" = no; then
11327 # Fast installation is not necessary
11328 enable_fast_install=needless
11329 fi
11330
11331
11332
11333
11334
11335
11336 if test "x$enable_dlopen" != xyes; then
11337 enable_dlopen=unknown
11338 enable_dlopen_self=unknown
11339 enable_dlopen_self_static=unknown
11340 else
11341 lt_cv_dlopen=no
11342 lt_cv_dlopen_libs=
11343
11344 case $host_os in
11345 beos*)
11346 lt_cv_dlopen="load_add_on"
11347 lt_cv_dlopen_libs=
11348 lt_cv_dlopen_self=yes
11349 ;;
11350
11351 mingw* | pw32* | cegcc*)
11352 lt_cv_dlopen="LoadLibrary"
11353 lt_cv_dlopen_libs=
11354 ;;
11355
11356 cygwin*)
11357 lt_cv_dlopen="dlopen"
11358 lt_cv_dlopen_libs=
11359 ;;
11360
11361 darwin*)
11362 # if libdl is installed we need to link against it
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11364 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11365 if ${ac_cv_lib_dl_dlopen+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 ac_check_lib_save_LIBS=$LIBS
11369 LIBS="-ldl $LIBS"
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372
11373 /* Override any GCC internal prototype to avoid an error.
11374 Use char because int might match the return type of a GCC
11375 builtin and then its argument prototype would still apply. */
11376 #ifdef __cplusplus
11377 extern "C"
11378 #endif
11379 char dlopen ();
11380 int
11381 main ()
11382 {
11383 return dlopen ();
11384 ;
11385 return 0;
11386 }
11387 _ACEOF
11388 if ac_fn_c_try_link "$LINENO"; then :
11389 ac_cv_lib_dl_dlopen=yes
11390 else
11391 ac_cv_lib_dl_dlopen=no
11392 fi
11393 rm -f core conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext conftest.$ac_ext
11395 LIBS=$ac_check_lib_save_LIBS
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11398 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11399 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11401 else
11402
11403 lt_cv_dlopen="dyld"
11404 lt_cv_dlopen_libs=
11405 lt_cv_dlopen_self=yes
11406
11407 fi
11408
11409 ;;
11410
11411 *)
11412 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11413 if test "x$ac_cv_func_shl_load" = xyes; then :
11414 lt_cv_dlopen="shl_load"
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11417 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11418 if ${ac_cv_lib_dld_shl_load+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-ldld $LIBS"
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11425
11426 /* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 char shl_load ();
11433 int
11434 main ()
11435 {
11436 return shl_load ();
11437 ;
11438 return 0;
11439 }
11440 _ACEOF
11441 if ac_fn_c_try_link "$LINENO"; then :
11442 ac_cv_lib_dld_shl_load=yes
11443 else
11444 ac_cv_lib_dld_shl_load=no
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11451 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11452 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11453 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11454 else
11455 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11456 if test "x$ac_cv_func_dlopen" = xyes; then :
11457 lt_cv_dlopen="dlopen"
11458 else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11461 if ${ac_cv_lib_dl_dlopen+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-ldl $LIBS"
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char dlopen ();
11476 int
11477 main ()
11478 {
11479 return dlopen ();
11480 ;
11481 return 0;
11482 }
11483 _ACEOF
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_dl_dlopen=yes
11486 else
11487 ac_cv_lib_dl_dlopen=no
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11495 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11499 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11500 if ${ac_cv_lib_svld_dlopen+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 ac_check_lib_save_LIBS=$LIBS
11504 LIBS="-lsvld $LIBS"
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507
11508 /* Override any GCC internal prototype to avoid an error.
11509 Use char because int might match the return type of a GCC
11510 builtin and then its argument prototype would still apply. */
11511 #ifdef __cplusplus
11512 extern "C"
11513 #endif
11514 char dlopen ();
11515 int
11516 main ()
11517 {
11518 return dlopen ();
11519 ;
11520 return 0;
11521 }
11522 _ACEOF
11523 if ac_fn_c_try_link "$LINENO"; then :
11524 ac_cv_lib_svld_dlopen=yes
11525 else
11526 ac_cv_lib_svld_dlopen=no
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11530 LIBS=$ac_check_lib_save_LIBS
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11533 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11534 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11538 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11539 if ${ac_cv_lib_dld_dld_link+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 ac_check_lib_save_LIBS=$LIBS
11543 LIBS="-ldld $LIBS"
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546
11547 /* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char dld_link ();
11554 int
11555 main ()
11556 {
11557 return dld_link ();
11558 ;
11559 return 0;
11560 }
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"; then :
11563 ac_cv_lib_dld_dld_link=yes
11564 else
11565 ac_cv_lib_dld_dld_link=no
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569 LIBS=$ac_check_lib_save_LIBS
11570 fi
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11572 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11573 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11574 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11575 fi
11576
11577
11578 fi
11579
11580
11581 fi
11582
11583
11584 fi
11585
11586
11587 fi
11588
11589
11590 fi
11591
11592 ;;
11593 esac
11594
11595 if test "x$lt_cv_dlopen" != xno; then
11596 enable_dlopen=yes
11597 else
11598 enable_dlopen=no
11599 fi
11600
11601 case $lt_cv_dlopen in
11602 dlopen)
11603 save_CPPFLAGS="$CPPFLAGS"
11604 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11605
11606 save_LDFLAGS="$LDFLAGS"
11607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11608
11609 save_LIBS="$LIBS"
11610 LIBS="$lt_cv_dlopen_libs $LIBS"
11611
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11613 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11614 if ${lt_cv_dlopen_self+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 if test "$cross_compiling" = yes; then :
11618 lt_cv_dlopen_self=cross
11619 else
11620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11621 lt_status=$lt_dlunknown
11622 cat > conftest.$ac_ext <<_LT_EOF
11623 #line $LINENO "configure"
11624 #include "confdefs.h"
11625
11626 #if HAVE_DLFCN_H
11627 #include <dlfcn.h>
11628 #endif
11629
11630 #include <stdio.h>
11631
11632 #ifdef RTLD_GLOBAL
11633 # define LT_DLGLOBAL RTLD_GLOBAL
11634 #else
11635 # ifdef DL_GLOBAL
11636 # define LT_DLGLOBAL DL_GLOBAL
11637 # else
11638 # define LT_DLGLOBAL 0
11639 # endif
11640 #endif
11641
11642 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11643 find out it does not work in some platform. */
11644 #ifndef LT_DLLAZY_OR_NOW
11645 # ifdef RTLD_LAZY
11646 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11647 # else
11648 # ifdef DL_LAZY
11649 # define LT_DLLAZY_OR_NOW DL_LAZY
11650 # else
11651 # ifdef RTLD_NOW
11652 # define LT_DLLAZY_OR_NOW RTLD_NOW
11653 # else
11654 # ifdef DL_NOW
11655 # define LT_DLLAZY_OR_NOW DL_NOW
11656 # else
11657 # define LT_DLLAZY_OR_NOW 0
11658 # endif
11659 # endif
11660 # endif
11661 # endif
11662 #endif
11663
11664 /* When -fvisbility=hidden is used, assume the code has been annotated
11665 correspondingly for the symbols needed. */
11666 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11667 int fnord () __attribute__((visibility("default")));
11668 #endif
11669
11670 int fnord () { return 42; }
11671 int main ()
11672 {
11673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11674 int status = $lt_dlunknown;
11675
11676 if (self)
11677 {
11678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11679 else
11680 {
11681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11682 else puts (dlerror ());
11683 }
11684 /* dlclose (self); */
11685 }
11686 else
11687 puts (dlerror ());
11688
11689 return status;
11690 }
11691 _LT_EOF
11692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11693 (eval $ac_link) 2>&5
11694 ac_status=$?
11695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11696 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11697 (./conftest; exit; ) >&5 2>/dev/null
11698 lt_status=$?
11699 case x$lt_status in
11700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11702 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11703 esac
11704 else :
11705 # compilation failed
11706 lt_cv_dlopen_self=no
11707 fi
11708 fi
11709 rm -fr conftest*
11710
11711
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11714 $as_echo "$lt_cv_dlopen_self" >&6; }
11715
11716 if test "x$lt_cv_dlopen_self" = xyes; then
11717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11719 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11720 if ${lt_cv_dlopen_self_static+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 if test "$cross_compiling" = yes; then :
11724 lt_cv_dlopen_self_static=cross
11725 else
11726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11727 lt_status=$lt_dlunknown
11728 cat > conftest.$ac_ext <<_LT_EOF
11729 #line $LINENO "configure"
11730 #include "confdefs.h"
11731
11732 #if HAVE_DLFCN_H
11733 #include <dlfcn.h>
11734 #endif
11735
11736 #include <stdio.h>
11737
11738 #ifdef RTLD_GLOBAL
11739 # define LT_DLGLOBAL RTLD_GLOBAL
11740 #else
11741 # ifdef DL_GLOBAL
11742 # define LT_DLGLOBAL DL_GLOBAL
11743 # else
11744 # define LT_DLGLOBAL 0
11745 # endif
11746 #endif
11747
11748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11749 find out it does not work in some platform. */
11750 #ifndef LT_DLLAZY_OR_NOW
11751 # ifdef RTLD_LAZY
11752 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11753 # else
11754 # ifdef DL_LAZY
11755 # define LT_DLLAZY_OR_NOW DL_LAZY
11756 # else
11757 # ifdef RTLD_NOW
11758 # define LT_DLLAZY_OR_NOW RTLD_NOW
11759 # else
11760 # ifdef DL_NOW
11761 # define LT_DLLAZY_OR_NOW DL_NOW
11762 # else
11763 # define LT_DLLAZY_OR_NOW 0
11764 # endif
11765 # endif
11766 # endif
11767 # endif
11768 #endif
11769
11770 /* When -fvisbility=hidden is used, assume the code has been annotated
11771 correspondingly for the symbols needed. */
11772 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11773 int fnord () __attribute__((visibility("default")));
11774 #endif
11775
11776 int fnord () { return 42; }
11777 int main ()
11778 {
11779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11780 int status = $lt_dlunknown;
11781
11782 if (self)
11783 {
11784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11785 else
11786 {
11787 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11788 else puts (dlerror ());
11789 }
11790 /* dlclose (self); */
11791 }
11792 else
11793 puts (dlerror ());
11794
11795 return status;
11796 }
11797 _LT_EOF
11798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11799 (eval $ac_link) 2>&5
11800 ac_status=$?
11801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11802 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11803 (./conftest; exit; ) >&5 2>/dev/null
11804 lt_status=$?
11805 case x$lt_status in
11806 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11807 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11808 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11809 esac
11810 else :
11811 # compilation failed
11812 lt_cv_dlopen_self_static=no
11813 fi
11814 fi
11815 rm -fr conftest*
11816
11817
11818 fi
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11820 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11821 fi
11822
11823 CPPFLAGS="$save_CPPFLAGS"
11824 LDFLAGS="$save_LDFLAGS"
11825 LIBS="$save_LIBS"
11826 ;;
11827 esac
11828
11829 case $lt_cv_dlopen_self in
11830 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11831 *) enable_dlopen_self=unknown ;;
11832 esac
11833
11834 case $lt_cv_dlopen_self_static in
11835 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11836 *) enable_dlopen_self_static=unknown ;;
11837 esac
11838 fi
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856 striplib=
11857 old_striplib=
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11859 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11860 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11861 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11862 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864 $as_echo "yes" >&6; }
11865 else
11866 # FIXME - insert some real tests, host_os isn't really good enough
11867 case $host_os in
11868 darwin*)
11869 if test -n "$STRIP" ; then
11870 striplib="$STRIP -x"
11871 old_striplib="$STRIP -S"
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11873 $as_echo "yes" >&6; }
11874 else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11877 fi
11878 ;;
11879 *)
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882 ;;
11883 esac
11884 fi
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897 # Report which library types will actually be built
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11899 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11901 $as_echo "$can_build_shared" >&6; }
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11904 $as_echo_n "checking whether to build shared libraries... " >&6; }
11905 test "$can_build_shared" = "no" && enable_shared=no
11906
11907 # On AIX, shared libraries and static libraries use the same namespace, and
11908 # are all built from PIC.
11909 case $host_os in
11910 aix3*)
11911 test "$enable_shared" = yes && enable_static=no
11912 if test -n "$RANLIB"; then
11913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11914 postinstall_cmds='$RANLIB $lib'
11915 fi
11916 ;;
11917
11918 aix[4-9]*)
11919 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11920 test "$enable_shared" = yes && enable_static=no
11921 fi
11922 ;;
11923 esac
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11925 $as_echo "$enable_shared" >&6; }
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11928 $as_echo_n "checking whether to build static libraries... " >&6; }
11929 # Make sure either enable_shared or enable_static is yes.
11930 test "$enable_shared" = yes || enable_static=yes
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11932 $as_echo "$enable_static" >&6; }
11933
11934
11935
11936
11937 fi
11938 ac_ext=c
11939 ac_cpp='$CPP $CPPFLAGS'
11940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11943
11944 CC="$lt_save_CC"
11945
11946 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11947 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11948 (test "X$CXX" != "Xg++"))) ; then
11949 ac_ext=cpp
11950 ac_cpp='$CXXCPP $CPPFLAGS'
11951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11955 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11956 if test -z "$CXXCPP"; then
11957 if ${ac_cv_prog_CXXCPP+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 # Double quotes because CXXCPP needs to be expanded
11961 for CXXCPP in "$CXX -E" "/lib/cpp"
11962 do
11963 ac_preproc_ok=false
11964 for ac_cxx_preproc_warn_flag in '' yes
11965 do
11966 # Use a header file that comes with gcc, so configuring glibc
11967 # with a fresh cross-compiler works.
11968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11969 # <limits.h> exists even on freestanding compilers.
11970 # On the NeXT, cc -E runs the code through the compiler's parser,
11971 # not just through cpp. "Syntax error" is here to catch this case.
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974 #ifdef __STDC__
11975 # include <limits.h>
11976 #else
11977 # include <assert.h>
11978 #endif
11979 Syntax error
11980 _ACEOF
11981 if ac_fn_cxx_try_cpp "$LINENO"; then :
11982
11983 else
11984 # Broken: fails on valid input.
11985 continue
11986 fi
11987 rm -f conftest.err conftest.i conftest.$ac_ext
11988
11989 # OK, works on sane cases. Now check whether nonexistent headers
11990 # can be detected and how.
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include <ac_nonexistent.h>
11994 _ACEOF
11995 if ac_fn_cxx_try_cpp "$LINENO"; then :
11996 # Broken: success on invalid input.
11997 continue
11998 else
11999 # Passes both tests.
12000 ac_preproc_ok=:
12001 break
12002 fi
12003 rm -f conftest.err conftest.i conftest.$ac_ext
12004
12005 done
12006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12007 rm -f conftest.i conftest.err conftest.$ac_ext
12008 if $ac_preproc_ok; then :
12009 break
12010 fi
12011
12012 done
12013 ac_cv_prog_CXXCPP=$CXXCPP
12014
12015 fi
12016 CXXCPP=$ac_cv_prog_CXXCPP
12017 else
12018 ac_cv_prog_CXXCPP=$CXXCPP
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12021 $as_echo "$CXXCPP" >&6; }
12022 ac_preproc_ok=false
12023 for ac_cxx_preproc_warn_flag in '' yes
12024 do
12025 # Use a header file that comes with gcc, so configuring glibc
12026 # with a fresh cross-compiler works.
12027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12028 # <limits.h> exists even on freestanding compilers.
12029 # On the NeXT, cc -E runs the code through the compiler's parser,
12030 # not just through cpp. "Syntax error" is here to catch this case.
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12033 #ifdef __STDC__
12034 # include <limits.h>
12035 #else
12036 # include <assert.h>
12037 #endif
12038 Syntax error
12039 _ACEOF
12040 if ac_fn_cxx_try_cpp "$LINENO"; then :
12041
12042 else
12043 # Broken: fails on valid input.
12044 continue
12045 fi
12046 rm -f conftest.err conftest.i conftest.$ac_ext
12047
12048 # OK, works on sane cases. Now check whether nonexistent headers
12049 # can be detected and how.
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052 #include <ac_nonexistent.h>
12053 _ACEOF
12054 if ac_fn_cxx_try_cpp "$LINENO"; then :
12055 # Broken: success on invalid input.
12056 continue
12057 else
12058 # Passes both tests.
12059 ac_preproc_ok=:
12060 break
12061 fi
12062 rm -f conftest.err conftest.i conftest.$ac_ext
12063
12064 done
12065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12066 rm -f conftest.i conftest.err conftest.$ac_ext
12067 if $ac_preproc_ok; then :
12068
12069 else
12070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12072 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12073 See \`config.log' for more details" "$LINENO" 5; }
12074 fi
12075
12076 ac_ext=c
12077 ac_cpp='$CPP $CPPFLAGS'
12078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12081
12082 else
12083 _lt_caught_CXX_error=yes
12084 fi
12085
12086 ac_ext=cpp
12087 ac_cpp='$CXXCPP $CPPFLAGS'
12088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12091
12092 archive_cmds_need_lc_CXX=no
12093 allow_undefined_flag_CXX=
12094 always_export_symbols_CXX=no
12095 archive_expsym_cmds_CXX=
12096 compiler_needs_object_CXX=no
12097 export_dynamic_flag_spec_CXX=
12098 hardcode_direct_CXX=no
12099 hardcode_direct_absolute_CXX=no
12100 hardcode_libdir_flag_spec_CXX=
12101 hardcode_libdir_flag_spec_ld_CXX=
12102 hardcode_libdir_separator_CXX=
12103 hardcode_minus_L_CXX=no
12104 hardcode_shlibpath_var_CXX=unsupported
12105 hardcode_automatic_CXX=no
12106 inherit_rpath_CXX=no
12107 module_cmds_CXX=
12108 module_expsym_cmds_CXX=
12109 link_all_deplibs_CXX=unknown
12110 old_archive_cmds_CXX=$old_archive_cmds
12111 reload_flag_CXX=$reload_flag
12112 reload_cmds_CXX=$reload_cmds
12113 no_undefined_flag_CXX=
12114 whole_archive_flag_spec_CXX=
12115 enable_shared_with_static_runtimes_CXX=no
12116
12117 # Source file extension for C++ test sources.
12118 ac_ext=cpp
12119
12120 # Object file extension for compiled C++ test sources.
12121 objext=o
12122 objext_CXX=$objext
12123
12124 # No sense in running all these tests if we already determined that
12125 # the CXX compiler isn't working. Some variables (like enable_shared)
12126 # are currently assumed to apply to all compilers on this platform,
12127 # and will be corrupted by setting them based on a non-working compiler.
12128 if test "$_lt_caught_CXX_error" != yes; then
12129 # Code to be used in simple compile tests
12130 lt_simple_compile_test_code="int some_variable = 0;"
12131
12132 # Code to be used in simple link tests
12133 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12134
12135 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12136
12137
12138
12139
12140
12141
12142 # If no C compiler was specified, use CC.
12143 LTCC=${LTCC-"$CC"}
12144
12145 # If no C compiler flags were specified, use CFLAGS.
12146 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12147
12148 # Allow CC to be a program name with arguments.
12149 compiler=$CC
12150
12151
12152 # save warnings/boilerplate of simple test code
12153 ac_outfile=conftest.$ac_objext
12154 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12156 _lt_compiler_boilerplate=`cat conftest.err`
12157 $RM conftest*
12158
12159 ac_outfile=conftest.$ac_objext
12160 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12162 _lt_linker_boilerplate=`cat conftest.err`
12163 $RM -r conftest*
12164
12165
12166 # Allow CC to be a program name with arguments.
12167 lt_save_CC=$CC
12168 lt_save_CFLAGS=$CFLAGS
12169 lt_save_LD=$LD
12170 lt_save_GCC=$GCC
12171 GCC=$GXX
12172 lt_save_with_gnu_ld=$with_gnu_ld
12173 lt_save_path_LD=$lt_cv_path_LD
12174 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12175 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12176 else
12177 $as_unset lt_cv_prog_gnu_ld
12178 fi
12179 if test -n "${lt_cv_path_LDCXX+set}"; then
12180 lt_cv_path_LD=$lt_cv_path_LDCXX
12181 else
12182 $as_unset lt_cv_path_LD
12183 fi
12184 test -z "${LDCXX+set}" || LD=$LDCXX
12185 CC=${CXX-"c++"}
12186 CFLAGS=$CXXFLAGS
12187 compiler=$CC
12188 compiler_CXX=$CC
12189 for cc_temp in $compiler""; do
12190 case $cc_temp in
12191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12193 \-*) ;;
12194 *) break;;
12195 esac
12196 done
12197 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12198
12199
12200 if test -n "$compiler"; then
12201 # We don't want -fno-exception when compiling C++ code, so set the
12202 # no_builtin_flag separately
12203 if test "$GXX" = yes; then
12204 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12205 else
12206 lt_prog_compiler_no_builtin_flag_CXX=
12207 fi
12208
12209 if test "$GXX" = yes; then
12210 # Set up default GNU C++ configuration
12211
12212
12213
12214 # Check whether --with-gnu-ld was given.
12215 if test "${with_gnu_ld+set}" = set; then :
12216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12217 else
12218 with_gnu_ld=no
12219 fi
12220
12221 ac_prog=ld
12222 if test "$GCC" = yes; then
12223 # Check if gcc -print-prog-name=ld gives a path.
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12225 $as_echo_n "checking for ld used by $CC... " >&6; }
12226 case $host in
12227 *-*-mingw*)
12228 # gcc leaves a trailing carriage return which upsets mingw
12229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12230 *)
12231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12232 esac
12233 case $ac_prog in
12234 # Accept absolute paths.
12235 [\\/]* | ?:[\\/]*)
12236 re_direlt='/[^/][^/]*/\.\./'
12237 # Canonicalize the pathname of ld
12238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12241 done
12242 test -z "$LD" && LD="$ac_prog"
12243 ;;
12244 "")
12245 # If it fails, then pretend we aren't using GCC.
12246 ac_prog=ld
12247 ;;
12248 *)
12249 # If it is relative, then search for the first ld in PATH.
12250 with_gnu_ld=unknown
12251 ;;
12252 esac
12253 elif test "$with_gnu_ld" = yes; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12255 $as_echo_n "checking for GNU ld... " >&6; }
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12258 $as_echo_n "checking for non-GNU ld... " >&6; }
12259 fi
12260 if ${lt_cv_path_LD+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 if test -z "$LD"; then
12264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12265 for ac_dir in $PATH; do
12266 IFS="$lt_save_ifs"
12267 test -z "$ac_dir" && ac_dir=.
12268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12269 lt_cv_path_LD="$ac_dir/$ac_prog"
12270 # Check to see if the program is GNU ld. I'd rather use --version,
12271 # but apparently some variants of GNU ld only accept -v.
12272 # Break only if it was the GNU/non-GNU ld that we prefer.
12273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12274 *GNU* | *'with BFD'*)
12275 test "$with_gnu_ld" != no && break
12276 ;;
12277 *)
12278 test "$with_gnu_ld" != yes && break
12279 ;;
12280 esac
12281 fi
12282 done
12283 IFS="$lt_save_ifs"
12284 else
12285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12286 fi
12287 fi
12288
12289 LD="$lt_cv_path_LD"
12290 if test -n "$LD"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12292 $as_echo "$LD" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12299 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12300 if ${lt_cv_prog_gnu_ld+:} false; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12304 case `$LD -v 2>&1 </dev/null` in
12305 *GNU* | *'with BFD'*)
12306 lt_cv_prog_gnu_ld=yes
12307 ;;
12308 *)
12309 lt_cv_prog_gnu_ld=no
12310 ;;
12311 esac
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12314 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12315 with_gnu_ld=$lt_cv_prog_gnu_ld
12316
12317
12318
12319
12320
12321
12322
12323 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12324 # archiving commands below assume that GNU ld is being used.
12325 if test "$with_gnu_ld" = yes; then
12326 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12327 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'
12328
12329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12331
12332 # If archive_cmds runs LD, not CC, wlarc should be empty
12333 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12334 # investigate it a little bit more. (MM)
12335 wlarc='${wl}'
12336
12337 # ancient GNU ld didn't support --whole-archive et. al.
12338 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12339 $GREP 'no-whole-archive' > /dev/null; then
12340 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12341 else
12342 whole_archive_flag_spec_CXX=
12343 fi
12344 else
12345 with_gnu_ld=no
12346 wlarc=
12347
12348 # A generic and very simple default shared library creation
12349 # command for GNU C++ for the case where it uses the native
12350 # linker, instead of GNU ld. If possible, this setting should
12351 # overridden to take advantage of the native linker features on
12352 # the platform it is being used on.
12353 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12354 fi
12355
12356 # Commands to make compiler produce verbose output that lists
12357 # what "hidden" libraries, object files and flags are used when
12358 # linking a shared library.
12359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12360
12361 else
12362 GXX=no
12363 with_gnu_ld=no
12364 wlarc=
12365 fi
12366
12367 # PORTME: fill in a description of your system's C++ link characteristics
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12369 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12370 ld_shlibs_CXX=yes
12371 case $host_os in
12372 aix3*)
12373 # FIXME: insert proper C++ library support
12374 ld_shlibs_CXX=no
12375 ;;
12376 aix[4-9]*)
12377 if test "$host_cpu" = ia64; then
12378 # On IA64, the linker does run time linking by default, so we don't
12379 # have to do anything special.
12380 aix_use_runtimelinking=no
12381 exp_sym_flag='-Bexport'
12382 no_entry_flag=""
12383 else
12384 aix_use_runtimelinking=no
12385
12386 # Test if we are trying to use run time linking or normal
12387 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12388 # need to do runtime linking.
12389 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12390 for ld_flag in $LDFLAGS; do
12391 case $ld_flag in
12392 *-brtl*)
12393 aix_use_runtimelinking=yes
12394 break
12395 ;;
12396 esac
12397 done
12398 ;;
12399 esac
12400
12401 exp_sym_flag='-bexport'
12402 no_entry_flag='-bnoentry'
12403 fi
12404
12405 # When large executables or shared objects are built, AIX ld can
12406 # have problems creating the table of contents. If linking a library
12407 # or program results in "error TOC overflow" add -mminimal-toc to
12408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12410
12411 archive_cmds_CXX=''
12412 hardcode_direct_CXX=yes
12413 hardcode_direct_absolute_CXX=yes
12414 hardcode_libdir_separator_CXX=':'
12415 link_all_deplibs_CXX=yes
12416 file_list_spec_CXX='${wl}-f,'
12417
12418 if test "$GXX" = yes; then
12419 case $host_os in aix4.[012]|aix4.[012].*)
12420 # We only want to do this on AIX 4.2 and lower, the check
12421 # below for broken collect2 doesn't work under 4.3+
12422 collect2name=`${CC} -print-prog-name=collect2`
12423 if test -f "$collect2name" &&
12424 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12425 then
12426 # We have reworked collect2
12427 :
12428 else
12429 # We have old collect2
12430 hardcode_direct_CXX=unsupported
12431 # It fails to find uninstalled libraries when the uninstalled
12432 # path is not listed in the libpath. Setting hardcode_minus_L
12433 # to unsupported forces relinking
12434 hardcode_minus_L_CXX=yes
12435 hardcode_libdir_flag_spec_CXX='-L$libdir'
12436 hardcode_libdir_separator_CXX=
12437 fi
12438 esac
12439 shared_flag='-shared'
12440 if test "$aix_use_runtimelinking" = yes; then
12441 shared_flag="$shared_flag "'${wl}-G'
12442 fi
12443 else
12444 # not using gcc
12445 if test "$host_cpu" = ia64; then
12446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12447 # chokes on -Wl,-G. The following line is correct:
12448 shared_flag='-G'
12449 else
12450 if test "$aix_use_runtimelinking" = yes; then
12451 shared_flag='${wl}-G'
12452 else
12453 shared_flag='${wl}-bM:SRE'
12454 fi
12455 fi
12456 fi
12457
12458 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12459 # It seems that -bexpall does not export symbols beginning with
12460 # underscore (_), so it is better to generate a list of symbols to
12461 # export.
12462 always_export_symbols_CXX=yes
12463 if test "$aix_use_runtimelinking" = yes; then
12464 # Warning - without using the other runtime loading flags (-brtl),
12465 # -berok will link without error, but may produce a broken library.
12466 allow_undefined_flag_CXX='-berok'
12467 # Determine the default libpath from the value encoded in an empty
12468 # executable.
12469 if test "${lt_cv_aix_libpath+set}" = set; then
12470 aix_libpath=$lt_cv_aix_libpath
12471 else
12472 if ${lt_cv_aix_libpath__CXX+:} false; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477
12478 int
12479 main ()
12480 {
12481
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_cxx_try_link "$LINENO"; then :
12487
12488 lt_aix_libpath_sed='
12489 /Import File Strings/,/^$/ {
12490 /^0/ {
12491 s/^0 *\([^ ]*\) *$/\1/
12492 p
12493 }
12494 }'
12495 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12496 # Check for a 64-bit object if we didn't find anything.
12497 if test -z "$lt_cv_aix_libpath__CXX"; then
12498 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12499 fi
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 if test -z "$lt_cv_aix_libpath__CXX"; then
12504 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12505 fi
12506
12507 fi
12508
12509 aix_libpath=$lt_cv_aix_libpath__CXX
12510 fi
12511
12512 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12513
12514 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"
12515 else
12516 if test "$host_cpu" = ia64; then
12517 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12518 allow_undefined_flag_CXX="-z nodefs"
12519 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"
12520 else
12521 # Determine the default libpath from the value encoded in an
12522 # empty executable.
12523 if test "${lt_cv_aix_libpath+set}" = set; then
12524 aix_libpath=$lt_cv_aix_libpath
12525 else
12526 if ${lt_cv_aix_libpath__CXX+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531
12532 int
12533 main ()
12534 {
12535
12536 ;
12537 return 0;
12538 }
12539 _ACEOF
12540 if ac_fn_cxx_try_link "$LINENO"; then :
12541
12542 lt_aix_libpath_sed='
12543 /Import File Strings/,/^$/ {
12544 /^0/ {
12545 s/^0 *\([^ ]*\) *$/\1/
12546 p
12547 }
12548 }'
12549 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12550 # Check for a 64-bit object if we didn't find anything.
12551 if test -z "$lt_cv_aix_libpath__CXX"; then
12552 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12553 fi
12554 fi
12555 rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12557 if test -z "$lt_cv_aix_libpath__CXX"; then
12558 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12559 fi
12560
12561 fi
12562
12563 aix_libpath=$lt_cv_aix_libpath__CXX
12564 fi
12565
12566 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12567 # Warning - without using the other run time loading flags,
12568 # -berok will link without error, but may produce a broken library.
12569 no_undefined_flag_CXX=' ${wl}-bernotok'
12570 allow_undefined_flag_CXX=' ${wl}-berok'
12571 if test "$with_gnu_ld" = yes; then
12572 # We only use this code for GNU lds that support --whole-archive.
12573 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12574 else
12575 # Exported symbols can be pulled into shared objects from archives
12576 whole_archive_flag_spec_CXX='$convenience'
12577 fi
12578 archive_cmds_need_lc_CXX=yes
12579 # This is similar to how AIX traditionally builds its shared
12580 # libraries.
12581 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'
12582 fi
12583 fi
12584 ;;
12585
12586 beos*)
12587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12588 allow_undefined_flag_CXX=unsupported
12589 # Joseph Beckenbach <[email protected]> says some releases of gcc
12590 # support --undefined. This deserves some investigation. FIXME
12591 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12592 else
12593 ld_shlibs_CXX=no
12594 fi
12595 ;;
12596
12597 chorus*)
12598 case $cc_basename in
12599 *)
12600 # FIXME: insert proper C++ library support
12601 ld_shlibs_CXX=no
12602 ;;
12603 esac
12604 ;;
12605
12606 cygwin* | mingw* | pw32* | cegcc*)
12607 case $GXX,$cc_basename in
12608 ,cl* | no,cl*)
12609 # Native MSVC
12610 # hardcode_libdir_flag_spec is actually meaningless, as there is
12611 # no search path for DLLs.
12612 hardcode_libdir_flag_spec_CXX=' '
12613 allow_undefined_flag_CXX=unsupported
12614 always_export_symbols_CXX=yes
12615 file_list_spec_CXX='@'
12616 # Tell ltmain to make .lib files, not .a files.
12617 libext=lib
12618 # Tell ltmain to make .dll files, not .so files.
12619 shrext_cmds=".dll"
12620 # FIXME: Setting linknames here is a bad hack.
12621 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12622 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12623 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12624 else
12625 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12626 fi~
12627 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12628 linknames='
12629 # The linker will not automatically build a static lib if we build a DLL.
12630 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12631 enable_shared_with_static_runtimes_CXX=yes
12632 # Don't use ranlib
12633 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12634 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12635 lt_tool_outputfile="@TOOL_OUTPUT@"~
12636 case $lt_outputfile in
12637 *.exe|*.EXE) ;;
12638 *)
12639 lt_outputfile="$lt_outputfile.exe"
12640 lt_tool_outputfile="$lt_tool_outputfile.exe"
12641 ;;
12642 esac~
12643 func_to_tool_file "$lt_outputfile"~
12644 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12645 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12646 $RM "$lt_outputfile.manifest";
12647 fi'
12648 ;;
12649 *)
12650 # g++
12651 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12652 # as there is no search path for DLLs.
12653 hardcode_libdir_flag_spec_CXX='-L$libdir'
12654 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12655 allow_undefined_flag_CXX=unsupported
12656 always_export_symbols_CXX=no
12657 enable_shared_with_static_runtimes_CXX=yes
12658
12659 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12660 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'
12661 # If the export-symbols file already is a .def file (1st line
12662 # is EXPORTS), use it as is; otherwise, prepend...
12663 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12664 cp $export_symbols $output_objdir/$soname.def;
12665 else
12666 echo EXPORTS > $output_objdir/$soname.def;
12667 cat $export_symbols >> $output_objdir/$soname.def;
12668 fi~
12669 $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'
12670 else
12671 ld_shlibs_CXX=no
12672 fi
12673 ;;
12674 esac
12675 ;;
12676 darwin* | rhapsody*)
12677
12678
12679 archive_cmds_need_lc_CXX=no
12680 hardcode_direct_CXX=no
12681 hardcode_automatic_CXX=yes
12682 hardcode_shlibpath_var_CXX=unsupported
12683 if test "$lt_cv_ld_force_load" = "yes"; then
12684 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\"`'
12685 else
12686 whole_archive_flag_spec_CXX=''
12687 fi
12688 link_all_deplibs_CXX=yes
12689 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12690 case $cc_basename in
12691 ifort*) _lt_dar_can_shared=yes ;;
12692 *) _lt_dar_can_shared=$GCC ;;
12693 esac
12694 if test "$_lt_dar_can_shared" = "yes"; then
12695 output_verbose_link_cmd=func_echo_all
12696 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}"
12697 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12698 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}"
12699 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}"
12700 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12701 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}"
12702 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}"
12703 fi
12704
12705 else
12706 ld_shlibs_CXX=no
12707 fi
12708
12709 ;;
12710
12711 dgux*)
12712 case $cc_basename in
12713 ec++*)
12714 # FIXME: insert proper C++ library support
12715 ld_shlibs_CXX=no
12716 ;;
12717 ghcx*)
12718 # Green Hills C++ Compiler
12719 # FIXME: insert proper C++ library support
12720 ld_shlibs_CXX=no
12721 ;;
12722 *)
12723 # FIXME: insert proper C++ library support
12724 ld_shlibs_CXX=no
12725 ;;
12726 esac
12727 ;;
12728
12729 freebsd[12]*)
12730 # C++ shared libraries reported to be fairly broken before
12731 # switch to ELF
12732 ld_shlibs_CXX=no
12733 ;;
12734
12735 freebsd-elf*)
12736 archive_cmds_need_lc_CXX=no
12737 ;;
12738
12739 freebsd* | dragonfly*)
12740 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12741 # conventions
12742 ld_shlibs_CXX=yes
12743 ;;
12744
12745 gnu*)
12746 ;;
12747
12748 haiku*)
12749 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750 link_all_deplibs_CXX=yes
12751 ;;
12752
12753 hpux9*)
12754 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12755 hardcode_libdir_separator_CXX=:
12756 export_dynamic_flag_spec_CXX='${wl}-E'
12757 hardcode_direct_CXX=yes
12758 hardcode_minus_L_CXX=yes # Not in the search PATH,
12759 # but as the default
12760 # location of the library.
12761
12762 case $cc_basename in
12763 CC*)
12764 # FIXME: insert proper C++ library support
12765 ld_shlibs_CXX=no
12766 ;;
12767 aCC*)
12768 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'
12769 # Commands to make compiler produce verbose output that lists
12770 # what "hidden" libraries, object files and flags are used when
12771 # linking a shared library.
12772 #
12773 # There doesn't appear to be a way to prevent this compiler from
12774 # explicitly linking system object files so we need to strip them
12775 # from the output so that they don't get included in the library
12776 # dependencies.
12777 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"'
12778 ;;
12779 *)
12780 if test "$GXX" = yes; then
12781 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12782 else
12783 # FIXME: insert proper C++ library support
12784 ld_shlibs_CXX=no
12785 fi
12786 ;;
12787 esac
12788 ;;
12789
12790 hpux10*|hpux11*)
12791 if test $with_gnu_ld = no; then
12792 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12793 hardcode_libdir_separator_CXX=:
12794
12795 case $host_cpu in
12796 hppa*64*|ia64*)
12797 ;;
12798 *)
12799 export_dynamic_flag_spec_CXX='${wl}-E'
12800 ;;
12801 esac
12802 fi
12803 case $host_cpu in
12804 hppa*64*|ia64*)
12805 hardcode_direct_CXX=no
12806 hardcode_shlibpath_var_CXX=no
12807 ;;
12808 *)
12809 hardcode_direct_CXX=yes
12810 hardcode_direct_absolute_CXX=yes
12811 hardcode_minus_L_CXX=yes # Not in the search PATH,
12812 # but as the default
12813 # location of the library.
12814 ;;
12815 esac
12816
12817 case $cc_basename in
12818 CC*)
12819 # FIXME: insert proper C++ library support
12820 ld_shlibs_CXX=no
12821 ;;
12822 aCC*)
12823 case $host_cpu in
12824 hppa*64*)
12825 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12826 ;;
12827 ia64*)
12828 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12829 ;;
12830 *)
12831 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12832 ;;
12833 esac
12834 # Commands to make compiler produce verbose output that lists
12835 # what "hidden" libraries, object files and flags are used when
12836 # linking a shared library.
12837 #
12838 # There doesn't appear to be a way to prevent this compiler from
12839 # explicitly linking system object files so we need to strip them
12840 # from the output so that they don't get included in the library
12841 # dependencies.
12842 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"'
12843 ;;
12844 *)
12845 if test "$GXX" = yes; then
12846 if test $with_gnu_ld = no; then
12847 case $host_cpu in
12848 hppa*64*)
12849 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850 ;;
12851 ia64*)
12852 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853 ;;
12854 *)
12855 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12856 ;;
12857 esac
12858 fi
12859 else
12860 # FIXME: insert proper C++ library support
12861 ld_shlibs_CXX=no
12862 fi
12863 ;;
12864 esac
12865 ;;
12866
12867 interix[3-9]*)
12868 hardcode_direct_CXX=no
12869 hardcode_shlibpath_var_CXX=no
12870 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12871 export_dynamic_flag_spec_CXX='${wl}-E'
12872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12873 # Instead, shared libraries are loaded at an image base (0x10000000 by
12874 # default) and relocated if they conflict, which is a slow very memory
12875 # consuming and fragmenting process. To avoid this, we pick a random,
12876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12878 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'
12879 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'
12880 ;;
12881 irix5* | irix6*)
12882 case $cc_basename in
12883 CC*)
12884 # SGI C++
12885 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'
12886
12887 # Archives containing C++ object files must be created using
12888 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12889 # necessary to make sure instantiated templates are included
12890 # in the archive.
12891 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12892 ;;
12893 *)
12894 if test "$GXX" = yes; then
12895 if test "$with_gnu_ld" = no; then
12896 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12897 else
12898 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12899 fi
12900 fi
12901 link_all_deplibs_CXX=yes
12902 ;;
12903 esac
12904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12905 hardcode_libdir_separator_CXX=:
12906 inherit_rpath_CXX=yes
12907 ;;
12908
12909 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12910 case $cc_basename in
12911 KCC*)
12912 # Kuck and Associates, Inc. (KAI) C++ Compiler
12913
12914 # KCC will only create a shared library if the output file
12915 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12916 # to its proper name (with version) after linking.
12917 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'
12918 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'
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 #
12923 # There doesn't appear to be a way to prevent this compiler from
12924 # explicitly linking system object files so we need to strip them
12925 # from the output so that they don't get included in the library
12926 # dependencies.
12927 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"'
12928
12929 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12931
12932 # Archives containing C++ object files must be created using
12933 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12934 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12935 ;;
12936 icpc* | ecpc* )
12937 # Intel C++
12938 with_gnu_ld=yes
12939 # version 8.0 and above of icpc choke on multiply defined symbols
12940 # if we add $predep_objects and $postdep_objects, however 7.1 and
12941 # earlier do not add the objects themselves.
12942 case `$CC -V 2>&1` in
12943 *"Version 7."*)
12944 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 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'
12946 ;;
12947 *) # Version 8.0 or newer
12948 tmp_idyn=
12949 case $host_cpu in
12950 ia64*) tmp_idyn=' -i_dynamic';;
12951 esac
12952 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12953 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'
12954 ;;
12955 esac
12956 archive_cmds_need_lc_CXX=no
12957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12958 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12959 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12960 ;;
12961 pgCC* | pgcpp*)
12962 # Portland Group C++ compiler
12963 case `$CC -V` in
12964 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12965 prelink_cmds_CXX='tpldir=Template.dir~
12966 rm -rf $tpldir~
12967 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12968 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12969 old_archive_cmds_CXX='tpldir=Template.dir~
12970 rm -rf $tpldir~
12971 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12972 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12973 $RANLIB $oldlib'
12974 archive_cmds_CXX='tpldir=Template.dir~
12975 rm -rf $tpldir~
12976 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12977 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12978 archive_expsym_cmds_CXX='tpldir=Template.dir~
12979 rm -rf $tpldir~
12980 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12981 $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'
12982 ;;
12983 *) # Version 6 and above use weak symbols
12984 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12985 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'
12986 ;;
12987 esac
12988
12989 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12991 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'
12992 ;;
12993 cxx*)
12994 # Compaq C++
12995 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996 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'
12997
12998 runpath_var=LD_RUN_PATH
12999 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13000 hardcode_libdir_separator_CXX=:
13001
13002 # Commands to make compiler produce verbose output that lists
13003 # what "hidden" libraries, object files and flags are used when
13004 # linking a shared library.
13005 #
13006 # There doesn't appear to be a way to prevent this compiler from
13007 # explicitly linking system object files so we need to strip them
13008 # from the output so that they don't get included in the library
13009 # dependencies.
13010 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'
13011 ;;
13012 xl* | mpixl* | bgxl*)
13013 # IBM XL 8.0 on PPC, with GNU ld
13014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13015 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13016 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13017 if test "x$supports_anon_versioning" = xyes; then
13018 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13020 echo "local: *; };" >> $output_objdir/$libname.ver~
13021 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13022 fi
13023 ;;
13024 *)
13025 case `$CC -V 2>&1 | sed 5q` in
13026 *Sun\ C*)
13027 # Sun C++ 5.9
13028 no_undefined_flag_CXX=' -zdefs'
13029 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13030 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'
13031 hardcode_libdir_flag_spec_CXX='-R$libdir'
13032 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'
13033 compiler_needs_object_CXX=yes
13034
13035 # Not sure whether something based on
13036 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13037 # would be better.
13038 output_verbose_link_cmd='func_echo_all'
13039
13040 # Archives containing C++ object files must be created using
13041 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13042 # necessary to make sure instantiated templates are included
13043 # in the archive.
13044 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13045 ;;
13046 esac
13047 ;;
13048 esac
13049 ;;
13050
13051 lynxos*)
13052 # FIXME: insert proper C++ library support
13053 ld_shlibs_CXX=no
13054 ;;
13055
13056 m88k*)
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13059 ;;
13060
13061 mvs*)
13062 case $cc_basename in
13063 cxx*)
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13066 ;;
13067 *)
13068 # FIXME: insert proper C++ library support
13069 ld_shlibs_CXX=no
13070 ;;
13071 esac
13072 ;;
13073
13074 netbsd*)
13075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13076 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13077 wlarc=
13078 hardcode_libdir_flag_spec_CXX='-R$libdir'
13079 hardcode_direct_CXX=yes
13080 hardcode_shlibpath_var_CXX=no
13081 fi
13082 # Workaround some broken pre-1.5 toolchains
13083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13084 ;;
13085
13086 *nto* | *qnx*)
13087 ld_shlibs_CXX=yes
13088 ;;
13089
13090 openbsd2*)
13091 # C++ shared libraries are fairly broken
13092 ld_shlibs_CXX=no
13093 ;;
13094
13095 openbsd*)
13096 if test -f /usr/libexec/ld.so; then
13097 hardcode_direct_CXX=yes
13098 hardcode_shlibpath_var_CXX=no
13099 hardcode_direct_absolute_CXX=yes
13100 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13103 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13104 export_dynamic_flag_spec_CXX='${wl}-E'
13105 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13106 fi
13107 output_verbose_link_cmd=func_echo_all
13108 else
13109 ld_shlibs_CXX=no
13110 fi
13111 ;;
13112
13113 osf3* | osf4* | osf5*)
13114 case $cc_basename in
13115 KCC*)
13116 # Kuck and Associates, Inc. (KAI) C++ Compiler
13117
13118 # KCC will only create a shared library if the output file
13119 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13120 # to its proper name (with version) after linking.
13121 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'
13122
13123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124 hardcode_libdir_separator_CXX=:
13125
13126 # Archives containing C++ object files must be created using
13127 # the KAI C++ compiler.
13128 case $host in
13129 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13130 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13131 esac
13132 ;;
13133 RCC*)
13134 # Rational C++ 2.4.1
13135 # FIXME: insert proper C++ library support
13136 ld_shlibs_CXX=no
13137 ;;
13138 cxx*)
13139 case $host in
13140 osf3*)
13141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13142 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'
13143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13144 ;;
13145 *)
13146 allow_undefined_flag_CXX=' -expect_unresolved \*'
13147 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'
13148 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13149 echo "-hidden">> $lib.exp~
13150 $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~
13151 $RM $lib.exp'
13152 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13153 ;;
13154 esac
13155
13156 hardcode_libdir_separator_CXX=:
13157
13158 # Commands to make compiler produce verbose output that lists
13159 # what "hidden" libraries, object files and flags are used when
13160 # linking a shared library.
13161 #
13162 # There doesn't appear to be a way to prevent this compiler from
13163 # explicitly linking system object files so we need to strip them
13164 # from the output so that they don't get included in the library
13165 # dependencies.
13166 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"'
13167 ;;
13168 *)
13169 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13170 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13171 case $host in
13172 osf3*)
13173 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'
13174 ;;
13175 *)
13176 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13177 ;;
13178 esac
13179
13180 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13181 hardcode_libdir_separator_CXX=:
13182
13183 # Commands to make compiler produce verbose output that lists
13184 # what "hidden" libraries, object files and flags are used when
13185 # linking a shared library.
13186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13187
13188 else
13189 # FIXME: insert proper C++ library support
13190 ld_shlibs_CXX=no
13191 fi
13192 ;;
13193 esac
13194 ;;
13195
13196 psos*)
13197 # FIXME: insert proper C++ library support
13198 ld_shlibs_CXX=no
13199 ;;
13200
13201 sunos4*)
13202 case $cc_basename in
13203 CC*)
13204 # Sun C++ 4.x
13205 # FIXME: insert proper C++ library support
13206 ld_shlibs_CXX=no
13207 ;;
13208 lcc*)
13209 # Lucid
13210 # FIXME: insert proper C++ library support
13211 ld_shlibs_CXX=no
13212 ;;
13213 *)
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 esac
13218 ;;
13219
13220 solaris*)
13221 case $cc_basename in
13222 CC* | sunCC*)
13223 # Sun C++ 4.2, 5.x and Centerline C++
13224 archive_cmds_need_lc_CXX=yes
13225 no_undefined_flag_CXX=' -zdefs'
13226 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13227 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13228 $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'
13229
13230 hardcode_libdir_flag_spec_CXX='-R$libdir'
13231 hardcode_shlibpath_var_CXX=no
13232 case $host_os in
13233 solaris2.[0-5] | solaris2.[0-5].*) ;;
13234 *)
13235 # The compiler driver will combine and reorder linker options,
13236 # but understands `-z linker_flag'.
13237 # Supported since Solaris 2.6 (maybe 2.5.1?)
13238 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13239 ;;
13240 esac
13241 link_all_deplibs_CXX=yes
13242
13243 output_verbose_link_cmd='func_echo_all'
13244
13245 # Archives containing C++ object files must be created using
13246 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13247 # necessary to make sure instantiated templates are included
13248 # in the archive.
13249 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13250 ;;
13251 gcx*)
13252 # Green Hills C++ Compiler
13253 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13254
13255 # The C++ compiler must be used to create the archive.
13256 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13257 ;;
13258 *)
13259 # GNU C++ compiler with Solaris linker
13260 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13261 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13262 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13263 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13264 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13265 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13266
13267 # Commands to make compiler produce verbose output that lists
13268 # what "hidden" libraries, object files and flags are used when
13269 # linking a shared library.
13270 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13271 else
13272 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13273 # platform.
13274 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13275 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13276 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13277
13278 # Commands to make compiler produce verbose output that lists
13279 # what "hidden" libraries, object files and flags are used when
13280 # linking a shared library.
13281 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13282 fi
13283
13284 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13285 case $host_os in
13286 solaris2.[0-5] | solaris2.[0-5].*) ;;
13287 *)
13288 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13289 ;;
13290 esac
13291 fi
13292 ;;
13293 esac
13294 ;;
13295
13296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13297 no_undefined_flag_CXX='${wl}-z,text'
13298 archive_cmds_need_lc_CXX=no
13299 hardcode_shlibpath_var_CXX=no
13300 runpath_var='LD_RUN_PATH'
13301
13302 case $cc_basename in
13303 CC*)
13304 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306 ;;
13307 *)
13308 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13310 ;;
13311 esac
13312 ;;
13313
13314 sysv5* | sco3.2v5* | sco5v6*)
13315 # Note: We can NOT use -z defs as we might desire, because we do not
13316 # link with -lc, and that would cause any symbols used from libc to
13317 # always be unresolved, which means just about no library would
13318 # ever link correctly. If we're not using GNU ld we use -z text
13319 # though, which does catch some bad symbols but isn't as heavy-handed
13320 # as -z defs.
13321 no_undefined_flag_CXX='${wl}-z,text'
13322 allow_undefined_flag_CXX='${wl}-z,nodefs'
13323 archive_cmds_need_lc_CXX=no
13324 hardcode_shlibpath_var_CXX=no
13325 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13326 hardcode_libdir_separator_CXX=':'
13327 link_all_deplibs_CXX=yes
13328 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13329 runpath_var='LD_RUN_PATH'
13330
13331 case $cc_basename in
13332 CC*)
13333 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13336 '"$old_archive_cmds_CXX"
13337 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13338 '"$reload_cmds_CXX"
13339 ;;
13340 *)
13341 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13342 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 ;;
13344 esac
13345 ;;
13346
13347 tandem*)
13348 case $cc_basename in
13349 NCC*)
13350 # NonStop-UX NCC 3.20
13351 # FIXME: insert proper C++ library support
13352 ld_shlibs_CXX=no
13353 ;;
13354 *)
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13357 ;;
13358 esac
13359 ;;
13360
13361 vxworks*)
13362 # FIXME: insert proper C++ library support
13363 ld_shlibs_CXX=no
13364 ;;
13365
13366 *)
13367 # FIXME: insert proper C++ library support
13368 ld_shlibs_CXX=no
13369 ;;
13370 esac
13371
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13373 $as_echo "$ld_shlibs_CXX" >&6; }
13374 test "$ld_shlibs_CXX" = no && can_build_shared=no
13375
13376 GCC_CXX="$GXX"
13377 LD_CXX="$LD"
13378
13379 ## CAVEAT EMPTOR:
13380 ## There is no encapsulation within the following macros, do not change
13381 ## the running order or otherwise move them around unless you know exactly
13382 ## what you are doing...
13383 # Dependencies to place before and after the object being linked:
13384 predep_objects_CXX=
13385 postdep_objects_CXX=
13386 predeps_CXX=
13387 postdeps_CXX=
13388 compiler_lib_search_path_CXX=
13389
13390 cat > conftest.$ac_ext <<_LT_EOF
13391 class Foo
13392 {
13393 public:
13394 Foo (void) { a = 0; }
13395 private:
13396 int a;
13397 };
13398 _LT_EOF
13399
13400
13401 _lt_libdeps_save_CFLAGS=$CFLAGS
13402 case "$CC $CFLAGS " in #(
13403 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13404 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13405 esac
13406
13407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13408 (eval $ac_compile) 2>&5
13409 ac_status=$?
13410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13411 test $ac_status = 0; }; then
13412 # Parse the compiler output and extract the necessary
13413 # objects, libraries and library flags.
13414
13415 # Sentinel used to keep track of whether or not we are before
13416 # the conftest object file.
13417 pre_test_object_deps_done=no
13418
13419 for p in `eval "$output_verbose_link_cmd"`; do
13420 case ${prev}${p} in
13421
13422 -L* | -R* | -l*)
13423 # Some compilers place space between "-{L,R}" and the path.
13424 # Remove the space.
13425 if test $p = "-L" ||
13426 test $p = "-R"; then
13427 prev=$p
13428 continue
13429 fi
13430
13431 # Expand the sysroot to ease extracting the directories later.
13432 if test -z "$prev"; then
13433 case $p in
13434 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13435 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13436 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13437 esac
13438 fi
13439 case $p in
13440 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13441 esac
13442 if test "$pre_test_object_deps_done" = no; then
13443 case ${prev} in
13444 -L | -R)
13445 # Internal compiler library paths should come after those
13446 # provided the user. The postdeps already come after the
13447 # user supplied libs so there is no need to process them.
13448 if test -z "$compiler_lib_search_path_CXX"; then
13449 compiler_lib_search_path_CXX="${prev}${p}"
13450 else
13451 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13452 fi
13453 ;;
13454 # The "-l" case would never come before the object being
13455 # linked, so don't bother handling this case.
13456 esac
13457 else
13458 if test -z "$postdeps_CXX"; then
13459 postdeps_CXX="${prev}${p}"
13460 else
13461 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13462 fi
13463 fi
13464 prev=
13465 ;;
13466
13467 *.lto.$objext) ;; # Ignore GCC LTO objects
13468 *.$objext)
13469 # This assumes that the test object file only shows up
13470 # once in the compiler output.
13471 if test "$p" = "conftest.$objext"; then
13472 pre_test_object_deps_done=yes
13473 continue
13474 fi
13475
13476 if test "$pre_test_object_deps_done" = no; then
13477 if test -z "$predep_objects_CXX"; then
13478 predep_objects_CXX="$p"
13479 else
13480 predep_objects_CXX="$predep_objects_CXX $p"
13481 fi
13482 else
13483 if test -z "$postdep_objects_CXX"; then
13484 postdep_objects_CXX="$p"
13485 else
13486 postdep_objects_CXX="$postdep_objects_CXX $p"
13487 fi
13488 fi
13489 ;;
13490
13491 *) ;; # Ignore the rest.
13492
13493 esac
13494 done
13495
13496 # Clean up.
13497 rm -f a.out a.exe
13498 else
13499 echo "libtool.m4: error: problem compiling CXX test program"
13500 fi
13501
13502 $RM -f confest.$objext
13503 CFLAGS=$_lt_libdeps_save_CFLAGS
13504
13505 # PORTME: override above test on systems where it is broken
13506 case $host_os in
13507 interix[3-9]*)
13508 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13509 # hack all around it, let's just trust "g++" to DTRT.
13510 predep_objects_CXX=
13511 postdep_objects_CXX=
13512 postdeps_CXX=
13513 ;;
13514
13515 linux*)
13516 case `$CC -V 2>&1 | sed 5q` in
13517 *Sun\ C*)
13518 # Sun C++ 5.9
13519
13520 # The more standards-conforming stlport4 library is
13521 # incompatible with the Cstd library. Avoid specifying
13522 # it if it's in CXXFLAGS. Ignore libCrun as
13523 # -library=stlport4 depends on it.
13524 case " $CXX $CXXFLAGS " in
13525 *" -library=stlport4 "*)
13526 solaris_use_stlport4=yes
13527 ;;
13528 esac
13529
13530 if test "$solaris_use_stlport4" != yes; then
13531 postdeps_CXX='-library=Cstd -library=Crun'
13532 fi
13533 ;;
13534 esac
13535 ;;
13536
13537 solaris*)
13538 case $cc_basename in
13539 CC* | sunCC*)
13540 # The more standards-conforming stlport4 library is
13541 # incompatible with the Cstd library. Avoid specifying
13542 # it if it's in CXXFLAGS. Ignore libCrun as
13543 # -library=stlport4 depends on it.
13544 case " $CXX $CXXFLAGS " in
13545 *" -library=stlport4 "*)
13546 solaris_use_stlport4=yes
13547 ;;
13548 esac
13549
13550 # Adding this requires a known-good setup of shared libraries for
13551 # Sun compiler versions before 5.6, else PIC objects from an old
13552 # archive will be linked into the output, leading to subtle bugs.
13553 if test "$solaris_use_stlport4" != yes; then
13554 postdeps_CXX='-library=Cstd -library=Crun'
13555 fi
13556 ;;
13557 esac
13558 ;;
13559 esac
13560
13561
13562 case " $postdeps_CXX " in
13563 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13564 esac
13565 compiler_lib_search_dirs_CXX=
13566 if test -n "${compiler_lib_search_path_CXX}"; then
13567 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13568 fi
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600 lt_prog_compiler_wl_CXX=
13601 lt_prog_compiler_pic_CXX=
13602 lt_prog_compiler_static_CXX=
13603
13604
13605 # C++ specific cases for pic, static, wl, etc.
13606 if test "$GXX" = yes; then
13607 lt_prog_compiler_wl_CXX='-Wl,'
13608 lt_prog_compiler_static_CXX='-static'
13609
13610 case $host_os in
13611 aix*)
13612 # All AIX code is PIC.
13613 if test "$host_cpu" = ia64; then
13614 # AIX 5 now supports IA64 processor
13615 lt_prog_compiler_static_CXX='-Bstatic'
13616 fi
13617 ;;
13618
13619 amigaos*)
13620 case $host_cpu in
13621 powerpc)
13622 # see comment about AmigaOS4 .so support
13623 lt_prog_compiler_pic_CXX='-fPIC'
13624 ;;
13625 m68k)
13626 # FIXME: we need at least 68020 code to build shared libraries, but
13627 # adding the `-m68020' flag to GCC prevents building anything better,
13628 # like `-m68040'.
13629 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13630 ;;
13631 esac
13632 ;;
13633
13634 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13635 # PIC is the default for these OSes.
13636 ;;
13637 mingw* | cygwin* | os2* | pw32* | cegcc*)
13638 # This hack is so that the source file can tell whether it is being
13639 # built for inclusion in a dll (and should export symbols for example).
13640 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13641 # (--disable-auto-import) libraries
13642 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13643 ;;
13644 darwin* | rhapsody*)
13645 # PIC is the default on this platform
13646 # Common symbols not allowed in MH_DYLIB files
13647 lt_prog_compiler_pic_CXX='-fno-common'
13648 ;;
13649 *djgpp*)
13650 # DJGPP does not support shared libraries at all
13651 lt_prog_compiler_pic_CXX=
13652 ;;
13653 haiku*)
13654 # PIC is the default for Haiku.
13655 # The "-static" flag exists, but is broken.
13656 lt_prog_compiler_static_CXX=
13657 ;;
13658 interix[3-9]*)
13659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13660 # Instead, we relocate shared libraries at runtime.
13661 ;;
13662 sysv4*MP*)
13663 if test -d /usr/nec; then
13664 lt_prog_compiler_pic_CXX=-Kconform_pic
13665 fi
13666 ;;
13667 hpux*)
13668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13670 # sets the default TLS model and affects inlining.
13671 case $host_cpu in
13672 hppa*64*)
13673 ;;
13674 *)
13675 lt_prog_compiler_pic_CXX='-fPIC'
13676 ;;
13677 esac
13678 ;;
13679 *qnx* | *nto*)
13680 # QNX uses GNU C++, but need to define -shared option too, otherwise
13681 # it will coredump.
13682 lt_prog_compiler_pic_CXX='-fPIC -shared'
13683 ;;
13684 *)
13685 lt_prog_compiler_pic_CXX='-fPIC'
13686 ;;
13687 esac
13688 else
13689 case $host_os in
13690 aix[4-9]*)
13691 # All AIX code is PIC.
13692 if test "$host_cpu" = ia64; then
13693 # AIX 5 now supports IA64 processor
13694 lt_prog_compiler_static_CXX='-Bstatic'
13695 else
13696 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13697 fi
13698 ;;
13699 chorus*)
13700 case $cc_basename in
13701 cxch68*)
13702 # Green Hills C++ Compiler
13703 # _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"
13704 ;;
13705 esac
13706 ;;
13707 mingw* | cygwin* | os2* | pw32* | cegcc*)
13708 # This hack is so that the source file can tell whether it is being
13709 # built for inclusion in a dll (and should export symbols for example).
13710 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13711 ;;
13712 dgux*)
13713 case $cc_basename in
13714 ec++*)
13715 lt_prog_compiler_pic_CXX='-KPIC'
13716 ;;
13717 ghcx*)
13718 # Green Hills C++ Compiler
13719 lt_prog_compiler_pic_CXX='-pic'
13720 ;;
13721 *)
13722 ;;
13723 esac
13724 ;;
13725 freebsd* | dragonfly*)
13726 # FreeBSD uses GNU C++
13727 ;;
13728 hpux9* | hpux10* | hpux11*)
13729 case $cc_basename in
13730 CC*)
13731 lt_prog_compiler_wl_CXX='-Wl,'
13732 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13733 if test "$host_cpu" != ia64; then
13734 lt_prog_compiler_pic_CXX='+Z'
13735 fi
13736 ;;
13737 aCC*)
13738 lt_prog_compiler_wl_CXX='-Wl,'
13739 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13740 case $host_cpu in
13741 hppa*64*|ia64*)
13742 # +Z the default
13743 ;;
13744 *)
13745 lt_prog_compiler_pic_CXX='+Z'
13746 ;;
13747 esac
13748 ;;
13749 *)
13750 ;;
13751 esac
13752 ;;
13753 interix*)
13754 # This is c89, which is MS Visual C++ (no shared libs)
13755 # Anyone wants to do a port?
13756 ;;
13757 irix5* | irix6* | nonstopux*)
13758 case $cc_basename in
13759 CC*)
13760 lt_prog_compiler_wl_CXX='-Wl,'
13761 lt_prog_compiler_static_CXX='-non_shared'
13762 # CC pic flag -KPIC is the default.
13763 ;;
13764 *)
13765 ;;
13766 esac
13767 ;;
13768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13769 case $cc_basename in
13770 KCC*)
13771 # KAI C++ Compiler
13772 lt_prog_compiler_wl_CXX='--backend -Wl,'
13773 lt_prog_compiler_pic_CXX='-fPIC'
13774 ;;
13775 ecpc* )
13776 # old Intel C++ for x86_64 which still supported -KPIC.
13777 lt_prog_compiler_wl_CXX='-Wl,'
13778 lt_prog_compiler_pic_CXX='-KPIC'
13779 lt_prog_compiler_static_CXX='-static'
13780 ;;
13781 icpc* )
13782 # Intel C++, used to be incompatible with GCC.
13783 # ICC 10 doesn't accept -KPIC any more.
13784 lt_prog_compiler_wl_CXX='-Wl,'
13785 lt_prog_compiler_pic_CXX='-fPIC'
13786 lt_prog_compiler_static_CXX='-static'
13787 ;;
13788 pgCC* | pgcpp*)
13789 # Portland Group C++ compiler
13790 lt_prog_compiler_wl_CXX='-Wl,'
13791 lt_prog_compiler_pic_CXX='-fpic'
13792 lt_prog_compiler_static_CXX='-Bstatic'
13793 ;;
13794 cxx*)
13795 # Compaq C++
13796 # Make sure the PIC flag is empty. It appears that all Alpha
13797 # Linux and Compaq Tru64 Unix objects are PIC.
13798 lt_prog_compiler_pic_CXX=
13799 lt_prog_compiler_static_CXX='-non_shared'
13800 ;;
13801 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13802 # IBM XL 8.0, 9.0 on PPC and BlueGene
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 lt_prog_compiler_pic_CXX='-qpic'
13805 lt_prog_compiler_static_CXX='-qstaticlink'
13806 ;;
13807 *)
13808 case `$CC -V 2>&1 | sed 5q` in
13809 *Sun\ C*)
13810 # Sun C++ 5.9
13811 lt_prog_compiler_pic_CXX='-KPIC'
13812 lt_prog_compiler_static_CXX='-Bstatic'
13813 lt_prog_compiler_wl_CXX='-Qoption ld '
13814 ;;
13815 esac
13816 ;;
13817 esac
13818 ;;
13819 lynxos*)
13820 ;;
13821 m88k*)
13822 ;;
13823 mvs*)
13824 case $cc_basename in
13825 cxx*)
13826 lt_prog_compiler_pic_CXX='-W c,exportall'
13827 ;;
13828 *)
13829 ;;
13830 esac
13831 ;;
13832 netbsd*)
13833 ;;
13834 *qnx* | *nto*)
13835 # QNX uses GNU C++, but need to define -shared option too, otherwise
13836 # it will coredump.
13837 lt_prog_compiler_pic_CXX='-fPIC -shared'
13838 ;;
13839 osf3* | osf4* | osf5*)
13840 case $cc_basename in
13841 KCC*)
13842 lt_prog_compiler_wl_CXX='--backend -Wl,'
13843 ;;
13844 RCC*)
13845 # Rational C++ 2.4.1
13846 lt_prog_compiler_pic_CXX='-pic'
13847 ;;
13848 cxx*)
13849 # Digital/Compaq C++
13850 lt_prog_compiler_wl_CXX='-Wl,'
13851 # Make sure the PIC flag is empty. It appears that all Alpha
13852 # Linux and Compaq Tru64 Unix objects are PIC.
13853 lt_prog_compiler_pic_CXX=
13854 lt_prog_compiler_static_CXX='-non_shared'
13855 ;;
13856 *)
13857 ;;
13858 esac
13859 ;;
13860 psos*)
13861 ;;
13862 solaris*)
13863 case $cc_basename in
13864 CC* | sunCC*)
13865 # Sun C++ 4.2, 5.x and Centerline C++
13866 lt_prog_compiler_pic_CXX='-KPIC'
13867 lt_prog_compiler_static_CXX='-Bstatic'
13868 lt_prog_compiler_wl_CXX='-Qoption ld '
13869 ;;
13870 gcx*)
13871 # Green Hills C++ Compiler
13872 lt_prog_compiler_pic_CXX='-PIC'
13873 ;;
13874 *)
13875 ;;
13876 esac
13877 ;;
13878 sunos4*)
13879 case $cc_basename in
13880 CC*)
13881 # Sun C++ 4.x
13882 lt_prog_compiler_pic_CXX='-pic'
13883 lt_prog_compiler_static_CXX='-Bstatic'
13884 ;;
13885 lcc*)
13886 # Lucid
13887 lt_prog_compiler_pic_CXX='-pic'
13888 ;;
13889 *)
13890 ;;
13891 esac
13892 ;;
13893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13894 case $cc_basename in
13895 CC*)
13896 lt_prog_compiler_wl_CXX='-Wl,'
13897 lt_prog_compiler_pic_CXX='-KPIC'
13898 lt_prog_compiler_static_CXX='-Bstatic'
13899 ;;
13900 esac
13901 ;;
13902 tandem*)
13903 case $cc_basename in
13904 NCC*)
13905 # NonStop-UX NCC 3.20
13906 lt_prog_compiler_pic_CXX='-KPIC'
13907 ;;
13908 *)
13909 ;;
13910 esac
13911 ;;
13912 vxworks*)
13913 ;;
13914 *)
13915 lt_prog_compiler_can_build_shared_CXX=no
13916 ;;
13917 esac
13918 fi
13919
13920 case $host_os in
13921 # For platforms which do not support PIC, -DPIC is meaningless:
13922 *djgpp*)
13923 lt_prog_compiler_pic_CXX=
13924 ;;
13925 *)
13926 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13927 ;;
13928 esac
13929
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13931 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13932 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13936 fi
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13938 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13939 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13940
13941 #
13942 # Check to make sure the PIC flag actually works.
13943 #
13944 if test -n "$lt_prog_compiler_pic_CXX"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13946 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13947 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 lt_cv_prog_compiler_pic_works_CXX=no
13951 ac_outfile=conftest.$ac_objext
13952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13953 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13954 # Insert the option either (1) after the last *FLAGS variable, or
13955 # (2) before a word containing "conftest.", or (3) at the end.
13956 # Note that $ac_compile itself does not contain backslashes and begins
13957 # with a dollar sign (not a hyphen), so the echo should work correctly.
13958 # The option is referenced via a variable to avoid confusing sed.
13959 lt_compile=`echo "$ac_compile" | $SED \
13960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13962 -e 's:$: $lt_compiler_flag:'`
13963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13964 (eval "$lt_compile" 2>conftest.err)
13965 ac_status=$?
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 if (exit $ac_status) && test -s "$ac_outfile"; then
13969 # The compiler can only warn and ignore the option if not recognized
13970 # So say no if there are warnings other than the usual output.
13971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13974 lt_cv_prog_compiler_pic_works_CXX=yes
13975 fi
13976 fi
13977 $RM conftest*
13978
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13981 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13982
13983 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13984 case $lt_prog_compiler_pic_CXX in
13985 "" | " "*) ;;
13986 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13987 esac
13988 else
13989 lt_prog_compiler_pic_CXX=
13990 lt_prog_compiler_can_build_shared_CXX=no
13991 fi
13992
13993 fi
13994
13995
13996
13997
13998
13999 #
14000 # Check to make sure the static flag actually works.
14001 #
14002 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14004 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14005 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 lt_cv_prog_compiler_static_works_CXX=no
14009 save_LDFLAGS="$LDFLAGS"
14010 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14011 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14012 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14013 # The linker can only warn and ignore the option if not recognized
14014 # So say no if there are warnings
14015 if test -s conftest.err; then
14016 # Append any errors to the config.log.
14017 cat conftest.err 1>&5
14018 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14020 if diff conftest.exp conftest.er2 >/dev/null; then
14021 lt_cv_prog_compiler_static_works_CXX=yes
14022 fi
14023 else
14024 lt_cv_prog_compiler_static_works_CXX=yes
14025 fi
14026 fi
14027 $RM -r conftest*
14028 LDFLAGS="$save_LDFLAGS"
14029
14030 fi
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14032 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14033
14034 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14035 :
14036 else
14037 lt_prog_compiler_static_CXX=
14038 fi
14039
14040
14041
14042
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14044 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14045 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 lt_cv_prog_compiler_c_o_CXX=no
14049 $RM -r conftest 2>/dev/null
14050 mkdir conftest
14051 cd conftest
14052 mkdir out
14053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14054
14055 lt_compiler_flag="-o out/conftest2.$ac_objext"
14056 # Insert the option either (1) after the last *FLAGS variable, or
14057 # (2) before a word containing "conftest.", or (3) at the end.
14058 # Note that $ac_compile itself does not contain backslashes and begins
14059 # with a dollar sign (not a hyphen), so the echo should work correctly.
14060 lt_compile=`echo "$ac_compile" | $SED \
14061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14063 -e 's:$: $lt_compiler_flag:'`
14064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14065 (eval "$lt_compile" 2>out/conftest.err)
14066 ac_status=$?
14067 cat out/conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14070 then
14071 # The compiler can only warn and ignore the option if not recognized
14072 # So say no if there are warnings
14073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14076 lt_cv_prog_compiler_c_o_CXX=yes
14077 fi
14078 fi
14079 chmod u+w . 2>&5
14080 $RM conftest*
14081 # SGI C++ compiler will create directory out/ii_files/ for
14082 # template instantiation
14083 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14084 $RM out/* && rmdir out
14085 cd ..
14086 $RM -r conftest
14087 $RM conftest*
14088
14089 fi
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14091 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14092
14093
14094
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14096 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14097 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 lt_cv_prog_compiler_c_o_CXX=no
14101 $RM -r conftest 2>/dev/null
14102 mkdir conftest
14103 cd conftest
14104 mkdir out
14105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14106
14107 lt_compiler_flag="-o out/conftest2.$ac_objext"
14108 # Insert the option either (1) after the last *FLAGS variable, or
14109 # (2) before a word containing "conftest.", or (3) at the end.
14110 # Note that $ac_compile itself does not contain backslashes and begins
14111 # with a dollar sign (not a hyphen), so the echo should work correctly.
14112 lt_compile=`echo "$ac_compile" | $SED \
14113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14115 -e 's:$: $lt_compiler_flag:'`
14116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14117 (eval "$lt_compile" 2>out/conftest.err)
14118 ac_status=$?
14119 cat out/conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14122 then
14123 # The compiler can only warn and ignore the option if not recognized
14124 # So say no if there are warnings
14125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14128 lt_cv_prog_compiler_c_o_CXX=yes
14129 fi
14130 fi
14131 chmod u+w . 2>&5
14132 $RM conftest*
14133 # SGI C++ compiler will create directory out/ii_files/ for
14134 # template instantiation
14135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14136 $RM out/* && rmdir out
14137 cd ..
14138 $RM -r conftest
14139 $RM conftest*
14140
14141 fi
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14143 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14144
14145
14146
14147
14148 hard_links="nottested"
14149 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14150 # do not overwrite the value of need_locks provided by the user
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14152 $as_echo_n "checking if we can lock with hard links... " >&6; }
14153 hard_links=yes
14154 $RM conftest*
14155 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14156 touch conftest.a
14157 ln conftest.a conftest.b 2>&5 || hard_links=no
14158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14160 $as_echo "$hard_links" >&6; }
14161 if test "$hard_links" = no; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14163 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14164 need_locks=warn
14165 fi
14166 else
14167 need_locks=no
14168 fi
14169
14170
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14173 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14174
14175 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14176 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14177 case $host_os in
14178 aix[4-9]*)
14179 # If we're using GNU nm, then we don't want the "-C" option.
14180 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14181 # Also, AIX nm treats weak defined symbols like other global defined
14182 # symbols, whereas GNU nm marks them as "W".
14183 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14184 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'
14185 else
14186 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14187 fi
14188 ;;
14189 pw32*)
14190 export_symbols_cmds_CXX="$ltdll_cmds"
14191 ;;
14192 cygwin* | mingw* | cegcc*)
14193 case $cc_basename in
14194 cl*) ;;
14195 *)
14196 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14197 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14198 ;;
14199 esac
14200 ;;
14201 *)
14202 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14203 ;;
14204 esac
14205
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14207 $as_echo "$ld_shlibs_CXX" >&6; }
14208 test "$ld_shlibs_CXX" = no && can_build_shared=no
14209
14210 with_gnu_ld_CXX=$with_gnu_ld
14211
14212
14213
14214
14215
14216
14217 #
14218 # Do we need to explicitly link libc?
14219 #
14220 case "x$archive_cmds_need_lc_CXX" in
14221 x|xyes)
14222 # Assume -lc should be added
14223 archive_cmds_need_lc_CXX=yes
14224
14225 if test "$enable_shared" = yes && test "$GCC" = yes; then
14226 case $archive_cmds_CXX in
14227 *'~'*)
14228 # FIXME: we may have to deal with multi-command sequences.
14229 ;;
14230 '$CC '*)
14231 # Test whether the compiler implicitly links with -lc since on some
14232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14233 # to ld, don't add -lc before -lgcc.
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14235 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14236 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 $RM conftest*
14240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14241
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14243 (eval $ac_compile) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; } 2>conftest.err; then
14247 soname=conftest
14248 lib=conftest
14249 libobjs=conftest.$ac_objext
14250 deplibs=
14251 wl=$lt_prog_compiler_wl_CXX
14252 pic_flag=$lt_prog_compiler_pic_CXX
14253 compiler_flags=-v
14254 linker_flags=-v
14255 verstring=
14256 output_objdir=.
14257 libname=conftest
14258 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14259 allow_undefined_flag_CXX=
14260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14261 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14262 ac_status=$?
14263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14264 test $ac_status = 0; }
14265 then
14266 lt_cv_archive_cmds_need_lc_CXX=no
14267 else
14268 lt_cv_archive_cmds_need_lc_CXX=yes
14269 fi
14270 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14271 else
14272 cat conftest.err 1>&5
14273 fi
14274 $RM conftest*
14275
14276 fi
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14278 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14279 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14280 ;;
14281 esac
14282 fi
14283 ;;
14284 esac
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14350 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14351
14352 library_names_spec=
14353 libname_spec='lib$name'
14354 soname_spec=
14355 shrext_cmds=".so"
14356 postinstall_cmds=
14357 postuninstall_cmds=
14358 finish_cmds=
14359 finish_eval=
14360 shlibpath_var=
14361 shlibpath_overrides_runpath=unknown
14362 version_type=none
14363 dynamic_linker="$host_os ld.so"
14364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14365 need_lib_prefix=unknown
14366 hardcode_into_libs=no
14367
14368 # when you set need_version to no, make sure it does not cause -set_version
14369 # flags to be left without arguments
14370 need_version=unknown
14371
14372 case $host_os in
14373 aix3*)
14374 version_type=linux
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14376 shlibpath_var=LIBPATH
14377
14378 # AIX 3 has no versioning support, so we append a major version to the name.
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 ;;
14381
14382 aix[4-9]*)
14383 version_type=linux
14384 need_lib_prefix=no
14385 need_version=no
14386 hardcode_into_libs=yes
14387 if test "$host_cpu" = ia64; then
14388 # AIX 5 supports IA64
14389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14390 shlibpath_var=LD_LIBRARY_PATH
14391 else
14392 # With GCC up to 2.95.x, collect2 would create an import file
14393 # for dependence libraries. The import file would start with
14394 # the line `#! .'. This would cause the generated library to
14395 # depend on `.', always an invalid library. This was fixed in
14396 # development snapshots of GCC prior to 3.0.
14397 case $host_os in
14398 aix4 | aix4.[01] | aix4.[01].*)
14399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14400 echo ' yes '
14401 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14402 :
14403 else
14404 can_build_shared=no
14405 fi
14406 ;;
14407 esac
14408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14409 # soname into executable. Probably we can add versioning support to
14410 # collect2, so additional links can be useful in future.
14411 if test "$aix_use_runtimelinking" = yes; then
14412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14413 # instead of lib<name>.a to let people know that these are not
14414 # typical AIX shared libraries.
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416 else
14417 # We preserve .a as extension for shared libraries through AIX4.2
14418 # and later when we are not doing run time linking.
14419 library_names_spec='${libname}${release}.a $libname.a'
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 fi
14422 shlibpath_var=LIBPATH
14423 fi
14424 ;;
14425
14426 amigaos*)
14427 case $host_cpu in
14428 powerpc)
14429 # Since July 2007 AmigaOS4 officially supports .so libraries.
14430 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432 ;;
14433 m68k)
14434 library_names_spec='$libname.ixlibrary $libname.a'
14435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14436 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'
14437 ;;
14438 esac
14439 ;;
14440
14441 beos*)
14442 library_names_spec='${libname}${shared_ext}'
14443 dynamic_linker="$host_os ld.so"
14444 shlibpath_var=LIBRARY_PATH
14445 ;;
14446
14447 bsdi[45]*)
14448 version_type=linux
14449 need_version=no
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 soname_spec='${libname}${release}${shared_ext}$major'
14452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14453 shlibpath_var=LD_LIBRARY_PATH
14454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14456 # the default ld.so.conf also contains /usr/contrib/lib and
14457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14458 # libtool to hard-code these into programs
14459 ;;
14460
14461 cygwin* | mingw* | pw32* | cegcc*)
14462 version_type=windows
14463 shrext_cmds=".dll"
14464 need_version=no
14465 need_lib_prefix=no
14466
14467 case $GCC,$cc_basename in
14468 yes,*)
14469 # gcc
14470 library_names_spec='$libname.dll.a'
14471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14472 postinstall_cmds='base_file=`basename \${file}`~
14473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14474 dldir=$destdir/`dirname \$dlpath`~
14475 test -d \$dldir || mkdir -p \$dldir~
14476 $install_prog $dir/$dlname \$dldir/$dlname~
14477 chmod a+x \$dldir/$dlname~
14478 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14479 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14480 fi'
14481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14482 dlpath=$dir/\$dldll~
14483 $RM \$dlpath'
14484 shlibpath_overrides_runpath=yes
14485
14486 case $host_os in
14487 cygwin*)
14488 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14489 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14490
14491 ;;
14492 mingw* | cegcc*)
14493 # MinGW DLLs use traditional 'lib' prefix
14494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14495 ;;
14496 pw32*)
14497 # pw32 DLLs use 'pw' prefix rather than 'lib'
14498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14499 ;;
14500 esac
14501 dynamic_linker='Win32 ld.exe'
14502 ;;
14503
14504 *,cl*)
14505 # Native MSVC
14506 libname_spec='$name'
14507 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14508 library_names_spec='${libname}.dll.lib'
14509
14510 case $build_os in
14511 mingw*)
14512 sys_lib_search_path_spec=
14513 lt_save_ifs=$IFS
14514 IFS=';'
14515 for lt_path in $LIB
14516 do
14517 IFS=$lt_save_ifs
14518 # Let DOS variable expansion print the short 8.3 style file name.
14519 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14520 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14521 done
14522 IFS=$lt_save_ifs
14523 # Convert to MSYS style.
14524 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14525 ;;
14526 cygwin*)
14527 # Convert to unix form, then to dos form, then back to unix form
14528 # but this time dos style (no spaces!) so that the unix form looks
14529 # like /cygdrive/c/PROGRA~1:/cygdr...
14530 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14531 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14532 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14533 ;;
14534 *)
14535 sys_lib_search_path_spec="$LIB"
14536 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14537 # It is most probably a Windows format PATH.
14538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14539 else
14540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14541 fi
14542 # FIXME: find the short name or the path components, as spaces are
14543 # common. (e.g. "Program Files" -> "PROGRA~1")
14544 ;;
14545 esac
14546
14547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14548 postinstall_cmds='base_file=`basename \${file}`~
14549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14550 dldir=$destdir/`dirname \$dlpath`~
14551 test -d \$dldir || mkdir -p \$dldir~
14552 $install_prog $dir/$dlname \$dldir/$dlname'
14553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14554 dlpath=$dir/\$dldll~
14555 $RM \$dlpath'
14556 shlibpath_overrides_runpath=yes
14557 dynamic_linker='Win32 link.exe'
14558 ;;
14559
14560 *)
14561 # Assume MSVC wrapper
14562 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14563 dynamic_linker='Win32 ld.exe'
14564 ;;
14565 esac
14566 # FIXME: first we should search . and the directory the executable is in
14567 shlibpath_var=PATH
14568 ;;
14569
14570 darwin* | rhapsody*)
14571 dynamic_linker="$host_os dyld"
14572 version_type=darwin
14573 need_lib_prefix=no
14574 need_version=no
14575 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14576 soname_spec='${libname}${release}${major}$shared_ext'
14577 shlibpath_overrides_runpath=yes
14578 shlibpath_var=DYLD_LIBRARY_PATH
14579 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14580
14581 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14582 ;;
14583
14584 dgux*)
14585 version_type=linux
14586 need_lib_prefix=no
14587 need_version=no
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 ;;
14592
14593 freebsd1*)
14594 dynamic_linker=no
14595 ;;
14596
14597 freebsd* | dragonfly*)
14598 # DragonFly does not have aout. When/if they implement a new
14599 # versioning mechanism, adjust this.
14600 if test -x /usr/bin/objformat; then
14601 objformat=`/usr/bin/objformat`
14602 else
14603 case $host_os in
14604 freebsd[123]*) objformat=aout ;;
14605 *) objformat=elf ;;
14606 esac
14607 fi
14608 version_type=freebsd-$objformat
14609 case $version_type in
14610 freebsd-elf*)
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14612 need_version=no
14613 need_lib_prefix=no
14614 ;;
14615 freebsd-*)
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14617 need_version=yes
14618 ;;
14619 esac
14620 shlibpath_var=LD_LIBRARY_PATH
14621 case $host_os in
14622 freebsd2*)
14623 shlibpath_overrides_runpath=yes
14624 ;;
14625 freebsd3.[01]* | freebsdelf3.[01]*)
14626 shlibpath_overrides_runpath=yes
14627 hardcode_into_libs=yes
14628 ;;
14629 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14630 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14631 shlibpath_overrides_runpath=no
14632 hardcode_into_libs=yes
14633 ;;
14634 *) # from 4.6 on, and DragonFly
14635 shlibpath_overrides_runpath=yes
14636 hardcode_into_libs=yes
14637 ;;
14638 esac
14639 ;;
14640
14641 gnu*)
14642 version_type=linux
14643 need_lib_prefix=no
14644 need_version=no
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14646 soname_spec='${libname}${release}${shared_ext}$major'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 hardcode_into_libs=yes
14649 ;;
14650
14651 haiku*)
14652 version_type=linux
14653 need_lib_prefix=no
14654 need_version=no
14655 dynamic_linker="$host_os runtime_loader"
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 shlibpath_var=LIBRARY_PATH
14659 shlibpath_overrides_runpath=yes
14660 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14661 hardcode_into_libs=yes
14662 ;;
14663
14664 hpux9* | hpux10* | hpux11*)
14665 # Give a soname corresponding to the major version so that dld.sl refuses to
14666 # link against other versions.
14667 version_type=sunos
14668 need_lib_prefix=no
14669 need_version=no
14670 case $host_cpu in
14671 ia64*)
14672 shrext_cmds='.so'
14673 hardcode_into_libs=yes
14674 dynamic_linker="$host_os dld.so"
14675 shlibpath_var=LD_LIBRARY_PATH
14676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678 soname_spec='${libname}${release}${shared_ext}$major'
14679 if test "X$HPUX_IA64_MODE" = X32; then
14680 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14681 else
14682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14683 fi
14684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14685 ;;
14686 hppa*64*)
14687 shrext_cmds='.sl'
14688 hardcode_into_libs=yes
14689 dynamic_linker="$host_os dld.sl"
14690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14696 ;;
14697 *)
14698 shrext_cmds='.sl'
14699 dynamic_linker="$host_os dld.sl"
14700 shlibpath_var=SHLIB_PATH
14701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 ;;
14705 esac
14706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14707 postinstall_cmds='chmod 555 $lib'
14708 # or fails outright, so override atomically:
14709 install_override_mode=555
14710 ;;
14711
14712 interix[3-9]*)
14713 version_type=linux
14714 need_lib_prefix=no
14715 need_version=no
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=no
14721 hardcode_into_libs=yes
14722 ;;
14723
14724 irix5* | irix6* | nonstopux*)
14725 case $host_os in
14726 nonstopux*) version_type=nonstopux ;;
14727 *)
14728 if test "$lt_cv_prog_gnu_ld" = yes; then
14729 version_type=linux
14730 else
14731 version_type=irix
14732 fi ;;
14733 esac
14734 need_lib_prefix=no
14735 need_version=no
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14738 case $host_os in
14739 irix5* | nonstopux*)
14740 libsuff= shlibsuff=
14741 ;;
14742 *)
14743 case $LD in # libtool.m4 will add one of these switches to LD
14744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14745 libsuff= shlibsuff= libmagic=32-bit;;
14746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14747 libsuff=32 shlibsuff=N32 libmagic=N32;;
14748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14750 *) libsuff= shlibsuff= libmagic=never-match;;
14751 esac
14752 ;;
14753 esac
14754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14755 shlibpath_overrides_runpath=no
14756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14758 hardcode_into_libs=yes
14759 ;;
14760
14761 # No shared lib support for Linux oldld, aout, or coff.
14762 linux*oldld* | linux*aout* | linux*coff*)
14763 dynamic_linker=no
14764 ;;
14765
14766 # This must be Linux ELF.
14767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14768 version_type=linux
14769 need_lib_prefix=no
14770 need_version=no
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=no
14776
14777 # Some binutils ld are patched to set DT_RUNPATH
14778 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14779 $as_echo_n "(cached) " >&6
14780 else
14781 lt_cv_shlibpath_overrides_runpath=no
14782 save_LDFLAGS=$LDFLAGS
14783 save_libdir=$libdir
14784 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14785 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788
14789 int
14790 main ()
14791 {
14792
14793 ;
14794 return 0;
14795 }
14796 _ACEOF
14797 if ac_fn_cxx_try_link "$LINENO"; then :
14798 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14799 lt_cv_shlibpath_overrides_runpath=yes
14800 fi
14801 fi
14802 rm -f core conftest.err conftest.$ac_objext \
14803 conftest$ac_exeext conftest.$ac_ext
14804 LDFLAGS=$save_LDFLAGS
14805 libdir=$save_libdir
14806
14807 fi
14808
14809 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14810
14811 # This implies no fast_install, which is unacceptable.
14812 # Some rework will be needed to allow for fast_install
14813 # before this can be enabled.
14814 hardcode_into_libs=yes
14815
14816 # Append ld.so.conf contents to the search path
14817 if test -f /etc/ld.so.conf; then
14818 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' ' '`
14819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14820 fi
14821
14822 # We used to test for /lib/ld.so.1 and disable shared libraries on
14823 # powerpc, because MkLinux only supported shared libraries with the
14824 # GNU dynamic linker. Since this was broken with cross compilers,
14825 # most powerpc-linux boxes support dynamic linking these days and
14826 # people can always --disable-shared, the test was removed, and we
14827 # assume the GNU/Linux dynamic linker is in use.
14828 dynamic_linker='GNU/Linux ld.so'
14829 ;;
14830
14831 netbsd*)
14832 version_type=sunos
14833 need_lib_prefix=no
14834 need_version=no
14835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14838 dynamic_linker='NetBSD (a.out) ld.so'
14839 else
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 dynamic_linker='NetBSD ld.elf_so'
14843 fi
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=yes
14846 hardcode_into_libs=yes
14847 ;;
14848
14849 newsos6)
14850 version_type=linux
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 shlibpath_overrides_runpath=yes
14854 ;;
14855
14856 *nto* | *qnx*)
14857 version_type=qnx
14858 need_lib_prefix=no
14859 need_version=no
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 shlibpath_overrides_runpath=no
14864 hardcode_into_libs=yes
14865 dynamic_linker='ldqnx.so'
14866 ;;
14867
14868 openbsd*)
14869 version_type=sunos
14870 sys_lib_dlsearch_path_spec="/usr/lib"
14871 need_lib_prefix=no
14872 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14873 case $host_os in
14874 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14875 *) need_version=no ;;
14876 esac
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14881 case $host_os in
14882 openbsd2.[89] | openbsd2.[89].*)
14883 shlibpath_overrides_runpath=no
14884 ;;
14885 *)
14886 shlibpath_overrides_runpath=yes
14887 ;;
14888 esac
14889 else
14890 shlibpath_overrides_runpath=yes
14891 fi
14892 ;;
14893
14894 os2*)
14895 libname_spec='$name'
14896 shrext_cmds=".dll"
14897 need_lib_prefix=no
14898 library_names_spec='$libname${shared_ext} $libname.a'
14899 dynamic_linker='OS/2 ld.exe'
14900 shlibpath_var=LIBPATH
14901 ;;
14902
14903 osf3* | osf4* | osf5*)
14904 version_type=osf
14905 need_lib_prefix=no
14906 need_version=no
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14911 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14912 ;;
14913
14914 rdos*)
14915 dynamic_linker=no
14916 ;;
14917
14918 solaris*)
14919 version_type=linux
14920 need_lib_prefix=no
14921 need_version=no
14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923 soname_spec='${libname}${release}${shared_ext}$major'
14924 shlibpath_var=LD_LIBRARY_PATH
14925 shlibpath_overrides_runpath=yes
14926 hardcode_into_libs=yes
14927 # ldd complains unless libraries are executable
14928 postinstall_cmds='chmod +x $lib'
14929 ;;
14930
14931 sunos4*)
14932 version_type=sunos
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14934 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 shlibpath_overrides_runpath=yes
14937 if test "$with_gnu_ld" = yes; then
14938 need_lib_prefix=no
14939 fi
14940 need_version=yes
14941 ;;
14942
14943 sysv4 | sysv4.3*)
14944 version_type=linux
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 case $host_vendor in
14949 sni)
14950 shlibpath_overrides_runpath=no
14951 need_lib_prefix=no
14952 runpath_var=LD_RUN_PATH
14953 ;;
14954 siemens)
14955 need_lib_prefix=no
14956 ;;
14957 motorola)
14958 need_lib_prefix=no
14959 need_version=no
14960 shlibpath_overrides_runpath=no
14961 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14962 ;;
14963 esac
14964 ;;
14965
14966 sysv4*MP*)
14967 if test -d /usr/nec ;then
14968 version_type=linux
14969 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14970 soname_spec='$libname${shared_ext}.$major'
14971 shlibpath_var=LD_LIBRARY_PATH
14972 fi
14973 ;;
14974
14975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14976 version_type=freebsd-elf
14977 need_lib_prefix=no
14978 need_version=no
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 shlibpath_overrides_runpath=yes
14983 hardcode_into_libs=yes
14984 if test "$with_gnu_ld" = yes; then
14985 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14986 else
14987 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14988 case $host_os in
14989 sco3.2v5*)
14990 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14991 ;;
14992 esac
14993 fi
14994 sys_lib_dlsearch_path_spec='/usr/lib'
14995 ;;
14996
14997 tpf*)
14998 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14999 version_type=linux
15000 need_lib_prefix=no
15001 need_version=no
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=no
15005 hardcode_into_libs=yes
15006 ;;
15007
15008 uts4*)
15009 version_type=linux
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 shlibpath_var=LD_LIBRARY_PATH
15013 ;;
15014
15015 *)
15016 dynamic_linker=no
15017 ;;
15018 esac
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15020 $as_echo "$dynamic_linker" >&6; }
15021 test "$dynamic_linker" = no && can_build_shared=no
15022
15023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15024 if test "$GCC" = yes; then
15025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15026 fi
15027
15028 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15029 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15030 fi
15031 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15032 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15033 fi
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15073 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15074 hardcode_action_CXX=
15075 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15076 test -n "$runpath_var_CXX" ||
15077 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15078
15079 # We can hardcode non-existent directories.
15080 if test "$hardcode_direct_CXX" != no &&
15081 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15082 # have to relink, otherwise we might link with an installed library
15083 # when we should be linking with a yet-to-be-installed one
15084 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15085 test "$hardcode_minus_L_CXX" != no; then
15086 # Linking always hardcodes the temporary library directory.
15087 hardcode_action_CXX=relink
15088 else
15089 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15090 hardcode_action_CXX=immediate
15091 fi
15092 else
15093 # We cannot hardcode anything, or else we can only hardcode existing
15094 # directories.
15095 hardcode_action_CXX=unsupported
15096 fi
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15098 $as_echo "$hardcode_action_CXX" >&6; }
15099
15100 if test "$hardcode_action_CXX" = relink ||
15101 test "$inherit_rpath_CXX" = yes; then
15102 # Fast installation is not supported
15103 enable_fast_install=no
15104 elif test "$shlibpath_overrides_runpath" = yes ||
15105 test "$enable_shared" = no; then
15106 # Fast installation is not necessary
15107 enable_fast_install=needless
15108 fi
15109
15110
15111
15112
15113
15114
15115
15116 fi # test -n "$compiler"
15117
15118 CC=$lt_save_CC
15119 CFLAGS=$lt_save_CFLAGS
15120 LDCXX=$LD
15121 LD=$lt_save_LD
15122 GCC=$lt_save_GCC
15123 with_gnu_ld=$lt_save_with_gnu_ld
15124 lt_cv_path_LDCXX=$lt_cv_path_LD
15125 lt_cv_path_LD=$lt_save_path_LD
15126 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15127 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15128 fi # test "$_lt_caught_CXX_error" != yes
15129
15130 ac_ext=c
15131 ac_cpp='$CPP $CPPFLAGS'
15132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148 ac_config_commands="$ac_config_commands libtool"
15149
15150
15151
15152
15153 # Only expand once:
15154
15155
15156
15157
15158
15159
15160 if test -n "$PYTHON"; then
15161 # If the user set $PYTHON, use it and don't search something else.
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
15163 $as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
15164 prog="import sys
15165 # split strings by '.' and convert to numeric. Append some zeros
15166 # because we need at least 4 digits for the hex conversion.
15167 # map returns an iterator in Python 3.0 and a list in 2.x
15168 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
15169 minverhex = 0
15170 # xrange is not present in Python 3.0 and range returns an iterator
15171 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15172 sys.exit(sys.hexversion < minverhex)"
15173 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
15174 ($PYTHON -c "$prog") >&5 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; then :
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15179 $as_echo "yes" >&6; }
15180 else
15181 as_fn_error $? "too old" "$LINENO" 5
15182 fi
15183 am_display_PYTHON=$PYTHON
15184 else
15185 # Otherwise, try each interpreter until we find one that satisfies
15186 # VERSION.
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
15188 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
15189 if ${am_cv_pathless_PYTHON+:} false; then :
15190 $as_echo_n "(cached) " >&6
15191 else
15192
15193 for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
15194 test "$am_cv_pathless_PYTHON" = none && break
15195 prog="import sys
15196 # split strings by '.' and convert to numeric. Append some zeros
15197 # because we need at least 4 digits for the hex conversion.
15198 # map returns an iterator in Python 3.0 and a list in 2.x
15199 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
15200 minverhex = 0
15201 # xrange is not present in Python 3.0 and range returns an iterator
15202 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15203 sys.exit(sys.hexversion < minverhex)"
15204 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
15205 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
15206 ac_status=$?
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; then :
15209 break
15210 fi
15211 done
15212 fi
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
15214 $as_echo "$am_cv_pathless_PYTHON" >&6; }
15215 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
15216 if test "$am_cv_pathless_PYTHON" = none; then
15217 PYTHON=:
15218 else
15219 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
15220 set dummy $am_cv_pathless_PYTHON; ac_word=$2
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15222 $as_echo_n "checking for $ac_word... " >&6; }
15223 if ${ac_cv_path_PYTHON+:} false; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 case $PYTHON in
15227 [\\/]* | ?:[\\/]*)
15228 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15229 ;;
15230 *)
15231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15232 for as_dir in $PATH
15233 do
15234 IFS=$as_save_IFS
15235 test -z "$as_dir" && as_dir=.
15236 for ac_exec_ext in '' $ac_executable_extensions; do
15237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15238 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15240 break 2
15241 fi
15242 done
15243 done
15244 IFS=$as_save_IFS
15245
15246 ;;
15247 esac
15248 fi
15249 PYTHON=$ac_cv_path_PYTHON
15250 if test -n "$PYTHON"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15252 $as_echo "$PYTHON" >&6; }
15253 else
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255 $as_echo "no" >&6; }
15256 fi
15257
15258
15259 fi
15260 am_display_PYTHON=$am_cv_pathless_PYTHON
15261 fi
15262
15263
15264 if test "$PYTHON" = :; then
15265 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
15266 else
15267
15268
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
15270 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
15271 if ${am_cv_python_version+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
15275 fi
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
15277 $as_echo "$am_cv_python_version" >&6; }
15278 PYTHON_VERSION=$am_cv_python_version
15279
15280
15281
15282 PYTHON_PREFIX='${prefix}'
15283
15284 PYTHON_EXEC_PREFIX='${exec_prefix}'
15285
15286
15287
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
15289 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
15290 if ${am_cv_python_platform+:} false; then :
15291 $as_echo_n "(cached) " >&6
15292 else
15293 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
15294 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
15296 $as_echo "$am_cv_python_platform" >&6; }
15297 PYTHON_PLATFORM=$am_cv_python_platform
15298
15299
15300
15301
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
15303 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
15304 if ${am_cv_python_pythondir+:} false; then :
15305 $as_echo_n "(cached) " >&6
15306 else
15307 if test "x$prefix" = xNONE
15308 then
15309 am_py_prefix=$ac_default_prefix
15310 else
15311 am_py_prefix=$prefix
15312 fi
15313 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
15314 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
15315 case $am_cv_python_pythondir in
15316 $am_py_prefix*)
15317 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
15318 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
15319 ;;
15320 *)
15321 case $am_py_prefix in
15322 /usr|/System*) ;;
15323 *)
15324 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
15325 ;;
15326 esac
15327 ;;
15328 esac
15329
15330 fi
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
15332 $as_echo "$am_cv_python_pythondir" >&6; }
15333 pythondir=$am_cv_python_pythondir
15334
15335
15336
15337 pkgpythondir=\${pythondir}/$PACKAGE
15338
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
15341 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
15342 if ${am_cv_python_pyexecdir+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 if test "x$exec_prefix" = xNONE
15346 then
15347 am_py_exec_prefix=$am_py_prefix
15348 else
15349 am_py_exec_prefix=$exec_prefix
15350 fi
15351 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
15352 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
15353 case $am_cv_python_pyexecdir in
15354 $am_py_exec_prefix*)
15355 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15356 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
15357 ;;
15358 *)
15359 case $am_py_exec_prefix in
15360 /usr|/System*) ;;
15361 *)
15362 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
15363 ;;
15364 esac
15365 ;;
15366 esac
15367
15368 fi
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15370 $as_echo "$am_cv_python_pyexecdir" >&6; }
15371 pyexecdir=$am_cv_python_pyexecdir
15372
15373
15374
15375 pkgpyexecdir=\${pyexecdir}/$PACKAGE
15376
15377
15378
15379 fi
15380
15381
15382
15383 # Extract the first word of "swig", so it can be a program name with args.
15384 set dummy swig; ac_word=$2
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15386 $as_echo_n "checking for $ac_word... " >&6; }
15387 if ${ac_cv_path_SWIG+:} false; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15390 case $SWIG in
15391 [\\/]* | ?:[\\/]*)
15392 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15393 ;;
15394 *)
15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15397 do
15398 IFS=$as_save_IFS
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15402 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
15403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15404 break 2
15405 fi
15406 done
15407 done
15408 IFS=$as_save_IFS
15409
15410 ;;
15411 esac
15412 fi
15413 SWIG=$ac_cv_path_SWIG
15414 if test -n "$SWIG"; then
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15416 $as_echo "$SWIG" >&6; }
15417 else
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 $as_echo "no" >&6; }
15420 fi
15421
15422
15423 if test -z "$SWIG" ; then
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
15425 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
15426 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
15427 elif test -n "1.3.40" ; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
15429 $as_echo_n "checking for SWIG version... " >&6; }
15430 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15432 $as_echo "$swig_version" >&6; }
15433 if test -n "$swig_version" ; then
15434 # Calculate the required version number components
15435 required=1.3.40
15436 required_major=`echo $required | sed 's/[^0-9].*//'`
15437 if test -z "$required_major" ; then
15438 required_major=0
15439 fi
15440 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15441 required_minor=`echo $required | sed 's/[^0-9].*//'`
15442 if test -z "$required_minor" ; then
15443 required_minor=0
15444 fi
15445 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15446 required_patch=`echo $required | sed 's/[^0-9].*//'`
15447 if test -z "$required_patch" ; then
15448 required_patch=0
15449 fi
15450 # Calculate the available version number components
15451 available=$swig_version
15452 available_major=`echo $available | sed 's/[^0-9].*//'`
15453 if test -z "$available_major" ; then
15454 available_major=0
15455 fi
15456 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15457 available_minor=`echo $available | sed 's/[^0-9].*//'`
15458 if test -z "$available_minor" ; then
15459 available_minor=0
15460 fi
15461 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15462 available_patch=`echo $available | sed 's/[^0-9].*//'`
15463 if test -z "$available_patch" ; then
15464 available_patch=0
15465 fi
15466 if test $available_major -lt $required_major ; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 1.3.40 is required. You have $swig_version. You should look at http://www.swig.org" >&5
15468 $as_echo "$as_me: WARNING: SWIG version >= 1.3.40 is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
15469 SWIG='echo "Error: SWIG version >= 1.3.40 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
15470 else
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
15472 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
15473 SWIG_LIB=`$SWIG -swiglib`
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
15475 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
15476 fi
15477 else
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
15479 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
15480 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
15481 fi
15482 fi
15483
15484
15485
15486
15487
15488 SWIG="$SWIG -c++"
15489
15490
15491
15492 SWIG="$SWIG -noruntime"
15493
15494
15495 #
15496 # Allow the use of a (user set) custom python version
15497 #
15498
15499
15500 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15501 set dummy python$PYTHON_VERSION; ac_word=$2
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15503 $as_echo_n "checking for $ac_word... " >&6; }
15504 if ${ac_cv_path_PYTHON+:} false; then :
15505 $as_echo_n "(cached) " >&6
15506 else
15507 case $PYTHON in
15508 [\\/]* | ?:[\\/]*)
15509 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15510 ;;
15511 *)
15512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15513 for as_dir in $PATH
15514 do
15515 IFS=$as_save_IFS
15516 test -z "$as_dir" && as_dir=.
15517 for ac_exec_ext in '' $ac_executable_extensions; do
15518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15519 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15521 break 2
15522 fi
15523 done
15524 done
15525 IFS=$as_save_IFS
15526
15527 ;;
15528 esac
15529 fi
15530 PYTHON=$ac_cv_path_PYTHON
15531 if test -n "$PYTHON"; then
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15533 $as_echo "$PYTHON" >&6; }
15534 else
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15536 $as_echo "no" >&6; }
15537 fi
15538
15539
15540 if test -z "$PYTHON"; then
15541 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15542 PYTHON_VERSION=""
15543 fi
15544
15545 #
15546 # Check for a version of Python >= 2.1.0
15547 #
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15549 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15550 ac_supports_python_ver=`$PYTHON -c "import sys; \
15551 ver = sys.version.split ()[0]; \
15552 print (ver >= '2.1.0')"`
15553 if test "$ac_supports_python_ver" != "True"; then
15554 if test -z "$PYTHON_NOVERSIONCHECK"; then
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 $as_echo "no" >&6; }
15557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15559 as_fn_error $? "
15560 This version of the AC_PYTHON_DEVEL macro
15561 doesn't work properly with versions of Python before
15562 2.1.0. You may need to re-run configure, setting the
15563 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15564 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15565 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15566 to something else than an empty string.
15567
15568 See \`config.log' for more details" "$LINENO" 5; }
15569 else
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15571 $as_echo "skip at user request" >&6; }
15572 fi
15573 else
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15575 $as_echo "yes" >&6; }
15576 fi
15577
15578 #
15579 # if the macro parameter ``version'' is set, honour it
15580 #
15581 if test -n ""; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15583 $as_echo_n "checking for a version of Python ... " >&6; }
15584 ac_supports_python_ver=`$PYTHON -c "import sys; \
15585 ver = sys.version.split ()[0]; \
15586 print (ver )"`
15587 if test "$ac_supports_python_ver" = "True"; then
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15589 $as_echo "yes" >&6; }
15590 else
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592 $as_echo "no" >&6; }
15593 as_fn_error $? "this package requires Python .
15594 If you have it installed, but it isn't the default Python
15595 interpreter in your system path, please pass the PYTHON_VERSION
15596 variable to configure. See \`\`configure --help'' for reference.
15597 " "$LINENO" 5
15598 PYTHON_VERSION=""
15599 fi
15600 fi
15601
15602 #
15603 # Check if you have distutils, else fail
15604 #
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15606 $as_echo_n "checking for the distutils Python package... " >&6; }
15607 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15608 if test -z "$ac_distutils_result"; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15610 $as_echo "yes" >&6; }
15611 else
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15613 $as_echo "no" >&6; }
15614 as_fn_error $? "cannot import Python module \"distutils\".
15615 Please check your Python installation. The error was:
15616 $ac_distutils_result" "$LINENO" 5
15617 PYTHON_VERSION=""
15618 fi
15619
15620 #
15621 # Check for Python include path
15622 #
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15624 $as_echo_n "checking for Python include path... " >&6; }
15625 if test -z "$PYTHON_CPPFLAGS"; then
15626 python_path=`$PYTHON -c "import distutils.sysconfig; \
15627 print (distutils.sysconfig.get_python_inc ());"`
15628 if test -n "${python_path}"; then
15629 python_path="-I$python_path"
15630 fi
15631 PYTHON_CPPFLAGS=$python_path
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15634 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15635
15636
15637 #
15638 # Check for Python library path
15639 #
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15641 $as_echo_n "checking for Python library path... " >&6; }
15642 if test -z "$PYTHON_LDFLAGS"; then
15643 # (makes two attempts to ensure we've got a version number
15644 # from the interpreter)
15645 ac_python_version=`cat<<EOD | $PYTHON -
15646
15647 # join all versioning strings, on some systems
15648 # major/minor numbers could be in different list elements
15649 from distutils.sysconfig import *
15650 ret = ''
15651 for e in get_config_vars ('VERSION'):
15652 if (e != None):
15653 ret += e
15654 print (ret)
15655 EOD`
15656
15657 if test -z "$ac_python_version"; then
15658 if test -n "$PYTHON_VERSION"; then
15659 ac_python_version=$PYTHON_VERSION
15660 else
15661 ac_python_version=`$PYTHON -c "import sys; \
15662 print (sys.version[:3])"`
15663 fi
15664 fi
15665
15666 # Make the versioning information available to the compiler
15667
15668 cat >>confdefs.h <<_ACEOF
15669 #define HAVE_PYTHON "$ac_python_version"
15670 _ACEOF
15671
15672
15673 # First, the library directory:
15674 ac_python_libdir=`cat<<EOD | $PYTHON -
15675
15676 # There should be only one
15677 import distutils.sysconfig
15678 for e in distutils.sysconfig.get_config_vars ('LIBDIR'):
15679 if e != None:
15680 print (e)
15681 break
15682 EOD`
15683
15684 # Before checking for libpythonX.Y, we need to know
15685 # the extension the OS we're on uses for libraries
15686 # (we take the first one, if there's more than one fix me!):
15687 ac_python_soext=`$PYTHON -c \
15688 "import distutils.sysconfig; \
15689 print (distutils.sysconfig.get_config_vars('SO')[0])"`
15690
15691 # Now, for the library:
15692 ac_python_soname=`$PYTHON -c \
15693 "import distutils.sysconfig; \
15694 print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"`
15695
15696 # Strip away extension from the end to canonicalize its name:
15697 ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"`
15698
15699 # This small piece shamelessly adapted from PostgreSQL python macro;
15700 # credits goes to momjian, I think. I'd like to put the right name
15701 # in the credits, if someone can point me in the right direction... ?
15702 #
15703 if test -n "$ac_python_libdir" -a -n "$ac_python_library" \
15704 -a x"$ac_python_library" != x"$ac_python_soname"
15705 then
15706 # use the official shared library
15707 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
15708 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
15709 else
15710 # old way: use libpython from python_configdir
15711 ac_python_libdir=`$PYTHON -c \
15712 "from distutils.sysconfig import get_python_lib as f; \
15713 import os; \
15714 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
15715 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
15716 fi
15717
15718 if test -z "PYTHON_LDFLAGS"; then
15719 as_fn_error $? "
15720 Cannot determine location of your Python DSO. Please check it was installed with
15721 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
15722 " "$LINENO" 5
15723 fi
15724 fi
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15726 $as_echo "$PYTHON_LDFLAGS" >&6; }
15727
15728
15729 #
15730 # Check for site packages
15731 #
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15733 $as_echo_n "checking for Python site-packages path... " >&6; }
15734 if test -z "$PYTHON_SITE_PKG"; then
15735 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15736 print (distutils.sysconfig.get_python_lib(0,0));"`
15737 fi
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15739 $as_echo "$PYTHON_SITE_PKG" >&6; }
15740
15741
15742 #
15743 # libraries which must be linked in when embedding
15744 #
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15746 $as_echo_n "checking python extra libraries... " >&6; }
15747 if test -z "$PYTHON_EXTRA_LIBS"; then
15748 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15749 conf = distutils.sysconfig.get_config_var; \
15750 print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"`
15751 fi
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15753 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15754
15755
15756 #
15757 # linking flags needed when embedding
15758 #
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15760 $as_echo_n "checking python extra linking flags... " >&6; }
15761 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15762 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15763 conf = distutils.sysconfig.get_config_var; \
15764 print (conf('LINKFORSHARED'))"`
15765 fi
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15767 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15768
15769
15770 #
15771 # final check to see if everything compiles alright
15772 #
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15774 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15775 # save current global flags
15776 ac_save_LIBS="$LIBS"
15777 ac_save_CPPFLAGS="$CPPFLAGS"
15778 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
15779 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
15780 ac_ext=c
15781 ac_cpp='$CPP $CPPFLAGS'
15782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15785
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15788
15789 #include <Python.h>
15790 int
15791 main ()
15792 {
15793 Py_Initialize();
15794 ;
15795 return 0;
15796 }
15797
15798 _ACEOF
15799 if ac_fn_c_try_link "$LINENO"; then :
15800 pythonexists=yes
15801 else
15802 pythonexists=no
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext \
15805 conftest$ac_exeext conftest.$ac_ext
15806 ac_ext=c
15807 ac_cpp='$CPP $CPPFLAGS'
15808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15811
15812 # turn back to default flags
15813 CPPFLAGS="$ac_save_CPPFLAGS"
15814 LIBS="$ac_save_LIBS"
15815
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15817 $as_echo "$pythonexists" >&6; }
15818
15819 if test ! "x$pythonexists" = "xyes"; then
15820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15822 as_fn_error $? "
15823 Could not link test program to Python. Maybe the main Python library has been
15824 installed in some non-standard library path. If so, pass it to configure,
15825 via the LDFLAGS environment variable.
15826 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
15827 ============================================================================
15828 ERROR!
15829 You probably have to install the development version of the Python package
15830 for your distribution. The exact name of this package varies among them.
15831 ============================================================================
15832
15833 See \`config.log' for more details" "$LINENO" 5; }
15834 PYTHON_VERSION=""
15835 fi
15836
15837 #
15838 # all done!
15839 #
15840
15841
15842
15843
15844 test "x" != "xno" || swig_shadow=" -noproxy"
15845 SWIG_PYTHON_OPT=-python$swig_shadow
15846
15847 SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
15848
15849
15850
15851
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
15853 $as_echo_n "checking for pow in -lm... " >&6; }
15854 if ${ac_cv_lib_m_pow+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 ac_check_lib_save_LIBS=$LIBS
15858 LIBS="-lm $LIBS"
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861
15862 /* Override any GCC internal prototype to avoid an error.
15863 Use char because int might match the return type of a GCC
15864 builtin and then its argument prototype would still apply. */
15865 #ifdef __cplusplus
15866 extern "C"
15867 #endif
15868 char pow ();
15869 int
15870 main ()
15871 {
15872 return pow ();
15873 ;
15874 return 0;
15875 }
15876 _ACEOF
15877 if ac_fn_c_try_link "$LINENO"; then :
15878 ac_cv_lib_m_pow=yes
15879 else
15880 ac_cv_lib_m_pow=no
15881 fi
15882 rm -f core conftest.err conftest.$ac_objext \
15883 conftest$ac_exeext conftest.$ac_ext
15884 LIBS=$ac_check_lib_save_LIBS
15885 fi
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
15887 $as_echo "$ac_cv_lib_m_pow" >&6; }
15888 if test "x$ac_cv_lib_m_pow" = xyes; then :
15889 math_lib="-lm"
15890 else
15891 math_lib=""
15892 fi
15893
15894
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerrno in -liberty" >&5
15896 $as_echo_n "checking for strerrno in -liberty... " >&6; }
15897 if ${ac_cv_lib_iberty_strerrno+:} false; then :
15898 $as_echo_n "(cached) " >&6
15899 else
15900 ac_check_lib_save_LIBS=$LIBS
15901 LIBS="-liberty $LIBS"
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904
15905 /* Override any GCC internal prototype to avoid an error.
15906 Use char because int might match the return type of a GCC
15907 builtin and then its argument prototype would still apply. */
15908 #ifdef __cplusplus
15909 extern "C"
15910 #endif
15911 char strerrno ();
15912 int
15913 main ()
15914 {
15915 return strerrno ();
15916 ;
15917 return 0;
15918 }
15919 _ACEOF
15920 if ac_fn_c_try_link "$LINENO"; then :
15921 ac_cv_lib_iberty_strerrno=yes
15922 else
15923 ac_cv_lib_iberty_strerrno=no
15924 fi
15925 rm -f core conftest.err conftest.$ac_objext \
15926 conftest$ac_exeext conftest.$ac_ext
15927 LIBS=$ac_check_lib_save_LIBS
15928 fi
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_strerrno" >&5
15930 $as_echo "$ac_cv_lib_iberty_strerrno" >&6; }
15931 if test "x$ac_cv_lib_iberty_strerrno" = xyes; then :
15932 liberty_lib="-liberty"
15933 else
15934 liberty_lib=""
15935 fi
15936
15937
15938 nsl_lib="";
15939 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15940 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15941 try_nsl=""
15942 else
15943 try_nsl="yes"
15944 fi
15945
15946 if test -n "${try_nsl}"; then
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15948 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15949 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951 else
15952 ac_check_lib_save_LIBS=$LIBS
15953 LIBS="-lnsl $LIBS"
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956
15957 /* Override any GCC internal prototype to avoid an error.
15958 Use char because int might match the return type of a GCC
15959 builtin and then its argument prototype would still apply. */
15960 #ifdef __cplusplus
15961 extern "C"
15962 #endif
15963 char gethostbyname ();
15964 int
15965 main ()
15966 {
15967 return gethostbyname ();
15968 ;
15969 return 0;
15970 }
15971 _ACEOF
15972 if ac_fn_c_try_link "$LINENO"; then :
15973 ac_cv_lib_nsl_gethostbyname=yes
15974 else
15975 ac_cv_lib_nsl_gethostbyname=no
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext \
15978 conftest$ac_exeext conftest.$ac_ext
15979 LIBS=$ac_check_lib_save_LIBS
15980 fi
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15982 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15983 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15984 nsl_lib="-lnsl"
15985 else
15986 nsl_lib=""
15987 fi
15988
15989 fi
15990
15991 socket_lib="";
15992 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15993 if test "x$ac_cv_func_connect" = xyes; then :
15994 try_socket=""
15995 else
15996 try_socket="yes"
15997 fi
15998
15999 if test -n "${try_socket}"; then
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
16001 $as_echo_n "checking for connect in -lsocket... " >&6; }
16002 if ${ac_cv_lib_socket_connect+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 ac_check_lib_save_LIBS=$LIBS
16006 LIBS="-lsocket $LIBS"
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009
16010 /* Override any GCC internal prototype to avoid an error.
16011 Use char because int might match the return type of a GCC
16012 builtin and then its argument prototype would still apply. */
16013 #ifdef __cplusplus
16014 extern "C"
16015 #endif
16016 char connect ();
16017 int
16018 main ()
16019 {
16020 return connect ();
16021 ;
16022 return 0;
16023 }
16024 _ACEOF
16025 if ac_fn_c_try_link "$LINENO"; then :
16026 ac_cv_lib_socket_connect=yes
16027 else
16028 ac_cv_lib_socket_connect=no
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16032 LIBS=$ac_check_lib_save_LIBS
16033 fi
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
16035 $as_echo "$ac_cv_lib_socket_connect" >&6; }
16036 if test "x$ac_cv_lib_socket_connect" = xyes; then :
16037 socket_lib="-lsocket"
16038 else
16039 socket_lib=""
16040 fi
16041
16042 fi
16043
16044 thread_lib="";
16045 ac_fn_c_check_func "$LINENO" "thr_create" "ac_cv_func_thr_create"
16046 if test "x$ac_cv_func_thr_create" = xyes; then :
16047 try_thread=""
16048 else
16049 try_thread="yes"
16050 fi
16051
16052 if test -n "${try_thread}"; then
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
16054 $as_echo_n "checking for thr_create in -lthread... " >&6; }
16055 if ${ac_cv_lib_thread_thr_create+:} false; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 ac_check_lib_save_LIBS=$LIBS
16059 LIBS="-lthread $LIBS"
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062
16063 /* Override any GCC internal prototype to avoid an error.
16064 Use char because int might match the return type of a GCC
16065 builtin and then its argument prototype would still apply. */
16066 #ifdef __cplusplus
16067 extern "C"
16068 #endif
16069 char thr_create ();
16070 int
16071 main ()
16072 {
16073 return thr_create ();
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 if ac_fn_c_try_link "$LINENO"; then :
16079 ac_cv_lib_thread_thr_create=yes
16080 else
16081 ac_cv_lib_thread_thr_create=no
16082 fi
16083 rm -f core conftest.err conftest.$ac_objext \
16084 conftest$ac_exeext conftest.$ac_ext
16085 LIBS=$ac_check_lib_save_LIBS
16086 fi
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
16088 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
16089 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
16090 thread_lib="-lthread"
16091 else
16092 thread_lib=""
16093 fi
16094
16095 fi
16096
16097
16098
16099 fetk_cpu_vendor_os="";
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want to disable the CPU-VENDOR-OS install triplet" >&5
16101 $as_echo_n "checking whether you want to disable the CPU-VENDOR-OS install triplet... " >&6; }
16102 # Check whether --enable-triplet was given.
16103 if test "${enable_triplet+set}" = set; then :
16104 enableval=$enable_triplet; triplet_kill="yes"
16105 else
16106 triplet_kill=""
16107
16108 fi
16109
16110 if test "${triplet_kill}" = yes; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16112 $as_echo "yes" >&6; }
16113 fetk_cpu_vendor_os="";
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16117 fetk_cpu_vendor_os="${host_cpu}-${host_vendor}-${host_os}";
16118 fi
16119
16120
16121 rl_lib="";
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_RL_LIBRARY" >&5
16123 $as_echo_n "checking whether your environment defines FETK_RL_LIBRARY... " >&6; }
16124 if test -n "${FETK_RL_LIBRARY}"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16126 $as_echo "yes" >&6; }
16127 rl_lib_path="-L${FETK_RL_LIBRARY} ";
16128 else
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16130 $as_echo "no" >&6; }
16131 rl_lib_path="";
16132 fi
16133 LDFLAGS_SAVE=${LDFLAGS};
16134 LDFLAGS=${rl_lib_path};
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetnum in -lncurses" >&5
16136 $as_echo_n "checking for tgetnum in -lncurses... " >&6; }
16137 if ${ac_cv_lib_ncurses_tgetnum+:} false; then :
16138 $as_echo_n "(cached) " >&6
16139 else
16140 ac_check_lib_save_LIBS=$LIBS
16141 LIBS="-lncurses ${math_lib} $LIBS"
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144
16145 /* Override any GCC internal prototype to avoid an error.
16146 Use char because int might match the return type of a GCC
16147 builtin and then its argument prototype would still apply. */
16148 #ifdef __cplusplus
16149 extern "C"
16150 #endif
16151 char tgetnum ();
16152 int
16153 main ()
16154 {
16155 return tgetnum ();
16156 ;
16157 return 0;
16158 }
16159 _ACEOF
16160 if ac_fn_c_try_link "$LINENO"; then :
16161 ac_cv_lib_ncurses_tgetnum=yes
16162 else
16163 ac_cv_lib_ncurses_tgetnum=no
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16167 LIBS=$ac_check_lib_save_LIBS
16168 fi
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetnum" >&5
16170 $as_echo "$ac_cv_lib_ncurses_tgetnum" >&6; }
16171 if test "x$ac_cv_lib_ncurses_tgetnum" = xyes; then :
16172 ncurses_lib="-lncurses"
16173 else
16174 ncurses_lib=""
16175 fi
16176
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16178 $as_echo_n "checking for readline in -lreadline... " >&6; }
16179 if ${ac_cv_lib_readline_readline+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16182 ac_check_lib_save_LIBS=$LIBS
16183 LIBS="-lreadline ${rl_lib_path} ${ncurses_lib} ${math_lib} $LIBS"
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186
16187 /* Override any GCC internal prototype to avoid an error.
16188 Use char because int might match the return type of a GCC
16189 builtin and then its argument prototype would still apply. */
16190 #ifdef __cplusplus
16191 extern "C"
16192 #endif
16193 char readline ();
16194 int
16195 main ()
16196 {
16197 return readline ();
16198 ;
16199 return 0;
16200 }
16201 _ACEOF
16202 if ac_fn_c_try_link "$LINENO"; then :
16203 ac_cv_lib_readline_readline=yes
16204 else
16205 ac_cv_lib_readline_readline=no
16206 fi
16207 rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209 LIBS=$ac_check_lib_save_LIBS
16210 fi
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16212 $as_echo "$ac_cv_lib_readline_readline" >&6; }
16213 if test "x$ac_cv_lib_readline_readline" = xyes; then :
16214 rl_use="yes";rl_lib="${rl_lib_path}-lreadline ${ncurses_lib}"
16215 else
16216 rl_use="";rl_lib=""
16217 fi
16218
16219 if test -n "${rl_use}"; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
16221 $as_echo_n "checking for add_history in -lreadline... " >&6; }
16222 if ${ac_cv_lib_readline_add_history+:} false; then :
16223 $as_echo_n "(cached) " >&6
16224 else
16225 ac_check_lib_save_LIBS=$LIBS
16226 LIBS="-lreadline ${rl_lib_path} ${ncurses_lib} ${math_lib} $LIBS"
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229
16230 /* Override any GCC internal prototype to avoid an error.
16231 Use char because int might match the return type of a GCC
16232 builtin and then its argument prototype would still apply. */
16233 #ifdef __cplusplus
16234 extern "C"
16235 #endif
16236 char add_history ();
16237 int
16238 main ()
16239 {
16240 return add_history ();
16241 ;
16242 return 0;
16243 }
16244 _ACEOF
16245 if ac_fn_c_try_link "$LINENO"; then :
16246 ac_cv_lib_readline_add_history=yes
16247 else
16248 ac_cv_lib_readline_add_history=no
16249 fi
16250 rm -f core conftest.err conftest.$ac_objext \
16251 conftest$ac_exeext conftest.$ac_ext
16252 LIBS=$ac_check_lib_save_LIBS
16253 fi
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
16255 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
16256 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
16257 rl_use="yes";rl_lib="${rl_lib_path}-lreadline ${ncurses_lib}"
16258 else
16259 rl_use="";rl_lib=""
16260 fi
16261
16262 fi
16263 LDFLAGS=${LDFLAGS_SAVE};
16264
16265
16266 mpi_lib="";
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_MPI_LIBRARY" >&5
16268 $as_echo_n "checking whether your environment defines FETK_MPI_LIBRARY... " >&6; }
16269 if test -n "${FETK_MPI_LIBRARY}"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16271 $as_echo "yes" >&6; }
16272 mpi_lib_path="-L${FETK_MPI_LIBRARY} ";
16273 else
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16275 $as_echo "no" >&6; }
16276 mpi_lib_path="";
16277 fi
16278 LDFLAGS_SAVE=${LDFLAGS};
16279 LDFLAGS=${mpi_lib_path};
16280 mpi_use="";
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpi" >&5
16282 $as_echo_n "checking for main in -lmpi... " >&6; }
16283 if ${ac_cv_lib_mpi_main+:} false; then :
16284 $as_echo_n "(cached) " >&6
16285 else
16286 ac_check_lib_save_LIBS=$LIBS
16287 LIBS="-lmpi ${mpi_lib_path} $LIBS"
16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h. */
16290
16291
16292 int
16293 main ()
16294 {
16295 return main ();
16296 ;
16297 return 0;
16298 }
16299 _ACEOF
16300 if ac_fn_c_try_link "$LINENO"; then :
16301 ac_cv_lib_mpi_main=yes
16302 else
16303 ac_cv_lib_mpi_main=no
16304 fi
16305 rm -f core conftest.err conftest.$ac_objext \
16306 conftest$ac_exeext conftest.$ac_ext
16307 LIBS=$ac_check_lib_save_LIBS
16308 fi
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_main" >&5
16310 $as_echo "$ac_cv_lib_mpi_main" >&6; }
16311 if test "x$ac_cv_lib_mpi_main" = xyes; then :
16312 mpi_use="yes";mpi_lib="${mpi_lib_path}-lmpi"
16313 else
16314 mpi_use="";mpi_lib=""
16315 fi
16316
16317 if test -z "${mpi_use}"; then
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpich" >&5
16319 $as_echo_n "checking for main in -lmpich... " >&6; }
16320 if ${ac_cv_lib_mpich_main+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 ac_check_lib_save_LIBS=$LIBS
16324 LIBS="-lmpich ${mpi_lib_path} $LIBS"
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327
16328
16329 int
16330 main ()
16331 {
16332 return main ();
16333 ;
16334 return 0;
16335 }
16336 _ACEOF
16337 if ac_fn_c_try_link "$LINENO"; then :
16338 ac_cv_lib_mpich_main=yes
16339 else
16340 ac_cv_lib_mpich_main=no
16341 fi
16342 rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16345 fi
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_main" >&5
16347 $as_echo "$ac_cv_lib_mpich_main" >&6; }
16348 if test "x$ac_cv_lib_mpich_main" = xyes; then :
16349 mpi_use="yes";mpi_lib="${mpi_lib_path}-lmpich"
16350 else
16351 mpi_use="";mpi_lib=""
16352 fi
16353
16354 fi
16355 LDFLAGS=${LDFLAGS_SAVE};
16356
16357
16358 fetk_lib="";
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
16360 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
16361 if test -n "${FETK_LIBRARY}"; then
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16363 $as_echo "yes" >&6; }
16364 fetk_lib="${FETK_LIBRARY}";
16365 else
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16367 $as_echo "no" >&6; }
16368 fetk_lib="${HOME}/lib/${fetk_cpu_vendor_os}"
16369 fi
16370
16371 fetk_inc="";
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_INCLUDE" >&5
16373 $as_echo_n "checking whether your environment defines FETK_INCLUDE... " >&6; }
16374 if test -n "${FETK_INCLUDE}"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16376 $as_echo "yes" >&6; }
16377 fetk_inc="${FETK_INCLUDE}";
16378 else
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16381 fetk_inc="${HOME}/include";
16382 fi
16383
16384
16385 vf2c_lib="";
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_VF2C_LIBRARY" >&5
16387 $as_echo_n "checking whether your environment defines FETK_VF2C_LIBRARY... " >&6; }
16388 if test -n "${FETK_VF2C_LIBRARY}"; then
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16390 $as_echo "yes" >&6; }
16391 vf2c_lib_path="-L${FETK_VF2C_LIBRARY} ";
16392 else
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16394 $as_echo "no" >&6; }
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
16396 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
16397 if test -n "${FETK_LIBRARY}"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16399 $as_echo "yes" >&6; }
16400 vf2c_lib_path="-L${FETK_LIBRARY} ";
16401 else
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403 $as_echo "no" >&6; }
16404 vf2c_lib_path="-L${HOME}/lib ";
16405 fi
16406 fi
16407 LDFLAGS_SAVE=${LDFLAGS};
16408 LDFLAGS=${vf2c_lib_path};
16409 vf2c_use="";
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_abs in -lvf2c" >&5
16411 $as_echo_n "checking for d_abs in -lvf2c... " >&6; }
16412 if ${ac_cv_lib_vf2c_d_abs+:} false; then :
16413 $as_echo_n "(cached) " >&6
16414 else
16415 ac_check_lib_save_LIBS=$LIBS
16416 LIBS="-lvf2c ${vf2c_lib_path}-lvf2c $LIBS"
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419
16420 /* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
16423 #ifdef __cplusplus
16424 extern "C"
16425 #endif
16426 char d_abs ();
16427 int
16428 main ()
16429 {
16430 return d_abs ();
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 if ac_fn_c_try_link "$LINENO"; then :
16436 ac_cv_lib_vf2c_d_abs=yes
16437 else
16438 ac_cv_lib_vf2c_d_abs=no
16439 fi
16440 rm -f core conftest.err conftest.$ac_objext \
16441 conftest$ac_exeext conftest.$ac_ext
16442 LIBS=$ac_check_lib_save_LIBS
16443 fi
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vf2c_d_abs" >&5
16445 $as_echo "$ac_cv_lib_vf2c_d_abs" >&6; }
16446 if test "x$ac_cv_lib_vf2c_d_abs" = xyes; then :
16447 vf2c_use="yes";vf2c_lib="${vf2c_lib_path}-lvf2c"
16448 else
16449 vf2c_use="";vf2c_lib=""
16450 fi
16451
16452 LDFLAGS=${LDFLAGS_SAVE};
16453
16454
16455 blas_lib="";
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_BLAS_LIBRARY" >&5
16457 $as_echo_n "checking whether your environment defines FETK_BLAS_LIBRARY... " >&6; }
16458 if test -n "${FETK_BLAS_LIBRARY}"; then
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16460 $as_echo "yes" >&6; }
16461 blas_lib_path="-L${FETK_BLAS_LIBRARY} ";
16462 else
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464 $as_echo "no" >&6; }
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
16466 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
16467 if test -n "${FETK_LIBRARY}"; then
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16469 $as_echo "yes" >&6; }
16470 blas_lib_path="-L${FETK_LIBRARY} ";
16471 else
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16473 $as_echo "no" >&6; }
16474 blas_lib_path="-L${HOME}/lib ";
16475 fi
16476 fi
16477 LDFLAGS_SAVE=${LDFLAGS};
16478 LDFLAGS=${blas_lib_path};
16479 blas_use="";
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dscal_ in -lblas" >&5
16481 $as_echo_n "checking for dscal_ in -lblas... " >&6; }
16482 if ${ac_cv_lib_blas_dscal_+:} false; then :
16483 $as_echo_n "(cached) " >&6
16484 else
16485 ac_check_lib_save_LIBS=$LIBS
16486 LIBS="-lblas ${blas_lib_path}-lblas ${vf2c_lib} ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h. */
16489
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16493 #ifdef __cplusplus
16494 extern "C"
16495 #endif
16496 char dscal_ ();
16497 int
16498 main ()
16499 {
16500 return dscal_ ();
16501 ;
16502 return 0;
16503 }
16504 _ACEOF
16505 if ac_fn_c_try_link "$LINENO"; then :
16506 ac_cv_lib_blas_dscal_=yes
16507 else
16508 ac_cv_lib_blas_dscal_=no
16509 fi
16510 rm -f core conftest.err conftest.$ac_objext \
16511 conftest$ac_exeext conftest.$ac_ext
16512 LIBS=$ac_check_lib_save_LIBS
16513 fi
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_dscal_" >&5
16515 $as_echo "$ac_cv_lib_blas_dscal_" >&6; }
16516 if test "x$ac_cv_lib_blas_dscal_" = xyes; then :
16517 blas_use="yes";blas_lib="${blas_lib_path}-lblas"
16518 else
16519 blas_use="";blas_lib=""
16520 fi
16521
16522 LDFLAGS=${LDFLAGS_SAVE};
16523
16524
16525 amd_lib="";
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_AMD_LIBRARY" >&5
16527 $as_echo_n "checking whether your environment defines FETK_AMD_LIBRARY... " >&6; }
16528 if test -n "${FETK_AMD_LIBRARY}"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16531 amd_lib_path="-L${FETK_AMD_LIBRARY} ";
16532 else
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
16536 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
16537 if test -n "${FETK_LIBRARY}"; then
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16539 $as_echo "yes" >&6; }
16540 amd_lib_path="-L${FETK_LIBRARY} ";
16541 else
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16543 $as_echo "no" >&6; }
16544 amd_lib_path="-L${HOME}/lib ";
16545 fi
16546 fi
16547 LDFLAGS_SAVE=${LDFLAGS};
16548 LDFLAGS=${amd_lib_path};
16549 amd_use="";
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd_order in -lamd" >&5
16551 $as_echo_n "checking for amd_order in -lamd... " >&6; }
16552 if ${ac_cv_lib_amd_amd_order+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 ac_check_lib_save_LIBS=$LIBS
16556 LIBS="-lamd ${amd_lib_path}-lamd ${blas_lib} ${vf2c_lib} ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559
16560 /* Override any GCC internal prototype to avoid an error.
16561 Use char because int might match the return type of a GCC
16562 builtin and then its argument prototype would still apply. */
16563 #ifdef __cplusplus
16564 extern "C"
16565 #endif
16566 char amd_order ();
16567 int
16568 main ()
16569 {
16570 return amd_order ();
16571 ;
16572 return 0;
16573 }
16574 _ACEOF
16575 if ac_fn_c_try_link "$LINENO"; then :
16576 ac_cv_lib_amd_amd_order=yes
16577 else
16578 ac_cv_lib_amd_amd_order=no
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext \
16581 conftest$ac_exeext conftest.$ac_ext
16582 LIBS=$ac_check_lib_save_LIBS
16583 fi
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_amd_amd_order" >&5
16585 $as_echo "$ac_cv_lib_amd_amd_order" >&6; }
16586 if test "x$ac_cv_lib_amd_amd_order" = xyes; then :
16587 amd_use="yes";amd_lib="${amd_lib_path}-lamd"
16588 else
16589 amd_use="";amd_lib=""
16590 fi
16591
16592 LDFLAGS=${LDFLAGS_SAVE};
16593
16594
16595 umfpack_lib="";
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_UMFPACK_LIBRARY" >&5
16597 $as_echo_n "checking whether your environment defines FETK_UMFPACK_LIBRARY... " >&6; }
16598 if test -n "${FETK_UMFPACK_LIBRARY}"; then
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16600 $as_echo "yes" >&6; }
16601 umfpack_lib_path="-L${FETK_UMFPACK_LIBRARY} ";
16602 else
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16604 $as_echo "no" >&6; }
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
16606 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
16607 if test -n "${FETK_LIBRARY}"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16609 $as_echo "yes" >&6; }
16610 umfpack_lib_path="-L${FETK_LIBRARY} ";
16611 else
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16613 $as_echo "no" >&6; }
16614 umfpack_lib_path="-L${HOME}/lib ";
16615 fi
16616 fi
16617 LDFLAGS_SAVE=${LDFLAGS};
16618 LDFLAGS=${umfpack_lib_path};
16619 umfpack_use="";
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umfpack_di_free_numeric in -lumfpack" >&5
16621 $as_echo_n "checking for umfpack_di_free_numeric in -lumfpack... " >&6; }
16622 if ${ac_cv_lib_umfpack_umfpack_di_free_numeric+:} false; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 ac_check_lib_save_LIBS=$LIBS
16626 LIBS="-lumfpack ${umfpack_lib_path}-lumfpack ${amd_lib} ${blas_lib} ${vf2c_lib} ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h. */
16629
16630 /* Override any GCC internal prototype to avoid an error.
16631 Use char because int might match the return type of a GCC
16632 builtin and then its argument prototype would still apply. */
16633 #ifdef __cplusplus
16634 extern "C"
16635 #endif
16636 char umfpack_di_free_numeric ();
16637 int
16638 main ()
16639 {
16640 return umfpack_di_free_numeric ();
16641 ;
16642 return 0;
16643 }
16644 _ACEOF
16645 if ac_fn_c_try_link "$LINENO"; then :
16646 ac_cv_lib_umfpack_umfpack_di_free_numeric=yes
16647 else
16648 ac_cv_lib_umfpack_umfpack_di_free_numeric=no
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652 LIBS=$ac_check_lib_save_LIBS
16653 fi
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umfpack_umfpack_di_free_numeric" >&5
16655 $as_echo "$ac_cv_lib_umfpack_umfpack_di_free_numeric" >&6; }
16656 if test "x$ac_cv_lib_umfpack_umfpack_di_free_numeric" = xyes; then :
16657 umfpack_use="yes";umfpack_lib="${umfpack_lib_path}-lumfpack"
16658 else
16659 umfpack_use="";umfpack_lib=""
16660 fi
16661
16662 LDFLAGS=${LDFLAGS_SAVE};
16663
16664
16665 superlu_lib="";
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_SUPERLU_LIBRARY" >&5
16667 $as_echo_n "checking whether your environment defines FETK_SUPERLU_LIBRARY... " >&6; }
16668 if test -n "${FETK_SUPERLU_LIBRARY}"; then
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16670 $as_echo "yes" >&6; }
16671 superlu_lib_path="-L${FETK_SUPERLU_LIBRARY} ";
16672 else
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16674 $as_echo "no" >&6; }
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
16676 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
16677 if test -n "${FETK_LIBRARY}"; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16679 $as_echo "yes" >&6; }
16680 superlu_lib_path="-L${FETK_LIBRARY} ";
16681 else
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16683 $as_echo "no" >&6; }
16684 superlu_lib_path="-L${HOME}/lib ";
16685 fi
16686 fi
16687 LDFLAGS_SAVE=${LDFLAGS};
16688 LDFLAGS=${superlu_lib_path};
16689 superlu_use="";
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Destroy_SuperMatrix_Store in -lsuperlu" >&5
16691 $as_echo_n "checking for Destroy_SuperMatrix_Store in -lsuperlu... " >&6; }
16692 if ${ac_cv_lib_superlu_Destroy_SuperMatrix_Store+:} false; then :
16693 $as_echo_n "(cached) " >&6
16694 else
16695 ac_check_lib_save_LIBS=$LIBS
16696 LIBS="-lsuperlu ${superlu_lib_path}-lsuperlu ${amd_lib} ${blas_lib} ${vf2c_lib} ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16699
16700 /* Override any GCC internal prototype to avoid an error.
16701 Use char because int might match the return type of a GCC
16702 builtin and then its argument prototype would still apply. */
16703 #ifdef __cplusplus
16704 extern "C"
16705 #endif
16706 char Destroy_SuperMatrix_Store ();
16707 int
16708 main ()
16709 {
16710 return Destroy_SuperMatrix_Store ();
16711 ;
16712 return 0;
16713 }
16714 _ACEOF
16715 if ac_fn_c_try_link "$LINENO"; then :
16716 ac_cv_lib_superlu_Destroy_SuperMatrix_Store=yes
16717 else
16718 ac_cv_lib_superlu_Destroy_SuperMatrix_Store=no
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext \
16721 conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16723 fi
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_superlu_Destroy_SuperMatrix_Store" >&5
16725 $as_echo "$ac_cv_lib_superlu_Destroy_SuperMatrix_Store" >&6; }
16726 if test "x$ac_cv_lib_superlu_Destroy_SuperMatrix_Store" = xyes; then :
16727 superlu_use="yes";superlu_lib="${superlu_lib_path}-lsuperlu"
16728 else
16729 superlu_use="";superlu_lib=""
16730 fi
16731
16732 LDFLAGS=${LDFLAGS_SAVE};
16733
16734
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ----------- begin processing APP configure options ---------" >&5
16736 $as_echo "----------- begin processing APP configure options ---------" >&6; }
16737
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want pedantic ANSI compilation" >&5
16739 $as_echo_n "checking whether you want pedantic ANSI compilation... " >&6; }
16740 # Check whether --enable-pansi was given.
16741 if test "${enable_pansi+set}" = set; then :
16742 enableval=$enable_pansi; pansi_use="yes"
16743 else
16744 pansi_use=""
16745
16746 fi
16747
16748 if test -z "${pansi_use}"; then
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16750 $as_echo "no" >&6; }
16751 wall=""
16752 wall_pedantic=""
16753 wall_pedantic_ansi=""
16754 pedantic_ansi=""
16755 else
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757 $as_echo "yes" >&6; }
16758 wall="-Wall"
16759 wall_pedantic="-Wall -pedantic"
16760 wall_pedantic_ansi="-Wall -pedantic -ansi"
16761 pedantic_ansi="-pedantic -ansi"
16762 fi
16763
16764
16765
16766
16767
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want profiling" >&5
16769 $as_echo_n "checking whether you want profiling... " >&6; }
16770 # Check whether --enable-gprof was given.
16771 if test "${enable_gprof+set}" = set; then :
16772 enableval=$enable_gprof; gprof_use="yes"
16773 else
16774 gprof_use=""
16775
16776 fi
16777
16778 if test -z "${gprof_use}"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16780 $as_echo "no" >&6; }
16781 profile=""
16782 profile_lib=""
16783 else
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16785 $as_echo "yes" >&6; }
16786 profile="-pg"
16787 profile_lib="-pg"
16788 fi
16789
16790
16791
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want ElectricFence" >&5
16793 $as_echo_n "checking whether you want ElectricFence... " >&6; }
16794 # Check whether --enable-efence was given.
16795 if test "${enable_efence+set}" = set; then :
16796 enableval=$enable_efence; efence_use="yes"
16797 else
16798 efence_use=""
16799
16800 fi
16801
16802 if test -z "${efence_use}"; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16804 $as_echo "no" >&6; }
16805 zfence="";
16806 zfence_lib="";
16807 else
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ...poking around for it" >&5
16809 $as_echo "yes ...poking around for it" >&6; }
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
16811 $as_echo_n "checking for main in -lefence... " >&6; }
16812 if ${ac_cv_lib_efence_main+:} false; then :
16813 $as_echo_n "(cached) " >&6
16814 else
16815 ac_check_lib_save_LIBS=$LIBS
16816 LIBS="-lefence $LIBS"
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819
16820
16821 int
16822 main ()
16823 {
16824 return main ();
16825 ;
16826 return 0;
16827 }
16828 _ACEOF
16829 if ac_fn_c_try_link "$LINENO"; then :
16830 ac_cv_lib_efence_main=yes
16831 else
16832 ac_cv_lib_efence_main=no
16833 fi
16834 rm -f core conftest.err conftest.$ac_objext \
16835 conftest$ac_exeext conftest.$ac_ext
16836 LIBS=$ac_check_lib_save_LIBS
16837 fi
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
16839 $as_echo "$ac_cv_lib_efence_main" >&6; }
16840 if test "x$ac_cv_lib_efence_main" = xyes; then :
16841 efence_use="yes";zfence="zfence";zfence_lib="-lefence"
16842 else
16843 efence_use="";zfence="";zfence_lib=""
16844 fi
16845
16846 fi
16847
16848
16849
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you want to build library test programs" >&5
16851 $as_echo_n "checking whether you want to build library test programs... " >&6; }
16852 # Check whether --enable-vtst was given.
16853 if test "${enable_vtst+set}" = set; then :
16854 enableval=$enable_vtst; vtst="tests";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16855 $as_echo "yes" >&6; }
16856 else
16857 vtst="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16858 $as_echo "no" >&6; }
16859
16860 fi
16861
16862
16863
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ------------ end processing APP configure options ----------" >&5
16865 $as_echo "------------ end processing APP configure options ----------" >&6; }
16866
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- begin configuring for MALOC linkage ------------" >&5
16868 $as_echo "---------- begin configuring for MALOC linkage ------------" >&6; }
16869
16870
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_INCLUDE" >&5
16872 $as_echo_n "checking whether your environment defines FETK_INCLUDE... " >&6; }
16873 if test -n "${FETK_INCLUDE}"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16875 $as_echo "yes" >&6; }
16876 maloc_inc_path="-I${FETK_INCLUDE} ";
16877 else
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16879 $as_echo "no" >&6; }
16880 maloc_inc_path="-I${HOME}/include ";
16881 fi
16882
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
16884 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
16885 if test -n "${FETK_LIBRARY}"; then
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16887 $as_echo "yes" >&6; }
16888 maloc_lib_path="-L${FETK_LIBRARY} ";
16889 else
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16891 $as_echo "no" >&6; }
16892 maloc_lib_path="-L${HOME}/lib ";
16893 fi
16894
16895 LDFLAGS_SAVE=${LDFLAGS};
16896 CPPFLAGS_SAVE=${CPPFLAGS};
16897 LDFLAGS=${maloc_lib_path};
16898 CPPFLAGS=${maloc_inc_path};
16899 maloc_found="";
16900 ac_fn_c_check_header_mongrel "$LINENO" "maloc/maloc.h" "ac_cv_header_maloc_maloc_h" "$ac_includes_default"
16901 if test "x$ac_cv_header_maloc_maloc_h" = xyes; then :
16902 maloc_found="yes";maloc_inc="${maloc_inc_path}"
16903 else
16904 maloc_found="";maloc_inc=""
16905 fi
16906
16907
16908 if test -n "${maloc_found}"; then
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maloc_link in -lmaloc" >&5
16910 $as_echo_n "checking for maloc_link in -lmaloc... " >&6; }
16911 if ${ac_cv_lib_maloc_maloc_link+:} false; then :
16912 $as_echo_n "(cached) " >&6
16913 else
16914 ac_check_lib_save_LIBS=$LIBS
16915 LIBS="-lmaloc ${maloc_lib_path}-lmaloc ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16918
16919 /* Override any GCC internal prototype to avoid an error.
16920 Use char because int might match the return type of a GCC
16921 builtin and then its argument prototype would still apply. */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 char maloc_link ();
16926 int
16927 main ()
16928 {
16929 return maloc_link ();
16930 ;
16931 return 0;
16932 }
16933 _ACEOF
16934 if ac_fn_c_try_link "$LINENO"; then :
16935 ac_cv_lib_maloc_maloc_link=yes
16936 else
16937 ac_cv_lib_maloc_maloc_link=no
16938 fi
16939 rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16942 fi
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maloc_maloc_link" >&5
16944 $as_echo "$ac_cv_lib_maloc_maloc_link" >&6; }
16945 if test "x$ac_cv_lib_maloc_maloc_link" = xyes; then :
16946 maloc_found="yes";maloc_lib="${maloc_lib_path}-lmaloc"
16947 else
16948 maloc_found="";maloc_lib=""
16949 fi
16950
16951 fi
16952 if test -z "${maloc_found}"; then
16953 as_fn_error $? "MALOC libraries OR headers missing ...EXITING ON ERROR" "$LINENO" 5
16954 else
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MALOC libraries AND headers were found ...rocking on..." >&5
16956 $as_echo "MALOC libraries AND headers were found ...rocking on..." >&6; }
16957 fi
16958
16959 LDFLAGS=${LDFLAGS_SAVE};
16960 CPPFLAGS=${CPPFLAGS_SAVE};
16961
16962
16963
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maloc_needs_rl in -lmaloc" >&5
16965 $as_echo_n "checking for maloc_needs_rl in -lmaloc... " >&6; }
16966 if ${ac_cv_lib_maloc_maloc_needs_rl+:} false; then :
16967 $as_echo_n "(cached) " >&6
16968 else
16969 ac_check_lib_save_LIBS=$LIBS
16970 LIBS="-lmaloc ${maloc_lib} ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16973
16974 /* Override any GCC internal prototype to avoid an error.
16975 Use char because int might match the return type of a GCC
16976 builtin and then its argument prototype would still apply. */
16977 #ifdef __cplusplus
16978 extern "C"
16979 #endif
16980 char maloc_needs_rl ();
16981 int
16982 main ()
16983 {
16984 return maloc_needs_rl ();
16985 ;
16986 return 0;
16987 }
16988 _ACEOF
16989 if ac_fn_c_try_link "$LINENO"; then :
16990 ac_cv_lib_maloc_maloc_needs_rl=yes
16991 else
16992 ac_cv_lib_maloc_maloc_needs_rl=no
16993 fi
16994 rm -f core conftest.err conftest.$ac_objext \
16995 conftest$ac_exeext conftest.$ac_ext
16996 LIBS=$ac_check_lib_save_LIBS
16997 fi
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maloc_maloc_needs_rl" >&5
16999 $as_echo "$ac_cv_lib_maloc_maloc_needs_rl" >&6; }
17000 if test "x$ac_cv_lib_maloc_maloc_needs_rl" = xyes; then :
17001 rl_use="yes"
17002 else
17003 rl_use=""
17004 fi
17005
17006
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maloc_needs_mpi in -lmaloc" >&5
17008 $as_echo_n "checking for maloc_needs_mpi in -lmaloc... " >&6; }
17009 if ${ac_cv_lib_maloc_maloc_needs_mpi+:} false; then :
17010 $as_echo_n "(cached) " >&6
17011 else
17012 ac_check_lib_save_LIBS=$LIBS
17013 LIBS="-lmaloc ${maloc_lib} ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016
17017 /* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17020 #ifdef __cplusplus
17021 extern "C"
17022 #endif
17023 char maloc_needs_mpi ();
17024 int
17025 main ()
17026 {
17027 return maloc_needs_mpi ();
17028 ;
17029 return 0;
17030 }
17031 _ACEOF
17032 if ac_fn_c_try_link "$LINENO"; then :
17033 ac_cv_lib_maloc_maloc_needs_mpi=yes
17034 else
17035 ac_cv_lib_maloc_maloc_needs_mpi=no
17036 fi
17037 rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
17039 LIBS=$ac_check_lib_save_LIBS
17040 fi
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maloc_maloc_needs_mpi" >&5
17042 $as_echo "$ac_cv_lib_maloc_maloc_needs_mpi" >&6; }
17043 if test "x$ac_cv_lib_maloc_maloc_needs_mpi" = xyes; then :
17044 mpi_use="yes"
17045 else
17046 mpi_use=""
17047 fi
17048
17049
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- end configuring for MALOC linkage --------------" >&5
17051 $as_echo "---------- end configuring for MALOC linkage --------------" >&6; }
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- begin configuring for GAMER linkage ---------------" >&5
17054 $as_echo "---------- begin configuring for GAMER linkage ---------------" >&6; }
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_INCLUDE" >&5
17056 $as_echo_n "checking whether your environment defines FETK_INCLUDE... " >&6; }
17057 if test -n "${FETK_INCLUDE}"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17059 $as_echo "yes" >&6; }
17060 gamer_inc_path="-I${FETK_INCLUDE} ";
17061 else
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17064 gamer_inc_path="";
17065 fi
17066
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your environment defines FETK_LIBRARY" >&5
17068 $as_echo_n "checking whether your environment defines FETK_LIBRARY... " >&6; }
17069 if test -n "${FETK_LIBRARY}"; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17071 $as_echo "yes" >&6; }
17072 gamer_lib_path="-L${FETK_LIBRARY} ";
17073 else
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17075 $as_echo "no" >&6; }
17076 gamer_lib_path="";
17077 fi
17078
17079 LDFLAGS_SAVE=${LDFLAGS};
17080 CPPFLAGS_SAVE=${CPPFLAGS};
17081 LDFLAGS=${gamer_lib_path};
17082 CPPFLAGS=${gamer_inc_path};
17083 gamer_found="";
17084 ac_ext=cpp
17085 ac_cpp='$CXXCPP $CPPFLAGS'
17086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17089
17090
17091 ac_fn_cxx_check_header_mongrel "$LINENO" "gamer/gamer.h" "ac_cv_header_gamer_gamer_h" "$ac_includes_default"
17092 if test "x$ac_cv_header_gamer_gamer_h" = xyes; then :
17093 gamer_found="yes";gamer_inc="${gamer_inc_path}"
17094 else
17095 gamer_found="";gamer_inc=""
17096 fi
17097
17098
17099 if test -n "${gamer_found}"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gamer_link in -lgamer" >&5
17101 $as_echo_n "checking for gamer_link in -lgamer... " >&6; }
17102 if ${ac_cv_lib_gamer_gamer_link+:} false; then :
17103 $as_echo_n "(cached) " >&6
17104 else
17105 ac_check_lib_save_LIBS=$LIBS
17106 LIBS="-lgamer ${gamer_lib_path}-lgamer -ltetgen -ltriangle ${maloc_lib} ${mpi_lib} ${rl_lib} ${liberty_lib} ${socket_lib} ${nsl_lib} ${thread_lib} ${math_lib} ${zfence_lib} ${profile_lib} $LIBS"
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h. */
17109
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17113 #ifdef __cplusplus
17114 extern "C"
17115 #endif
17116 char gamer_link ();
17117 int
17118 main ()
17119 {
17120 return gamer_link ();
17121 ;
17122 return 0;
17123 }
17124 _ACEOF
17125 if ac_fn_cxx_try_link "$LINENO"; then :
17126 ac_cv_lib_gamer_gamer_link=yes
17127 else
17128 ac_cv_lib_gamer_gamer_link=no
17129 fi
17130 rm -f core conftest.err conftest.$ac_objext \
17131 conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gamer_gamer_link" >&5
17135 $as_echo "$ac_cv_lib_gamer_gamer_link" >&6; }
17136 if test "x$ac_cv_lib_gamer_gamer_link" = xyes; then :
17137 gamer_found="yes";gamer_lib="${gamer_lib_path}-lgamer -ltetgen -ltriangle"
17138 else
17139 gamer_found="";gamer_lib=""
17140 fi
17141
17142 fi
17143 if test -z "${gamer_found}"; then
17144 as_fn_error $? "GAMer libraries OR headers missing ...EXITING ON ERROR" "$LINENO" 5
17145 else
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GAMer libraries AND headers were found ...rocking on..." >&5
17147 $as_echo "GAMer libraries AND headers were found ...rocking on..." >&6; }
17148 fi
17149
17150 LDFLAGS=${LDFLAGS_SAVE};
17151 CPPFLAGS=${CPPFLAGS_SAVE};
17152
17153
17154
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ---------- end configuring for GAMER linkage -----------------" >&5
17156 $as_echo "---------- end configuring for GAMER linkage -----------------" >&6; }
17157
17158 ac_config_files="$ac_config_files Makefile"
17159
17160 cat >confcache <<\_ACEOF
17161 # This file is a shell script that caches the results of configure
17162 # tests run on this system so they can be shared between configure
17163 # scripts and configure runs, see configure's option --config-cache.
17164 # It is not useful on other systems. If it contains results you don't
17165 # want to keep, you may remove or edit it.
17166 #
17167 # config.status only pays attention to the cache file if you give it
17168 # the --recheck option to rerun configure.
17169 #
17170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17172 # following values.
17173
17174 _ACEOF
17175
17176 # The following way of writing the cache mishandles newlines in values,
17177 # but we know of no workaround that is simple, portable, and efficient.
17178 # So, we kill variables containing newlines.
17179 # Ultrix sh set writes to stderr and can't be redirected directly,
17180 # and sets the high bit in the cache file unless we assign to the vars.
17181 (
17182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17183 eval ac_val=\$$ac_var
17184 case $ac_val in #(
17185 *${as_nl}*)
17186 case $ac_var in #(
17187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17189 esac
17190 case $ac_var in #(
17191 _ | IFS | as_nl) ;; #(
17192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17193 *) { eval $ac_var=; unset $ac_var;} ;;
17194 esac ;;
17195 esac
17196 done
17197
17198 (set) 2>&1 |
17199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17200 *${as_nl}ac_space=\ *)
17201 # `set' does not quote correctly, so add quotes: double-quote
17202 # substitution turns \\\\ into \\, and sed turns \\ into \.
17203 sed -n \
17204 "s/'/'\\\\''/g;
17205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17206 ;; #(
17207 *)
17208 # `set' quotes correctly as required by POSIX, so do not add quotes.
17209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17210 ;;
17211 esac |
17212 sort
17213 ) |
17214 sed '
17215 /^ac_cv_env_/b end
17216 t clear
17217 :clear
17218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17219 t end
17220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17221 :end' >>confcache
17222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17223 if test -w "$cache_file"; then
17224 if test "x$cache_file" != "x/dev/null"; then
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17226 $as_echo "$as_me: updating cache $cache_file" >&6;}
17227 if test ! -f "$cache_file" || test -h "$cache_file"; then
17228 cat confcache >"$cache_file"
17229 else
17230 case $cache_file in #(
17231 */* | ?:*)
17232 mv -f confcache "$cache_file"$$ &&
17233 mv -f "$cache_file"$$ "$cache_file" ;; #(
17234 *)
17235 mv -f confcache "$cache_file" ;;
17236 esac
17237 fi
17238 fi
17239 else
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17241 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17242 fi
17243 fi
17244 rm -f confcache
17245
17246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17247 # Let make expand exec_prefix.
17248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17249
17250 # Transform confdefs.h into DEFS.
17251 # Protect against shell expansion while executing Makefile rules.
17252 # Protect against Makefile macro expansion.
17253 #
17254 # If the first sed substitution is executed (which looks for macros that
17255 # take arguments), then branch to the quote section. Otherwise,
17256 # look for a macro that doesn't take arguments.
17257 ac_script='
17258 :mline
17259 /\\$/{
17260 N
17261 s,\\\n,,
17262 b mline
17263 }
17264 t clear
17265 :clear
17266 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17267 t quote
17268 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17269 t quote
17270 b any
17271 :quote
17272 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17273 s/\[/\\&/g
17274 s/\]/\\&/g
17275 s/\$/$$/g
17276 H
17277 :any
17278 ${
17279 g
17280 s/^\n//
17281 s/\n/ /g
17282 p
17283 }
17284 '
17285 DEFS=`sed -n "$ac_script" confdefs.h`
17286
17287
17288 ac_libobjs=
17289 ac_ltlibobjs=
17290 U=
17291 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17292 # 1. Remove the extension, and $U if already installed.
17293 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17294 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17295 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17296 # will be set to the directory where LIBOBJS objects are built.
17297 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17298 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17299 done
17300 LIBOBJS=$ac_libobjs
17301
17302 LTLIBOBJS=$ac_ltlibobjs
17303
17304
17305 if test -n "$EXEEXT"; then
17306 am__EXEEXT_TRUE=
17307 am__EXEEXT_FALSE='#'
17308 else
17309 am__EXEEXT_TRUE='#'
17310 am__EXEEXT_FALSE=
17311 fi
17312
17313 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17314 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316 fi
17317 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17318 as_fn_error $? "conditional \"AMDEP\" was never defined.
17319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320 fi
17321 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17322 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324 fi
17325 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17326 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17328 fi
17329
17330 : "${CONFIG_STATUS=./config.status}"
17331 ac_write_fail=0
17332 ac_clean_files_save=$ac_clean_files
17333 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17335 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17336 as_write_fail=0
17337 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17338 #! $SHELL
17339 # Generated by $as_me.
17340 # Run this file to recreate the current configuration.
17341 # Compiler output produced by configure, useful for debugging
17342 # configure, is in config.log if it exists.
17343
17344 debug=false
17345 ac_cs_recheck=false
17346 ac_cs_silent=false
17347
17348 SHELL=\${CONFIG_SHELL-$SHELL}
17349 export SHELL
17350 _ASEOF
17351 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17352 ## -------------------- ##
17353 ## M4sh Initialization. ##
17354 ## -------------------- ##
17355
17356 # Be more Bourne compatible
17357 DUALCASE=1; export DUALCASE # for MKS sh
17358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17359 emulate sh
17360 NULLCMD=:
17361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17362 # is contrary to our usage. Disable this feature.
17363 alias -g '${1+"$@"}'='"$@"'
17364 setopt NO_GLOB_SUBST
17365 else
17366 case `(set -o) 2>/dev/null` in #(
17367 *posix*) :
17368 set -o posix ;; #(
17369 *) :
17370 ;;
17371 esac
17372 fi
17373
17374
17375 as_nl='
17376 '
17377 export as_nl
17378 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17379 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17380 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17382 # Prefer a ksh shell builtin over an external printf program on Solaris,
17383 # but without wasting forks for bash or zsh.
17384 if test -z "$BASH_VERSION$ZSH_VERSION" \
17385 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17386 as_echo='print -r --'
17387 as_echo_n='print -rn --'
17388 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17389 as_echo='printf %s\n'
17390 as_echo_n='printf %s'
17391 else
17392 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17393 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17394 as_echo_n='/usr/ucb/echo -n'
17395 else
17396 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17397 as_echo_n_body='eval
17398 arg=$1;
17399 case $arg in #(
17400 *"$as_nl"*)
17401 expr "X$arg" : "X\\(.*\\)$as_nl";
17402 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17403 esac;
17404 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17405 '
17406 export as_echo_n_body
17407 as_echo_n='sh -c $as_echo_n_body as_echo'
17408 fi
17409 export as_echo_body
17410 as_echo='sh -c $as_echo_body as_echo'
17411 fi
17412
17413 # The user is always right.
17414 if test "${PATH_SEPARATOR+set}" != set; then
17415 PATH_SEPARATOR=:
17416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17418 PATH_SEPARATOR=';'
17419 }
17420 fi
17421
17422
17423 # IFS
17424 # We need space, tab and new line, in precisely that order. Quoting is
17425 # there to prevent editors from complaining about space-tab.
17426 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17427 # splitting by setting IFS to empty value.)
17428 IFS=" "" $as_nl"
17429
17430 # Find who we are. Look in the path if we contain no directory separator.
17431 as_myself=
17432 case $0 in #((
17433 *[\\/]* ) as_myself=$0 ;;
17434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435 for as_dir in $PATH
17436 do
17437 IFS=$as_save_IFS
17438 test -z "$as_dir" && as_dir=.
17439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17440 done
17441 IFS=$as_save_IFS
17442
17443 ;;
17444 esac
17445 # We did not find ourselves, most probably we were run as `sh COMMAND'
17446 # in which case we are not to be found in the path.
17447 if test "x$as_myself" = x; then
17448 as_myself=$0
17449 fi
17450 if test ! -f "$as_myself"; then
17451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17452 exit 1
17453 fi
17454
17455 # Unset variables that we do not need and which cause bugs (e.g. in
17456 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17457 # suppresses any "Segmentation fault" message there. '((' could
17458 # trigger a bug in pdksh 5.2.14.
17459 for as_var in BASH_ENV ENV MAIL MAILPATH
17460 do eval test x\${$as_var+set} = xset \
17461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17462 done
17463 PS1='$ '
17464 PS2='> '
17465 PS4='+ '
17466
17467 # NLS nuisances.
17468 LC_ALL=C
17469 export LC_ALL
17470 LANGUAGE=C
17471 export LANGUAGE
17472
17473 # CDPATH.
17474 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17475
17476
17477 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17478 # ----------------------------------------
17479 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17480 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17481 # script with STATUS, using 1 if that was 0.
17482 as_fn_error ()
17483 {
17484 as_status=$1; test $as_status -eq 0 && as_status=1
17485 if test "$4"; then
17486 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17487 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17488 fi
17489 $as_echo "$as_me: error: $2" >&2
17490 as_fn_exit $as_status
17491 } # as_fn_error
17492
17493
17494 # as_fn_set_status STATUS
17495 # -----------------------
17496 # Set $? to STATUS, without forking.
17497 as_fn_set_status ()
17498 {
17499 return $1
17500 } # as_fn_set_status
17501
17502 # as_fn_exit STATUS
17503 # -----------------
17504 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17505 as_fn_exit ()
17506 {
17507 set +e
17508 as_fn_set_status $1
17509 exit $1
17510 } # as_fn_exit
17511
17512 # as_fn_unset VAR
17513 # ---------------
17514 # Portably unset VAR.
17515 as_fn_unset ()
17516 {
17517 { eval $1=; unset $1;}
17518 }
17519 as_unset=as_fn_unset
17520 # as_fn_append VAR VALUE
17521 # ----------------------
17522 # Append the text in VALUE to the end of the definition contained in VAR. Take
17523 # advantage of any shell optimizations that allow amortized linear growth over
17524 # repeated appends, instead of the typical quadratic growth present in naive
17525 # implementations.
17526 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17527 eval 'as_fn_append ()
17528 {
17529 eval $1+=\$2
17530 }'
17531 else
17532 as_fn_append ()
17533 {
17534 eval $1=\$$1\$2
17535 }
17536 fi # as_fn_append
17537
17538 # as_fn_arith ARG...
17539 # ------------------
17540 # Perform arithmetic evaluation on the ARGs, and store the result in the
17541 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17542 # must be portable across $(()) and expr.
17543 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17544 eval 'as_fn_arith ()
17545 {
17546 as_val=$(( $* ))
17547 }'
17548 else
17549 as_fn_arith ()
17550 {
17551 as_val=`expr "$@" || test $? -eq 1`
17552 }
17553 fi # as_fn_arith
17554
17555
17556 if expr a : '\(a\)' >/dev/null 2>&1 &&
17557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17558 as_expr=expr
17559 else
17560 as_expr=false
17561 fi
17562
17563 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17564 as_basename=basename
17565 else
17566 as_basename=false
17567 fi
17568
17569 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17570 as_dirname=dirname
17571 else
17572 as_dirname=false
17573 fi
17574
17575 as_me=`$as_basename -- "$0" ||
17576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17577 X"$0" : 'X\(//\)$' \| \
17578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17579 $as_echo X/"$0" |
17580 sed '/^.*\/\([^/][^/]*\)\/*$/{
17581 s//\1/
17582 q
17583 }
17584 /^X\/\(\/\/\)$/{
17585 s//\1/
17586 q
17587 }
17588 /^X\/\(\/\).*/{
17589 s//\1/
17590 q
17591 }
17592 s/.*/./; q'`
17593
17594 # Avoid depending upon Character Ranges.
17595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17598 as_cr_digits='0123456789'
17599 as_cr_alnum=$as_cr_Letters$as_cr_digits
17600
17601 ECHO_C= ECHO_N= ECHO_T=
17602 case `echo -n x` in #(((((
17603 -n*)
17604 case `echo 'xy\c'` in
17605 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17606 xy) ECHO_C='\c';;
17607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17608 ECHO_T=' ';;
17609 esac;;
17610 *)
17611 ECHO_N='-n';;
17612 esac
17613
17614 rm -f conf$$ conf$$.exe conf$$.file
17615 if test -d conf$$.dir; then
17616 rm -f conf$$.dir/conf$$.file
17617 else
17618 rm -f conf$$.dir
17619 mkdir conf$$.dir 2>/dev/null
17620 fi
17621 if (echo >conf$$.file) 2>/dev/null; then
17622 if ln -s conf$$.file conf$$ 2>/dev/null; then
17623 as_ln_s='ln -s'
17624 # ... but there are two gotchas:
17625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17627 # In both cases, we have to default to `cp -p'.
17628 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17629 as_ln_s='cp -p'
17630 elif ln conf$$.file conf$$ 2>/dev/null; then
17631 as_ln_s=ln
17632 else
17633 as_ln_s='cp -p'
17634 fi
17635 else
17636 as_ln_s='cp -p'
17637 fi
17638 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17639 rmdir conf$$.dir 2>/dev/null
17640
17641
17642 # as_fn_mkdir_p
17643 # -------------
17644 # Create "$as_dir" as a directory, including parents if necessary.
17645 as_fn_mkdir_p ()
17646 {
17647
17648 case $as_dir in #(
17649 -*) as_dir=./$as_dir;;
17650 esac
17651 test -d "$as_dir" || eval $as_mkdir_p || {
17652 as_dirs=
17653 while :; do
17654 case $as_dir in #(
17655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17656 *) as_qdir=$as_dir;;
17657 esac
17658 as_dirs="'$as_qdir' $as_dirs"
17659 as_dir=`$as_dirname -- "$as_dir" ||
17660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17661 X"$as_dir" : 'X\(//\)[^/]' \| \
17662 X"$as_dir" : 'X\(//\)$' \| \
17663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17664 $as_echo X"$as_dir" |
17665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17666 s//\1/
17667 q
17668 }
17669 /^X\(\/\/\)[^/].*/{
17670 s//\1/
17671 q
17672 }
17673 /^X\(\/\/\)$/{
17674 s//\1/
17675 q
17676 }
17677 /^X\(\/\).*/{
17678 s//\1/
17679 q
17680 }
17681 s/.*/./; q'`
17682 test -d "$as_dir" && break
17683 done
17684 test -z "$as_dirs" || eval "mkdir $as_dirs"
17685 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17686
17687
17688 } # as_fn_mkdir_p
17689 if mkdir -p . 2>/dev/null; then
17690 as_mkdir_p='mkdir -p "$as_dir"'
17691 else
17692 test -d ./-p && rmdir ./-p
17693 as_mkdir_p=false
17694 fi
17695
17696 if test -x / >/dev/null 2>&1; then
17697 as_test_x='test -x'
17698 else
17699 if ls -dL / >/dev/null 2>&1; then
17700 as_ls_L_option=L
17701 else
17702 as_ls_L_option=
17703 fi
17704 as_test_x='
17705 eval sh -c '\''
17706 if test -d "$1"; then
17707 test -d "$1/.";
17708 else
17709 case $1 in #(
17710 -*)set "./$1";;
17711 esac;
17712 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17713 ???[sx]*):;;*)false;;esac;fi
17714 '\'' sh
17715 '
17716 fi
17717 as_executable_p=$as_test_x
17718
17719 # Sed expression to map a string onto a valid CPP name.
17720 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17721
17722 # Sed expression to map a string onto a valid variable name.
17723 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17724
17725
17726 exec 6>&1
17727 ## ----------------------------------- ##
17728 ## Main body of $CONFIG_STATUS script. ##
17729 ## ----------------------------------- ##
17730 _ASEOF
17731 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17732
17733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17734 # Save the log message, to keep $0 and so on meaningful, and to
17735 # report actual input values of CONFIG_FILES etc. instead of their
17736 # values after options handling.
17737 ac_log="
17738 This file was extended by gamer $as_me 1.0, which was
17739 generated by GNU Autoconf 2.68. Invocation command line was
17740
17741 CONFIG_FILES = $CONFIG_FILES
17742 CONFIG_HEADERS = $CONFIG_HEADERS
17743 CONFIG_LINKS = $CONFIG_LINKS
17744 CONFIG_COMMANDS = $CONFIG_COMMANDS
17745 $ $0 $@
17746
17747 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17748 "
17749
17750 _ACEOF
17751
17752 case $ac_config_files in *"
17753 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17754 esac
17755
17756
17757
17758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17759 # Files that config.status was made for.
17760 config_files="$ac_config_files"
17761 config_commands="$ac_config_commands"
17762
17763 _ACEOF
17764
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17766 ac_cs_usage="\
17767 \`$as_me' instantiates files and other configuration actions
17768 from templates according to the current configuration. Unless the files
17769 and actions are specified as TAGs, all are instantiated by default.
17770
17771 Usage: $0 [OPTION]... [TAG]...
17772
17773 -h, --help print this help, then exit
17774 -V, --version print version number and configuration settings, then exit
17775 --config print configuration, then exit
17776 -q, --quiet, --silent
17777 do not print progress messages
17778 -d, --debug don't remove temporary files
17779 --recheck update $as_me by reconfiguring in the same conditions
17780 --file=FILE[:TEMPLATE]
17781 instantiate the configuration file FILE
17782
17783 Configuration files:
17784 $config_files
17785
17786 Configuration commands:
17787 $config_commands
17788
17789 Report bugs to <[email protected]>."
17790
17791 _ACEOF
17792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17793 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17794 ac_cs_version="\\
17795 gamer config.status 1.0
17796 configured by $0, generated by GNU Autoconf 2.68,
17797 with options \\"\$ac_cs_config\\"
17798
17799 Copyright (C) 2010 Free Software Foundation, Inc.
17800 This config.status script is free software; the Free Software Foundation
17801 gives unlimited permission to copy, distribute and modify it."
17802
17803 ac_pwd='$ac_pwd'
17804 srcdir='$srcdir'
17805 INSTALL='$INSTALL'
17806 MKDIR_P='$MKDIR_P'
17807 AWK='$AWK'
17808 test -n "\$AWK" || AWK=awk
17809 _ACEOF
17810
17811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17812 # The default lists apply if the user does not specify any file.
17813 ac_need_defaults=:
17814 while test $# != 0
17815 do
17816 case $1 in
17817 --*=?*)
17818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17820 ac_shift=:
17821 ;;
17822 --*=)
17823 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17824 ac_optarg=
17825 ac_shift=:
17826 ;;
17827 *)
17828 ac_option=$1
17829 ac_optarg=$2
17830 ac_shift=shift
17831 ;;
17832 esac
17833
17834 case $ac_option in
17835 # Handling of the options.
17836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17837 ac_cs_recheck=: ;;
17838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17839 $as_echo "$ac_cs_version"; exit ;;
17840 --config | --confi | --conf | --con | --co | --c )
17841 $as_echo "$ac_cs_config"; exit ;;
17842 --debug | --debu | --deb | --de | --d | -d )
17843 debug=: ;;
17844 --file | --fil | --fi | --f )
17845 $ac_shift
17846 case $ac_optarg in
17847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17848 '') as_fn_error $? "missing file argument" ;;
17849 esac
17850 as_fn_append CONFIG_FILES " '$ac_optarg'"
17851 ac_need_defaults=false;;
17852 --he | --h | --help | --hel | -h )
17853 $as_echo "$ac_cs_usage"; exit ;;
17854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17855 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17856 ac_cs_silent=: ;;
17857
17858 # This is an error.
17859 -*) as_fn_error $? "unrecognized option: \`$1'
17860 Try \`$0 --help' for more information." ;;
17861
17862 *) as_fn_append ac_config_targets " $1"
17863 ac_need_defaults=false ;;
17864
17865 esac
17866 shift
17867 done
17868
17869 ac_configure_extra_args=
17870
17871 if $ac_cs_silent; then
17872 exec 6>/dev/null
17873 ac_configure_extra_args="$ac_configure_extra_args --silent"
17874 fi
17875
17876 _ACEOF
17877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17878 if \$ac_cs_recheck; then
17879 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17880 shift
17881 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17882 CONFIG_SHELL='$SHELL'
17883 export CONFIG_SHELL
17884 exec "\$@"
17885 fi
17886
17887 _ACEOF
17888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17889 exec 5>>config.log
17890 {
17891 echo
17892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17893 ## Running $as_me. ##
17894 _ASBOX
17895 $as_echo "$ac_log"
17896 } >&5
17897
17898 _ACEOF
17899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17900 #
17901 # INIT-COMMANDS
17902 #
17903 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17904
17905
17906 # The HP-UX ksh and POSIX shell print the target directory to stdout
17907 # if CDPATH is set.
17908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17909
17910 sed_quote_subst='$sed_quote_subst'
17911 double_quote_subst='$double_quote_subst'
17912 delay_variable_subst='$delay_variable_subst'
17913 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17914 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17915 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17916 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17917 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17918 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17919 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17920 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17921 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17922 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17923 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17924 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17925 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17926 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17927 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17928 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17929 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17930 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17931 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17932 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17933 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17934 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17935 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17936 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17937 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17938 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17939 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17940 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17941 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17942 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17943 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17944 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17945 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17946 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17947 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17948 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17949 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17950 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17951 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17952 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17953 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17954 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17955 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17956 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17957 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17958 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17959 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17960 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17961 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17962 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17963 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17964 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17965 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17966 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17967 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17968 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"`'
17969 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17970 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17971 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17972 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17973 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17974 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17975 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17976 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17977 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17978 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17979 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17980 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17981 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17982 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17983 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17984 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17985 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17986 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17987 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17988 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17989 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17990 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17991 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17992 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17993 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17994 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17995 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17996 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17997 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17998 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17999 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18000 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18001 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18002 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18003 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18004 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18005 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18006 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18007 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18008 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18009 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18010 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18011 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18012 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18013 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18014 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18015 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18016 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18017 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18018 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18019 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18020 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18021 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18022 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18023 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18024 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18025 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18026 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18027 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18028 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18029 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18030 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18031 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18032 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18033 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18034 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18035 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18036 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18037 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18038 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18039 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18040 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18041 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18042 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18043 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18044 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18045 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18046 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18047 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18048 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18049 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18050 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18051 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18052 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18053 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18054 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18055 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18056 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18057 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18058 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18059 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18060 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18061 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18062 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18063 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18064 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18065 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18066 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18067 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18068 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18069 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18070 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18071 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18072 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18073 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18074 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18075 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18076 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18077 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18078 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18079 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18080 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18081 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18082 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18083 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18084 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18085 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18086 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18087 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18088 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18089 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18090 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18091 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18092 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18093 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18094 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18095 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18096 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18097 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18098
18099 LTCC='$LTCC'
18100 LTCFLAGS='$LTCFLAGS'
18101 compiler='$compiler_DEFAULT'
18102
18103 # A function that is used when there is no print builtin or printf.
18104 func_fallback_echo ()
18105 {
18106 eval 'cat <<_LTECHO_EOF
18107 \$1
18108 _LTECHO_EOF'
18109 }
18110
18111 # Quote evaled strings.
18112 for var in SHELL \
18113 ECHO \
18114 SED \
18115 GREP \
18116 EGREP \
18117 FGREP \
18118 LD \
18119 NM \
18120 LN_S \
18121 lt_SP2NL \
18122 lt_NL2SP \
18123 reload_flag \
18124 OBJDUMP \
18125 deplibs_check_method \
18126 file_magic_cmd \
18127 file_magic_glob \
18128 want_nocaseglob \
18129 DLLTOOL \
18130 sharedlib_from_linklib_cmd \
18131 AR \
18132 AR_FLAGS \
18133 archiver_list_spec \
18134 STRIP \
18135 RANLIB \
18136 CC \
18137 CFLAGS \
18138 compiler \
18139 lt_cv_sys_global_symbol_pipe \
18140 lt_cv_sys_global_symbol_to_cdecl \
18141 lt_cv_sys_global_symbol_to_c_name_address \
18142 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18143 nm_file_list_spec \
18144 lt_prog_compiler_no_builtin_flag \
18145 lt_prog_compiler_pic \
18146 lt_prog_compiler_wl \
18147 lt_prog_compiler_static \
18148 lt_cv_prog_compiler_c_o \
18149 need_locks \
18150 MANIFEST_TOOL \
18151 DSYMUTIL \
18152 NMEDIT \
18153 LIPO \
18154 OTOOL \
18155 OTOOL64 \
18156 shrext_cmds \
18157 export_dynamic_flag_spec \
18158 whole_archive_flag_spec \
18159 compiler_needs_object \
18160 with_gnu_ld \
18161 allow_undefined_flag \
18162 no_undefined_flag \
18163 hardcode_libdir_flag_spec \
18164 hardcode_libdir_flag_spec_ld \
18165 hardcode_libdir_separator \
18166 exclude_expsyms \
18167 include_expsyms \
18168 file_list_spec \
18169 variables_saved_for_relink \
18170 libname_spec \
18171 library_names_spec \
18172 soname_spec \
18173 install_override_mode \
18174 finish_eval \
18175 old_striplib \
18176 striplib \
18177 compiler_lib_search_dirs \
18178 predep_objects \
18179 postdep_objects \
18180 predeps \
18181 postdeps \
18182 compiler_lib_search_path \
18183 LD_CXX \
18184 reload_flag_CXX \
18185 compiler_CXX \
18186 lt_prog_compiler_no_builtin_flag_CXX \
18187 lt_prog_compiler_pic_CXX \
18188 lt_prog_compiler_wl_CXX \
18189 lt_prog_compiler_static_CXX \
18190 lt_cv_prog_compiler_c_o_CXX \
18191 export_dynamic_flag_spec_CXX \
18192 whole_archive_flag_spec_CXX \
18193 compiler_needs_object_CXX \
18194 with_gnu_ld_CXX \
18195 allow_undefined_flag_CXX \
18196 no_undefined_flag_CXX \
18197 hardcode_libdir_flag_spec_CXX \
18198 hardcode_libdir_flag_spec_ld_CXX \
18199 hardcode_libdir_separator_CXX \
18200 exclude_expsyms_CXX \
18201 include_expsyms_CXX \
18202 file_list_spec_CXX \
18203 compiler_lib_search_dirs_CXX \
18204 predep_objects_CXX \
18205 postdep_objects_CXX \
18206 predeps_CXX \
18207 postdeps_CXX \
18208 compiler_lib_search_path_CXX; do
18209 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18210 *[\\\\\\\`\\"\\\$]*)
18211 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18212 ;;
18213 *)
18214 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18215 ;;
18216 esac
18217 done
18218
18219 # Double-quote double-evaled strings.
18220 for var in reload_cmds \
18221 old_postinstall_cmds \
18222 old_postuninstall_cmds \
18223 old_archive_cmds \
18224 extract_expsyms_cmds \
18225 old_archive_from_new_cmds \
18226 old_archive_from_expsyms_cmds \
18227 archive_cmds \
18228 archive_expsym_cmds \
18229 module_cmds \
18230 module_expsym_cmds \
18231 export_symbols_cmds \
18232 prelink_cmds \
18233 postlink_cmds \
18234 postinstall_cmds \
18235 postuninstall_cmds \
18236 finish_cmds \
18237 sys_lib_search_path_spec \
18238 sys_lib_dlsearch_path_spec \
18239 reload_cmds_CXX \
18240 old_archive_cmds_CXX \
18241 old_archive_from_new_cmds_CXX \
18242 old_archive_from_expsyms_cmds_CXX \
18243 archive_cmds_CXX \
18244 archive_expsym_cmds_CXX \
18245 module_cmds_CXX \
18246 module_expsym_cmds_CXX \
18247 export_symbols_cmds_CXX \
18248 prelink_cmds_CXX \
18249 postlink_cmds_CXX; do
18250 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18251 *[\\\\\\\`\\"\\\$]*)
18252 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18253 ;;
18254 *)
18255 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18256 ;;
18257 esac
18258 done
18259
18260 ac_aux_dir='$ac_aux_dir'
18261 xsi_shell='$xsi_shell'
18262 lt_shell_append='$lt_shell_append'
18263
18264 # See if we are running on zsh, and set the options which allow our
18265 # commands through without removal of \ escapes INIT.
18266 if test -n "\${ZSH_VERSION+set}" ; then
18267 setopt NO_GLOB_SUBST
18268 fi
18269
18270
18271 PACKAGE='$PACKAGE'
18272 VERSION='$VERSION'
18273 TIMESTAMP='$TIMESTAMP'
18274 RM='$RM'
18275 ofile='$ofile'
18276
18277
18278
18279
18280
18281
18282 _ACEOF
18283
18284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18285
18286 # Handling of arguments.
18287 for ac_config_target in $ac_config_targets
18288 do
18289 case $ac_config_target in
18290 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18291 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18292 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18293
18294 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18295 esac
18296 done
18297
18298
18299 # If the user did not use the arguments to specify the items to instantiate,
18300 # then the envvar interface is used. Set only those that are not.
18301 # We use the long form for the default assignment because of an extremely
18302 # bizarre bug on SunOS 4.1.3.
18303 if $ac_need_defaults; then
18304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18306 fi
18307
18308 # Have a temporary directory for convenience. Make it in the build tree
18309 # simply because there is no reason against having it here, and in addition,
18310 # creating and moving files from /tmp can sometimes cause problems.
18311 # Hook for its removal unless debugging.
18312 # Note that there is a small window in which the directory will not be cleaned:
18313 # after its creation but before its name has been assigned to `$tmp'.
18314 $debug ||
18315 {
18316 tmp= ac_tmp=
18317 trap 'exit_status=$?
18318 : "${ac_tmp:=$tmp}"
18319 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18320 ' 0
18321 trap 'as_fn_exit 1' 1 2 13 15
18322 }
18323 # Create a (secure) tmp directory for tmp files.
18324
18325 {
18326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18327 test -d "$tmp"
18328 } ||
18329 {
18330 tmp=./conf$$-$RANDOM
18331 (umask 077 && mkdir "$tmp")
18332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18333 ac_tmp=$tmp
18334
18335 # Set up the scripts for CONFIG_FILES section.
18336 # No need to generate them if there are no CONFIG_FILES.
18337 # This happens for instance with `./config.status config.h'.
18338 if test -n "$CONFIG_FILES"; then
18339
18340
18341 ac_cr=`echo X | tr X '\015'`
18342 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18343 # But we know of no other shell where ac_cr would be empty at this
18344 # point, so we can use a bashism as a fallback.
18345 if test "x$ac_cr" = x; then
18346 eval ac_cr=\$\'\\r\'
18347 fi
18348 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18349 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18350 ac_cs_awk_cr='\\r'
18351 else
18352 ac_cs_awk_cr=$ac_cr
18353 fi
18354
18355 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18356 _ACEOF
18357
18358
18359 {
18360 echo "cat >conf$$subs.awk <<_ACEOF" &&
18361 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18362 echo "_ACEOF"
18363 } >conf$$subs.sh ||
18364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18365 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18366 ac_delim='%!_!# '
18367 for ac_last_try in false false false false false :; do
18368 . ./conf$$subs.sh ||
18369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18370
18371 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18372 if test $ac_delim_n = $ac_delim_num; then
18373 break
18374 elif $ac_last_try; then
18375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18376 else
18377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18378 fi
18379 done
18380 rm -f conf$$subs.sh
18381
18382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18383 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18384 _ACEOF
18385 sed -n '
18386 h
18387 s/^/S["/; s/!.*/"]=/
18388 p
18389 g
18390 s/^[^!]*!//
18391 :repl
18392 t repl
18393 s/'"$ac_delim"'$//
18394 t delim
18395 :nl
18396 h
18397 s/\(.\{148\}\)..*/\1/
18398 t more1
18399 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18400 p
18401 n
18402 b repl
18403 :more1
18404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18405 p
18406 g
18407 s/.\{148\}//
18408 t nl
18409 :delim
18410 h
18411 s/\(.\{148\}\)..*/\1/
18412 t more2
18413 s/["\\]/\\&/g; s/^/"/; s/$/"/
18414 p
18415 b
18416 :more2
18417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18418 p
18419 g
18420 s/.\{148\}//
18421 t delim
18422 ' <conf$$subs.awk | sed '
18423 /^[^""]/{
18424 N
18425 s/\n//
18426 }
18427 ' >>$CONFIG_STATUS || ac_write_fail=1
18428 rm -f conf$$subs.awk
18429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18430 _ACAWK
18431 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18432 for (key in S) S_is_set[key] = 1
18433 FS = ""
18434
18435 }
18436 {
18437 line = $ 0
18438 nfields = split(line, field, "@")
18439 substed = 0
18440 len = length(field[1])
18441 for (i = 2; i < nfields; i++) {
18442 key = field[i]
18443 keylen = length(key)
18444 if (S_is_set[key]) {
18445 value = S[key]
18446 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18447 len += length(value) + length(field[++i])
18448 substed = 1
18449 } else
18450 len += 1 + keylen
18451 }
18452
18453 print line
18454 }
18455
18456 _ACAWK
18457 _ACEOF
18458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18459 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18460 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18461 else
18462 cat
18463 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18464 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18465 _ACEOF
18466
18467 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18468 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18469 # trailing colons and then remove the whole line if VPATH becomes empty
18470 # (actually we leave an empty line to preserve line numbers).
18471 if test "x$srcdir" = x.; then
18472 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18473 h
18474 s///
18475 s/^/:/
18476 s/[ ]*$/:/
18477 s/:\$(srcdir):/:/g
18478 s/:\${srcdir}:/:/g
18479 s/:@srcdir@:/:/g
18480 s/^:*//
18481 s/:*$//
18482 x
18483 s/\(=[ ]*\).*/\1/
18484 G
18485 s/\n//
18486 s/^[^=]*=[ ]*$//
18487 }'
18488 fi
18489
18490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18491 fi # test -n "$CONFIG_FILES"
18492
18493
18494 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18495 shift
18496 for ac_tag
18497 do
18498 case $ac_tag in
18499 :[FHLC]) ac_mode=$ac_tag; continue;;
18500 esac
18501 case $ac_mode$ac_tag in
18502 :[FHL]*:*);;
18503 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18504 :[FH]-) ac_tag=-:-;;
18505 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18506 esac
18507 ac_save_IFS=$IFS
18508 IFS=:
18509 set x $ac_tag
18510 IFS=$ac_save_IFS
18511 shift
18512 ac_file=$1
18513 shift
18514
18515 case $ac_mode in
18516 :L) ac_source=$1;;
18517 :[FH])
18518 ac_file_inputs=
18519 for ac_f
18520 do
18521 case $ac_f in
18522 -) ac_f="$ac_tmp/stdin";;
18523 *) # Look for the file first in the build tree, then in the source tree
18524 # (if the path is not absolute). The absolute path cannot be DOS-style,
18525 # because $ac_f cannot contain `:'.
18526 test -f "$ac_f" ||
18527 case $ac_f in
18528 [\\/$]*) false;;
18529 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18530 esac ||
18531 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18532 esac
18533 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18534 as_fn_append ac_file_inputs " '$ac_f'"
18535 done
18536
18537 # Let's still pretend it is `configure' which instantiates (i.e., don't
18538 # use $as_me), people would be surprised to read:
18539 # /* config.h. Generated by config.status. */
18540 configure_input='Generated from '`
18541 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18542 `' by configure.'
18543 if test x"$ac_file" != x-; then
18544 configure_input="$ac_file. $configure_input"
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18546 $as_echo "$as_me: creating $ac_file" >&6;}
18547 fi
18548 # Neutralize special characters interpreted by sed in replacement strings.
18549 case $configure_input in #(
18550 *\&* | *\|* | *\\* )
18551 ac_sed_conf_input=`$as_echo "$configure_input" |
18552 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18553 *) ac_sed_conf_input=$configure_input;;
18554 esac
18555
18556 case $ac_tag in
18557 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18559 esac
18560 ;;
18561 esac
18562
18563 ac_dir=`$as_dirname -- "$ac_file" ||
18564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18565 X"$ac_file" : 'X\(//\)[^/]' \| \
18566 X"$ac_file" : 'X\(//\)$' \| \
18567 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18568 $as_echo X"$ac_file" |
18569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18570 s//\1/
18571 q
18572 }
18573 /^X\(\/\/\)[^/].*/{
18574 s//\1/
18575 q
18576 }
18577 /^X\(\/\/\)$/{
18578 s//\1/
18579 q
18580 }
18581 /^X\(\/\).*/{
18582 s//\1/
18583 q
18584 }
18585 s/.*/./; q'`
18586 as_dir="$ac_dir"; as_fn_mkdir_p
18587 ac_builddir=.
18588
18589 case "$ac_dir" in
18590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18591 *)
18592 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18593 # A ".." for each directory in $ac_dir_suffix.
18594 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18595 case $ac_top_builddir_sub in
18596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18598 esac ;;
18599 esac
18600 ac_abs_top_builddir=$ac_pwd
18601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18602 # for backward compatibility:
18603 ac_top_builddir=$ac_top_build_prefix
18604
18605 case $srcdir in
18606 .) # We are building in place.
18607 ac_srcdir=.
18608 ac_top_srcdir=$ac_top_builddir_sub
18609 ac_abs_top_srcdir=$ac_pwd ;;
18610 [\\/]* | ?:[\\/]* ) # Absolute name.
18611 ac_srcdir=$srcdir$ac_dir_suffix;
18612 ac_top_srcdir=$srcdir
18613 ac_abs_top_srcdir=$srcdir ;;
18614 *) # Relative name.
18615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18616 ac_top_srcdir=$ac_top_build_prefix$srcdir
18617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18618 esac
18619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18620
18621
18622 case $ac_mode in
18623 :F)
18624 #
18625 # CONFIG_FILE
18626 #
18627
18628 case $INSTALL in
18629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18630 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18631 esac
18632 ac_MKDIR_P=$MKDIR_P
18633 case $MKDIR_P in
18634 [\\/$]* | ?:[\\/]* ) ;;
18635 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18636 esac
18637 _ACEOF
18638
18639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18640 # If the template does not know about datarootdir, expand it.
18641 # FIXME: This hack should be removed a few years after 2.60.
18642 ac_datarootdir_hack=; ac_datarootdir_seen=
18643 ac_sed_dataroot='
18644 /datarootdir/ {
18645 p
18646 q
18647 }
18648 /@datadir@/p
18649 /@docdir@/p
18650 /@infodir@/p
18651 /@localedir@/p
18652 /@mandir@/p'
18653 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18654 *datarootdir*) ac_datarootdir_seen=yes;;
18655 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18657 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18658 _ACEOF
18659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18660 ac_datarootdir_hack='
18661 s&@datadir@&$datadir&g
18662 s&@docdir@&$docdir&g
18663 s&@infodir@&$infodir&g
18664 s&@localedir@&$localedir&g
18665 s&@mandir@&$mandir&g
18666 s&\\\${datarootdir}&$datarootdir&g' ;;
18667 esac
18668 _ACEOF
18669
18670 # Neutralize VPATH when `$srcdir' = `.'.
18671 # Shell code in configure.ac might set extrasub.
18672 # FIXME: do we really want to maintain this feature?
18673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18674 ac_sed_extra="$ac_vpsub
18675 $extrasub
18676 _ACEOF
18677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18678 :t
18679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18680 s|@configure_input@|$ac_sed_conf_input|;t t
18681 s&@top_builddir@&$ac_top_builddir_sub&;t t
18682 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18683 s&@srcdir@&$ac_srcdir&;t t
18684 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18685 s&@top_srcdir@&$ac_top_srcdir&;t t
18686 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18687 s&@builddir@&$ac_builddir&;t t
18688 s&@abs_builddir@&$ac_abs_builddir&;t t
18689 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18690 s&@INSTALL@&$ac_INSTALL&;t t
18691 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18692 $ac_datarootdir_hack
18693 "
18694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18695 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18696
18697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18698 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18700 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18702 which seems to be undefined. Please make sure it is defined" >&5
18703 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18704 which seems to be undefined. Please make sure it is defined" >&2;}
18705
18706 rm -f "$ac_tmp/stdin"
18707 case $ac_file in
18708 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18709 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18710 esac \
18711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18712 ;;
18713
18714
18715 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18716 $as_echo "$as_me: executing $ac_file commands" >&6;}
18717 ;;
18718 esac
18719
18720
18721 case $ac_file$ac_mode in
18722 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18723 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18724 # are listed without --file. Let's play safe and only enable the eval
18725 # if we detect the quoting.
18726 case $CONFIG_FILES in
18727 *\'*) eval set x "$CONFIG_FILES" ;;
18728 *) set x $CONFIG_FILES ;;
18729 esac
18730 shift
18731 for mf
18732 do
18733 # Strip MF so we end up with the name of the file.
18734 mf=`echo "$mf" | sed -e 's/:.*$//'`
18735 # Check whether this is an Automake generated Makefile or not.
18736 # We used to match only the files named `Makefile.in', but
18737 # some people rename them; so instead we look at the file content.
18738 # Grep'ing the first line is not enough: some people post-process
18739 # each Makefile.in and add a new line on top of each file to say so.
18740 # Grep'ing the whole file is not good either: AIX grep has a line
18741 # limit of 2048, but all sed's we know have understand at least 4000.
18742 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18743 dirpart=`$as_dirname -- "$mf" ||
18744 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18745 X"$mf" : 'X\(//\)[^/]' \| \
18746 X"$mf" : 'X\(//\)$' \| \
18747 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18748 $as_echo X"$mf" |
18749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18750 s//\1/
18751 q
18752 }
18753 /^X\(\/\/\)[^/].*/{
18754 s//\1/
18755 q
18756 }
18757 /^X\(\/\/\)$/{
18758 s//\1/
18759 q
18760 }
18761 /^X\(\/\).*/{
18762 s//\1/
18763 q
18764 }
18765 s/.*/./; q'`
18766 else
18767 continue
18768 fi
18769 # Extract the definition of DEPDIR, am__include, and am__quote
18770 # from the Makefile without running `make'.
18771 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18772 test -z "$DEPDIR" && continue
18773 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18774 test -z "am__include" && continue
18775 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18776 # When using ansi2knr, U may be empty or an underscore; expand it
18777 U=`sed -n 's/^U = //p' < "$mf"`
18778 # Find all dependency output files, they are included files with
18779 # $(DEPDIR) in their names. We invoke sed twice because it is the
18780 # simplest approach to changing $(DEPDIR) to its actual value in the
18781 # expansion.
18782 for file in `sed -n "
18783 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18784 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18785 # Make sure the directory exists.
18786 test -f "$dirpart/$file" && continue
18787 fdir=`$as_dirname -- "$file" ||
18788 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18789 X"$file" : 'X\(//\)[^/]' \| \
18790 X"$file" : 'X\(//\)$' \| \
18791 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18792 $as_echo X"$file" |
18793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18794 s//\1/
18795 q
18796 }
18797 /^X\(\/\/\)[^/].*/{
18798 s//\1/
18799 q
18800 }
18801 /^X\(\/\/\)$/{
18802 s//\1/
18803 q
18804 }
18805 /^X\(\/\).*/{
18806 s//\1/
18807 q
18808 }
18809 s/.*/./; q'`
18810 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18811 # echo "creating $dirpart/$file"
18812 echo '# dummy' > "$dirpart/$file"
18813 done
18814 done
18815 }
18816 ;;
18817 "libtool":C)
18818
18819 # See if we are running on zsh, and set the options which allow our
18820 # commands through without removal of \ escapes.
18821 if test -n "${ZSH_VERSION+set}" ; then
18822 setopt NO_GLOB_SUBST
18823 fi
18824
18825 cfgfile="${ofile}T"
18826 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18827 $RM "$cfgfile"
18828
18829 cat <<_LT_EOF >> "$cfgfile"
18830 #! $SHELL
18831
18832 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18833 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18835 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18836 #
18837 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18838 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18839 # Inc.
18840 # Written by Gordon Matzigkeit, 1996
18841 #
18842 # This file is part of GNU Libtool.
18843 #
18844 # GNU Libtool is free software; you can redistribute it and/or
18845 # modify it under the terms of the GNU General Public License as
18846 # published by the Free Software Foundation; either version 2 of
18847 # the License, or (at your option) any later version.
18848 #
18849 # As a special exception to the GNU General Public License,
18850 # if you distribute this file as part of a program or library that
18851 # is built using GNU Libtool, you may include this file under the
18852 # same distribution terms that you use for the rest of that program.
18853 #
18854 # GNU Libtool is distributed in the hope that it will be useful,
18855 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18856 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18857 # GNU General Public License for more details.
18858 #
18859 # You should have received a copy of the GNU General Public License
18860 # along with GNU Libtool; see the file COPYING. If not, a copy
18861 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18862 # obtained by writing to the Free Software Foundation, Inc.,
18863 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18864
18865
18866 # The names of the tagged configurations supported by this script.
18867 available_tags="CXX "
18868
18869 # ### BEGIN LIBTOOL CONFIG
18870
18871 # Whether or not to build static libraries.
18872 build_old_libs=$enable_static
18873
18874 # Which release of libtool.m4 was used?
18875 macro_version=$macro_version
18876 macro_revision=$macro_revision
18877
18878 # Whether or not to build shared libraries.
18879 build_libtool_libs=$enable_shared
18880
18881 # What type of objects to build.
18882 pic_mode=$pic_mode
18883
18884 # Whether or not to optimize for fast installation.
18885 fast_install=$enable_fast_install
18886
18887 # Shell to use when invoking shell scripts.
18888 SHELL=$lt_SHELL
18889
18890 # An echo program that protects backslashes.
18891 ECHO=$lt_ECHO
18892
18893 # The host system.
18894 host_alias=$host_alias
18895 host=$host
18896 host_os=$host_os
18897
18898 # The build system.
18899 build_alias=$build_alias
18900 build=$build
18901 build_os=$build_os
18902
18903 # A sed program that does not truncate output.
18904 SED=$lt_SED
18905
18906 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18907 Xsed="\$SED -e 1s/^X//"
18908
18909 # A grep program that handles long lines.
18910 GREP=$lt_GREP
18911
18912 # An ERE matcher.
18913 EGREP=$lt_EGREP
18914
18915 # A literal string matcher.
18916 FGREP=$lt_FGREP
18917
18918 # A BSD- or MS-compatible name lister.
18919 NM=$lt_NM
18920
18921 # Whether we need soft or hard links.
18922 LN_S=$lt_LN_S
18923
18924 # What is the maximum length of a command?
18925 max_cmd_len=$max_cmd_len
18926
18927 # Object file suffix (normally "o").
18928 objext=$ac_objext
18929
18930 # Executable file suffix (normally "").
18931 exeext=$exeext
18932
18933 # whether the shell understands "unset".
18934 lt_unset=$lt_unset
18935
18936 # turn spaces into newlines.
18937 SP2NL=$lt_lt_SP2NL
18938
18939 # turn newlines into spaces.
18940 NL2SP=$lt_lt_NL2SP
18941
18942 # convert \$build file names to \$host format.
18943 to_host_file_cmd=$lt_cv_to_host_file_cmd
18944
18945 # convert \$build files to toolchain format.
18946 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18947
18948 # An object symbol dumper.
18949 OBJDUMP=$lt_OBJDUMP
18950
18951 # Method to check whether dependent libraries are shared objects.
18952 deplibs_check_method=$lt_deplibs_check_method
18953
18954 # Command to use when deplibs_check_method = "file_magic".
18955 file_magic_cmd=$lt_file_magic_cmd
18956
18957 # How to find potential files when deplibs_check_method = "file_magic".
18958 file_magic_glob=$lt_file_magic_glob
18959
18960 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18961 want_nocaseglob=$lt_want_nocaseglob
18962
18963 # DLL creation program.
18964 DLLTOOL=$lt_DLLTOOL
18965
18966 # Command to associate shared and link libraries.
18967 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18968
18969 # The archiver.
18970 AR=$lt_AR
18971
18972 # Flags to create an archive.
18973 AR_FLAGS=$lt_AR_FLAGS
18974
18975 # How to feed a file listing to the archiver.
18976 archiver_list_spec=$lt_archiver_list_spec
18977
18978 # A symbol stripping program.
18979 STRIP=$lt_STRIP
18980
18981 # Commands used to install an old-style archive.
18982 RANLIB=$lt_RANLIB
18983 old_postinstall_cmds=$lt_old_postinstall_cmds
18984 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18985
18986 # Whether to use a lock for old archive extraction.
18987 lock_old_archive_extraction=$lock_old_archive_extraction
18988
18989 # A C compiler.
18990 LTCC=$lt_CC
18991
18992 # LTCC compiler flags.
18993 LTCFLAGS=$lt_CFLAGS
18994
18995 # Take the output of nm and produce a listing of raw symbols and C names.
18996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18997
18998 # Transform the output of nm in a proper C declaration.
18999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19000
19001 # Transform the output of nm in a C name address pair.
19002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19003
19004 # Transform the output of nm in a C name address pair when lib prefix is needed.
19005 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19006
19007 # Specify filename containing input files for \$NM.
19008 nm_file_list_spec=$lt_nm_file_list_spec
19009
19010 # The root where to search for dependent libraries,and in which our libraries should be installed.
19011 lt_sysroot=$lt_sysroot
19012
19013 # The name of the directory that contains temporary libtool files.
19014 objdir=$objdir
19015
19016 # Used to examine libraries when file_magic_cmd begins with "file".
19017 MAGIC_CMD=$MAGIC_CMD
19018
19019 # Must we lock files when doing compilation?
19020 need_locks=$lt_need_locks
19021
19022 # Manifest tool.
19023 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19024
19025 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19026 DSYMUTIL=$lt_DSYMUTIL
19027
19028 # Tool to change global to local symbols on Mac OS X.
19029 NMEDIT=$lt_NMEDIT
19030
19031 # Tool to manipulate fat objects and archives on Mac OS X.
19032 LIPO=$lt_LIPO
19033
19034 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19035 OTOOL=$lt_OTOOL
19036
19037 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19038 OTOOL64=$lt_OTOOL64
19039
19040 # Old archive suffix (normally "a").
19041 libext=$libext
19042
19043 # Shared library suffix (normally ".so").
19044 shrext_cmds=$lt_shrext_cmds
19045
19046 # The commands to extract the exported symbol list from a shared archive.
19047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19048
19049 # Variables whose values should be saved in libtool wrapper scripts and
19050 # restored at link time.
19051 variables_saved_for_relink=$lt_variables_saved_for_relink
19052
19053 # Do we need the "lib" prefix for modules?
19054 need_lib_prefix=$need_lib_prefix
19055
19056 # Do we need a version for libraries?
19057 need_version=$need_version
19058
19059 # Library versioning type.
19060 version_type=$version_type
19061
19062 # Shared library runtime path variable.
19063 runpath_var=$runpath_var
19064
19065 # Shared library path variable.
19066 shlibpath_var=$shlibpath_var
19067
19068 # Is shlibpath searched before the hard-coded library search path?
19069 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19070
19071 # Format of library name prefix.
19072 libname_spec=$lt_libname_spec
19073
19074 # List of archive names. First name is the real one, the rest are links.
19075 # The last name is the one that the linker finds with -lNAME
19076 library_names_spec=$lt_library_names_spec
19077
19078 # The coded name of the library, if different from the real name.
19079 soname_spec=$lt_soname_spec
19080
19081 # Permission mode override for installation of shared libraries.
19082 install_override_mode=$lt_install_override_mode
19083
19084 # Command to use after installation of a shared archive.
19085 postinstall_cmds=$lt_postinstall_cmds
19086
19087 # Command to use after uninstallation of a shared archive.
19088 postuninstall_cmds=$lt_postuninstall_cmds
19089
19090 # Commands used to finish a libtool library installation in a directory.
19091 finish_cmds=$lt_finish_cmds
19092
19093 # As "finish_cmds", except a single script fragment to be evaled but
19094 # not shown.
19095 finish_eval=$lt_finish_eval
19096
19097 # Whether we should hardcode library paths into libraries.
19098 hardcode_into_libs=$hardcode_into_libs
19099
19100 # Compile-time system search path for libraries.
19101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19102
19103 # Run-time system search path for libraries.
19104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19105
19106 # Whether dlopen is supported.
19107 dlopen_support=$enable_dlopen
19108
19109 # Whether dlopen of programs is supported.
19110 dlopen_self=$enable_dlopen_self
19111
19112 # Whether dlopen of statically linked programs is supported.
19113 dlopen_self_static=$enable_dlopen_self_static
19114
19115 # Commands to strip libraries.
19116 old_striplib=$lt_old_striplib
19117 striplib=$lt_striplib
19118
19119
19120 # The linker used to build libraries.
19121 LD=$lt_LD
19122
19123 # How to create reloadable object files.
19124 reload_flag=$lt_reload_flag
19125 reload_cmds=$lt_reload_cmds
19126
19127 # Commands used to build an old-style archive.
19128 old_archive_cmds=$lt_old_archive_cmds
19129
19130 # A language specific compiler.
19131 CC=$lt_compiler
19132
19133 # Is the compiler the GNU compiler?
19134 with_gcc=$GCC
19135
19136 # Compiler flag to turn off builtin functions.
19137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19138
19139 # Additional compiler flags for building library objects.
19140 pic_flag=$lt_lt_prog_compiler_pic
19141
19142 # How to pass a linker flag through the compiler.
19143 wl=$lt_lt_prog_compiler_wl
19144
19145 # Compiler flag to prevent dynamic linking.
19146 link_static_flag=$lt_lt_prog_compiler_static
19147
19148 # Does compiler simultaneously support -c and -o options?
19149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19150
19151 # Whether or not to add -lc for building shared libraries.
19152 build_libtool_need_lc=$archive_cmds_need_lc
19153
19154 # Whether or not to disallow shared libs when runtime libs are static.
19155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19156
19157 # Compiler flag to allow reflexive dlopens.
19158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19159
19160 # Compiler flag to generate shared objects directly from archives.
19161 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19162
19163 # Whether the compiler copes with passing no objects directly.
19164 compiler_needs_object=$lt_compiler_needs_object
19165
19166 # Create an old-style archive from a shared archive.
19167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19168
19169 # Create a temporary old-style archive to link instead of a shared archive.
19170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19171
19172 # Commands used to build a shared archive.
19173 archive_cmds=$lt_archive_cmds
19174 archive_expsym_cmds=$lt_archive_expsym_cmds
19175
19176 # Commands used to build a loadable module if different from building
19177 # a shared archive.
19178 module_cmds=$lt_module_cmds
19179 module_expsym_cmds=$lt_module_expsym_cmds
19180
19181 # Whether we are building with GNU ld or not.
19182 with_gnu_ld=$lt_with_gnu_ld
19183
19184 # Flag that allows shared libraries with undefined symbols to be built.
19185 allow_undefined_flag=$lt_allow_undefined_flag
19186
19187 # Flag that enforces no undefined symbols.
19188 no_undefined_flag=$lt_no_undefined_flag
19189
19190 # Flag to hardcode \$libdir into a binary during linking.
19191 # This must work even if \$libdir does not exist
19192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19193
19194 # If ld is used when linking, flag to hardcode \$libdir into a binary
19195 # during linking. This must work even if \$libdir does not exist.
19196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19197
19198 # Whether we need a single "-rpath" flag with a separated argument.
19199 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19200
19201 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19202 # DIR into the resulting binary.
19203 hardcode_direct=$hardcode_direct
19204
19205 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19206 # DIR into the resulting binary and the resulting library dependency is
19207 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19208 # library is relocated.
19209 hardcode_direct_absolute=$hardcode_direct_absolute
19210
19211 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19212 # into the resulting binary.
19213 hardcode_minus_L=$hardcode_minus_L
19214
19215 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19216 # into the resulting binary.
19217 hardcode_shlibpath_var=$hardcode_shlibpath_var
19218
19219 # Set to "yes" if building a shared library automatically hardcodes DIR
19220 # into the library and all subsequent libraries and executables linked
19221 # against it.
19222 hardcode_automatic=$hardcode_automatic
19223
19224 # Set to yes if linker adds runtime paths of dependent libraries
19225 # to runtime path list.
19226 inherit_rpath=$inherit_rpath
19227
19228 # Whether libtool must link a program against all its dependency libraries.
19229 link_all_deplibs=$link_all_deplibs
19230
19231 # Set to "yes" if exported symbols are required.
19232 always_export_symbols=$always_export_symbols
19233
19234 # The commands to list exported symbols.
19235 export_symbols_cmds=$lt_export_symbols_cmds
19236
19237 # Symbols that should not be listed in the preloaded symbols.
19238 exclude_expsyms=$lt_exclude_expsyms
19239
19240 # Symbols that must always be exported.
19241 include_expsyms=$lt_include_expsyms
19242
19243 # Commands necessary for linking programs (against libraries) with templates.
19244 prelink_cmds=$lt_prelink_cmds
19245
19246 # Commands necessary for finishing linking programs.
19247 postlink_cmds=$lt_postlink_cmds
19248
19249 # Specify filename containing input files.
19250 file_list_spec=$lt_file_list_spec
19251
19252 # How to hardcode a shared library path into an executable.
19253 hardcode_action=$hardcode_action
19254
19255 # The directories searched by this compiler when creating a shared library.
19256 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19257
19258 # Dependencies to place before and after the objects being linked to
19259 # create a shared library.
19260 predep_objects=$lt_predep_objects
19261 postdep_objects=$lt_postdep_objects
19262 predeps=$lt_predeps
19263 postdeps=$lt_postdeps
19264
19265 # The library search path used internally by the compiler when linking
19266 # a shared library.
19267 compiler_lib_search_path=$lt_compiler_lib_search_path
19268
19269 # ### END LIBTOOL CONFIG
19270
19271 _LT_EOF
19272
19273 case $host_os in
19274 aix3*)
19275 cat <<\_LT_EOF >> "$cfgfile"
19276 # AIX sometimes has problems with the GCC collect2 program. For some
19277 # reason, if we set the COLLECT_NAMES environment variable, the problems
19278 # vanish in a puff of smoke.
19279 if test "X${COLLECT_NAMES+set}" != Xset; then
19280 COLLECT_NAMES=
19281 export COLLECT_NAMES
19282 fi
19283 _LT_EOF
19284 ;;
19285 esac
19286
19287
19288 ltmain="$ac_aux_dir/ltmain.sh"
19289
19290
19291 # We use sed instead of cat because bash on DJGPP gets confused if
19292 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19293 # text mode, it properly converts lines to CR/LF. This bash problem
19294 # is reportedly fixed, but why not run on old versions too?
19295 sed '$q' "$ltmain" >> "$cfgfile" \
19296 || (rm -f "$cfgfile"; exit 1)
19297
19298 if test x"$xsi_shell" = xyes; then
19299 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19300 func_dirname ()\
19301 {\
19302 \ case ${1} in\
19303 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19304 \ * ) func_dirname_result="${3}" ;;\
19305 \ esac\
19306 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19307 && mv -f "$cfgfile.tmp" "$cfgfile" \
19308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19309 test 0 -eq $? || _lt_function_replace_fail=:
19310
19311
19312 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19313 func_basename ()\
19314 {\
19315 \ func_basename_result="${1##*/}"\
19316 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19317 && mv -f "$cfgfile.tmp" "$cfgfile" \
19318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19319 test 0 -eq $? || _lt_function_replace_fail=:
19320
19321
19322 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19323 func_dirname_and_basename ()\
19324 {\
19325 \ case ${1} in\
19326 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19327 \ * ) func_dirname_result="${3}" ;;\
19328 \ esac\
19329 \ func_basename_result="${1##*/}"\
19330 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19331 && mv -f "$cfgfile.tmp" "$cfgfile" \
19332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19333 test 0 -eq $? || _lt_function_replace_fail=:
19334
19335
19336 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19337 func_stripname ()\
19338 {\
19339 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19340 \ # positional parameters, so assign one to ordinary parameter first.\
19341 \ func_stripname_result=${3}\
19342 \ func_stripname_result=${func_stripname_result#"${1}"}\
19343 \ func_stripname_result=${func_stripname_result%"${2}"}\
19344 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19345 && mv -f "$cfgfile.tmp" "$cfgfile" \
19346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19347 test 0 -eq $? || _lt_function_replace_fail=:
19348
19349
19350 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19351 func_split_long_opt ()\
19352 {\
19353 \ func_split_long_opt_name=${1%%=*}\
19354 \ func_split_long_opt_arg=${1#*=}\
19355 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19356 && mv -f "$cfgfile.tmp" "$cfgfile" \
19357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19358 test 0 -eq $? || _lt_function_replace_fail=:
19359
19360
19361 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19362 func_split_short_opt ()\
19363 {\
19364 \ func_split_short_opt_arg=${1#??}\
19365 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19366 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19367 && mv -f "$cfgfile.tmp" "$cfgfile" \
19368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19369 test 0 -eq $? || _lt_function_replace_fail=:
19370
19371
19372 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19373 func_lo2o ()\
19374 {\
19375 \ case ${1} in\
19376 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19377 \ *) func_lo2o_result=${1} ;;\
19378 \ esac\
19379 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19380 && mv -f "$cfgfile.tmp" "$cfgfile" \
19381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19382 test 0 -eq $? || _lt_function_replace_fail=:
19383
19384
19385 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19386 func_xform ()\
19387 {\
19388 func_xform_result=${1%.*}.lo\
19389 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19390 && mv -f "$cfgfile.tmp" "$cfgfile" \
19391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19392 test 0 -eq $? || _lt_function_replace_fail=:
19393
19394
19395 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19396 func_arith ()\
19397 {\
19398 func_arith_result=$(( $* ))\
19399 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19400 && mv -f "$cfgfile.tmp" "$cfgfile" \
19401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19402 test 0 -eq $? || _lt_function_replace_fail=:
19403
19404
19405 sed -e '/^func_len ()$/,/^} # func_len /c\
19406 func_len ()\
19407 {\
19408 func_len_result=${#1}\
19409 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19410 && mv -f "$cfgfile.tmp" "$cfgfile" \
19411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19412 test 0 -eq $? || _lt_function_replace_fail=:
19413
19414 fi
19415
19416 if test x"$lt_shell_append" = xyes; then
19417 sed -e '/^func_append ()$/,/^} # func_append /c\
19418 func_append ()\
19419 {\
19420 eval "${1}+=\\${2}"\
19421 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19422 && mv -f "$cfgfile.tmp" "$cfgfile" \
19423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19424 test 0 -eq $? || _lt_function_replace_fail=:
19425
19426
19427 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19428 func_append_quoted ()\
19429 {\
19430 \ func_quote_for_eval "${2}"\
19431 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19432 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19433 && mv -f "$cfgfile.tmp" "$cfgfile" \
19434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19435 test 0 -eq $? || _lt_function_replace_fail=:
19436
19437
19438 # Save a `func_append' function call where possible by direct use of '+='
19439 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19440 && mv -f "$cfgfile.tmp" "$cfgfile" \
19441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19442 test 0 -eq $? || _lt_function_replace_fail=:
19443 else
19444 # Save a `func_append' function call even when '+=' is not available
19445 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19446 && mv -f "$cfgfile.tmp" "$cfgfile" \
19447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19448 test 0 -eq $? || _lt_function_replace_fail=:
19449 fi
19450
19451 if test x"$_lt_function_replace_fail" = x":"; then
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19453 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19454 fi
19455
19456
19457 mv -f "$cfgfile" "$ofile" ||
19458 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19459 chmod +x "$ofile"
19460
19461
19462 cat <<_LT_EOF >> "$ofile"
19463
19464 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19465
19466 # The linker used to build libraries.
19467 LD=$lt_LD_CXX
19468
19469 # How to create reloadable object files.
19470 reload_flag=$lt_reload_flag_CXX
19471 reload_cmds=$lt_reload_cmds_CXX
19472
19473 # Commands used to build an old-style archive.
19474 old_archive_cmds=$lt_old_archive_cmds_CXX
19475
19476 # A language specific compiler.
19477 CC=$lt_compiler_CXX
19478
19479 # Is the compiler the GNU compiler?
19480 with_gcc=$GCC_CXX
19481
19482 # Compiler flag to turn off builtin functions.
19483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19484
19485 # Additional compiler flags for building library objects.
19486 pic_flag=$lt_lt_prog_compiler_pic_CXX
19487
19488 # How to pass a linker flag through the compiler.
19489 wl=$lt_lt_prog_compiler_wl_CXX
19490
19491 # Compiler flag to prevent dynamic linking.
19492 link_static_flag=$lt_lt_prog_compiler_static_CXX
19493
19494 # Does compiler simultaneously support -c and -o options?
19495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19496
19497 # Whether or not to add -lc for building shared libraries.
19498 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19499
19500 # Whether or not to disallow shared libs when runtime libs are static.
19501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19502
19503 # Compiler flag to allow reflexive dlopens.
19504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19505
19506 # Compiler flag to generate shared objects directly from archives.
19507 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19508
19509 # Whether the compiler copes with passing no objects directly.
19510 compiler_needs_object=$lt_compiler_needs_object_CXX
19511
19512 # Create an old-style archive from a shared archive.
19513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19514
19515 # Create a temporary old-style archive to link instead of a shared archive.
19516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19517
19518 # Commands used to build a shared archive.
19519 archive_cmds=$lt_archive_cmds_CXX
19520 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19521
19522 # Commands used to build a loadable module if different from building
19523 # a shared archive.
19524 module_cmds=$lt_module_cmds_CXX
19525 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19526
19527 # Whether we are building with GNU ld or not.
19528 with_gnu_ld=$lt_with_gnu_ld_CXX
19529
19530 # Flag that allows shared libraries with undefined symbols to be built.
19531 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19532
19533 # Flag that enforces no undefined symbols.
19534 no_undefined_flag=$lt_no_undefined_flag_CXX
19535
19536 # Flag to hardcode \$libdir into a binary during linking.
19537 # This must work even if \$libdir does not exist
19538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19539
19540 # If ld is used when linking, flag to hardcode \$libdir into a binary
19541 # during linking. This must work even if \$libdir does not exist.
19542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19543
19544 # Whether we need a single "-rpath" flag with a separated argument.
19545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19546
19547 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19548 # DIR into the resulting binary.
19549 hardcode_direct=$hardcode_direct_CXX
19550
19551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19552 # DIR into the resulting binary and the resulting library dependency is
19553 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19554 # library is relocated.
19555 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19556
19557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19558 # into the resulting binary.
19559 hardcode_minus_L=$hardcode_minus_L_CXX
19560
19561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19562 # into the resulting binary.
19563 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19564
19565 # Set to "yes" if building a shared library automatically hardcodes DIR
19566 # into the library and all subsequent libraries and executables linked
19567 # against it.
19568 hardcode_automatic=$hardcode_automatic_CXX
19569
19570 # Set to yes if linker adds runtime paths of dependent libraries
19571 # to runtime path list.
19572 inherit_rpath=$inherit_rpath_CXX
19573
19574 # Whether libtool must link a program against all its dependency libraries.
19575 link_all_deplibs=$link_all_deplibs_CXX
19576
19577 # Set to "yes" if exported symbols are required.
19578 always_export_symbols=$always_export_symbols_CXX
19579
19580 # The commands to list exported symbols.
19581 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19582
19583 # Symbols that should not be listed in the preloaded symbols.
19584 exclude_expsyms=$lt_exclude_expsyms_CXX
19585
19586 # Symbols that must always be exported.
19587 include_expsyms=$lt_include_expsyms_CXX
19588
19589 # Commands necessary for linking programs (against libraries) with templates.
19590 prelink_cmds=$lt_prelink_cmds_CXX
19591
19592 # Commands necessary for finishing linking programs.
19593 postlink_cmds=$lt_postlink_cmds_CXX
19594
19595 # Specify filename containing input files.
19596 file_list_spec=$lt_file_list_spec_CXX
19597
19598 # How to hardcode a shared library path into an executable.
19599 hardcode_action=$hardcode_action_CXX
19600
19601 # The directories searched by this compiler when creating a shared library.
19602 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19603
19604 # Dependencies to place before and after the objects being linked to
19605 # create a shared library.
19606 predep_objects=$lt_predep_objects_CXX
19607 postdep_objects=$lt_postdep_objects_CXX
19608 predeps=$lt_predeps_CXX
19609 postdeps=$lt_postdeps_CXX
19610
19611 # The library search path used internally by the compiler when linking
19612 # a shared library.
19613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19614
19615 # ### END LIBTOOL TAG CONFIG: CXX
19616 _LT_EOF
19617
19618 ;;
19619
19620 esac
19621 done # for ac_tag
19622
19623
19624 as_fn_exit 0
19625 _ACEOF
19626 ac_clean_files=$ac_clean_files_save
19627
19628 test $ac_write_fail = 0 ||
19629 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19630
19631
19632 # configure is writing to config.log, and then calls config.status.
19633 # config.status does its own redirection, appending to config.log.
19634 # Unfortunately, on DOS this fails, as config.log is still kept open
19635 # by configure, so config.status won't be able to write to it; its
19636 # output is simply discarded. So we exec the FD to /dev/null,
19637 # effectively closing config.log, so it can be properly (re)opened and
19638 # appended to by config.status. When coming back to configure, we
19639 # need to make the FD available again.
19640 if test "$no_create" != yes; then
19641 ac_cs_success=:
19642 ac_config_status_args=
19643 test "$silent" = yes &&
19644 ac_config_status_args="$ac_config_status_args --quiet"
19645 exec 5>/dev/null
19646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19647 exec 5>>config.log
19648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19649 # would make configure fail if this is the last instruction.
19650 $ac_cs_success || as_fn_exit 1
19651 fi
19652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19655 fi
19656
19657