Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="SDL_gfxPrimitives.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 SDL_LIBS
637 SDL_CFLAGS
638 SDL_CONFIG
639 MATHLIB
640 X_EXTRA_LIBS
641 X_LIBS
642 X_PRE_LIBS
643 X_CFLAGS
644 XMKMF
645 CXXCPP
646 am__fastdepCXX_FALSE
647 am__fastdepCXX_TRUE
648 CXXDEPMODE
649 ac_ct_CXX
650 CXXFLAGS
651 CXX
652 CPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 MANIFEST_TOOL
659 RANLIB
660 ac_ct_AR
661 AR
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 EGREP
669 GREP
670 SED
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 LIBTOOL
689 OBJDUMP
690 DLLTOOL
691 AS
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_os
715 target_vendor
716 target_cpu
717 target
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 LT_AGE
727 LT_REVISION
728 LT_CURRENT
729 LT_RELEASE
730 VERSION
731 BINARY_AGE
732 INTERFACE_AGE
733 MICRO_VERSION
734 MINOR_VERSION
735 MAJOR_VERSION
736 SDL_VERSION
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 enable_dependency_tracking
783 with_gnu_ld
784 with_sysroot
785 enable_libtool_lock
786 with_x
787 enable_mmx
788 with_sdl_prefix
789 with_sdl_exec_prefix
790 enable_sdltest
791 '
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 CPP
801 CXX
802 CXXFLAGS
803 CCC
804 CXXCPP
805 XMKMF'
806
807
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
829
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
855
856 ac_prev=
857 ac_dashdash=
858 for ac_option
859 do
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
865 fi
866
867 case $ac_option in
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
871 esac
872
873 # Accept the important Cygnus configure options, so we can diagnose typos.
874
875 case $ac_dashdash$ac_option in
876 --)
877 ac_dashdash=yes ;;
878
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
883
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
888
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
895
896 --config-cache | -C)
897 cache_file=config.cache ;;
898
899 -datadir | --datadir | --datadi | --datad)
900 ac_prev=datadir ;;
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
903
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
910
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
936
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=\$ac_optarg ;;
952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
1156
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
1172
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1176
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1183
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1190
1191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1193 ;;
1194
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201 esac
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1204
1205 *)
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211 ;;
1212
1213 esac
1214 done
1215
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1219 fi
1220
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 esac
1227 fi
1228
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1234 do
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
1243 case $ac_val in
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 esac
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 done
1249
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1253 build=$build_alias
1254 host=$host_alias
1255 target=$target_alias
1256
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1263 fi
1264 fi
1265
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269 test "$silent" = yes && exec 6>/dev/null
1270
1271
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\).*/{
1303 s//\1/
1304 q
1305 }
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1310 fi
1311 else
1312 ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 fi
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1325 fi
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1338
1339 #
1340 # Report the --help message.
1341 #
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 \`configure' configures this package to adapt to many kinds of systems.
1347
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1352
1353 Defaults for the options are specified in brackets.
1354
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1371
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1376
1377 For better control, use the options below.
1378
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 X features:
1409 --x-includes=DIR X include files are in DIR
1410 --x-libraries=DIR X library files are in DIR
1411
1412 System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-shared[=PKGS] build shared libraries [default=yes]
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --disable-dependency-tracking speeds up one-time build
1432 --enable-dependency-tracking do not reject slow dependency extractors
1433 --disable-libtool-lock avoid locking (might break parallel builds)
1434 --enable-mmx use mmx assembly on x86 default=yes, disable this on non-x86 platforms
1435 --disable-sdltest Do not try to compile and run a test SDL program
1436
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1441 both]
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-sysroot=DIR Search for dependent libraries within DIR
1444 (or the compiler's sysroot if not specified).
1445 --with-x use the X Window System
1446 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1447 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1448
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 CPP C preprocessor
1458 CXX C++ compiler command
1459 CXXFLAGS C++ compiler flags
1460 CXXCPP C++ preprocessor
1461 XMKMF Path to xmkmf, Makefile generator for X Window System
1462
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1465
1466 Report bugs to the package provider.
1467 _ACEOF
1468 ac_status=$?
1469 fi
1470
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 configure
1530 generated by GNU Autoconf 2.69
1531
1532 Copyright (C) 2012 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_c_try_link LINENO
1582 # -----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_link ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest$ac_exeext
1588 if { { ac_try="$ac_link"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest$ac_exeext && {
1607 test "$cross_compiling" = yes ||
1608 test -x conftest$ac_exeext
1609 }; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1619 # interfere with the next link command; also delete a directory that is
1620 # left behind by Apple's compiler. We do this before executing the actions.
1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_link
1626
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if eval \${$3+:} false; then :
1637 $as_echo_n "(cached) " >&6
1638 else
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 eval "$3=yes"
1646 else
1647 eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 fi
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656 } # ac_fn_c_check_header_compile
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } > conftest.i && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below.
1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757 <limits.h> exists even on freestanding compilers. */
1758
1759 #ifdef __STDC__
1760 # include <limits.h>
1761 #else
1762 # include <assert.h>
1763 #endif
1764
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 ();
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main ()
1783 {
1784 return $2 ();
1785 ;
1786 return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_link "$LINENO"; then :
1790 eval "$3=yes"
1791 else
1792 eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext \
1795 conftest$ac_exeext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_func
1803
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_cxx_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836 fi
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840 } # ac_fn_cxx_try_compile
1841
1842 # ac_fn_cxx_try_cpp LINENO
1843 # ------------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_cxx_try_cpp ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } > conftest.i && {
1864 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_cxx_try_cpp
1878
1879 # ac_fn_cxx_try_link LINENO
1880 # -------------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_cxx_try_link ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_cxx_try_link
1924
1925 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1926 # --------------------------------------------
1927 # Tries to find the compile-time value of EXPR in a program that includes
1928 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1929 # computed
1930 ac_fn_c_compute_int ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if test "$cross_compiling" = yes; then
1934 # Depending upon the size, compute the lo and hi bounds.
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 int
1939 main ()
1940 {
1941 static int test_array [1 - 2 * !(($2) >= 0)];
1942 test_array [0] = 0;
1943 return test_array [0];
1944
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_lo=0 ac_mid=0
1951 while :; do
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 $4
1955 int
1956 main ()
1957 {
1958 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1959 test_array [0] = 0;
1960 return test_array [0];
1961
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_hi=$ac_mid; break
1968 else
1969 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1970 if test $ac_lo -le $ac_mid; then
1971 ac_lo= ac_hi=
1972 break
1973 fi
1974 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 done
1978 else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 int
1983 main ()
1984 {
1985 static int test_array [1 - 2 * !(($2) < 0)];
1986 test_array [0] = 0;
1987 return test_array [0];
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_hi=-1 ac_mid=-1
1995 while :; do
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $4
1999 int
2000 main ()
2001 {
2002 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2003 test_array [0] = 0;
2004 return test_array [0];
2005
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_lo=$ac_mid; break
2012 else
2013 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2014 if test $ac_mid -le $ac_hi; then
2015 ac_lo= ac_hi=
2016 break
2017 fi
2018 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 done
2022 else
2023 ac_lo= ac_hi=
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 # Binary search between lo and hi bounds.
2029 while test "x$ac_lo" != "x$ac_hi"; do
2030 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2038 test_array [0] = 0;
2039 return test_array [0];
2040
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_hi=$ac_mid
2047 else
2048 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 done
2052 case $ac_lo in #((
2053 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2054 '') ac_retval=1 ;;
2055 esac
2056 else
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 $4
2060 static long int longval () { return $2; }
2061 static unsigned long int ulongval () { return $2; }
2062 #include <stdio.h>
2063 #include <stdlib.h>
2064 int
2065 main ()
2066 {
2067
2068 FILE *f = fopen ("conftest.val", "w");
2069 if (! f)
2070 return 1;
2071 if (($2) < 0)
2072 {
2073 long int i = longval ();
2074 if (i != ($2))
2075 return 1;
2076 fprintf (f, "%ld", i);
2077 }
2078 else
2079 {
2080 unsigned long int i = ulongval ();
2081 if (i != ($2))
2082 return 1;
2083 fprintf (f, "%lu", i);
2084 }
2085 /* Do not output a trailing newline, as this causes \r\n confusion
2086 on some platforms. */
2087 return ferror (f) || fclose (f) != 0;
2088
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_run "$LINENO"; then :
2094 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2095 else
2096 ac_retval=1
2097 fi
2098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2099 conftest.$ac_objext conftest.beam conftest.$ac_ext
2100 rm -f conftest.val
2101
2102 fi
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status $ac_retval
2105
2106 } # ac_fn_c_compute_int
2107 cat >config.log <<_ACEOF
2108 This file contains any messages produced by compilers while
2109 running configure, to aid debugging if configure makes a mistake.
2110
2111 It was created by $as_me, which was
2112 generated by GNU Autoconf 2.69. Invocation command line was
2113
2114 $ $0 $@
2115
2116 _ACEOF
2117 exec 5>>config.log
2118 {
2119 cat <<_ASUNAME
2120 ## --------- ##
2121 ## Platform. ##
2122 ## --------- ##
2123
2124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129
2130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2132
2133 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2134 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2137 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2138 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2139 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2140
2141 _ASUNAME
2142
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 $as_echo "PATH: $as_dir"
2149 done
2150 IFS=$as_save_IFS
2151
2152 } >&5
2153
2154 cat >&5 <<_ACEOF
2155
2156
2157 ## ----------- ##
2158 ## Core tests. ##
2159 ## ----------- ##
2160
2161 _ACEOF
2162
2163
2164 # Keep a trace of the command line.
2165 # Strip out --no-create and --no-recursion so they do not pile up.
2166 # Strip out --silent because we don't want to record it for future runs.
2167 # Also quote any args containing shell meta-characters.
2168 # Make two passes to allow for proper duplicate-argument suppression.
2169 ac_configure_args=
2170 ac_configure_args0=
2171 ac_configure_args1=
2172 ac_must_keep_next=false
2173 for ac_pass in 1 2
2174 do
2175 for ac_arg
2176 do
2177 case $ac_arg in
2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180 | -silent | --silent | --silen | --sile | --sil)
2181 continue ;;
2182 *\'*)
2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184 esac
2185 case $ac_pass in
2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187 2)
2188 as_fn_append ac_configure_args1 " '$ac_arg'"
2189 if test $ac_must_keep_next = true; then
2190 ac_must_keep_next=false # Got value, back to normal.
2191 else
2192 case $ac_arg in
2193 *=* | --config-cache | -C | -disable-* | --disable-* \
2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196 | -with-* | --with-* | -without-* | --without-* | --x)
2197 case "$ac_configure_args0 " in
2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199 esac
2200 ;;
2201 -* ) ac_must_keep_next=true ;;
2202 esac
2203 fi
2204 as_fn_append ac_configure_args " '$ac_arg'"
2205 ;;
2206 esac
2207 done
2208 done
2209 { ac_configure_args0=; unset ac_configure_args0;}
2210 { ac_configure_args1=; unset ac_configure_args1;}
2211
2212 # When interrupted or exit'd, cleanup temporary files, and complete
2213 # config.log. We remove comments because anyway the quotes in there
2214 # would cause problems or look ugly.
2215 # WARNING: Use '\'' to represent an apostrophe within the trap.
2216 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217 trap 'exit_status=$?
2218 # Save into config.log some information that might help in debugging.
2219 {
2220 echo
2221
2222 $as_echo "## ---------------- ##
2223 ## Cache variables. ##
2224 ## ---------------- ##"
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
2227 (
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
2233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239 *) { eval $ac_var=; unset $ac_var;} ;;
2240 esac ;;
2241 esac
2242 done
2243 (set) 2>&1 |
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
2246 sed -n \
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
2250 *)
2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 ;;
2253 esac |
2254 sort
2255 )
2256 echo
2257
2258 $as_echo "## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##"
2261 echo
2262 for ac_var in $ac_subst_vars
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271
2272 if test -n "$ac_subst_files"; then
2273 $as_echo "## ------------------- ##
2274 ## File substitutions. ##
2275 ## ------------------- ##"
2276 echo
2277 for ac_var in $ac_subst_files
2278 do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 $as_echo "$ac_var='\''$ac_val'\''"
2284 done | sort
2285 echo
2286 fi
2287
2288 if test -s confdefs.h; then
2289 $as_echo "## ----------- ##
2290 ## confdefs.h. ##
2291 ## ----------- ##"
2292 echo
2293 cat confdefs.h
2294 echo
2295 fi
2296 test "$ac_signal" != 0 &&
2297 $as_echo "$as_me: caught signal $ac_signal"
2298 $as_echo "$as_me: exit $exit_status"
2299 } >&5
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 exit $exit_status
2303 ' 0
2304 for ac_signal in 1 2 13 15; do
2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2308
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2311
2312 $as_echo "/* confdefs.h */" > confdefs.h
2313
2314 # Predefined preprocessor variables.
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_NAME "$PACKAGE_NAME"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_STRING "$PACKAGE_STRING"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_URL "$PACKAGE_URL"
2338 _ACEOF
2339
2340
2341 # Let the site file select an alternate cache file if it wants to.
2342 # Prefer an explicitly selected file to automatically selected ones.
2343 ac_site_file1=NONE
2344 ac_site_file2=NONE
2345 if test -n "$CONFIG_SITE"; then
2346 # We do not want a PATH search for config.site.
2347 case $CONFIG_SITE in #((
2348 -*) ac_site_file1=./$CONFIG_SITE;;
2349 */*) ac_site_file1=$CONFIG_SITE;;
2350 *) ac_site_file1=./$CONFIG_SITE;;
2351 esac
2352 elif test "x$prefix" != xNONE; then
2353 ac_site_file1=$prefix/share/config.site
2354 ac_site_file2=$prefix/etc/config.site
2355 else
2356 ac_site_file1=$ac_default_prefix/share/config.site
2357 ac_site_file2=$ac_default_prefix/etc/config.site
2358 fi
2359 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360 do
2361 test "x$ac_site_file" = xNONE && continue
2362 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2365 sed 's/^/| /' "$ac_site_file" >&5
2366 . "$ac_site_file" \
2367 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 as_fn_error $? "failed to load site script $ac_site_file
2370 See \`config.log' for more details" "$LINENO" 5; }
2371 fi
2372 done
2373
2374 if test -r "$cache_file"; then
2375 # Some versions of bash will fail to source /dev/null (special files
2376 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2377 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379 $as_echo "$as_me: loading cache $cache_file" >&6;}
2380 case $cache_file in
2381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382 *) . "./$cache_file";;
2383 esac
2384 fi
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387 $as_echo "$as_me: creating cache $cache_file" >&6;}
2388 >$cache_file
2389 fi
2390
2391 # Check that the precious variables saved in the cache have kept the same
2392 # value.
2393 ac_cache_corrupted=false
2394 for ac_var in $ac_precious_vars; do
2395 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2396 eval ac_new_set=\$ac_env_${ac_var}_set
2397 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2398 eval ac_new_val=\$ac_env_${ac_var}_value
2399 case $ac_old_set,$ac_new_set in
2400 set,)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,set)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,);;
2409 *)
2410 if test "x$ac_old_val" != "x$ac_new_val"; then
2411 # differences in whitespace do not lead to failure.
2412 ac_old_val_w=`echo x $ac_old_val`
2413 ac_new_val_w=`echo x $ac_new_val`
2414 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2416 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417 ac_cache_corrupted=:
2418 else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2420 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2421 eval $ac_var=\$ac_old_val
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2424 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2426 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2427 fi;;
2428 esac
2429 # Pass precious variables to config.status.
2430 if test "$ac_new_set" = set; then
2431 case $ac_new_val in
2432 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2433 *) ac_arg=$ac_var=$ac_new_val ;;
2434 esac
2435 case " $ac_configure_args " in
2436 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2437 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2438 esac
2439 fi
2440 done
2441 if $ac_cache_corrupted; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2445 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2446 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2447 fi
2448 ## -------------------- ##
2449 ## Main body of script. ##
2450 ## -------------------- ##
2451
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457
2458
2459
2460
2461
2462 SDL_VERSION=1.2.0
2463
2464
2465
2466 # Making releases:
2467 # MICRO_VERSION += 1;
2468 # INTERFACE_AGE += 1;
2469 # BINARY_AGE += 1;
2470 # if any functions have been added, set INTERFACE_AGE to 0.
2471 # if backwards compatibility has been broken,
2472 # set BINARY_AGE and INTERFACE_AGE to 0.
2473
2474 MAJOR_VERSION=2
2475 MINOR_VERSION=0
2476 MICRO_VERSION=25
2477 INTERFACE_AGE=1
2478 BINARY_AGE=10
2479 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2480
2481
2482
2483
2484
2485
2486
2487
2488 # libtool versioning
2489 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
2490 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
2491 LT_REVISION=$INTERFACE_AGE
2492 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
2493
2494
2495
2496
2497
2498
2499 ac_aux_dir=
2500 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2501 if test -f "$ac_dir/install-sh"; then
2502 ac_aux_dir=$ac_dir
2503 ac_install_sh="$ac_aux_dir/install-sh -c"
2504 break
2505 elif test -f "$ac_dir/install.sh"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/install.sh -c"
2508 break
2509 elif test -f "$ac_dir/shtool"; then
2510 ac_aux_dir=$ac_dir
2511 ac_install_sh="$ac_aux_dir/shtool install -c"
2512 break
2513 fi
2514 done
2515 if test -z "$ac_aux_dir"; then
2516 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2517 fi
2518
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2524 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2525 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2526
2527
2528 # Make sure we can run config.sub.
2529 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2530 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2531
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2533 $as_echo_n "checking build system type... " >&6; }
2534 if ${ac_cv_build+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 ac_build_alias=$build_alias
2538 test "x$ac_build_alias" = x &&
2539 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2540 test "x$ac_build_alias" = x &&
2541 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2542 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2544
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2547 $as_echo "$ac_cv_build" >&6; }
2548 case $ac_cv_build in
2549 *-*-*) ;;
2550 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2551 esac
2552 build=$ac_cv_build
2553 ac_save_IFS=$IFS; IFS='-'
2554 set x $ac_cv_build
2555 shift
2556 build_cpu=$1
2557 build_vendor=$2
2558 shift; shift
2559 # Remember, the first character of IFS is used to create $*,
2560 # except with old shells:
2561 build_os=$*
2562 IFS=$ac_save_IFS
2563 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2564
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2567 $as_echo_n "checking host system type... " >&6; }
2568 if ${ac_cv_host+:} false; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test "x$host_alias" = x; then
2572 ac_cv_host=$ac_cv_build
2573 else
2574 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2576 fi
2577
2578 fi
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2580 $as_echo "$ac_cv_host" >&6; }
2581 case $ac_cv_host in
2582 *-*-*) ;;
2583 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2584 esac
2585 host=$ac_cv_host
2586 ac_save_IFS=$IFS; IFS='-'
2587 set x $ac_cv_host
2588 shift
2589 host_cpu=$1
2590 host_vendor=$2
2591 shift; shift
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2594 host_os=$*
2595 IFS=$ac_save_IFS
2596 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2597
2598
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2600 $as_echo_n "checking target system type... " >&6; }
2601 if ${ac_cv_target+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test "x$target_alias" = x; then
2605 ac_cv_target=$ac_cv_host
2606 else
2607 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2609 fi
2610
2611 fi
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2613 $as_echo "$ac_cv_target" >&6; }
2614 case $ac_cv_target in
2615 *-*-*) ;;
2616 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2617 esac
2618 target=$ac_cv_target
2619 ac_save_IFS=$IFS; IFS='-'
2620 set x $ac_cv_target
2621 shift
2622 target_cpu=$1
2623 target_vendor=$2
2624 shift; shift
2625 # Remember, the first character of IFS is used to create $*,
2626 # except with old shells:
2627 target_os=$*
2628 IFS=$ac_save_IFS
2629 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2630
2631
2632 # The aliases save the names the user supplied, while $host etc.
2633 # will get canonicalized.
2634 test -n "$target_alias" &&
2635 test "$program_prefix$program_suffix$program_transform_name" = \
2636 NONENONEs,x,x, &&
2637 program_prefix=${target_alias}-
2638
2639 am__api_version='1.11'
2640
2641 # Find a good install program. We prefer a C program (faster),
2642 # so one script is as good as another. But avoid the broken or
2643 # incompatible versions:
2644 # SysV /etc/install, /usr/sbin/install
2645 # SunOS /usr/etc/install
2646 # IRIX /sbin/install
2647 # AIX /bin/install
2648 # AmigaOS /C/install, which installs bootblocks on floppy discs
2649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2652 # OS/2's system install, which has a completely different semantic
2653 # ./install, which can be erroneously created by make from ./install.sh.
2654 # Reject install programs that cannot install multiple files.
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2656 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2657 if test -z "$INSTALL"; then
2658 if ${ac_cv_path_install+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 # Account for people who put trailing slashes in PATH elements.
2667 case $as_dir/ in #((
2668 ./ | .// | /[cC]/* | \
2669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2670 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2671 /usr/ucb/* ) ;;
2672 *)
2673 # OSF1 and SCO ODT 3.0 have their own names for install.
2674 # Don't use installbsd from OSF since it installs stuff as root
2675 # by default.
2676 for ac_prog in ginstall scoinst install; do
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2679 if test $ac_prog = install &&
2680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681 # AIX install. It has an incompatible calling convention.
2682 :
2683 elif test $ac_prog = install &&
2684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685 # program-specific install script used by HP pwplus--don't use.
2686 :
2687 else
2688 rm -rf conftest.one conftest.two conftest.dir
2689 echo one > conftest.one
2690 echo two > conftest.two
2691 mkdir conftest.dir
2692 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2693 test -s conftest.one && test -s conftest.two &&
2694 test -s conftest.dir/conftest.one &&
2695 test -s conftest.dir/conftest.two
2696 then
2697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2698 break 3
2699 fi
2700 fi
2701 fi
2702 done
2703 done
2704 ;;
2705 esac
2706
2707 done
2708 IFS=$as_save_IFS
2709
2710 rm -rf conftest.one conftest.two conftest.dir
2711
2712 fi
2713 if test "${ac_cv_path_install+set}" = set; then
2714 INSTALL=$ac_cv_path_install
2715 else
2716 # As a last resort, use the slow shell script. Don't cache a
2717 # value for INSTALL within a source directory, because that will
2718 # break other packages using the cache if that directory is
2719 # removed, or if the value is a relative name.
2720 INSTALL=$ac_install_sh
2721 fi
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2724 $as_echo "$INSTALL" >&6; }
2725
2726 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2727 # It thinks the first close brace ends the variable substitution.
2728 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2729
2730 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2731
2732 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2733
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2735 $as_echo_n "checking whether build environment is sane... " >&6; }
2736 # Just in case
2737 sleep 1
2738 echo timestamp > conftest.file
2739 # Reject unsafe characters in $srcdir or the absolute working directory
2740 # name. Accept space and tab only in the latter.
2741 am_lf='
2742 '
2743 case `pwd` in
2744 *[\\\"\#\$\&\'\`$am_lf]*)
2745 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2746 esac
2747 case $srcdir in
2748 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2749 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2750 esac
2751
2752 # Do `set' in a subshell so we don't clobber the current shell's
2753 # arguments. Must try -L first in case configure is actually a
2754 # symlink; some systems play weird games with the mod time of symlinks
2755 # (eg FreeBSD returns the mod time of the symlink's containing
2756 # directory).
2757 if (
2758 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2759 if test "$*" = "X"; then
2760 # -L didn't work.
2761 set X `ls -t "$srcdir/configure" conftest.file`
2762 fi
2763 rm -f conftest.file
2764 if test "$*" != "X $srcdir/configure conftest.file" \
2765 && test "$*" != "X conftest.file $srcdir/configure"; then
2766
2767 # If neither matched, then we have a broken ls. This can happen
2768 # if, for instance, CONFIG_SHELL is bash and it inherits a
2769 # broken ls alias from the environment. This has actually
2770 # happened. Such a system could not be considered "sane".
2771 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2772 alias in your environment" "$LINENO" 5
2773 fi
2774
2775 test "$2" = conftest.file
2776 )
2777 then
2778 # Ok.
2779 :
2780 else
2781 as_fn_error $? "newly created file is older than distributed files!
2782 Check your system clock" "$LINENO" 5
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2785 $as_echo "yes" >&6; }
2786 test "$program_prefix" != NONE &&
2787 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2788 # Use a double $ so make ignores it.
2789 test "$program_suffix" != NONE &&
2790 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2791 # Double any \ or $.
2792 # By default was `s,x,x', remove it if useless.
2793 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2794 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2795
2796 # expand $ac_aux_dir to an absolute path
2797 am_aux_dir=`cd $ac_aux_dir && pwd`
2798
2799 if test x"${MISSING+set}" != xset; then
2800 case $am_aux_dir in
2801 *\ * | *\ *)
2802 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2803 *)
2804 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2805 esac
2806 fi
2807 # Use eval to expand $SHELL
2808 if eval "$MISSING --run true"; then
2809 am_missing_run="$MISSING --run "
2810 else
2811 am_missing_run=
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2813 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2814 fi
2815
2816 if test x"${install_sh}" != xset; then
2817 case $am_aux_dir in
2818 *\ * | *\ *)
2819 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2820 *)
2821 install_sh="\${SHELL} $am_aux_dir/install-sh"
2822 esac
2823 fi
2824
2825 # Installed binaries are usually stripped using `strip' when the user
2826 # run `make install-strip'. However `strip' might not be the right
2827 # tool to use in cross-compilation environments, therefore Automake
2828 # will honor the `STRIP' environment variable to overrule this program.
2829 if test "$cross_compiling" != no; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}strip; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_STRIP+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$STRIP"; then
2839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 STRIP=$ac_cv_prog_STRIP
2859 if test -n "$STRIP"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2861 $as_echo "$STRIP" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867
2868 fi
2869 if test -z "$ac_cv_prog_STRIP"; then
2870 ac_ct_STRIP=$STRIP
2871 # Extract the first word of "strip", so it can be a program name with args.
2872 set dummy strip; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$ac_ct_STRIP"; then
2879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_STRIP="strip"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2899 if test -n "$ac_ct_STRIP"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2901 $as_echo "$ac_ct_STRIP" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907 if test "x$ac_ct_STRIP" = x; then
2908 STRIP=":"
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911 yes:)
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916 STRIP=$ac_ct_STRIP
2917 fi
2918 else
2919 STRIP="$ac_cv_prog_STRIP"
2920 fi
2921
2922 fi
2923 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2924
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2926 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2927 if test -z "$MKDIR_P"; then
2928 if ${ac_cv_path_mkdir+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2933 do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_prog in mkdir gmkdir; do
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2939 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2940 'mkdir (GNU coreutils) '* | \
2941 'mkdir (coreutils) '* | \
2942 'mkdir (fileutils) '4.1*)
2943 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2944 break 3;;
2945 esac
2946 done
2947 done
2948 done
2949 IFS=$as_save_IFS
2950
2951 fi
2952
2953 test -d ./--version && rmdir ./--version
2954 if test "${ac_cv_path_mkdir+set}" = set; then
2955 MKDIR_P="$ac_cv_path_mkdir -p"
2956 else
2957 # As a last resort, use the slow shell script. Don't cache a
2958 # value for MKDIR_P within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the value is a relative name.
2961 MKDIR_P="$ac_install_sh -d"
2962 fi
2963 fi
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2965 $as_echo "$MKDIR_P" >&6; }
2966
2967 mkdir_p="$MKDIR_P"
2968 case $mkdir_p in
2969 [\\/$]* | ?:[\\/]*) ;;
2970 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2971 esac
2972
2973 for ac_prog in gawk mawk nawk awk
2974 do
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_AWK+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$AWK"; then
2983 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_AWK="$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 AWK=$ac_cv_prog_AWK
3003 if test -n "$AWK"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3005 $as_echo "$AWK" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3009 fi
3010
3011
3012 test -n "$AWK" && break
3013 done
3014
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3016 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3017 set x ${MAKE-make}
3018 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3019 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 cat >conftest.make <<\_ACEOF
3023 SHELL = /bin/sh
3024 all:
3025 @echo '@@@%%%=$(MAKE)=@@@%%%'
3026 _ACEOF
3027 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3028 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3029 *@@@%%%=?*=@@@%%%*)
3030 eval ac_cv_prog_make_${ac_make}_set=yes;;
3031 *)
3032 eval ac_cv_prog_make_${ac_make}_set=no;;
3033 esac
3034 rm -f conftest.make
3035 fi
3036 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3038 $as_echo "yes" >&6; }
3039 SET_MAKE=
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 SET_MAKE="MAKE=${MAKE-make}"
3044 fi
3045
3046 rm -rf .tst 2>/dev/null
3047 mkdir .tst 2>/dev/null
3048 if test -d .tst; then
3049 am__leading_dot=.
3050 else
3051 am__leading_dot=_
3052 fi
3053 rmdir .tst 2>/dev/null
3054
3055 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3057 # is not polluted with repeated "-I."
3058 am__isrc=' -I$(srcdir)'
3059 # test to see if srcdir already configured
3060 if test -f $srcdir/config.status; then
3061 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3062 fi
3063 fi
3064
3065 # test whether we have cygpath
3066 if test -z "$CYGPATH_W"; then
3067 if (cygpath --version) >/dev/null 2>/dev/null; then
3068 CYGPATH_W='cygpath -w'
3069 else
3070 CYGPATH_W=echo
3071 fi
3072 fi
3073
3074
3075 # Define the identity of the package.
3076 PACKAGE=SDL_gfx
3077 VERSION=$VERSION
3078
3079
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE "$PACKAGE"
3082 _ACEOF
3083
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define VERSION "$VERSION"
3087 _ACEOF
3088
3089 # Some tools Automake needs.
3090
3091 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3092
3093
3094 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3095
3096
3097 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3098
3099
3100 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3101
3102
3103 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3104
3105 # We need awk for the "check" target. The system "awk" is bad on
3106 # some platforms.
3107 # Always define AMTAR for backward compatibility. Yes, it's still used
3108 # in the wild :-( We should find a proper way to deprecate it ...
3109 AMTAR='$${TAR-tar}'
3110
3111 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3112
3113
3114
3115
3116
3117
3118 enable_win32_dll=yes
3119
3120 case $host in
3121 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}as; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_AS+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$AS"; then
3131 ac_cv_prog_AS="$AS" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_AS="${ac_tool_prefix}as"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 AS=$ac_cv_prog_AS
3151 if test -n "$AS"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3153 $as_echo "$AS" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 fi
3161 if test -z "$ac_cv_prog_AS"; then
3162 ac_ct_AS=$AS
3163 # Extract the first word of "as", so it can be a program name with args.
3164 set dummy as; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$ac_ct_AS"; then
3171 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_ac_ct_AS="as"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3191 if test -n "$ac_ct_AS"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3193 $as_echo "$ac_ct_AS" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199 if test "x$ac_ct_AS" = x; then
3200 AS="false"
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208 AS=$ac_ct_AS
3209 fi
3210 else
3211 AS="$ac_cv_prog_AS"
3212 fi
3213
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3216 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_DLLTOOL+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$DLLTOOL"; then
3223 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 DLLTOOL=$ac_cv_prog_DLLTOOL
3243 if test -n "$DLLTOOL"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3245 $as_echo "$DLLTOOL" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 fi
3253 if test -z "$ac_cv_prog_DLLTOOL"; then
3254 ac_ct_DLLTOOL=$DLLTOOL
3255 # Extract the first word of "dlltool", so it can be a program name with args.
3256 set dummy dlltool; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_DLLTOOL"; then
3263 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3283 if test -n "$ac_ct_DLLTOOL"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3285 $as_echo "$ac_ct_DLLTOOL" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291 if test "x$ac_ct_DLLTOOL" = x; then
3292 DLLTOOL="false"
3293 else
3294 case $cross_compiling:$ac_tool_warned in
3295 yes:)
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3298 ac_tool_warned=yes ;;
3299 esac
3300 DLLTOOL=$ac_ct_DLLTOOL
3301 fi
3302 else
3303 DLLTOOL="$ac_cv_prog_DLLTOOL"
3304 fi
3305
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3308 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_OBJDUMP+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 if test -n "$OBJDUMP"; then
3315 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 OBJDUMP=$ac_cv_prog_OBJDUMP
3335 if test -n "$OBJDUMP"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3337 $as_echo "$OBJDUMP" >&6; }
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344 fi
3345 if test -z "$ac_cv_prog_OBJDUMP"; then
3346 ac_ct_OBJDUMP=$OBJDUMP
3347 # Extract the first word of "objdump", so it can be a program name with args.
3348 set dummy objdump; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 if test -n "$ac_ct_OBJDUMP"; then
3355 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3375 if test -n "$ac_ct_OBJDUMP"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3377 $as_echo "$ac_ct_OBJDUMP" >&6; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383 if test "x$ac_ct_OBJDUMP" = x; then
3384 OBJDUMP="false"
3385 else
3386 case $cross_compiling:$ac_tool_warned in
3387 yes:)
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned=yes ;;
3391 esac
3392 OBJDUMP=$ac_ct_OBJDUMP
3393 fi
3394 else
3395 OBJDUMP="$ac_cv_prog_OBJDUMP"
3396 fi
3397
3398 ;;
3399 esac
3400
3401 test -z "$AS" && AS=as
3402
3403
3404
3405
3406
3407 test -z "$DLLTOOL" && DLLTOOL=dlltool
3408
3409
3410
3411
3412
3413 test -z "$OBJDUMP" && OBJDUMP=objdump
3414
3415
3416
3417
3418
3419
3420
3421 case `pwd` in
3422 *\ * | *\ *)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3424 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3425 esac
3426
3427
3428
3429 macro_version='2.4.2'
3430 macro_revision='1.3337'
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444 ltmain="$ac_aux_dir/ltmain.sh"
3445
3446 # Backslashify metacharacters that are still active within
3447 # double-quoted strings.
3448 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3449
3450 # Same as above, but do not quote variable references.
3451 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3452
3453 # Sed substitution to delay expansion of an escaped shell variable in a
3454 # double_quote_subst'ed string.
3455 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3456
3457 # Sed substitution to delay expansion of an escaped single quote.
3458 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3459
3460 # Sed substitution to avoid accidental globbing in evaled expressions
3461 no_glob_subst='s/\*/\\\*/g'
3462
3463 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3464 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3465 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3466
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3468 $as_echo_n "checking how to print strings... " >&6; }
3469 # Test print first, because it will be a builtin if present.
3470 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3471 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3472 ECHO='print -r --'
3473 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3474 ECHO='printf %s\n'
3475 else
3476 # Use this function as a fallback that always works.
3477 func_fallback_echo ()
3478 {
3479 eval 'cat <<_LTECHO_EOF
3480 $1
3481 _LTECHO_EOF'
3482 }
3483 ECHO='func_fallback_echo'
3484 fi
3485
3486 # func_echo_all arg...
3487 # Invoke $ECHO with all args, space-separated.
3488 func_echo_all ()
3489 {
3490 $ECHO ""
3491 }
3492
3493 case "$ECHO" in
3494 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3495 $as_echo "printf" >&6; } ;;
3496 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3497 $as_echo "print -r" >&6; } ;;
3498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3499 $as_echo "cat" >&6; } ;;
3500 esac
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515 DEPDIR="${am__leading_dot}deps"
3516
3517 ac_config_commands="$ac_config_commands depfiles"
3518
3519
3520 am_make=${MAKE-make}
3521 cat > confinc << 'END'
3522 am__doit:
3523 @echo this is the am__doit target
3524 .PHONY: am__doit
3525 END
3526 # If we don't find an include directive, just comment out the code.
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3528 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3529 am__include="#"
3530 am__quote=
3531 _am_result=none
3532 # First try GNU make style include.
3533 echo "include confinc" > confmf
3534 # Ignore all kinds of additional output from `make'.
3535 case `$am_make -s -f confmf 2> /dev/null` in #(
3536 *the\ am__doit\ target*)
3537 am__include=include
3538 am__quote=
3539 _am_result=GNU
3540 ;;
3541 esac
3542 # Now try BSD make style include.
3543 if test "$am__include" = "#"; then
3544 echo '.include "confinc"' > confmf
3545 case `$am_make -s -f confmf 2> /dev/null` in #(
3546 *the\ am__doit\ target*)
3547 am__include=.include
3548 am__quote="\""
3549 _am_result=BSD
3550 ;;
3551 esac
3552 fi
3553
3554
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3556 $as_echo "$_am_result" >&6; }
3557 rm -f confinc confmf
3558
3559 # Check whether --enable-dependency-tracking was given.
3560 if test "${enable_dependency_tracking+set}" = set; then :
3561 enableval=$enable_dependency_tracking;
3562 fi
3563
3564 if test "x$enable_dependency_tracking" != xno; then
3565 am_depcomp="$ac_aux_dir/depcomp"
3566 AMDEPBACKSLASH='\'
3567 am__nodep='_no'
3568 fi
3569 if test "x$enable_dependency_tracking" != xno; then
3570 AMDEP_TRUE=
3571 AMDEP_FALSE='#'
3572 else
3573 AMDEP_TRUE='#'
3574 AMDEP_FALSE=
3575 fi
3576
3577
3578 ac_ext=c
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621 fi
3622 if test -z "$ac_cv_prog_CC"; then
3623 ac_ct_CC=$CC
3624 # Extract the first word of "gcc", so it can be a program name with args.
3625 set dummy gcc; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$ac_ct_CC"; then
3632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641 ac_cv_prog_ac_ct_CC="gcc"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3652 if test -n "$ac_ct_CC"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654 $as_echo "$ac_ct_CC" >&6; }
3655 else
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 fi
3659
3660 if test "x$ac_ct_CC" = x; then
3661 CC=""
3662 else
3663 case $cross_compiling:$ac_tool_warned in
3664 yes:)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669 CC=$ac_ct_CC
3670 fi
3671 else
3672 CC="$ac_cv_prog_CC"
3673 fi
3674
3675 if test -z "$CC"; then
3676 if test -n "$ac_tool_prefix"; then
3677 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}cc; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_prog_CC+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -n "$CC"; then
3685 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_CC="${ac_tool_prefix}cc"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698 done
3699 done
3700 IFS=$as_save_IFS
3701
3702 fi
3703 fi
3704 CC=$ac_cv_prog_CC
3705 if test -n "$CC"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3708 else
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 fi
3712
3713
3714 fi
3715 fi
3716 if test -z "$CC"; then
3717 # Extract the first word of "cc", so it can be a program name with args.
3718 set dummy cc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 ac_prog_rejected=no
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3730 do
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3736 ac_prog_rejected=yes
3737 continue
3738 fi
3739 ac_cv_prog_CC="cc"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 if test $ac_prog_rejected = yes; then
3748 # We found a bogon in the path, so make sure we never use it.
3749 set dummy $ac_cv_prog_CC
3750 shift
3751 if test $# != 0; then
3752 # We chose a different compiler from the bogus one.
3753 # However, it has the same basename, so the bogon will be chosen
3754 # first if we set CC to just the basename; use the full file name.
3755 shift
3756 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3757 fi
3758 fi
3759 fi
3760 fi
3761 CC=$ac_cv_prog_CC
3762 if test -n "$CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764 $as_echo "$CC" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3768 fi
3769
3770
3771 fi
3772 if test -z "$CC"; then
3773 if test -n "$ac_tool_prefix"; then
3774 for ac_prog in cl.exe
3775 do
3776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_CC+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$CC"; then
3784 ac_cv_prog_CC="$CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799 IFS=$as_save_IFS
3800
3801 fi
3802 fi
3803 CC=$ac_cv_prog_CC
3804 if test -n "$CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 $as_echo "$CC" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 fi
3811
3812
3813 test -n "$CC" && break
3814 done
3815 fi
3816 if test -z "$CC"; then
3817 ac_ct_CC=$CC
3818 for ac_prog in cl.exe
3819 do
3820 # Extract the first word of "$ac_prog", so it can be a program name with args.
3821 set dummy $ac_prog; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if test -n "$ac_ct_CC"; then
3828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_CC="$ac_prog"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841 done
3842 done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3848 if test -n "$ac_ct_CC"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3850 $as_echo "$ac_ct_CC" >&6; }
3851 else
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3854 fi
3855
3856
3857 test -n "$ac_ct_CC" && break
3858 done
3859
3860 if test "x$ac_ct_CC" = x; then
3861 CC=""
3862 else
3863 case $cross_compiling:$ac_tool_warned in
3864 yes:)
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867 ac_tool_warned=yes ;;
3868 esac
3869 CC=$ac_ct_CC
3870 fi
3871 fi
3872
3873 fi
3874
3875
3876 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "no acceptable C compiler found in \$PATH
3879 See \`config.log' for more details" "$LINENO" 5; }
3880
3881 # Provide some information about the compiler.
3882 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3883 set X $ac_compile
3884 ac_compiler=$2
3885 for ac_option in --version -v -V -qversion; do
3886 { { ac_try="$ac_compiler $ac_option >&5"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 $as_echo "$ac_try_echo"; } >&5
3893 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3894 ac_status=$?
3895 if test -s conftest.err; then
3896 sed '10a\
3897 ... rest of stderr output deleted ...
3898 10q' conftest.err >conftest.er1
3899 cat conftest.er1 >&5
3900 fi
3901 rm -f conftest.er1 conftest.err
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }
3904 done
3905
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3908
3909 int
3910 main ()
3911 {
3912
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 ac_clean_files_save=$ac_clean_files
3918 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3919 # Try to create an executable without -o first, disregard a.out.
3920 # It will help us diagnose broken compilers, and finding out an intuition
3921 # of exeext.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3923 $as_echo_n "checking whether the C compiler works... " >&6; }
3924 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3925
3926 # The possible output files:
3927 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3928
3929 ac_rmfiles=
3930 for ac_file in $ac_files
3931 do
3932 case $ac_file in
3933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3934 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3935 esac
3936 done
3937 rm -f $ac_rmfiles
3938
3939 if { { ac_try="$ac_link_default"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_link_default") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; then :
3950 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3952 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3953 # so that the user can short-circuit this test for compilers unknown to
3954 # Autoconf.
3955 for ac_file in $ac_files ''
3956 do
3957 test -f "$ac_file" || continue
3958 case $ac_file in
3959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3960 ;;
3961 [ab].out )
3962 # We found the default executable, but exeext='' is most
3963 # certainly right.
3964 break;;
3965 *.* )
3966 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3967 then :; else
3968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969 fi
3970 # We set ac_cv_exeext here because the later test for it is not
3971 # safe: cross compilers may not add the suffix if given an `-o'
3972 # argument, so we may need to know it at that point already.
3973 # Even if this section looks crufty: it has the advantage of
3974 # actually working.
3975 break;;
3976 * )
3977 break;;
3978 esac
3979 done
3980 test "$ac_cv_exeext" = no && ac_cv_exeext=
3981
3982 else
3983 ac_file=''
3984 fi
3985 if test -z "$ac_file"; then :
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3988 $as_echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error 77 "C compiler cannot create executables
3994 See \`config.log' for more details" "$LINENO" 5; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3997 $as_echo "yes" >&6; }
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4000 $as_echo_n "checking for C compiler default output file name... " >&6; }
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4002 $as_echo "$ac_file" >&6; }
4003 ac_exeext=$ac_cv_exeext
4004
4005 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4006 ac_clean_files=$ac_clean_files_save
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4008 $as_echo_n "checking for suffix of executables... " >&6; }
4009 if { { ac_try="$ac_link"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4017 ac_status=$?
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }; then :
4020 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4021 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4022 # work properly (i.e., refer to `conftest.exe'), while it won't with
4023 # `rm'.
4024 for ac_file in conftest.exe conftest conftest.*; do
4025 test -f "$ac_file" || continue
4026 case $ac_file in
4027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4029 break;;
4030 * ) break;;
4031 esac
4032 done
4033 else
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4037 See \`config.log' for more details" "$LINENO" 5; }
4038 fi
4039 rm -f conftest conftest$ac_cv_exeext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4041 $as_echo "$ac_cv_exeext" >&6; }
4042
4043 rm -f conftest.$ac_ext
4044 EXEEXT=$ac_cv_exeext
4045 ac_exeext=$EXEEXT
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <stdio.h>
4049 int
4050 main ()
4051 {
4052 FILE *f = fopen ("conftest.out", "w");
4053 return ferror (f) || fclose (f) != 0;
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 ac_clean_files="$ac_clean_files conftest.out"
4060 # Check that the compiler produces executables we can run. If not, either
4061 # the compiler is broken, or we cross compile.
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4063 $as_echo_n "checking whether we are cross compiling... " >&6; }
4064 if test "$cross_compiling" != yes; then
4065 { { ac_try="$ac_link"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071 $as_echo "$ac_try_echo"; } >&5
4072 (eval "$ac_link") 2>&5
4073 ac_status=$?
4074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075 test $ac_status = 0; }
4076 if { ac_try='./conftest$ac_cv_exeext'
4077 { { case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 $as_echo "$ac_try_echo"; } >&5
4083 (eval "$ac_try") 2>&5
4084 ac_status=$?
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }; }; then
4087 cross_compiling=no
4088 else
4089 if test "$cross_compiling" = maybe; then
4090 cross_compiling=yes
4091 else
4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4094 as_fn_error $? "cannot run C compiled programs.
4095 If you meant to cross compile, use \`--host'.
4096 See \`config.log' for more details" "$LINENO" 5; }
4097 fi
4098 fi
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4101 $as_echo "$cross_compiling" >&6; }
4102
4103 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4104 ac_clean_files=$ac_clean_files_save
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4106 $as_echo_n "checking for suffix of object files... " >&6; }
4107 if ${ac_cv_objext+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 int
4114 main ()
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.o conftest.obj
4122 if { { ac_try="$ac_compile"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_compile") 2>&5
4130 ac_status=$?
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }; then :
4133 for ac_file in conftest.o conftest.obj conftest.*; do
4134 test -f "$ac_file" || continue;
4135 case $ac_file in
4136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4137 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4138 break;;
4139 esac
4140 done
4141 else
4142 $as_echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4144
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "cannot compute suffix of object files: cannot compile
4148 See \`config.log' for more details" "$LINENO" 5; }
4149 fi
4150 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4153 $as_echo "$ac_cv_objext" >&6; }
4154 OBJEXT=$ac_cv_objext
4155 ac_objext=$OBJEXT
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4157 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4158 if ${ac_cv_c_compiler_gnu+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163
4164 int
4165 main ()
4166 {
4167 #ifndef __GNUC__
4168 choke me
4169 #endif
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_compiler_gnu=yes
4177 else
4178 ac_compiler_gnu=no
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4182
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4185 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4186 if test $ac_compiler_gnu = yes; then
4187 GCC=yes
4188 else
4189 GCC=
4190 fi
4191 ac_test_CFLAGS=${CFLAGS+set}
4192 ac_save_CFLAGS=$CFLAGS
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4194 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4195 if ${ac_cv_prog_cc_g+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 ac_save_c_werror_flag=$ac_c_werror_flag
4199 ac_c_werror_flag=yes
4200 ac_cv_prog_cc_g=no
4201 CFLAGS="-g"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204
4205 int
4206 main ()
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_prog_cc_g=yes
4215 else
4216 CFLAGS=""
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219
4220 int
4221 main ()
4222 {
4223
4224 ;
4225 return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229
4230 else
4231 ac_c_werror_flag=$ac_save_c_werror_flag
4232 CFLAGS="-g"
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235
4236 int
4237 main ()
4238 {
4239
4240 ;
4241 return 0;
4242 }
4243 _ACEOF
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_g=yes
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 ac_c_werror_flag=$ac_save_c_werror_flag
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4255 $as_echo "$ac_cv_prog_cc_g" >&6; }
4256 if test "$ac_test_CFLAGS" = set; then
4257 CFLAGS=$ac_save_CFLAGS
4258 elif test $ac_cv_prog_cc_g = yes; then
4259 if test "$GCC" = yes; then
4260 CFLAGS="-g -O2"
4261 else
4262 CFLAGS="-g"
4263 fi
4264 else
4265 if test "$GCC" = yes; then
4266 CFLAGS="-O2"
4267 else
4268 CFLAGS=
4269 fi
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4272 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4273 if ${ac_cv_prog_cc_c89+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 ac_cv_prog_cc_c89=no
4277 ac_save_CC=$CC
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <stdarg.h>
4281 #include <stdio.h>
4282 struct stat;
4283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4284 struct buf { int x; };
4285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4286 static char *e (p, i)
4287 char **p;
4288 int i;
4289 {
4290 return p[i];
4291 }
4292 static char *f (char * (*g) (char **, int), char **p, ...)
4293 {
4294 char *s;
4295 va_list v;
4296 va_start (v,p);
4297 s = g (p, va_arg (v,int));
4298 va_end (v);
4299 return s;
4300 }
4301
4302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4303 function prototypes and stuff, but not '\xHH' hex character constants.
4304 These don't provoke an error unfortunately, instead are silently treated
4305 as 'x'. The following induces an error, until -std is added to get
4306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4307 array size at least. It's necessary to write '\x00'==0 to get something
4308 that's true only with -std. */
4309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4310
4311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4312 inside strings and character constants. */
4313 #define FOO(x) 'x'
4314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4315
4316 int test (int i, double x);
4317 struct s1 {int (*f) (int a);};
4318 struct s2 {int (*f) (double a);};
4319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4320 int argc;
4321 char **argv;
4322 int
4323 main ()
4324 {
4325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4326 ;
4327 return 0;
4328 }
4329 _ACEOF
4330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4332 do
4333 CC="$ac_save_CC $ac_arg"
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_prog_cc_c89=$ac_arg
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext
4338 test "x$ac_cv_prog_cc_c89" != "xno" && break
4339 done
4340 rm -f conftest.$ac_ext
4341 CC=$ac_save_CC
4342
4343 fi
4344 # AC_CACHE_VAL
4345 case "x$ac_cv_prog_cc_c89" in
4346 x)
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4348 $as_echo "none needed" >&6; } ;;
4349 xno)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4351 $as_echo "unsupported" >&6; } ;;
4352 *)
4353 CC="$CC $ac_cv_prog_cc_c89"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4355 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4356 esac
4357 if test "x$ac_cv_prog_cc_c89" != xno; then :
4358
4359 fi
4360
4361 ac_ext=c
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366
4367 depcc="$CC" am_compiler_list=
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4370 $as_echo_n "checking dependency style of $depcc... " >&6; }
4371 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4375 # We make a subdir and do the tests there. Otherwise we can end up
4376 # making bogus files that we don't know about and never remove. For
4377 # instance it was reported that on HP-UX the gcc test will end up
4378 # making a dummy file named `D' -- because `-MD' means `put the output
4379 # in D'.
4380 rm -rf conftest.dir
4381 mkdir conftest.dir
4382 # Copy depcomp to subdir because otherwise we won't find it if we're
4383 # using a relative directory.
4384 cp "$am_depcomp" conftest.dir
4385 cd conftest.dir
4386 # We will build objects and dependencies in a subdirectory because
4387 # it helps to detect inapplicable dependency modes. For instance
4388 # both Tru64's cc and ICC support -MD to output dependencies as a
4389 # side effect of compilation, but ICC will put the dependencies in
4390 # the current directory while Tru64 will put them in the object
4391 # directory.
4392 mkdir sub
4393
4394 am_cv_CC_dependencies_compiler_type=none
4395 if test "$am_compiler_list" = ""; then
4396 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4397 fi
4398 am__universal=false
4399 case " $depcc " in #(
4400 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4401 esac
4402
4403 for depmode in $am_compiler_list; do
4404 # Setup a source with many dependencies, because some compilers
4405 # like to wrap large dependency lists on column 80 (with \), and
4406 # we should not choose a depcomp mode which is confused by this.
4407 #
4408 # We need to recreate these files for each test, as the compiler may
4409 # overwrite some of them when testing with obscure command lines.
4410 # This happens at least with the AIX C compiler.
4411 : > sub/conftest.c
4412 for i in 1 2 3 4 5 6; do
4413 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4414 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4415 # Solaris 8's {/usr,}/bin/sh.
4416 touch sub/conftst$i.h
4417 done
4418 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4419
4420 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4421 # mode. It turns out that the SunPro C++ compiler does not properly
4422 # handle `-M -o', and we need to detect this. Also, some Intel
4423 # versions had trouble with output in subdirs
4424 am__obj=sub/conftest.${OBJEXT-o}
4425 am__minus_obj="-o $am__obj"
4426 case $depmode in
4427 gcc)
4428 # This depmode causes a compiler race in universal mode.
4429 test "$am__universal" = false || continue
4430 ;;
4431 nosideeffect)
4432 # after this tag, mechanisms are not by side-effect, so they'll
4433 # only be used when explicitly requested
4434 if test "x$enable_dependency_tracking" = xyes; then
4435 continue
4436 else
4437 break
4438 fi
4439 ;;
4440 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4441 # This compiler won't grok `-c -o', but also, the minuso test has
4442 # not run yet. These depmodes are late enough in the game, and
4443 # so weak that their functioning should not be impacted.
4444 am__obj=conftest.${OBJEXT-o}
4445 am__minus_obj=
4446 ;;
4447 none) break ;;
4448 esac
4449 if depmode=$depmode \
4450 source=sub/conftest.c object=$am__obj \
4451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4452 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4453 >/dev/null 2>conftest.err &&
4454 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4455 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4456 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4457 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4458 # icc doesn't choke on unknown options, it will just issue warnings
4459 # or remarks (even with -Werror). So we grep stderr for any message
4460 # that says an option was ignored or not supported.
4461 # When given -MP, icc 7.0 and 7.1 complain thusly:
4462 # icc: Command line warning: ignoring option '-M'; no argument required
4463 # The diagnosis changed in icc 8.0:
4464 # icc: Command line remark: option '-MP' not supported
4465 if (grep 'ignoring option' conftest.err ||
4466 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4467 am_cv_CC_dependencies_compiler_type=$depmode
4468 break
4469 fi
4470 fi
4471 done
4472
4473 cd ..
4474 rm -rf conftest.dir
4475 else
4476 am_cv_CC_dependencies_compiler_type=none
4477 fi
4478
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4481 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4482 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4483
4484 if
4485 test "x$enable_dependency_tracking" != xno \
4486 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4487 am__fastdepCC_TRUE=
4488 am__fastdepCC_FALSE='#'
4489 else
4490 am__fastdepCC_TRUE='#'
4491 am__fastdepCC_FALSE=
4492 fi
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4496 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4497 if ${ac_cv_path_SED+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4501 for ac_i in 1 2 3 4 5 6 7; do
4502 ac_script="$ac_script$as_nl$ac_script"
4503 done
4504 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4505 { ac_script=; unset ac_script;}
4506 if test -z "$SED"; then
4507 ac_path_SED_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in sed gsed; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4517 as_fn_executable_p "$ac_path_SED" || continue
4518 # Check for GNU ac_path_SED and select it if it is found.
4519 # Check for GNU $ac_path_SED
4520 case `"$ac_path_SED" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4523 *)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo '' >> "conftest.nl"
4532 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_SED_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_SED="$ac_path_SED"
4538 ac_path_SED_max=$ac_count
4539 fi
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4545
4546 $ac_path_SED_found && break 3
4547 done
4548 done
4549 done
4550 IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_SED"; then
4552 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4553 fi
4554 else
4555 ac_cv_path_SED=$SED
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4560 $as_echo "$ac_cv_path_SED" >&6; }
4561 SED="$ac_cv_path_SED"
4562 rm -f conftest.sed
4563
4564 test -z "$SED" && SED=sed
4565 Xsed="$SED -e 1s/^X//"
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4578 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4579 if ${ac_cv_path_GREP+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -z "$GREP"; then
4583 ac_path_GREP_found=false
4584 # Loop through the user's path and test for each of PROGNAME-LIST
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_prog in grep ggrep; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4593 as_fn_executable_p "$ac_path_GREP" || continue
4594 # Check for GNU ac_path_GREP and select it if it is found.
4595 # Check for GNU $ac_path_GREP
4596 case `"$ac_path_GREP" --version 2>&1` in
4597 *GNU*)
4598 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599 *)
4600 ac_count=0
4601 $as_echo_n 0123456789 >"conftest.in"
4602 while :
4603 do
4604 cat "conftest.in" "conftest.in" >"conftest.tmp"
4605 mv "conftest.tmp" "conftest.in"
4606 cp "conftest.in" "conftest.nl"
4607 $as_echo 'GREP' >> "conftest.nl"
4608 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610 as_fn_arith $ac_count + 1 && ac_count=$as_val
4611 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4612 # Best one so far, save it but keep looking for a better one
4613 ac_cv_path_GREP="$ac_path_GREP"
4614 ac_path_GREP_max=$ac_count
4615 fi
4616 # 10*(2^10) chars as input seems more than enough
4617 test $ac_count -gt 10 && break
4618 done
4619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 esac
4621
4622 $ac_path_GREP_found && break 3
4623 done
4624 done
4625 done
4626 IFS=$as_save_IFS
4627 if test -z "$ac_cv_path_GREP"; then
4628 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 fi
4630 else
4631 ac_cv_path_GREP=$GREP
4632 fi
4633
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4636 $as_echo "$ac_cv_path_GREP" >&6; }
4637 GREP="$ac_cv_path_GREP"
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4641 $as_echo_n "checking for egrep... " >&6; }
4642 if ${ac_cv_path_EGREP+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4646 then ac_cv_path_EGREP="$GREP -E"
4647 else
4648 if test -z "$EGREP"; then
4649 ac_path_EGREP_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653 do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_prog in egrep; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4659 as_fn_executable_p "$ac_path_EGREP" || continue
4660 # Check for GNU ac_path_EGREP and select it if it is found.
4661 # Check for GNU $ac_path_EGREP
4662 case `"$ac_path_EGREP" --version 2>&1` in
4663 *GNU*)
4664 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665 *)
4666 ac_count=0
4667 $as_echo_n 0123456789 >"conftest.in"
4668 while :
4669 do
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo 'EGREP' >> "conftest.nl"
4674 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_EGREP="$ac_path_EGREP"
4680 ac_path_EGREP_max=$ac_count
4681 fi
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
4684 done
4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 esac
4687
4688 $ac_path_EGREP_found && break 3
4689 done
4690 done
4691 done
4692 IFS=$as_save_IFS
4693 if test -z "$ac_cv_path_EGREP"; then
4694 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695 fi
4696 else
4697 ac_cv_path_EGREP=$EGREP
4698 fi
4699
4700 fi
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4703 $as_echo "$ac_cv_path_EGREP" >&6; }
4704 EGREP="$ac_cv_path_EGREP"
4705
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4708 $as_echo_n "checking for fgrep... " >&6; }
4709 if ${ac_cv_path_FGREP+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4713 then ac_cv_path_FGREP="$GREP -F"
4714 else
4715 if test -z "$FGREP"; then
4716 ac_path_FGREP_found=false
4717 # Loop through the user's path and test for each of PROGNAME-LIST
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_prog in fgrep; do
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4726 as_fn_executable_p "$ac_path_FGREP" || continue
4727 # Check for GNU ac_path_FGREP and select it if it is found.
4728 # Check for GNU $ac_path_FGREP
4729 case `"$ac_path_FGREP" --version 2>&1` in
4730 *GNU*)
4731 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4732 *)
4733 ac_count=0
4734 $as_echo_n 0123456789 >"conftest.in"
4735 while :
4736 do
4737 cat "conftest.in" "conftest.in" >"conftest.tmp"
4738 mv "conftest.tmp" "conftest.in"
4739 cp "conftest.in" "conftest.nl"
4740 $as_echo 'FGREP' >> "conftest.nl"
4741 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743 as_fn_arith $ac_count + 1 && ac_count=$as_val
4744 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4745 # Best one so far, save it but keep looking for a better one
4746 ac_cv_path_FGREP="$ac_path_FGREP"
4747 ac_path_FGREP_max=$ac_count
4748 fi
4749 # 10*(2^10) chars as input seems more than enough
4750 test $ac_count -gt 10 && break
4751 done
4752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753 esac
4754
4755 $ac_path_FGREP_found && break 3
4756 done
4757 done
4758 done
4759 IFS=$as_save_IFS
4760 if test -z "$ac_cv_path_FGREP"; then
4761 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4762 fi
4763 else
4764 ac_cv_path_FGREP=$FGREP
4765 fi
4766
4767 fi
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4770 $as_echo "$ac_cv_path_FGREP" >&6; }
4771 FGREP="$ac_cv_path_FGREP"
4772
4773
4774 test -z "$GREP" && GREP=grep
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 # Check whether --with-gnu-ld was given.
4795 if test "${with_gnu_ld+set}" = set; then :
4796 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4797 else
4798 with_gnu_ld=no
4799 fi
4800
4801 ac_prog=ld
4802 if test "$GCC" = yes; then
4803 # Check if gcc -print-prog-name=ld gives a path.
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4805 $as_echo_n "checking for ld used by $CC... " >&6; }
4806 case $host in
4807 *-*-mingw*)
4808 # gcc leaves a trailing carriage return which upsets mingw
4809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4810 *)
4811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4812 esac
4813 case $ac_prog in
4814 # Accept absolute paths.
4815 [\\/]* | ?:[\\/]*)
4816 re_direlt='/[^/][^/]*/\.\./'
4817 # Canonicalize the pathname of ld
4818 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4819 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4820 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4821 done
4822 test -z "$LD" && LD="$ac_prog"
4823 ;;
4824 "")
4825 # If it fails, then pretend we aren't using GCC.
4826 ac_prog=ld
4827 ;;
4828 *)
4829 # If it is relative, then search for the first ld in PATH.
4830 with_gnu_ld=unknown
4831 ;;
4832 esac
4833 elif test "$with_gnu_ld" = yes; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4835 $as_echo_n "checking for GNU ld... " >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4838 $as_echo_n "checking for non-GNU ld... " >&6; }
4839 fi
4840 if ${lt_cv_path_LD+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -z "$LD"; then
4844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4845 for ac_dir in $PATH; do
4846 IFS="$lt_save_ifs"
4847 test -z "$ac_dir" && ac_dir=.
4848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4849 lt_cv_path_LD="$ac_dir/$ac_prog"
4850 # Check to see if the program is GNU ld. I'd rather use --version,
4851 # but apparently some variants of GNU ld only accept -v.
4852 # Break only if it was the GNU/non-GNU ld that we prefer.
4853 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4854 *GNU* | *'with BFD'*)
4855 test "$with_gnu_ld" != no && break
4856 ;;
4857 *)
4858 test "$with_gnu_ld" != yes && break
4859 ;;
4860 esac
4861 fi
4862 done
4863 IFS="$lt_save_ifs"
4864 else
4865 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4866 fi
4867 fi
4868
4869 LD="$lt_cv_path_LD"
4870 if test -n "$LD"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4872 $as_echo "$LD" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4879 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4880 if ${lt_cv_prog_gnu_ld+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4884 case `$LD -v 2>&1 </dev/null` in
4885 *GNU* | *'with BFD'*)
4886 lt_cv_prog_gnu_ld=yes
4887 ;;
4888 *)
4889 lt_cv_prog_gnu_ld=no
4890 ;;
4891 esac
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4894 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4895 with_gnu_ld=$lt_cv_prog_gnu_ld
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4906 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4907 if ${lt_cv_path_NM+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$NM"; then
4911 # Let the user override the test.
4912 lt_cv_path_NM="$NM"
4913 else
4914 lt_nm_to_check="${ac_tool_prefix}nm"
4915 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4916 lt_nm_to_check="$lt_nm_to_check nm"
4917 fi
4918 for lt_tmp_nm in $lt_nm_to_check; do
4919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4920 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4921 IFS="$lt_save_ifs"
4922 test -z "$ac_dir" && ac_dir=.
4923 tmp_nm="$ac_dir/$lt_tmp_nm"
4924 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4925 # Check to see if the nm accepts a BSD-compat flag.
4926 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4927 # nm: unknown option "B" ignored
4928 # Tru64's nm complains that /dev/null is an invalid object file
4929 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4930 */dev/null* | *'Invalid file or object type'*)
4931 lt_cv_path_NM="$tmp_nm -B"
4932 break
4933 ;;
4934 *)
4935 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4936 */dev/null*)
4937 lt_cv_path_NM="$tmp_nm -p"
4938 break
4939 ;;
4940 *)
4941 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4942 continue # so that we can try to find one that supports BSD flags
4943 ;;
4944 esac
4945 ;;
4946 esac
4947 fi
4948 done
4949 IFS="$lt_save_ifs"
4950 done
4951 : ${lt_cv_path_NM=no}
4952 fi
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4955 $as_echo "$lt_cv_path_NM" >&6; }
4956 if test "$lt_cv_path_NM" != "no"; then
4957 NM="$lt_cv_path_NM"
4958 else
4959 # Didn't find any BSD compatible name lister, look for dumpbin.
4960 if test -n "$DUMPBIN"; then :
4961 # Let the user override the test.
4962 else
4963 if test -n "$ac_tool_prefix"; then
4964 for ac_prog in dumpbin "link -dump"
4965 do
4966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_DUMPBIN+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$DUMPBIN"; then
4974 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 DUMPBIN=$ac_cv_prog_DUMPBIN
4994 if test -n "$DUMPBIN"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4996 $as_echo "$DUMPBIN" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002
5003 test -n "$DUMPBIN" && break
5004 done
5005 fi
5006 if test -z "$DUMPBIN"; then
5007 ac_ct_DUMPBIN=$DUMPBIN
5008 for ac_prog in dumpbin "link -dump"
5009 do
5010 # Extract the first word of "$ac_prog", so it can be a program name with args.
5011 set dummy $ac_prog; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$ac_ct_DUMPBIN"; then
5018 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031 done
5032 done
5033 IFS=$as_save_IFS
5034
5035 fi
5036 fi
5037 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5038 if test -n "$ac_ct_DUMPBIN"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5040 $as_echo "$ac_ct_DUMPBIN" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5044 fi
5045
5046
5047 test -n "$ac_ct_DUMPBIN" && break
5048 done
5049
5050 if test "x$ac_ct_DUMPBIN" = x; then
5051 DUMPBIN=":"
5052 else
5053 case $cross_compiling:$ac_tool_warned in
5054 yes:)
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057 ac_tool_warned=yes ;;
5058 esac
5059 DUMPBIN=$ac_ct_DUMPBIN
5060 fi
5061 fi
5062
5063 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5064 *COFF*)
5065 DUMPBIN="$DUMPBIN -symbols"
5066 ;;
5067 *)
5068 DUMPBIN=:
5069 ;;
5070 esac
5071 fi
5072
5073 if test "$DUMPBIN" != ":"; then
5074 NM="$DUMPBIN"
5075 fi
5076 fi
5077 test -z "$NM" && NM=nm
5078
5079
5080
5081
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5085 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5086 if ${lt_cv_nm_interface+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 lt_cv_nm_interface="BSD nm"
5090 echo "int some_variable = 0;" > conftest.$ac_ext
5091 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5092 (eval "$ac_compile" 2>conftest.err)
5093 cat conftest.err >&5
5094 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5095 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5096 cat conftest.err >&5
5097 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5098 cat conftest.out >&5
5099 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5100 lt_cv_nm_interface="MS dumpbin"
5101 fi
5102 rm -f conftest*
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5105 $as_echo "$lt_cv_nm_interface" >&6; }
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5108 $as_echo_n "checking whether ln -s works... " >&6; }
5109 LN_S=$as_ln_s
5110 if test "$LN_S" = "ln -s"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5112 $as_echo "yes" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5115 $as_echo "no, using $LN_S" >&6; }
5116 fi
5117
5118 # find the maximum length of command line arguments
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5120 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5121 if ${lt_cv_sys_max_cmd_len+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 i=0
5125 teststring="ABCD"
5126
5127 case $build_os in
5128 msdosdjgpp*)
5129 # On DJGPP, this test can blow up pretty badly due to problems in libc
5130 # (any single argument exceeding 2000 bytes causes a buffer overrun
5131 # during glob expansion). Even if it were fixed, the result of this
5132 # check would be larger than it should be.
5133 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5134 ;;
5135
5136 gnu*)
5137 # Under GNU Hurd, this test is not required because there is
5138 # no limit to the length of command line arguments.
5139 # Libtool will interpret -1 as no limit whatsoever
5140 lt_cv_sys_max_cmd_len=-1;
5141 ;;
5142
5143 cygwin* | mingw* | cegcc*)
5144 # On Win9x/ME, this test blows up -- it succeeds, but takes
5145 # about 5 minutes as the teststring grows exponentially.
5146 # Worse, since 9x/ME are not pre-emptively multitasking,
5147 # you end up with a "frozen" computer, even though with patience
5148 # the test eventually succeeds (with a max line length of 256k).
5149 # Instead, let's just punt: use the minimum linelength reported by
5150 # all of the supported platforms: 8192 (on NT/2K/XP).
5151 lt_cv_sys_max_cmd_len=8192;
5152 ;;
5153
5154 mint*)
5155 # On MiNT this can take a long time and run out of memory.
5156 lt_cv_sys_max_cmd_len=8192;
5157 ;;
5158
5159 amigaos*)
5160 # On AmigaOS with pdksh, this test takes hours, literally.
5161 # So we just punt and use a minimum line length of 8192.
5162 lt_cv_sys_max_cmd_len=8192;
5163 ;;
5164
5165 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5166 # This has been around since 386BSD, at least. Likely further.
5167 if test -x /sbin/sysctl; then
5168 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5169 elif test -x /usr/sbin/sysctl; then
5170 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5171 else
5172 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5173 fi
5174 # And add a safety zone
5175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5177 ;;
5178
5179 interix*)
5180 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5181 lt_cv_sys_max_cmd_len=196608
5182 ;;
5183
5184 os2*)
5185 # The test takes a long time on OS/2.
5186 lt_cv_sys_max_cmd_len=8192
5187 ;;
5188
5189 osf*)
5190 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5191 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5192 # nice to cause kernel panics so lets avoid the loop below.
5193 # First set a reasonable default.
5194 lt_cv_sys_max_cmd_len=16384
5195 #
5196 if test -x /sbin/sysconfig; then
5197 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5198 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5199 esac
5200 fi
5201 ;;
5202 sco3.2v5*)
5203 lt_cv_sys_max_cmd_len=102400
5204 ;;
5205 sysv5* | sco5v6* | sysv4.2uw2*)
5206 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5207 if test -n "$kargmax"; then
5208 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5209 else
5210 lt_cv_sys_max_cmd_len=32768
5211 fi
5212 ;;
5213 *)
5214 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5215 if test -n "$lt_cv_sys_max_cmd_len"; then
5216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5218 else
5219 # Make teststring a little bigger before we do anything with it.
5220 # a 1K string should be a reasonable start.
5221 for i in 1 2 3 4 5 6 7 8 ; do
5222 teststring=$teststring$teststring
5223 done
5224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5225 # If test is not a shell built-in, we'll probably end up computing a
5226 # maximum length that is only half of the actual maximum length, but
5227 # we can't tell.
5228 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5229 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5230 test $i != 17 # 1/2 MB should be enough
5231 do
5232 i=`expr $i + 1`
5233 teststring=$teststring$teststring
5234 done
5235 # Only check the string length outside the loop.
5236 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5237 teststring=
5238 # Add a significant safety factor because C++ compilers can tack on
5239 # massive amounts of additional arguments before passing them to the
5240 # linker. It appears as though 1/2 is a usable value.
5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5242 fi
5243 ;;
5244 esac
5245
5246 fi
5247
5248 if test -n $lt_cv_sys_max_cmd_len ; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5250 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5253 $as_echo "none" >&6; }
5254 fi
5255 max_cmd_len=$lt_cv_sys_max_cmd_len
5256
5257
5258
5259
5260
5261
5262 : ${CP="cp -f"}
5263 : ${MV="mv -f"}
5264 : ${RM="rm -f"}
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5267 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5268 # Try some XSI features
5269 xsi_shell=no
5270 ( _lt_dummy="a/b/c"
5271 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5272 = c,a/b,b/c, \
5273 && eval 'test $(( 1 + 1 )) -eq 2 \
5274 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5275 && xsi_shell=yes
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5277 $as_echo "$xsi_shell" >&6; }
5278
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5281 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5282 lt_shell_append=no
5283 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5284 >/dev/null 2>&1 \
5285 && lt_shell_append=yes
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5287 $as_echo "$lt_shell_append" >&6; }
5288
5289
5290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5291 lt_unset=unset
5292 else
5293 lt_unset=false
5294 fi
5295
5296
5297
5298
5299
5300 # test EBCDIC or ASCII
5301 case `echo X|tr X '\101'` in
5302 A) # ASCII based system
5303 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5304 lt_SP2NL='tr \040 \012'
5305 lt_NL2SP='tr \015\012 \040\040'
5306 ;;
5307 *) # EBCDIC based system
5308 lt_SP2NL='tr \100 \n'
5309 lt_NL2SP='tr \r\n \100\100'
5310 ;;
5311 esac
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5322 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5323 if ${lt_cv_to_host_file_cmd+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 case $host in
5327 *-*-mingw* )
5328 case $build in
5329 *-*-mingw* ) # actually msys
5330 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5331 ;;
5332 *-*-cygwin* )
5333 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5334 ;;
5335 * ) # otherwise, assume *nix
5336 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5337 ;;
5338 esac
5339 ;;
5340 *-*-cygwin* )
5341 case $build in
5342 *-*-mingw* ) # actually msys
5343 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5344 ;;
5345 *-*-cygwin* )
5346 lt_cv_to_host_file_cmd=func_convert_file_noop
5347 ;;
5348 * ) # otherwise, assume *nix
5349 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5350 ;;
5351 esac
5352 ;;
5353 * ) # unhandled hosts (and "normal" native builds)
5354 lt_cv_to_host_file_cmd=func_convert_file_noop
5355 ;;
5356 esac
5357
5358 fi
5359
5360 to_host_file_cmd=$lt_cv_to_host_file_cmd
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5362 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5363
5364
5365
5366
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5369 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5370 if ${lt_cv_to_tool_file_cmd+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 #assume ordinary cross tools, or native build.
5374 lt_cv_to_tool_file_cmd=func_convert_file_noop
5375 case $host in
5376 *-*-mingw* )
5377 case $build in
5378 *-*-mingw* ) # actually msys
5379 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5380 ;;
5381 esac
5382 ;;
5383 esac
5384
5385 fi
5386
5387 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5389 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5390
5391
5392
5393
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5396 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5397 if ${lt_cv_ld_reload_flag+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 lt_cv_ld_reload_flag='-r'
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5403 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5404 reload_flag=$lt_cv_ld_reload_flag
5405 case $reload_flag in
5406 "" | " "*) ;;
5407 *) reload_flag=" $reload_flag" ;;
5408 esac
5409 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5410 case $host_os in
5411 cygwin* | mingw* | pw32* | cegcc*)
5412 if test "$GCC" != yes; then
5413 reload_cmds=false
5414 fi
5415 ;;
5416 darwin*)
5417 if test "$GCC" = yes; then
5418 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5419 else
5420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5421 fi
5422 ;;
5423 esac
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5435 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_OBJDUMP+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$OBJDUMP"; then
5442 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 OBJDUMP=$ac_cv_prog_OBJDUMP
5462 if test -n "$OBJDUMP"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5464 $as_echo "$OBJDUMP" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470
5471 fi
5472 if test -z "$ac_cv_prog_OBJDUMP"; then
5473 ac_ct_OBJDUMP=$OBJDUMP
5474 # Extract the first word of "objdump", so it can be a program name with args.
5475 set dummy objdump; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$ac_ct_OBJDUMP"; then
5482 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5502 if test -n "$ac_ct_OBJDUMP"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5504 $as_echo "$ac_ct_OBJDUMP" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510 if test "x$ac_ct_OBJDUMP" = x; then
5511 OBJDUMP="false"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514 yes:)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517 ac_tool_warned=yes ;;
5518 esac
5519 OBJDUMP=$ac_ct_OBJDUMP
5520 fi
5521 else
5522 OBJDUMP="$ac_cv_prog_OBJDUMP"
5523 fi
5524
5525 test -z "$OBJDUMP" && OBJDUMP=objdump
5526
5527
5528
5529
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5533 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5534 if ${lt_cv_deplibs_check_method+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 lt_cv_file_magic_cmd='$MAGIC_CMD'
5538 lt_cv_file_magic_test_file=
5539 lt_cv_deplibs_check_method='unknown'
5540 # Need to set the preceding variable on all platforms that support
5541 # interlibrary dependencies.
5542 # 'none' -- dependencies not supported.
5543 # `unknown' -- same as none, but documents that we really don't know.
5544 # 'pass_all' -- all dependencies passed with no checks.
5545 # 'test_compile' -- check by making test program.
5546 # 'file_magic [[regex]]' -- check by looking for files in library path
5547 # which responds to the $file_magic_cmd with a given extended regex.
5548 # If you have `file' or equivalent on your system and you're not sure
5549 # whether `pass_all' will *always* work, you probably want this one.
5550
5551 case $host_os in
5552 aix[4-9]*)
5553 lt_cv_deplibs_check_method=pass_all
5554 ;;
5555
5556 beos*)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559
5560 bsdi[45]*)
5561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5562 lt_cv_file_magic_cmd='/usr/bin/file -L'
5563 lt_cv_file_magic_test_file=/shlib/libc.so
5564 ;;
5565
5566 cygwin*)
5567 # func_win32_libid is a shell function defined in ltmain.sh
5568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5569 lt_cv_file_magic_cmd='func_win32_libid'
5570 ;;
5571
5572 mingw* | pw32*)
5573 # Base MSYS/MinGW do not provide the 'file' command needed by
5574 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5575 # unless we find 'file', for example because we are cross-compiling.
5576 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5577 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5579 lt_cv_file_magic_cmd='func_win32_libid'
5580 else
5581 # Keep this pattern in sync with the one in func_win32_libid.
5582 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5583 lt_cv_file_magic_cmd='$OBJDUMP -f'
5584 fi
5585 ;;
5586
5587 cegcc*)
5588 # use the weaker test based on 'objdump'. See mingw*.
5589 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5590 lt_cv_file_magic_cmd='$OBJDUMP -f'
5591 ;;
5592
5593 darwin* | rhapsody*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 freebsd* | dragonfly*)
5598 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5599 case $host_cpu in
5600 i*86 )
5601 # Not sure whether the presence of OpenBSD here was a mistake.
5602 # Let's accept both of them until this is cleared up.
5603 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5604 lt_cv_file_magic_cmd=/usr/bin/file
5605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5606 ;;
5607 esac
5608 else
5609 lt_cv_deplibs_check_method=pass_all
5610 fi
5611 ;;
5612
5613 haiku*)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616
5617 hpux10.20* | hpux11*)
5618 lt_cv_file_magic_cmd=/usr/bin/file
5619 case $host_cpu in
5620 ia64*)
5621 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5622 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5623 ;;
5624 hppa*64*)
5625 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]'
5626 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5627 ;;
5628 *)
5629 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5630 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5631 ;;
5632 esac
5633 ;;
5634
5635 interix[3-9]*)
5636 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5638 ;;
5639
5640 irix5* | irix6* | nonstopux*)
5641 case $LD in
5642 *-32|*"-32 ") libmagic=32-bit;;
5643 *-n32|*"-n32 ") libmagic=N32;;
5644 *-64|*"-64 ") libmagic=64-bit;;
5645 *) libmagic=never-match;;
5646 esac
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649
5650 # This must be glibc/ELF.
5651 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655 netbsd* | netbsdelf*-gnu)
5656 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5658 else
5659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5660 fi
5661 ;;
5662
5663 newos6*)
5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5665 lt_cv_file_magic_cmd=/usr/bin/file
5666 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5667 ;;
5668
5669 *nto* | *qnx*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673 openbsd*)
5674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5676 else
5677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5678 fi
5679 ;;
5680
5681 osf3* | osf4* | osf5*)
5682 lt_cv_deplibs_check_method=pass_all
5683 ;;
5684
5685 rdos*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689 solaris*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5694 lt_cv_deplibs_check_method=pass_all
5695 ;;
5696
5697 sysv4 | sysv4.3*)
5698 case $host_vendor in
5699 motorola)
5700 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]'
5701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5702 ;;
5703 ncr)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706 sequent)
5707 lt_cv_file_magic_cmd='/bin/file'
5708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5709 ;;
5710 sni)
5711 lt_cv_file_magic_cmd='/bin/file'
5712 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5713 lt_cv_file_magic_test_file=/lib/libc.so
5714 ;;
5715 siemens)
5716 lt_cv_deplibs_check_method=pass_all
5717 ;;
5718 pc)
5719 lt_cv_deplibs_check_method=pass_all
5720 ;;
5721 esac
5722 ;;
5723
5724 tpf*)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727 esac
5728
5729 fi
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5731 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5732
5733 file_magic_glob=
5734 want_nocaseglob=no
5735 if test "$build" = "$host"; then
5736 case $host_os in
5737 mingw* | pw32*)
5738 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5739 want_nocaseglob=yes
5740 else
5741 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5742 fi
5743 ;;
5744 esac
5745 fi
5746
5747 file_magic_cmd=$lt_cv_file_magic_cmd
5748 deplibs_check_method=$lt_cv_deplibs_check_method
5749 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5774 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_DLLTOOL+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 if test -n "$DLLTOOL"; then
5781 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794 done
5795 done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 DLLTOOL=$ac_cv_prog_DLLTOOL
5801 if test -n "$DLLTOOL"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5803 $as_echo "$DLLTOOL" >&6; }
5804 else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809
5810 fi
5811 if test -z "$ac_cv_prog_DLLTOOL"; then
5812 ac_ct_DLLTOOL=$DLLTOOL
5813 # Extract the first word of "dlltool", so it can be a program name with args.
5814 set dummy dlltool; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test -n "$ac_ct_DLLTOOL"; then
5821 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834 done
5835 done
5836 IFS=$as_save_IFS
5837
5838 fi
5839 fi
5840 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5841 if test -n "$ac_ct_DLLTOOL"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5843 $as_echo "$ac_ct_DLLTOOL" >&6; }
5844 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5847 fi
5848
5849 if test "x$ac_ct_DLLTOOL" = x; then
5850 DLLTOOL="false"
5851 else
5852 case $cross_compiling:$ac_tool_warned in
5853 yes:)
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5856 ac_tool_warned=yes ;;
5857 esac
5858 DLLTOOL=$ac_ct_DLLTOOL
5859 fi
5860 else
5861 DLLTOOL="$ac_cv_prog_DLLTOOL"
5862 fi
5863
5864 test -z "$DLLTOOL" && DLLTOOL=dlltool
5865
5866
5867
5868
5869
5870
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5873 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5874 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 lt_cv_sharedlib_from_linklib_cmd='unknown'
5878
5879 case $host_os in
5880 cygwin* | mingw* | pw32* | cegcc*)
5881 # two different shell functions defined in ltmain.sh
5882 # decide which to use based on capabilities of $DLLTOOL
5883 case `$DLLTOOL --help 2>&1` in
5884 *--identify-strict*)
5885 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5886 ;;
5887 *)
5888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5889 ;;
5890 esac
5891 ;;
5892 *)
5893 # fallback: assume linklib IS sharedlib
5894 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5895 ;;
5896 esac
5897
5898 fi
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5900 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5901 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5902 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5903
5904
5905
5906
5907
5908
5909
5910
5911 if test -n "$ac_tool_prefix"; then
5912 for ac_prog in ar
5913 do
5914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_AR+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$AR"; then
5922 ac_cv_prog_AR="$AR" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 AR=$ac_cv_prog_AR
5942 if test -n "$AR"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5944 $as_echo "$AR" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950
5951 test -n "$AR" && break
5952 done
5953 fi
5954 if test -z "$AR"; then
5955 ac_ct_AR=$AR
5956 for ac_prog in ar
5957 do
5958 # Extract the first word of "$ac_prog", so it can be a program name with args.
5959 set dummy $ac_prog; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_AR"; then
5966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_ac_ct_AR="$ac_prog"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5986 if test -n "$ac_ct_AR"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5988 $as_echo "$ac_ct_AR" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994
5995 test -n "$ac_ct_AR" && break
5996 done
5997
5998 if test "x$ac_ct_AR" = x; then
5999 AR="false"
6000 else
6001 case $cross_compiling:$ac_tool_warned in
6002 yes:)
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005 ac_tool_warned=yes ;;
6006 esac
6007 AR=$ac_ct_AR
6008 fi
6009 fi
6010
6011 : ${AR=ar}
6012 : ${AR_FLAGS=cru}
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6025 $as_echo_n "checking for archiver @FILE support... " >&6; }
6026 if ${lt_cv_ar_at_file+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 lt_cv_ar_at_file=no
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032
6033 int
6034 main ()
6035 {
6036
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 echo conftest.$ac_objext > conftest.lst
6043 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6045 (eval $lt_ar_try) 2>&5
6046 ac_status=$?
6047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6048 test $ac_status = 0; }
6049 if test "$ac_status" -eq 0; then
6050 # Ensure the archiver fails upon bogus file names.
6051 rm -f conftest.$ac_objext libconftest.a
6052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6053 (eval $lt_ar_try) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }
6057 if test "$ac_status" -ne 0; then
6058 lt_cv_ar_at_file=@
6059 fi
6060 fi
6061 rm -f conftest.* libconftest.a
6062
6063 fi
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065
6066 fi
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6068 $as_echo "$lt_cv_ar_at_file" >&6; }
6069
6070 if test "x$lt_cv_ar_at_file" = xno; then
6071 archiver_list_spec=
6072 else
6073 archiver_list_spec=$lt_cv_ar_at_file
6074 fi
6075
6076
6077
6078
6079
6080
6081
6082 if test -n "$ac_tool_prefix"; then
6083 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6084 set dummy ${ac_tool_prefix}strip; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_prog_STRIP+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 if test -n "$STRIP"; then
6091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104 done
6105 done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 STRIP=$ac_cv_prog_STRIP
6111 if test -n "$STRIP"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6113 $as_echo "$STRIP" >&6; }
6114 else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 fi
6118
6119
6120 fi
6121 if test -z "$ac_cv_prog_STRIP"; then
6122 ac_ct_STRIP=$STRIP
6123 # Extract the first word of "strip", so it can be a program name with args.
6124 set dummy strip; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if test -n "$ac_ct_STRIP"; then
6131 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140 ac_cv_prog_ac_ct_STRIP="strip"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144 done
6145 done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6151 if test -n "$ac_ct_STRIP"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6153 $as_echo "$ac_ct_STRIP" >&6; }
6154 else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159 if test "x$ac_ct_STRIP" = x; then
6160 STRIP=":"
6161 else
6162 case $cross_compiling:$ac_tool_warned in
6163 yes:)
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166 ac_tool_warned=yes ;;
6167 esac
6168 STRIP=$ac_ct_STRIP
6169 fi
6170 else
6171 STRIP="$ac_cv_prog_STRIP"
6172 fi
6173
6174 test -z "$STRIP" && STRIP=:
6175
6176
6177
6178
6179
6180
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_RANLIB+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$RANLIB"; then
6190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 RANLIB=$ac_cv_prog_RANLIB
6210 if test -n "$RANLIB"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6212 $as_echo "$RANLIB" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218
6219 fi
6220 if test -z "$ac_cv_prog_RANLIB"; then
6221 ac_ct_RANLIB=$RANLIB
6222 # Extract the first word of "ranlib", so it can be a program name with args.
6223 set dummy ranlib; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -n "$ac_ct_RANLIB"; then
6230 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_ac_ct_RANLIB="ranlib"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6250 if test -n "$ac_ct_RANLIB"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6252 $as_echo "$ac_ct_RANLIB" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258 if test "x$ac_ct_RANLIB" = x; then
6259 RANLIB=":"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6266 esac
6267 RANLIB=$ac_ct_RANLIB
6268 fi
6269 else
6270 RANLIB="$ac_cv_prog_RANLIB"
6271 fi
6272
6273 test -z "$RANLIB" && RANLIB=:
6274
6275
6276
6277
6278
6279
6280 # Determine commands to create old-style static archives.
6281 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6282 old_postinstall_cmds='chmod 644 $oldlib'
6283 old_postuninstall_cmds=
6284
6285 if test -n "$RANLIB"; then
6286 case $host_os in
6287 openbsd*)
6288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6289 ;;
6290 *)
6291 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6292 ;;
6293 esac
6294 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6295 fi
6296
6297 case $host_os in
6298 darwin*)
6299 lock_old_archive_extraction=yes ;;
6300 *)
6301 lock_old_archive_extraction=no ;;
6302 esac
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 # If no C compiler was specified, use CC.
6343 LTCC=${LTCC-"$CC"}
6344
6345 # If no C compiler flags were specified, use CFLAGS.
6346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6347
6348 # Allow CC to be a program name with arguments.
6349 compiler=$CC
6350
6351
6352 # Check for command to grab the raw symbol name followed by C symbol from nm.
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6354 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6355 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358
6359 # These are sane defaults that work on at least a few old systems.
6360 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6361
6362 # Character class describing NM global symbol codes.
6363 symcode='[BCDEGRST]'
6364
6365 # Regexp to match symbols that can be accessed directly from C.
6366 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6367
6368 # Define system-specific variables.
6369 case $host_os in
6370 aix*)
6371 symcode='[BCDT]'
6372 ;;
6373 cygwin* | mingw* | pw32* | cegcc*)
6374 symcode='[ABCDGISTW]'
6375 ;;
6376 hpux*)
6377 if test "$host_cpu" = ia64; then
6378 symcode='[ABCDEGRST]'
6379 fi
6380 ;;
6381 irix* | nonstopux*)
6382 symcode='[BCDEGRST]'
6383 ;;
6384 osf*)
6385 symcode='[BCDEGQRST]'
6386 ;;
6387 solaris*)
6388 symcode='[BDRT]'
6389 ;;
6390 sco3.2v5*)
6391 symcode='[DT]'
6392 ;;
6393 sysv4.2uw2*)
6394 symcode='[DT]'
6395 ;;
6396 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6397 symcode='[ABDT]'
6398 ;;
6399 sysv4)
6400 symcode='[DFNSTU]'
6401 ;;
6402 esac
6403
6404 # If we're using GNU nm, then use its standard symbol codes.
6405 case `$NM -V 2>&1` in
6406 *GNU* | *'with BFD'*)
6407 symcode='[ABCDGIRSTW]' ;;
6408 esac
6409
6410 # Transform an extracted symbol line into a proper C declaration.
6411 # Some systems (esp. on ia64) link data and code symbols differently,
6412 # so use this general approach.
6413 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6414
6415 # Transform an extracted symbol line into symbol name and symbol address
6416 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6417 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'"
6418
6419 # Handle CRLF in mingw tool chain
6420 opt_cr=
6421 case $build_os in
6422 mingw*)
6423 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6424 ;;
6425 esac
6426
6427 # Try without a prefix underscore, then with it.
6428 for ac_symprfx in "" "_"; do
6429
6430 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6431 symxfrm="\\1 $ac_symprfx\\2 \\2"
6432
6433 # Write the raw and C identifiers.
6434 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6435 # Fake it for dumpbin and say T for any non-static function
6436 # and D for any global variable.
6437 # Also find C++ and __fastcall symbols from MSVC++,
6438 # which start with @ or ?.
6439 lt_cv_sys_global_symbol_pipe="$AWK '"\
6440 " {last_section=section; section=\$ 3};"\
6441 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6442 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6443 " \$ 0!~/External *\|/{next};"\
6444 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6445 " {if(hide[section]) next};"\
6446 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6447 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6448 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6449 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6450 " ' prfx=^$ac_symprfx"
6451 else
6452 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6453 fi
6454 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6455
6456 # Check to see that the pipe works correctly.
6457 pipe_works=no
6458
6459 rm -f conftest*
6460 cat > conftest.$ac_ext <<_LT_EOF
6461 #ifdef __cplusplus
6462 extern "C" {
6463 #endif
6464 char nm_test_var;
6465 void nm_test_func(void);
6466 void nm_test_func(void){}
6467 #ifdef __cplusplus
6468 }
6469 #endif
6470 int main(){nm_test_var='a';nm_test_func();return(0);}
6471 _LT_EOF
6472
6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474 (eval $ac_compile) 2>&5
6475 ac_status=$?
6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477 test $ac_status = 0; }; then
6478 # Now try to grab the symbols.
6479 nlist=conftest.nm
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6481 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6482 ac_status=$?
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; } && test -s "$nlist"; then
6485 # Try sorting and uniquifying the output.
6486 if sort "$nlist" | uniq > "$nlist"T; then
6487 mv -f "$nlist"T "$nlist"
6488 else
6489 rm -f "$nlist"T
6490 fi
6491
6492 # Make sure that we snagged all the symbols we need.
6493 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6494 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6495 cat <<_LT_EOF > conftest.$ac_ext
6496 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6497 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6498 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6499 relocations are performed -- see ld's documentation on pseudo-relocs. */
6500 # define LT_DLSYM_CONST
6501 #elif defined(__osf__)
6502 /* This system does not cope well with relocations in const data. */
6503 # define LT_DLSYM_CONST
6504 #else
6505 # define LT_DLSYM_CONST const
6506 #endif
6507
6508 #ifdef __cplusplus
6509 extern "C" {
6510 #endif
6511
6512 _LT_EOF
6513 # Now generate the symbol file.
6514 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6515
6516 cat <<_LT_EOF >> conftest.$ac_ext
6517
6518 /* The mapping between symbol names and symbols. */
6519 LT_DLSYM_CONST struct {
6520 const char *name;
6521 void *address;
6522 }
6523 lt__PROGRAM__LTX_preloaded_symbols[] =
6524 {
6525 { "@PROGRAM@", (void *) 0 },
6526 _LT_EOF
6527 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6528 cat <<\_LT_EOF >> conftest.$ac_ext
6529 {0, (void *) 0}
6530 };
6531
6532 /* This works around a problem in FreeBSD linker */
6533 #ifdef FREEBSD_WORKAROUND
6534 static const void *lt_preloaded_setup() {
6535 return lt__PROGRAM__LTX_preloaded_symbols;
6536 }
6537 #endif
6538
6539 #ifdef __cplusplus
6540 }
6541 #endif
6542 _LT_EOF
6543 # Now try linking the two files.
6544 mv conftest.$ac_objext conftstm.$ac_objext
6545 lt_globsym_save_LIBS=$LIBS
6546 lt_globsym_save_CFLAGS=$CFLAGS
6547 LIBS="conftstm.$ac_objext"
6548 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6550 (eval $ac_link) 2>&5
6551 ac_status=$?
6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6554 pipe_works=yes
6555 fi
6556 LIBS=$lt_globsym_save_LIBS
6557 CFLAGS=$lt_globsym_save_CFLAGS
6558 else
6559 echo "cannot find nm_test_func in $nlist" >&5
6560 fi
6561 else
6562 echo "cannot find nm_test_var in $nlist" >&5
6563 fi
6564 else
6565 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6566 fi
6567 else
6568 echo "$progname: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6570 fi
6571 rm -rf conftest* conftst*
6572
6573 # Do not use the global_symbol_pipe unless it works.
6574 if test "$pipe_works" = yes; then
6575 break
6576 else
6577 lt_cv_sys_global_symbol_pipe=
6578 fi
6579 done
6580
6581 fi
6582
6583 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6584 lt_cv_sys_global_symbol_to_cdecl=
6585 fi
6586 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6588 $as_echo "failed" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6591 $as_echo "ok" >&6; }
6592 fi
6593
6594 # Response file support.
6595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6596 nm_file_list_spec='@'
6597 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6598 nm_file_list_spec='@'
6599 fi
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6628 $as_echo_n "checking for sysroot... " >&6; }
6629
6630 # Check whether --with-sysroot was given.
6631 if test "${with_sysroot+set}" = set; then :
6632 withval=$with_sysroot;
6633 else
6634 with_sysroot=no
6635 fi
6636
6637
6638 lt_sysroot=
6639 case ${with_sysroot} in #(
6640 yes)
6641 if test "$GCC" = yes; then
6642 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6643 fi
6644 ;; #(
6645 /*)
6646 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6647 ;; #(
6648 no|'')
6649 ;; #(
6650 *)
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6652 $as_echo "${with_sysroot}" >&6; }
6653 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6654 ;;
6655 esac
6656
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6658 $as_echo "${lt_sysroot:-no}" >&6; }
6659
6660
6661
6662
6663
6664 # Check whether --enable-libtool-lock was given.
6665 if test "${enable_libtool_lock+set}" = set; then :
6666 enableval=$enable_libtool_lock;
6667 fi
6668
6669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6670
6671 # Some flags need to be propagated to the compiler or linker for good
6672 # libtool support.
6673 case $host in
6674 ia64-*-hpux*)
6675 # Find out which ABI we are using.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 case `/usr/bin/file conftest.$ac_objext` in
6683 *ELF-32*)
6684 HPUX_IA64_MODE="32"
6685 ;;
6686 *ELF-64*)
6687 HPUX_IA64_MODE="64"
6688 ;;
6689 esac
6690 fi
6691 rm -rf conftest*
6692 ;;
6693 *-*-irix6*)
6694 # Find out which ABI we are using.
6695 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6697 (eval $ac_compile) 2>&5
6698 ac_status=$?
6699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700 test $ac_status = 0; }; then
6701 if test "$lt_cv_prog_gnu_ld" = yes; then
6702 case `/usr/bin/file conftest.$ac_objext` in
6703 *32-bit*)
6704 LD="${LD-ld} -melf32bsmip"
6705 ;;
6706 *N32*)
6707 LD="${LD-ld} -melf32bmipn32"
6708 ;;
6709 *64-bit*)
6710 LD="${LD-ld} -melf64bmip"
6711 ;;
6712 esac
6713 else
6714 case `/usr/bin/file conftest.$ac_objext` in
6715 *32-bit*)
6716 LD="${LD-ld} -32"
6717 ;;
6718 *N32*)
6719 LD="${LD-ld} -n32"
6720 ;;
6721 *64-bit*)
6722 LD="${LD-ld} -64"
6723 ;;
6724 esac
6725 fi
6726 fi
6727 rm -rf conftest*
6728 ;;
6729
6730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6731 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6732 # Find out which ABI we are using.
6733 echo 'int i;' > conftest.$ac_ext
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735 (eval $ac_compile) 2>&5
6736 ac_status=$?
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; }; then
6739 case `/usr/bin/file conftest.o` in
6740 *32-bit*)
6741 case $host in
6742 x86_64-*kfreebsd*-gnu)
6743 LD="${LD-ld} -m elf_i386_fbsd"
6744 ;;
6745 x86_64-*linux*)
6746 LD="${LD-ld} -m elf_i386"
6747 ;;
6748 ppc64-*linux*|powerpc64-*linux*)
6749 LD="${LD-ld} -m elf32ppclinux"
6750 ;;
6751 s390x-*linux*)
6752 LD="${LD-ld} -m elf_s390"
6753 ;;
6754 sparc64-*linux*)
6755 LD="${LD-ld} -m elf32_sparc"
6756 ;;
6757 esac
6758 ;;
6759 *64-bit*)
6760 case $host in
6761 x86_64-*kfreebsd*-gnu)
6762 LD="${LD-ld} -m elf_x86_64_fbsd"
6763 ;;
6764 x86_64-*linux*)
6765 LD="${LD-ld} -m elf_x86_64"
6766 ;;
6767 ppc*-*linux*|powerpc*-*linux*)
6768 LD="${LD-ld} -m elf64ppc"
6769 ;;
6770 s390*-*linux*|s390*-*tpf*)
6771 LD="${LD-ld} -m elf64_s390"
6772 ;;
6773 sparc*-*linux*)
6774 LD="${LD-ld} -m elf64_sparc"
6775 ;;
6776 esac
6777 ;;
6778 esac
6779 fi
6780 rm -rf conftest*
6781 ;;
6782
6783 *-*-sco3.2v5*)
6784 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6785 SAVE_CFLAGS="$CFLAGS"
6786 CFLAGS="$CFLAGS -belf"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6788 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6789 if ${lt_cv_cc_needs_belf+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 ac_ext=c
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800
6801 int
6802 main ()
6803 {
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_link "$LINENO"; then :
6810 lt_cv_cc_needs_belf=yes
6811 else
6812 lt_cv_cc_needs_belf=no
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext \
6815 conftest$ac_exeext conftest.$ac_ext
6816 ac_ext=c
6817 ac_cpp='$CPP $CPPFLAGS'
6818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6821
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6824 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6825 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6826 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6827 CFLAGS="$SAVE_CFLAGS"
6828 fi
6829 ;;
6830 *-*solaris*)
6831 # Find out which ABI we are using.
6832 echo 'int i;' > conftest.$ac_ext
6833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6834 (eval $ac_compile) 2>&5
6835 ac_status=$?
6836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837 test $ac_status = 0; }; then
6838 case `/usr/bin/file conftest.o` in
6839 *64-bit*)
6840 case $lt_cv_prog_gnu_ld in
6841 yes*)
6842 case $host in
6843 i?86-*-solaris*)
6844 LD="${LD-ld} -m elf_x86_64"
6845 ;;
6846 sparc*-*-solaris*)
6847 LD="${LD-ld} -m elf64_sparc"
6848 ;;
6849 esac
6850 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6851 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6852 LD="${LD-ld}_sol2"
6853 fi
6854 ;;
6855 *)
6856 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6857 LD="${LD-ld} -64"
6858 fi
6859 ;;
6860 esac
6861 ;;
6862 esac
6863 fi
6864 rm -rf conftest*
6865 ;;
6866 esac
6867
6868 need_locks="$enable_libtool_lock"
6869
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}mt; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 if test -n "$MANIFEST_TOOL"; then
6879 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6899 if test -n "$MANIFEST_TOOL"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6901 $as_echo "$MANIFEST_TOOL" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6910 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6911 # Extract the first word of "mt", so it can be a program name with args.
6912 set dummy mt; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 if test -n "$ac_ct_MANIFEST_TOOL"; then
6919 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6939 if test -n "$ac_ct_MANIFEST_TOOL"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6941 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6942 else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6948 MANIFEST_TOOL=":"
6949 else
6950 case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6957 fi
6958 else
6959 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6960 fi
6961
6962 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6964 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6965 if ${lt_cv_path_mainfest_tool+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 lt_cv_path_mainfest_tool=no
6969 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6970 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6971 cat conftest.err >&5
6972 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6973 lt_cv_path_mainfest_tool=yes
6974 fi
6975 rm -f conftest*
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6978 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6979 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6980 MANIFEST_TOOL=:
6981 fi
6982
6983
6984
6985
6986
6987
6988 case $host_os in
6989 rhapsody* | darwin*)
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$DSYMUTIL"; then
6999 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7019 if test -n "$DSYMUTIL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7021 $as_echo "$DSYMUTIL" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_DSYMUTIL"; then
7030 ac_ct_DSYMUTIL=$DSYMUTIL
7031 # Extract the first word of "dsymutil", so it can be a program name with args.
7032 set dummy dsymutil; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$ac_ct_DSYMUTIL"; then
7039 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7059 if test -n "$ac_ct_DSYMUTIL"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7061 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066
7067 if test "x$ac_ct_DSYMUTIL" = x; then
7068 DSYMUTIL=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 DSYMUTIL=$ac_ct_DSYMUTIL
7077 fi
7078 else
7079 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7080 fi
7081
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_NMEDIT+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 if test -n "$NMEDIT"; then
7091 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104 done
7105 done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 NMEDIT=$ac_cv_prog_NMEDIT
7111 if test -n "$NMEDIT"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7113 $as_echo "$NMEDIT" >&6; }
7114 else
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119
7120 fi
7121 if test -z "$ac_cv_prog_NMEDIT"; then
7122 ac_ct_NMEDIT=$NMEDIT
7123 # Extract the first word of "nmedit", so it can be a program name with args.
7124 set dummy nmedit; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 if test -n "$ac_ct_NMEDIT"; then
7131 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148 fi
7149 fi
7150 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7151 if test -n "$ac_ct_NMEDIT"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7153 $as_echo "$ac_ct_NMEDIT" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7157 fi
7158
7159 if test "x$ac_ct_NMEDIT" = x; then
7160 NMEDIT=":"
7161 else
7162 case $cross_compiling:$ac_tool_warned in
7163 yes:)
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7166 ac_tool_warned=yes ;;
7167 esac
7168 NMEDIT=$ac_ct_NMEDIT
7169 fi
7170 else
7171 NMEDIT="$ac_cv_prog_NMEDIT"
7172 fi
7173
7174 if test -n "$ac_tool_prefix"; then
7175 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_LIPO+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 if test -n "$LIPO"; then
7183 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 LIPO=$ac_cv_prog_LIPO
7203 if test -n "$LIPO"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7205 $as_echo "$LIPO" >&6; }
7206 else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211
7212 fi
7213 if test -z "$ac_cv_prog_LIPO"; then
7214 ac_ct_LIPO=$LIPO
7215 # Extract the first word of "lipo", so it can be a program name with args.
7216 set dummy lipo; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7222 if test -n "$ac_ct_LIPO"; then
7223 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_ac_ct_LIPO="lipo"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240 fi
7241 fi
7242 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7243 if test -n "$ac_ct_LIPO"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7245 $as_echo "$ac_ct_LIPO" >&6; }
7246 else
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7249 fi
7250
7251 if test "x$ac_ct_LIPO" = x; then
7252 LIPO=":"
7253 else
7254 case $cross_compiling:$ac_tool_warned in
7255 yes:)
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7258 ac_tool_warned=yes ;;
7259 esac
7260 LIPO=$ac_ct_LIPO
7261 fi
7262 else
7263 LIPO="$ac_cv_prog_LIPO"
7264 fi
7265
7266 if test -n "$ac_tool_prefix"; then
7267 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}otool; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_OTOOL+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 if test -n "$OTOOL"; then
7275 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292 fi
7293 fi
7294 OTOOL=$ac_cv_prog_OTOOL
7295 if test -n "$OTOOL"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7297 $as_echo "$OTOOL" >&6; }
7298 else
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 fi
7302
7303
7304 fi
7305 if test -z "$ac_cv_prog_OTOOL"; then
7306 ac_ct_OTOOL=$OTOOL
7307 # Extract the first word of "otool", so it can be a program name with args.
7308 set dummy otool; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 if test -n "$ac_ct_OTOOL"; then
7315 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_ac_ct_OTOOL="otool"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328 done
7329 done
7330 IFS=$as_save_IFS
7331
7332 fi
7333 fi
7334 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7335 if test -n "$ac_ct_OTOOL"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7337 $as_echo "$ac_ct_OTOOL" >&6; }
7338 else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342
7343 if test "x$ac_ct_OTOOL" = x; then
7344 OTOOL=":"
7345 else
7346 case $cross_compiling:$ac_tool_warned in
7347 yes:)
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7351 esac
7352 OTOOL=$ac_ct_OTOOL
7353 fi
7354 else
7355 OTOOL="$ac_cv_prog_OTOOL"
7356 fi
7357
7358 if test -n "$ac_tool_prefix"; then
7359 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_OTOOL64+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 if test -n "$OTOOL64"; then
7367 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380 done
7381 done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 OTOOL64=$ac_cv_prog_OTOOL64
7387 if test -n "$OTOOL64"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7389 $as_echo "$OTOOL64" >&6; }
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395
7396 fi
7397 if test -z "$ac_cv_prog_OTOOL64"; then
7398 ac_ct_OTOOL64=$OTOOL64
7399 # Extract the first word of "otool64", so it can be a program name with args.
7400 set dummy otool64; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 if test -n "$ac_ct_OTOOL64"; then
7407 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_ac_ct_OTOOL64="otool64"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7419 fi
7420 done
7421 done
7422 IFS=$as_save_IFS
7423
7424 fi
7425 fi
7426 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7427 if test -n "$ac_ct_OTOOL64"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7429 $as_echo "$ac_ct_OTOOL64" >&6; }
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435 if test "x$ac_ct_OTOOL64" = x; then
7436 OTOOL64=":"
7437 else
7438 case $cross_compiling:$ac_tool_warned in
7439 yes:)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7443 esac
7444 OTOOL64=$ac_ct_OTOOL64
7445 fi
7446 else
7447 OTOOL64="$ac_cv_prog_OTOOL64"
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7477 $as_echo_n "checking for -single_module linker flag... " >&6; }
7478 if ${lt_cv_apple_cc_single_mod+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 lt_cv_apple_cc_single_mod=no
7482 if test -z "${LT_MULTI_MODULE}"; then
7483 # By default we will add the -single_module flag. You can override
7484 # by either setting the environment variable LT_MULTI_MODULE
7485 # non-empty at configure time, or by adding -multi_module to the
7486 # link flags.
7487 rm -rf libconftest.dylib*
7488 echo "int foo(void){return 1;}" > conftest.c
7489 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7490 -dynamiclib -Wl,-single_module conftest.c" >&5
7491 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7492 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7493 _lt_result=$?
7494 # If there is a non-empty error log, and "single_module"
7495 # appears in it, assume the flag caused a linker warning
7496 if test -s conftest.err && $GREP single_module conftest.err; then
7497 cat conftest.err >&5
7498 # Otherwise, if the output was created with a 0 exit code from
7499 # the compiler, it worked.
7500 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7501 lt_cv_apple_cc_single_mod=yes
7502 else
7503 cat conftest.err >&5
7504 fi
7505 rm -rf libconftest.dylib*
7506 rm -f conftest.*
7507 fi
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7510 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7511
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7513 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7514 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 lt_cv_ld_exported_symbols_list=no
7518 save_LDFLAGS=$LDFLAGS
7519 echo "_main" > conftest.sym
7520 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523
7524 int
7525 main ()
7526 {
7527
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_link "$LINENO"; then :
7533 lt_cv_ld_exported_symbols_list=yes
7534 else
7535 lt_cv_ld_exported_symbols_list=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539 LDFLAGS="$save_LDFLAGS"
7540
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7543 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7544
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7546 $as_echo_n "checking for -force_load linker flag... " >&6; }
7547 if ${lt_cv_ld_force_load+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 lt_cv_ld_force_load=no
7551 cat > conftest.c << _LT_EOF
7552 int forced_loaded() { return 2;}
7553 _LT_EOF
7554 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7555 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7556 echo "$AR cru libconftest.a conftest.o" >&5
7557 $AR cru libconftest.a conftest.o 2>&5
7558 echo "$RANLIB libconftest.a" >&5
7559 $RANLIB libconftest.a 2>&5
7560 cat > conftest.c << _LT_EOF
7561 int main() { return 0;}
7562 _LT_EOF
7563 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7564 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7565 _lt_result=$?
7566 if test -s conftest.err && $GREP force_load conftest.err; then
7567 cat conftest.err >&5
7568 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7569 lt_cv_ld_force_load=yes
7570 else
7571 cat conftest.err >&5
7572 fi
7573 rm -f conftest.err libconftest.a conftest conftest.c
7574 rm -rf conftest.dSYM
7575
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7578 $as_echo "$lt_cv_ld_force_load" >&6; }
7579 case $host_os in
7580 rhapsody* | darwin1.[012])
7581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7582 darwin1.*)
7583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584 darwin*) # darwin 5.x on
7585 # if running on 10.5 or later, the deployment target defaults
7586 # to the OS version, if on x86, and 10.4, the deployment
7587 # target defaults to 10.4. Don't you love it?
7588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7591 10.[012]*)
7592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7593 10.*)
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595 esac
7596 ;;
7597 esac
7598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7599 _lt_dar_single_mod='$single_module'
7600 fi
7601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7603 else
7604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7605 fi
7606 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7607 _lt_dsymutil='~$DSYMUTIL $lib || :'
7608 else
7609 _lt_dsymutil=
7610 fi
7611 ;;
7612 esac
7613
7614 ac_ext=c
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7620 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7621 # On Suns, sometimes $CPP names a directory.
7622 if test -n "$CPP" && test -d "$CPP"; then
7623 CPP=
7624 fi
7625 if test -z "$CPP"; then
7626 if ${ac_cv_prog_CPP+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 # Double quotes because CPP needs to be expanded
7630 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7631 do
7632 ac_preproc_ok=false
7633 for ac_c_preproc_warn_flag in '' yes
7634 do
7635 # Use a header file that comes with gcc, so configuring glibc
7636 # with a fresh cross-compiler works.
7637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7638 # <limits.h> exists even on freestanding compilers.
7639 # On the NeXT, cc -E runs the code through the compiler's parser,
7640 # not just through cpp. "Syntax error" is here to catch this case.
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 #ifdef __STDC__
7644 # include <limits.h>
7645 #else
7646 # include <assert.h>
7647 #endif
7648 Syntax error
7649 _ACEOF
7650 if ac_fn_c_try_cpp "$LINENO"; then :
7651
7652 else
7653 # Broken: fails on valid input.
7654 continue
7655 fi
7656 rm -f conftest.err conftest.i conftest.$ac_ext
7657
7658 # OK, works on sane cases. Now check whether nonexistent headers
7659 # can be detected and how.
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 #include <ac_nonexistent.h>
7663 _ACEOF
7664 if ac_fn_c_try_cpp "$LINENO"; then :
7665 # Broken: success on invalid input.
7666 continue
7667 else
7668 # Passes both tests.
7669 ac_preproc_ok=:
7670 break
7671 fi
7672 rm -f conftest.err conftest.i conftest.$ac_ext
7673
7674 done
7675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7676 rm -f conftest.i conftest.err conftest.$ac_ext
7677 if $ac_preproc_ok; then :
7678 break
7679 fi
7680
7681 done
7682 ac_cv_prog_CPP=$CPP
7683
7684 fi
7685 CPP=$ac_cv_prog_CPP
7686 else
7687 ac_cv_prog_CPP=$CPP
7688 fi
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7690 $as_echo "$CPP" >&6; }
7691 ac_preproc_ok=false
7692 for ac_c_preproc_warn_flag in '' yes
7693 do
7694 # Use a header file that comes with gcc, so configuring glibc
7695 # with a fresh cross-compiler works.
7696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697 # <limits.h> exists even on freestanding compilers.
7698 # On the NeXT, cc -E runs the code through the compiler's parser,
7699 # not just through cpp. "Syntax error" is here to catch this case.
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 #ifdef __STDC__
7703 # include <limits.h>
7704 #else
7705 # include <assert.h>
7706 #endif
7707 Syntax error
7708 _ACEOF
7709 if ac_fn_c_try_cpp "$LINENO"; then :
7710
7711 else
7712 # Broken: fails on valid input.
7713 continue
7714 fi
7715 rm -f conftest.err conftest.i conftest.$ac_ext
7716
7717 # OK, works on sane cases. Now check whether nonexistent headers
7718 # can be detected and how.
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 #include <ac_nonexistent.h>
7722 _ACEOF
7723 if ac_fn_c_try_cpp "$LINENO"; then :
7724 # Broken: success on invalid input.
7725 continue
7726 else
7727 # Passes both tests.
7728 ac_preproc_ok=:
7729 break
7730 fi
7731 rm -f conftest.err conftest.i conftest.$ac_ext
7732
7733 done
7734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7735 rm -f conftest.i conftest.err conftest.$ac_ext
7736 if $ac_preproc_ok; then :
7737
7738 else
7739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7741 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7742 See \`config.log' for more details" "$LINENO" 5; }
7743 fi
7744
7745 ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750
7751
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7753 $as_echo_n "checking for ANSI C header files... " >&6; }
7754 if ${ac_cv_header_stdc+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 #include <stdlib.h>
7760 #include <stdarg.h>
7761 #include <string.h>
7762 #include <float.h>
7763
7764 int
7765 main ()
7766 {
7767
7768 ;
7769 return 0;
7770 }
7771 _ACEOF
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 ac_cv_header_stdc=yes
7774 else
7775 ac_cv_header_stdc=no
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778
7779 if test $ac_cv_header_stdc = yes; then
7780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 #include <string.h>
7784
7785 _ACEOF
7786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7787 $EGREP "memchr" >/dev/null 2>&1; then :
7788
7789 else
7790 ac_cv_header_stdc=no
7791 fi
7792 rm -f conftest*
7793
7794 fi
7795
7796 if test $ac_cv_header_stdc = yes; then
7797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 #include <stdlib.h>
7801
7802 _ACEOF
7803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7804 $EGREP "free" >/dev/null 2>&1; then :
7805
7806 else
7807 ac_cv_header_stdc=no
7808 fi
7809 rm -f conftest*
7810
7811 fi
7812
7813 if test $ac_cv_header_stdc = yes; then
7814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7815 if test "$cross_compiling" = yes; then :
7816 :
7817 else
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7820 #include <ctype.h>
7821 #include <stdlib.h>
7822 #if ((' ' & 0x0FF) == 0x020)
7823 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7824 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7825 #else
7826 # define ISLOWER(c) \
7827 (('a' <= (c) && (c) <= 'i') \
7828 || ('j' <= (c) && (c) <= 'r') \
7829 || ('s' <= (c) && (c) <= 'z'))
7830 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7831 #endif
7832
7833 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7834 int
7835 main ()
7836 {
7837 int i;
7838 for (i = 0; i < 256; i++)
7839 if (XOR (islower (i), ISLOWER (i))
7840 || toupper (i) != TOUPPER (i))
7841 return 2;
7842 return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_c_try_run "$LINENO"; then :
7846
7847 else
7848 ac_cv_header_stdc=no
7849 fi
7850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7851 conftest.$ac_objext conftest.beam conftest.$ac_ext
7852 fi
7853
7854 fi
7855 fi
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7857 $as_echo "$ac_cv_header_stdc" >&6; }
7858 if test $ac_cv_header_stdc = yes; then
7859
7860 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7861
7862 fi
7863
7864 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7865 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7866 inttypes.h stdint.h unistd.h
7867 do :
7868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7869 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7870 "
7871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7872 cat >>confdefs.h <<_ACEOF
7873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7874 _ACEOF
7875
7876 fi
7877
7878 done
7879
7880
7881 for ac_header in dlfcn.h
7882 do :
7883 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7884 "
7885 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7886 cat >>confdefs.h <<_ACEOF
7887 #define HAVE_DLFCN_H 1
7888 _ACEOF
7889
7890 fi
7891
7892 done
7893
7894
7895
7896
7897
7898 # Set options
7899
7900
7901
7902 enable_dlopen=no
7903
7904
7905
7906 # Check whether --enable-shared was given.
7907 if test "${enable_shared+set}" = set; then :
7908 enableval=$enable_shared; p=${PACKAGE-default}
7909 case $enableval in
7910 yes) enable_shared=yes ;;
7911 no) enable_shared=no ;;
7912 *)
7913 enable_shared=no
7914 # Look at the argument we got. We use all the common list separators.
7915 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7916 for pkg in $enableval; do
7917 IFS="$lt_save_ifs"
7918 if test "X$pkg" = "X$p"; then
7919 enable_shared=yes
7920 fi
7921 done
7922 IFS="$lt_save_ifs"
7923 ;;
7924 esac
7925 else
7926 enable_shared=yes
7927 fi
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 # Check whether --enable-static was given.
7938 if test "${enable_static+set}" = set; then :
7939 enableval=$enable_static; p=${PACKAGE-default}
7940 case $enableval in
7941 yes) enable_static=yes ;;
7942 no) enable_static=no ;;
7943 *)
7944 enable_static=no
7945 # Look at the argument we got. We use all the common list separators.
7946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7947 for pkg in $enableval; do
7948 IFS="$lt_save_ifs"
7949 if test "X$pkg" = "X$p"; then
7950 enable_static=yes
7951 fi
7952 done
7953 IFS="$lt_save_ifs"
7954 ;;
7955 esac
7956 else
7957 enable_static=yes
7958 fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969 # Check whether --with-pic was given.
7970 if test "${with_pic+set}" = set; then :
7971 withval=$with_pic; lt_p=${PACKAGE-default}
7972 case $withval in
7973 yes|no) pic_mode=$withval ;;
7974 *)
7975 pic_mode=default
7976 # Look at the argument we got. We use all the common list separators.
7977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978 for lt_pkg in $withval; do
7979 IFS="$lt_save_ifs"
7980 if test "X$lt_pkg" = "X$lt_p"; then
7981 pic_mode=yes
7982 fi
7983 done
7984 IFS="$lt_save_ifs"
7985 ;;
7986 esac
7987 else
7988 pic_mode=default
7989 fi
7990
7991
7992 test -z "$pic_mode" && pic_mode=default
7993
7994
7995
7996
7997
7998
7999
8000 # Check whether --enable-fast-install was given.
8001 if test "${enable_fast_install+set}" = set; then :
8002 enableval=$enable_fast_install; p=${PACKAGE-default}
8003 case $enableval in
8004 yes) enable_fast_install=yes ;;
8005 no) enable_fast_install=no ;;
8006 *)
8007 enable_fast_install=no
8008 # Look at the argument we got. We use all the common list separators.
8009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8010 for pkg in $enableval; do
8011 IFS="$lt_save_ifs"
8012 if test "X$pkg" = "X$p"; then
8013 enable_fast_install=yes
8014 fi
8015 done
8016 IFS="$lt_save_ifs"
8017 ;;
8018 esac
8019 else
8020 enable_fast_install=yes
8021 fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 # This can be used to rebuild libtool when needed
8034 LIBTOOL_DEPS="$ltmain"
8035
8036 # Always use our own libtool.
8037 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068 test -z "$LN_S" && LN_S="ln -s"
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 if test -n "${ZSH_VERSION+set}" ; then
8084 setopt NO_GLOB_SUBST
8085 fi
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8088 $as_echo_n "checking for objdir... " >&6; }
8089 if ${lt_cv_objdir+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 rm -f .libs 2>/dev/null
8093 mkdir .libs 2>/dev/null
8094 if test -d .libs; then
8095 lt_cv_objdir=.libs
8096 else
8097 # MS-DOS does not allow filenames that begin with a dot.
8098 lt_cv_objdir=_libs
8099 fi
8100 rmdir .libs 2>/dev/null
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8103 $as_echo "$lt_cv_objdir" >&6; }
8104 objdir=$lt_cv_objdir
8105
8106
8107
8108
8109
8110 cat >>confdefs.h <<_ACEOF
8111 #define LT_OBJDIR "$lt_cv_objdir/"
8112 _ACEOF
8113
8114
8115
8116
8117 case $host_os in
8118 aix3*)
8119 # AIX sometimes has problems with the GCC collect2 program. For some
8120 # reason, if we set the COLLECT_NAMES environment variable, the problems
8121 # vanish in a puff of smoke.
8122 if test "X${COLLECT_NAMES+set}" != Xset; then
8123 COLLECT_NAMES=
8124 export COLLECT_NAMES
8125 fi
8126 ;;
8127 esac
8128
8129 # Global variables:
8130 ofile=libtool
8131 can_build_shared=yes
8132
8133 # All known linkers require a `.a' archive for static linking (except MSVC,
8134 # which needs '.lib').
8135 libext=a
8136
8137 with_gnu_ld="$lt_cv_prog_gnu_ld"
8138
8139 old_CC="$CC"
8140 old_CFLAGS="$CFLAGS"
8141
8142 # Set sane defaults for various variables
8143 test -z "$CC" && CC=cc
8144 test -z "$LTCC" && LTCC=$CC
8145 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8146 test -z "$LD" && LD=ld
8147 test -z "$ac_objext" && ac_objext=o
8148
8149 for cc_temp in $compiler""; do
8150 case $cc_temp in
8151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8153 \-*) ;;
8154 *) break;;
8155 esac
8156 done
8157 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8158
8159
8160 # Only perform the check for file, if the check method requires it
8161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8162 case $deplibs_check_method in
8163 file_magic*)
8164 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8166 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8167 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 case $MAGIC_CMD in
8171 [\\/*] | ?:[\\/]*)
8172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8173 ;;
8174 *)
8175 lt_save_MAGIC_CMD="$MAGIC_CMD"
8176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178 for ac_dir in $ac_dummy; do
8179 IFS="$lt_save_ifs"
8180 test -z "$ac_dir" && ac_dir=.
8181 if test -f $ac_dir/${ac_tool_prefix}file; then
8182 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8183 if test -n "$file_magic_test_file"; then
8184 case $deplibs_check_method in
8185 "file_magic "*)
8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189 $EGREP "$file_magic_regex" > /dev/null; then
8190 :
8191 else
8192 cat <<_LT_EOF 1>&2
8193
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such. This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem. Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** [email protected]
8202
8203 _LT_EOF
8204 fi ;;
8205 esac
8206 fi
8207 break
8208 fi
8209 done
8210 IFS="$lt_save_ifs"
8211 MAGIC_CMD="$lt_save_MAGIC_CMD"
8212 ;;
8213 esac
8214 fi
8215
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8219 $as_echo "$MAGIC_CMD" >&6; }
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224
8225
8226
8227
8228
8229 if test -z "$lt_cv_path_MAGIC_CMD"; then
8230 if test -n "$ac_tool_prefix"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8232 $as_echo_n "checking for file... " >&6; }
8233 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 case $MAGIC_CMD in
8237 [\\/*] | ?:[\\/]*)
8238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8239 ;;
8240 *)
8241 lt_save_MAGIC_CMD="$MAGIC_CMD"
8242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8243 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8244 for ac_dir in $ac_dummy; do
8245 IFS="$lt_save_ifs"
8246 test -z "$ac_dir" && ac_dir=.
8247 if test -f $ac_dir/file; then
8248 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8249 if test -n "$file_magic_test_file"; then
8250 case $deplibs_check_method in
8251 "file_magic "*)
8252 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8255 $EGREP "$file_magic_regex" > /dev/null; then
8256 :
8257 else
8258 cat <<_LT_EOF 1>&2
8259
8260 *** Warning: the command libtool uses to detect shared libraries,
8261 *** $file_magic_cmd, produces output that libtool cannot recognize.
8262 *** The result is that libtool may fail to recognize shared libraries
8263 *** as such. This will affect the creation of libtool libraries that
8264 *** depend on shared libraries, but programs linked with such libtool
8265 *** libraries will work regardless of this problem. Nevertheless, you
8266 *** may want to report the problem to your system manager and/or to
8267 *** [email protected]
8268
8269 _LT_EOF
8270 fi ;;
8271 esac
8272 fi
8273 break
8274 fi
8275 done
8276 IFS="$lt_save_ifs"
8277 MAGIC_CMD="$lt_save_MAGIC_CMD"
8278 ;;
8279 esac
8280 fi
8281
8282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8283 if test -n "$MAGIC_CMD"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8285 $as_echo "$MAGIC_CMD" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8289 fi
8290
8291
8292 else
8293 MAGIC_CMD=:
8294 fi
8295 fi
8296
8297 fi
8298 ;;
8299 esac
8300
8301 # Use C for the default configuration in the libtool script
8302
8303 lt_save_CC="$CC"
8304 ac_ext=c
8305 ac_cpp='$CPP $CPPFLAGS'
8306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8309
8310
8311 # Source file extension for C test sources.
8312 ac_ext=c
8313
8314 # Object file extension for compiled C test sources.
8315 objext=o
8316 objext=$objext
8317
8318 # Code to be used in simple compile tests
8319 lt_simple_compile_test_code="int some_variable = 0;"
8320
8321 # Code to be used in simple link tests
8322 lt_simple_link_test_code='int main(){return(0);}'
8323
8324
8325
8326
8327
8328
8329
8330 # If no C compiler was specified, use CC.
8331 LTCC=${LTCC-"$CC"}
8332
8333 # If no C compiler flags were specified, use CFLAGS.
8334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8335
8336 # Allow CC to be a program name with arguments.
8337 compiler=$CC
8338
8339 # Save the default compiler, since it gets overwritten when the other
8340 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8341 compiler_DEFAULT=$CC
8342
8343 # save warnings/boilerplate of simple test code
8344 ac_outfile=conftest.$ac_objext
8345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8347 _lt_compiler_boilerplate=`cat conftest.err`
8348 $RM conftest*
8349
8350 ac_outfile=conftest.$ac_objext
8351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353 _lt_linker_boilerplate=`cat conftest.err`
8354 $RM -r conftest*
8355
8356
8357 if test -n "$compiler"; then
8358
8359 lt_prog_compiler_no_builtin_flag=
8360
8361 if test "$GCC" = yes; then
8362 case $cc_basename in
8363 nvcc*)
8364 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8365 *)
8366 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8367 esac
8368
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8370 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8371 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 lt_cv_prog_compiler_rtti_exceptions=no
8375 ac_outfile=conftest.$ac_objext
8376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8377 lt_compiler_flag="-fno-rtti -fno-exceptions"
8378 # Insert the option either (1) after the last *FLAGS variable, or
8379 # (2) before a word containing "conftest.", or (3) at the end.
8380 # Note that $ac_compile itself does not contain backslashes and begins
8381 # with a dollar sign (not a hyphen), so the echo should work correctly.
8382 # The option is referenced via a variable to avoid confusing sed.
8383 lt_compile=`echo "$ac_compile" | $SED \
8384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386 -e 's:$: $lt_compiler_flag:'`
8387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8388 (eval "$lt_compile" 2>conftest.err)
8389 ac_status=$?
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 if (exit $ac_status) && test -s "$ac_outfile"; then
8393 # The compiler can only warn and ignore the option if not recognized
8394 # So say no if there are warnings other than the usual output.
8395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8398 lt_cv_prog_compiler_rtti_exceptions=yes
8399 fi
8400 fi
8401 $RM conftest*
8402
8403 fi
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8405 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8406
8407 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8408 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8409 else
8410 :
8411 fi
8412
8413 fi
8414
8415
8416
8417
8418
8419
8420 lt_prog_compiler_wl=
8421 lt_prog_compiler_pic=
8422 lt_prog_compiler_static=
8423
8424
8425 if test "$GCC" = yes; then
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_static='-static'
8428
8429 case $host_os in
8430 aix*)
8431 # All AIX code is PIC.
8432 if test "$host_cpu" = ia64; then
8433 # AIX 5 now supports IA64 processor
8434 lt_prog_compiler_static='-Bstatic'
8435 fi
8436 ;;
8437
8438 amigaos*)
8439 case $host_cpu in
8440 powerpc)
8441 # see comment about AmigaOS4 .so support
8442 lt_prog_compiler_pic='-fPIC'
8443 ;;
8444 m68k)
8445 # FIXME: we need at least 68020 code to build shared libraries, but
8446 # adding the `-m68020' flag to GCC prevents building anything better,
8447 # like `-m68040'.
8448 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8449 ;;
8450 esac
8451 ;;
8452
8453 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8454 # PIC is the default for these OSes.
8455 ;;
8456
8457 mingw* | cygwin* | pw32* | os2* | cegcc*)
8458 # This hack is so that the source file can tell whether it is being
8459 # built for inclusion in a dll (and should export symbols for example).
8460 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8461 # (--disable-auto-import) libraries
8462 lt_prog_compiler_pic='-DDLL_EXPORT'
8463 ;;
8464
8465 darwin* | rhapsody*)
8466 # PIC is the default on this platform
8467 # Common symbols not allowed in MH_DYLIB files
8468 lt_prog_compiler_pic='-fno-common'
8469 ;;
8470
8471 haiku*)
8472 # PIC is the default for Haiku.
8473 # The "-static" flag exists, but is broken.
8474 lt_prog_compiler_static=
8475 ;;
8476
8477 hpux*)
8478 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8479 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8480 # sets the default TLS model and affects inlining.
8481 case $host_cpu in
8482 hppa*64*)
8483 # +Z the default
8484 ;;
8485 *)
8486 lt_prog_compiler_pic='-fPIC'
8487 ;;
8488 esac
8489 ;;
8490
8491 interix[3-9]*)
8492 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8493 # Instead, we relocate shared libraries at runtime.
8494 ;;
8495
8496 msdosdjgpp*)
8497 # Just because we use GCC doesn't mean we suddenly get shared libraries
8498 # on systems that don't support them.
8499 lt_prog_compiler_can_build_shared=no
8500 enable_shared=no
8501 ;;
8502
8503 *nto* | *qnx*)
8504 # QNX uses GNU C++, but need to define -shared option too, otherwise
8505 # it will coredump.
8506 lt_prog_compiler_pic='-fPIC -shared'
8507 ;;
8508
8509 sysv4*MP*)
8510 if test -d /usr/nec; then
8511 lt_prog_compiler_pic=-Kconform_pic
8512 fi
8513 ;;
8514
8515 *)
8516 lt_prog_compiler_pic='-fPIC'
8517 ;;
8518 esac
8519
8520 case $cc_basename in
8521 nvcc*) # Cuda Compiler Driver 2.2
8522 lt_prog_compiler_wl='-Xlinker '
8523 if test -n "$lt_prog_compiler_pic"; then
8524 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8525 fi
8526 ;;
8527 esac
8528 else
8529 # PORTME Check for flag to pass linker flags through the system compiler.
8530 case $host_os in
8531 aix*)
8532 lt_prog_compiler_wl='-Wl,'
8533 if test "$host_cpu" = ia64; then
8534 # AIX 5 now supports IA64 processor
8535 lt_prog_compiler_static='-Bstatic'
8536 else
8537 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8538 fi
8539 ;;
8540
8541 mingw* | cygwin* | pw32* | os2* | cegcc*)
8542 # This hack is so that the source file can tell whether it is being
8543 # built for inclusion in a dll (and should export symbols for example).
8544 lt_prog_compiler_pic='-DDLL_EXPORT'
8545 ;;
8546
8547 hpux9* | hpux10* | hpux11*)
8548 lt_prog_compiler_wl='-Wl,'
8549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8550 # not for PA HP-UX.
8551 case $host_cpu in
8552 hppa*64*|ia64*)
8553 # +Z the default
8554 ;;
8555 *)
8556 lt_prog_compiler_pic='+Z'
8557 ;;
8558 esac
8559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8560 lt_prog_compiler_static='${wl}-a ${wl}archive'
8561 ;;
8562
8563 irix5* | irix6* | nonstopux*)
8564 lt_prog_compiler_wl='-Wl,'
8565 # PIC (with -KPIC) is the default.
8566 lt_prog_compiler_static='-non_shared'
8567 ;;
8568
8569 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8570 case $cc_basename in
8571 # old Intel for x86_64 which still supported -KPIC.
8572 ecc*)
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_pic='-KPIC'
8575 lt_prog_compiler_static='-static'
8576 ;;
8577 # icc used to be incompatible with GCC.
8578 # ICC 10 doesn't accept -KPIC any more.
8579 icc* | ifort*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-fPIC'
8582 lt_prog_compiler_static='-static'
8583 ;;
8584 # Lahey Fortran 8.1.
8585 lf95*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='--shared'
8588 lt_prog_compiler_static='--static'
8589 ;;
8590 nagfor*)
8591 # NAG Fortran compiler
8592 lt_prog_compiler_wl='-Wl,-Wl,,'
8593 lt_prog_compiler_pic='-PIC'
8594 lt_prog_compiler_static='-Bstatic'
8595 ;;
8596 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8597 # Portland Group compilers (*not* the Pentium gcc compiler,
8598 # which looks to be a dead project)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-fpic'
8601 lt_prog_compiler_static='-Bstatic'
8602 ;;
8603 ccc*)
8604 lt_prog_compiler_wl='-Wl,'
8605 # All Alpha code is PIC.
8606 lt_prog_compiler_static='-non_shared'
8607 ;;
8608 xl* | bgxl* | bgf* | mpixl*)
8609 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8610 lt_prog_compiler_wl='-Wl,'
8611 lt_prog_compiler_pic='-qpic'
8612 lt_prog_compiler_static='-qstaticlink'
8613 ;;
8614 *)
8615 case `$CC -V 2>&1 | sed 5q` in
8616 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8617 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8618 lt_prog_compiler_pic='-KPIC'
8619 lt_prog_compiler_static='-Bstatic'
8620 lt_prog_compiler_wl=''
8621 ;;
8622 *Sun\ F* | *Sun*Fortran*)
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-Bstatic'
8625 lt_prog_compiler_wl='-Qoption ld '
8626 ;;
8627 *Sun\ C*)
8628 # Sun C 5.9
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 lt_prog_compiler_wl='-Wl,'
8632 ;;
8633 *Intel*\ [CF]*Compiler*)
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_pic='-fPIC'
8636 lt_prog_compiler_static='-static'
8637 ;;
8638 *Portland\ Group*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-fpic'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
8643 esac
8644 ;;
8645 esac
8646 ;;
8647
8648 newsos6)
8649 lt_prog_compiler_pic='-KPIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
8652
8653 *nto* | *qnx*)
8654 # QNX uses GNU C++, but need to define -shared option too, otherwise
8655 # it will coredump.
8656 lt_prog_compiler_pic='-fPIC -shared'
8657 ;;
8658
8659 osf3* | osf4* | osf5*)
8660 lt_prog_compiler_wl='-Wl,'
8661 # All OSF/1 code is PIC.
8662 lt_prog_compiler_static='-non_shared'
8663 ;;
8664
8665 rdos*)
8666 lt_prog_compiler_static='-non_shared'
8667 ;;
8668
8669 solaris*)
8670 lt_prog_compiler_pic='-KPIC'
8671 lt_prog_compiler_static='-Bstatic'
8672 case $cc_basename in
8673 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8674 lt_prog_compiler_wl='-Qoption ld ';;
8675 *)
8676 lt_prog_compiler_wl='-Wl,';;
8677 esac
8678 ;;
8679
8680 sunos4*)
8681 lt_prog_compiler_wl='-Qoption ld '
8682 lt_prog_compiler_pic='-PIC'
8683 lt_prog_compiler_static='-Bstatic'
8684 ;;
8685
8686 sysv4 | sysv4.2uw2* | sysv4.3*)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='-KPIC'
8689 lt_prog_compiler_static='-Bstatic'
8690 ;;
8691
8692 sysv4*MP*)
8693 if test -d /usr/nec ;then
8694 lt_prog_compiler_pic='-Kconform_pic'
8695 lt_prog_compiler_static='-Bstatic'
8696 fi
8697 ;;
8698
8699 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='-KPIC'
8702 lt_prog_compiler_static='-Bstatic'
8703 ;;
8704
8705 unicos*)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_can_build_shared=no
8708 ;;
8709
8710 uts4*)
8711 lt_prog_compiler_pic='-pic'
8712 lt_prog_compiler_static='-Bstatic'
8713 ;;
8714
8715 *)
8716 lt_prog_compiler_can_build_shared=no
8717 ;;
8718 esac
8719 fi
8720
8721 case $host_os in
8722 # For platforms which do not support PIC, -DPIC is meaningless:
8723 *djgpp*)
8724 lt_prog_compiler_pic=
8725 ;;
8726 *)
8727 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8728 ;;
8729 esac
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8732 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8733 if ${lt_cv_prog_compiler_pic+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8739 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8740 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8741
8742 #
8743 # Check to make sure the PIC flag actually works.
8744 #
8745 if test -n "$lt_prog_compiler_pic"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8747 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8748 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 lt_cv_prog_compiler_pic_works=no
8752 ac_outfile=conftest.$ac_objext
8753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8754 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8755 # Insert the option either (1) after the last *FLAGS variable, or
8756 # (2) before a word containing "conftest.", or (3) at the end.
8757 # Note that $ac_compile itself does not contain backslashes and begins
8758 # with a dollar sign (not a hyphen), so the echo should work correctly.
8759 # The option is referenced via a variable to avoid confusing sed.
8760 lt_compile=`echo "$ac_compile" | $SED \
8761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8763 -e 's:$: $lt_compiler_flag:'`
8764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8765 (eval "$lt_compile" 2>conftest.err)
8766 ac_status=$?
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 if (exit $ac_status) && test -s "$ac_outfile"; then
8770 # The compiler can only warn and ignore the option if not recognized
8771 # So say no if there are warnings other than the usual output.
8772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8774 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8775 lt_cv_prog_compiler_pic_works=yes
8776 fi
8777 fi
8778 $RM conftest*
8779
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8782 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8783
8784 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8785 case $lt_prog_compiler_pic in
8786 "" | " "*) ;;
8787 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8788 esac
8789 else
8790 lt_prog_compiler_pic=
8791 lt_prog_compiler_can_build_shared=no
8792 fi
8793
8794 fi
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806 #
8807 # Check to make sure the static flag actually works.
8808 #
8809 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8811 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8812 if ${lt_cv_prog_compiler_static_works+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 lt_cv_prog_compiler_static_works=no
8816 save_LDFLAGS="$LDFLAGS"
8817 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8818 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8820 # The linker can only warn and ignore the option if not recognized
8821 # So say no if there are warnings
8822 if test -s conftest.err; then
8823 # Append any errors to the config.log.
8824 cat conftest.err 1>&5
8825 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8827 if diff conftest.exp conftest.er2 >/dev/null; then
8828 lt_cv_prog_compiler_static_works=yes
8829 fi
8830 else
8831 lt_cv_prog_compiler_static_works=yes
8832 fi
8833 fi
8834 $RM -r conftest*
8835 LDFLAGS="$save_LDFLAGS"
8836
8837 fi
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8839 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8840
8841 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8842 :
8843 else
8844 lt_prog_compiler_static=
8845 fi
8846
8847
8848
8849
8850
8851
8852
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8854 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8855 if ${lt_cv_prog_compiler_c_o+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 lt_cv_prog_compiler_c_o=no
8859 $RM -r conftest 2>/dev/null
8860 mkdir conftest
8861 cd conftest
8862 mkdir out
8863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8864
8865 lt_compiler_flag="-o out/conftest2.$ac_objext"
8866 # Insert the option either (1) after the last *FLAGS variable, or
8867 # (2) before a word containing "conftest.", or (3) at the end.
8868 # Note that $ac_compile itself does not contain backslashes and begins
8869 # with a dollar sign (not a hyphen), so the echo should work correctly.
8870 lt_compile=`echo "$ac_compile" | $SED \
8871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8873 -e 's:$: $lt_compiler_flag:'`
8874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8875 (eval "$lt_compile" 2>out/conftest.err)
8876 ac_status=$?
8877 cat out/conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8880 then
8881 # The compiler can only warn and ignore the option if not recognized
8882 # So say no if there are warnings
8883 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8884 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8885 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8886 lt_cv_prog_compiler_c_o=yes
8887 fi
8888 fi
8889 chmod u+w . 2>&5
8890 $RM conftest*
8891 # SGI C++ compiler will create directory out/ii_files/ for
8892 # template instantiation
8893 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8894 $RM out/* && rmdir out
8895 cd ..
8896 $RM -r conftest
8897 $RM conftest*
8898
8899 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8901 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8902
8903
8904
8905
8906
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8909 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8910 if ${lt_cv_prog_compiler_c_o+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 lt_cv_prog_compiler_c_o=no
8914 $RM -r conftest 2>/dev/null
8915 mkdir conftest
8916 cd conftest
8917 mkdir out
8918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919
8920 lt_compiler_flag="-o out/conftest2.$ac_objext"
8921 # Insert the option either (1) after the last *FLAGS variable, or
8922 # (2) before a word containing "conftest.", or (3) at the end.
8923 # Note that $ac_compile itself does not contain backslashes and begins
8924 # with a dollar sign (not a hyphen), so the echo should work correctly.
8925 lt_compile=`echo "$ac_compile" | $SED \
8926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928 -e 's:$: $lt_compiler_flag:'`
8929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8930 (eval "$lt_compile" 2>out/conftest.err)
8931 ac_status=$?
8932 cat out/conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8935 then
8936 # The compiler can only warn and ignore the option if not recognized
8937 # So say no if there are warnings
8938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8941 lt_cv_prog_compiler_c_o=yes
8942 fi
8943 fi
8944 chmod u+w . 2>&5
8945 $RM conftest*
8946 # SGI C++ compiler will create directory out/ii_files/ for
8947 # template instantiation
8948 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8949 $RM out/* && rmdir out
8950 cd ..
8951 $RM -r conftest
8952 $RM conftest*
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8956 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8957
8958
8959
8960
8961 hard_links="nottested"
8962 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8963 # do not overwrite the value of need_locks provided by the user
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8965 $as_echo_n "checking if we can lock with hard links... " >&6; }
8966 hard_links=yes
8967 $RM conftest*
8968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8969 touch conftest.a
8970 ln conftest.a conftest.b 2>&5 || hard_links=no
8971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8973 $as_echo "$hard_links" >&6; }
8974 if test "$hard_links" = no; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8976 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8977 need_locks=warn
8978 fi
8979 else
8980 need_locks=no
8981 fi
8982
8983
8984
8985
8986
8987
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8989 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8990
8991 runpath_var=
8992 allow_undefined_flag=
8993 always_export_symbols=no
8994 archive_cmds=
8995 archive_expsym_cmds=
8996 compiler_needs_object=no
8997 enable_shared_with_static_runtimes=no
8998 export_dynamic_flag_spec=
8999 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9000 hardcode_automatic=no
9001 hardcode_direct=no
9002 hardcode_direct_absolute=no
9003 hardcode_libdir_flag_spec=
9004 hardcode_libdir_separator=
9005 hardcode_minus_L=no
9006 hardcode_shlibpath_var=unsupported
9007 inherit_rpath=no
9008 link_all_deplibs=unknown
9009 module_cmds=
9010 module_expsym_cmds=
9011 old_archive_from_new_cmds=
9012 old_archive_from_expsyms_cmds=
9013 thread_safe_flag_spec=
9014 whole_archive_flag_spec=
9015 # include_expsyms should be a list of space-separated symbols to be *always*
9016 # included in the symbol list
9017 include_expsyms=
9018 # exclude_expsyms can be an extended regexp of symbols to exclude
9019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9021 # as well as any symbol that contains `d'.
9022 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9024 # platforms (ab)use it in PIC code, but their linkers get confused if
9025 # the symbol is explicitly referenced. Since portable code cannot
9026 # rely on this symbol name, it's probably fine to never include it in
9027 # preloaded symbol tables.
9028 # Exclude shared library initialization/finalization symbols.
9029 extract_expsyms_cmds=
9030
9031 case $host_os in
9032 cygwin* | mingw* | pw32* | cegcc*)
9033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9034 # When not using gcc, we currently assume that we are using
9035 # Microsoft Visual C++.
9036 if test "$GCC" != yes; then
9037 with_gnu_ld=no
9038 fi
9039 ;;
9040 interix*)
9041 # we just hope/assume this is gcc and not c89 (= MSVC++)
9042 with_gnu_ld=yes
9043 ;;
9044 openbsd*)
9045 with_gnu_ld=no
9046 ;;
9047 linux* | k*bsd*-gnu | gnu*)
9048 link_all_deplibs=no
9049 ;;
9050 esac
9051
9052 ld_shlibs=yes
9053
9054 # On some targets, GNU ld is compatible enough with the native linker
9055 # that we're better off using the native interface for both.
9056 lt_use_gnu_ld_interface=no
9057 if test "$with_gnu_ld" = yes; then
9058 case $host_os in
9059 aix*)
9060 # The AIX port of GNU ld has always aspired to compatibility
9061 # with the native linker. However, as the warning in the GNU ld
9062 # block says, versions before 2.19.5* couldn't really create working
9063 # shared libraries, regardless of the interface used.
9064 case `$LD -v 2>&1` in
9065 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9066 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9067 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9068 *)
9069 lt_use_gnu_ld_interface=yes
9070 ;;
9071 esac
9072 ;;
9073 *)
9074 lt_use_gnu_ld_interface=yes
9075 ;;
9076 esac
9077 fi
9078
9079 if test "$lt_use_gnu_ld_interface" = yes; then
9080 # If archive_cmds runs LD, not CC, wlarc should be empty
9081 wlarc='${wl}'
9082
9083 # Set some defaults for GNU ld with shared library support. These
9084 # are reset later if shared libraries are not supported. Putting them
9085 # here allows them to be overridden if necessary.
9086 runpath_var=LD_RUN_PATH
9087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9088 export_dynamic_flag_spec='${wl}--export-dynamic'
9089 # ancient GNU ld didn't support --whole-archive et. al.
9090 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9091 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9092 else
9093 whole_archive_flag_spec=
9094 fi
9095 supports_anon_versioning=no
9096 case `$LD -v 2>&1` in
9097 *GNU\ gold*) supports_anon_versioning=yes ;;
9098 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9099 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9100 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9101 *\ 2.11.*) ;; # other 2.11 versions
9102 *) supports_anon_versioning=yes ;;
9103 esac
9104
9105 # See if GNU ld supports shared libraries.
9106 case $host_os in
9107 aix[3-9]*)
9108 # On AIX/PPC, the GNU linker is very broken
9109 if test "$host_cpu" != ia64; then
9110 ld_shlibs=no
9111 cat <<_LT_EOF 1>&2
9112
9113 *** Warning: the GNU linker, at least up to release 2.19, is reported
9114 *** to be unable to reliably create shared libraries on AIX.
9115 *** Therefore, libtool is disabling shared libraries support. If you
9116 *** really care for shared libraries, you may want to install binutils
9117 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9118 *** You will then need to restart the configuration process.
9119
9120 _LT_EOF
9121 fi
9122 ;;
9123
9124 amigaos*)
9125 case $host_cpu in
9126 powerpc)
9127 # see comment about AmigaOS4 .so support
9128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 archive_expsym_cmds=''
9130 ;;
9131 m68k)
9132 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)'
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 hardcode_minus_L=yes
9135 ;;
9136 esac
9137 ;;
9138
9139 beos*)
9140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9141 allow_undefined_flag=unsupported
9142 # Joseph Beckenbach <[email protected]> says some releases of gcc
9143 # support --undefined. This deserves some investigation. FIXME
9144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145 else
9146 ld_shlibs=no
9147 fi
9148 ;;
9149
9150 cygwin* | mingw* | pw32* | cegcc*)
9151 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9152 # as there is no search path for DLLs.
9153 hardcode_libdir_flag_spec='-L$libdir'
9154 export_dynamic_flag_spec='${wl}--export-all-symbols'
9155 allow_undefined_flag=unsupported
9156 always_export_symbols=no
9157 enable_shared_with_static_runtimes=yes
9158 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'
9159 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9160
9161 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9163 # If the export-symbols file already is a .def file (1st line
9164 # is EXPORTS), use it as is; otherwise, prepend...
9165 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9166 cp $export_symbols $output_objdir/$soname.def;
9167 else
9168 echo EXPORTS > $output_objdir/$soname.def;
9169 cat $export_symbols >> $output_objdir/$soname.def;
9170 fi~
9171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9172 else
9173 ld_shlibs=no
9174 fi
9175 ;;
9176
9177 haiku*)
9178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9179 link_all_deplibs=yes
9180 ;;
9181
9182 interix[3-9]*)
9183 hardcode_direct=no
9184 hardcode_shlibpath_var=no
9185 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9186 export_dynamic_flag_spec='${wl}-E'
9187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9188 # Instead, shared libraries are loaded at an image base (0x10000000 by
9189 # default) and relocated if they conflict, which is a slow very memory
9190 # consuming and fragmenting process. To avoid this, we pick a random,
9191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9193 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9194 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'
9195 ;;
9196
9197 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9198 tmp_diet=no
9199 if test "$host_os" = linux-dietlibc; then
9200 case $cc_basename in
9201 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9202 esac
9203 fi
9204 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9205 && test "$tmp_diet" = no
9206 then
9207 tmp_addflag=' $pic_flag'
9208 tmp_sharedflag='-shared'
9209 case $cc_basename,$host_cpu in
9210 pgcc*) # Portland Group C compiler
9211 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'
9212 tmp_addflag=' $pic_flag'
9213 ;;
9214 pgf77* | pgf90* | pgf95* | pgfortran*)
9215 # Portland Group f77 and f90 compilers
9216 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'
9217 tmp_addflag=' $pic_flag -Mnomain' ;;
9218 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9219 tmp_addflag=' -i_dynamic' ;;
9220 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9221 tmp_addflag=' -i_dynamic -nofor_main' ;;
9222 ifc* | ifort*) # Intel Fortran compiler
9223 tmp_addflag=' -nofor_main' ;;
9224 lf95*) # Lahey Fortran 8.1
9225 whole_archive_flag_spec=
9226 tmp_sharedflag='--shared' ;;
9227 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9228 tmp_sharedflag='-qmkshrobj'
9229 tmp_addflag= ;;
9230 nvcc*) # Cuda Compiler Driver 2.2
9231 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'
9232 compiler_needs_object=yes
9233 ;;
9234 esac
9235 case `$CC -V 2>&1 | sed 5q` in
9236 *Sun\ C*) # Sun C 5.9
9237 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'
9238 compiler_needs_object=yes
9239 tmp_sharedflag='-G' ;;
9240 *Sun\ F*) # Sun Fortran 8.3
9241 tmp_sharedflag='-G' ;;
9242 esac
9243 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244
9245 if test "x$supports_anon_versioning" = xyes; then
9246 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9248 echo "local: *; };" >> $output_objdir/$libname.ver~
9249 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9250 fi
9251
9252 case $cc_basename in
9253 xlf* | bgf* | bgxlf* | mpixlf*)
9254 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9255 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9258 if test "x$supports_anon_versioning" = xyes; then
9259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9261 echo "local: *; };" >> $output_objdir/$libname.ver~
9262 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9263 fi
9264 ;;
9265 esac
9266 else
9267 ld_shlibs=no
9268 fi
9269 ;;
9270
9271 netbsd* | netbsdelf*-gnu)
9272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9273 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9274 wlarc=
9275 else
9276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9278 fi
9279 ;;
9280
9281 solaris*)
9282 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9283 ld_shlibs=no
9284 cat <<_LT_EOF 1>&2
9285
9286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9287 *** create shared libraries on Solaris systems. Therefore, libtool
9288 *** is disabling shared libraries support. We urge you to upgrade GNU
9289 *** binutils to release 2.9.1 or newer. Another option is to modify
9290 *** your PATH or compiler configuration so that the native linker is
9291 *** used, and then restart.
9292
9293 _LT_EOF
9294 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9297 else
9298 ld_shlibs=no
9299 fi
9300 ;;
9301
9302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9303 case `$LD -v 2>&1` in
9304 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9305 ld_shlibs=no
9306 cat <<_LT_EOF 1>&2
9307
9308 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9309 *** reliably create shared libraries on SCO systems. Therefore, libtool
9310 *** is disabling shared libraries support. We urge you to upgrade GNU
9311 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9312 *** your PATH or compiler configuration so that the native linker is
9313 *** used, and then restart.
9314
9315 _LT_EOF
9316 ;;
9317 *)
9318 # For security reasons, it is highly recommended that you always
9319 # use absolute paths for naming shared libraries, and exclude the
9320 # DT_RUNPATH tag from executables and libraries. But doing so
9321 # requires that you compile everything twice, which is a pain.
9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9326 else
9327 ld_shlibs=no
9328 fi
9329 ;;
9330 esac
9331 ;;
9332
9333 sunos4*)
9334 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9335 wlarc=
9336 hardcode_direct=yes
9337 hardcode_shlibpath_var=no
9338 ;;
9339
9340 *)
9341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344 else
9345 ld_shlibs=no
9346 fi
9347 ;;
9348 esac
9349
9350 if test "$ld_shlibs" = no; then
9351 runpath_var=
9352 hardcode_libdir_flag_spec=
9353 export_dynamic_flag_spec=
9354 whole_archive_flag_spec=
9355 fi
9356 else
9357 # PORTME fill in a description of your system's linker (not GNU ld)
9358 case $host_os in
9359 aix3*)
9360 allow_undefined_flag=unsupported
9361 always_export_symbols=yes
9362 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'
9363 # Note: this linker hardcodes the directories in LIBPATH if there
9364 # are no directories specified by -L.
9365 hardcode_minus_L=yes
9366 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9367 # Neither direct hardcoding nor static linking is supported with a
9368 # broken collect2.
9369 hardcode_direct=unsupported
9370 fi
9371 ;;
9372
9373 aix[4-9]*)
9374 if test "$host_cpu" = ia64; then
9375 # On IA64, the linker does run time linking by default, so we don't
9376 # have to do anything special.
9377 aix_use_runtimelinking=no
9378 exp_sym_flag='-Bexport'
9379 no_entry_flag=""
9380 else
9381 # If we're using GNU nm, then we don't want the "-C" option.
9382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9383 # Also, AIX nm treats weak defined symbols like other global
9384 # defined symbols, whereas GNU nm marks them as "W".
9385 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9386 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'
9387 else
9388 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'
9389 fi
9390 aix_use_runtimelinking=no
9391
9392 # Test if we are trying to use run time linking or normal
9393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9394 # need to do runtime linking.
9395 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9396 for ld_flag in $LDFLAGS; do
9397 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9398 aix_use_runtimelinking=yes
9399 break
9400 fi
9401 done
9402 ;;
9403 esac
9404
9405 exp_sym_flag='-bexport'
9406 no_entry_flag='-bnoentry'
9407 fi
9408
9409 # When large executables or shared objects are built, AIX ld can
9410 # have problems creating the table of contents. If linking a library
9411 # or program results in "error TOC overflow" add -mminimal-toc to
9412 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9413 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9414
9415 archive_cmds=''
9416 hardcode_direct=yes
9417 hardcode_direct_absolute=yes
9418 hardcode_libdir_separator=':'
9419 link_all_deplibs=yes
9420 file_list_spec='${wl}-f,'
9421
9422 if test "$GCC" = yes; then
9423 case $host_os in aix4.[012]|aix4.[012].*)
9424 # We only want to do this on AIX 4.2 and lower, the check
9425 # below for broken collect2 doesn't work under 4.3+
9426 collect2name=`${CC} -print-prog-name=collect2`
9427 if test -f "$collect2name" &&
9428 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9429 then
9430 # We have reworked collect2
9431 :
9432 else
9433 # We have old collect2
9434 hardcode_direct=unsupported
9435 # It fails to find uninstalled libraries when the uninstalled
9436 # path is not listed in the libpath. Setting hardcode_minus_L
9437 # to unsupported forces relinking
9438 hardcode_minus_L=yes
9439 hardcode_libdir_flag_spec='-L$libdir'
9440 hardcode_libdir_separator=
9441 fi
9442 ;;
9443 esac
9444 shared_flag='-shared'
9445 if test "$aix_use_runtimelinking" = yes; then
9446 shared_flag="$shared_flag "'${wl}-G'
9447 fi
9448 link_all_deplibs=no
9449 else
9450 # not using gcc
9451 if test "$host_cpu" = ia64; then
9452 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9453 # chokes on -Wl,-G. The following line is correct:
9454 shared_flag='-G'
9455 else
9456 if test "$aix_use_runtimelinking" = yes; then
9457 shared_flag='${wl}-G'
9458 else
9459 shared_flag='${wl}-bM:SRE'
9460 fi
9461 fi
9462 fi
9463
9464 export_dynamic_flag_spec='${wl}-bexpall'
9465 # It seems that -bexpall does not export symbols beginning with
9466 # underscore (_), so it is better to generate a list of symbols to export.
9467 always_export_symbols=yes
9468 if test "$aix_use_runtimelinking" = yes; then
9469 # Warning - without using the other runtime loading flags (-brtl),
9470 # -berok will link without error, but may produce a broken library.
9471 allow_undefined_flag='-berok'
9472 # Determine the default libpath from the value encoded in an
9473 # empty executable.
9474 if test "${lt_cv_aix_libpath+set}" = set; then
9475 aix_libpath=$lt_cv_aix_libpath
9476 else
9477 if ${lt_cv_aix_libpath_+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482
9483 int
9484 main ()
9485 {
9486
9487 ;
9488 return 0;
9489 }
9490 _ACEOF
9491 if ac_fn_c_try_link "$LINENO"; then :
9492
9493 lt_aix_libpath_sed='
9494 /Import File Strings/,/^$/ {
9495 /^0/ {
9496 s/^0 *\([^ ]*\) *$/\1/
9497 p
9498 }
9499 }'
9500 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9501 # Check for a 64-bit object if we didn't find anything.
9502 if test -z "$lt_cv_aix_libpath_"; then
9503 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504 fi
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 if test -z "$lt_cv_aix_libpath_"; then
9509 lt_cv_aix_libpath_="/usr/lib:/lib"
9510 fi
9511
9512 fi
9513
9514 aix_libpath=$lt_cv_aix_libpath_
9515 fi
9516
9517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9518 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"
9519 else
9520 if test "$host_cpu" = ia64; then
9521 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9522 allow_undefined_flag="-z nodefs"
9523 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"
9524 else
9525 # Determine the default libpath from the value encoded in an
9526 # empty executable.
9527 if test "${lt_cv_aix_libpath+set}" = set; then
9528 aix_libpath=$lt_cv_aix_libpath
9529 else
9530 if ${lt_cv_aix_libpath_+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535
9536 int
9537 main ()
9538 {
9539
9540 ;
9541 return 0;
9542 }
9543 _ACEOF
9544 if ac_fn_c_try_link "$LINENO"; then :
9545
9546 lt_aix_libpath_sed='
9547 /Import File Strings/,/^$/ {
9548 /^0/ {
9549 s/^0 *\([^ ]*\) *$/\1/
9550 p
9551 }
9552 }'
9553 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9554 # Check for a 64-bit object if we didn't find anything.
9555 if test -z "$lt_cv_aix_libpath_"; then
9556 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9557 fi
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext conftest.$ac_ext
9561 if test -z "$lt_cv_aix_libpath_"; then
9562 lt_cv_aix_libpath_="/usr/lib:/lib"
9563 fi
9564
9565 fi
9566
9567 aix_libpath=$lt_cv_aix_libpath_
9568 fi
9569
9570 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9571 # Warning - without using the other run time loading flags,
9572 # -berok will link without error, but may produce a broken library.
9573 no_undefined_flag=' ${wl}-bernotok'
9574 allow_undefined_flag=' ${wl}-berok'
9575 if test "$with_gnu_ld" = yes; then
9576 # We only use this code for GNU lds that support --whole-archive.
9577 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9578 else
9579 # Exported symbols can be pulled into shared objects from archives
9580 whole_archive_flag_spec='$convenience'
9581 fi
9582 archive_cmds_need_lc=yes
9583 # This is similar to how AIX traditionally builds its shared libraries.
9584 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'
9585 fi
9586 fi
9587 ;;
9588
9589 amigaos*)
9590 case $host_cpu in
9591 powerpc)
9592 # see comment about AmigaOS4 .so support
9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594 archive_expsym_cmds=''
9595 ;;
9596 m68k)
9597 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)'
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_minus_L=yes
9600 ;;
9601 esac
9602 ;;
9603
9604 bsdi[45]*)
9605 export_dynamic_flag_spec=-rdynamic
9606 ;;
9607
9608 cygwin* | mingw* | pw32* | cegcc*)
9609 # When not using gcc, we currently assume that we are using
9610 # Microsoft Visual C++.
9611 # hardcode_libdir_flag_spec is actually meaningless, as there is
9612 # no search path for DLLs.
9613 case $cc_basename in
9614 cl*)
9615 # Native MSVC
9616 hardcode_libdir_flag_spec=' '
9617 allow_undefined_flag=unsupported
9618 always_export_symbols=yes
9619 file_list_spec='@'
9620 # Tell ltmain to make .lib files, not .a files.
9621 libext=lib
9622 # Tell ltmain to make .dll files, not .so files.
9623 shrext_cmds=".dll"
9624 # FIXME: Setting linknames here is a bad hack.
9625 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9626 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9627 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9628 else
9629 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9630 fi~
9631 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9632 linknames='
9633 # The linker will not automatically build a static lib if we build a DLL.
9634 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9635 enable_shared_with_static_runtimes=yes
9636 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9637 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9638 # Don't use ranlib
9639 old_postinstall_cmds='chmod 644 $oldlib'
9640 postlink_cmds='lt_outputfile="@OUTPUT@"~
9641 lt_tool_outputfile="@TOOL_OUTPUT@"~
9642 case $lt_outputfile in
9643 *.exe|*.EXE) ;;
9644 *)
9645 lt_outputfile="$lt_outputfile.exe"
9646 lt_tool_outputfile="$lt_tool_outputfile.exe"
9647 ;;
9648 esac~
9649 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9650 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9651 $RM "$lt_outputfile.manifest";
9652 fi'
9653 ;;
9654 *)
9655 # Assume MSVC wrapper
9656 hardcode_libdir_flag_spec=' '
9657 allow_undefined_flag=unsupported
9658 # Tell ltmain to make .lib files, not .a files.
9659 libext=lib
9660 # Tell ltmain to make .dll files, not .so files.
9661 shrext_cmds=".dll"
9662 # FIXME: Setting linknames here is a bad hack.
9663 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9664 # The linker will automatically build a .lib file if we build a DLL.
9665 old_archive_from_new_cmds='true'
9666 # FIXME: Should let the user specify the lib program.
9667 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9668 enable_shared_with_static_runtimes=yes
9669 ;;
9670 esac
9671 ;;
9672
9673 darwin* | rhapsody*)
9674
9675
9676 archive_cmds_need_lc=no
9677 hardcode_direct=no
9678 hardcode_automatic=yes
9679 hardcode_shlibpath_var=unsupported
9680 if test "$lt_cv_ld_force_load" = "yes"; then
9681 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\"`'
9682
9683 else
9684 whole_archive_flag_spec=''
9685 fi
9686 link_all_deplibs=yes
9687 allow_undefined_flag="$_lt_dar_allow_undefined"
9688 case $cc_basename in
9689 ifort*) _lt_dar_can_shared=yes ;;
9690 *) _lt_dar_can_shared=$GCC ;;
9691 esac
9692 if test "$_lt_dar_can_shared" = "yes"; then
9693 output_verbose_link_cmd=func_echo_all
9694 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9695 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9696 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}"
9697 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}"
9698
9699 else
9700 ld_shlibs=no
9701 fi
9702
9703 ;;
9704
9705 dgux*)
9706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_libdir_flag_spec='-L$libdir'
9708 hardcode_shlibpath_var=no
9709 ;;
9710
9711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9712 # support. Future versions do this automatically, but an explicit c++rt0.o
9713 # does not break anything, and helps significantly (at the cost of a little
9714 # extra space).
9715 freebsd2.2*)
9716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9723 freebsd2.*)
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_direct=yes
9726 hardcode_minus_L=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9731 freebsd* | dragonfly*)
9732 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 hpux9*)
9739 if test "$GCC" = yes; then
9740 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'
9741 else
9742 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'
9743 fi
9744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9745 hardcode_libdir_separator=:
9746 hardcode_direct=yes
9747
9748 # hardcode_minus_L: Not really in the search PATH,
9749 # but as the default location of the library.
9750 hardcode_minus_L=yes
9751 export_dynamic_flag_spec='${wl}-E'
9752 ;;
9753
9754 hpux10*)
9755 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9756 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9759 fi
9760 if test "$with_gnu_ld" = no; then
9761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9762 hardcode_libdir_separator=:
9763 hardcode_direct=yes
9764 hardcode_direct_absolute=yes
9765 export_dynamic_flag_spec='${wl}-E'
9766 # hardcode_minus_L: Not really in the search PATH,
9767 # but as the default location of the library.
9768 hardcode_minus_L=yes
9769 fi
9770 ;;
9771
9772 hpux11*)
9773 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9774 case $host_cpu in
9775 hppa*64*)
9776 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 ;;
9778 ia64*)
9779 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9780 ;;
9781 *)
9782 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9783 ;;
9784 esac
9785 else
9786 case $host_cpu in
9787 hppa*64*)
9788 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 ;;
9790 ia64*)
9791 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9792 ;;
9793 *)
9794
9795 # Older versions of the 11.00 compiler do not understand -b yet
9796 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9798 $as_echo_n "checking if $CC understands -b... " >&6; }
9799 if ${lt_cv_prog_compiler__b+:} false; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 lt_cv_prog_compiler__b=no
9803 save_LDFLAGS="$LDFLAGS"
9804 LDFLAGS="$LDFLAGS -b"
9805 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9807 # The linker can only warn and ignore the option if not recognized
9808 # So say no if there are warnings
9809 if test -s conftest.err; then
9810 # Append any errors to the config.log.
9811 cat conftest.err 1>&5
9812 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9814 if diff conftest.exp conftest.er2 >/dev/null; then
9815 lt_cv_prog_compiler__b=yes
9816 fi
9817 else
9818 lt_cv_prog_compiler__b=yes
9819 fi
9820 fi
9821 $RM -r conftest*
9822 LDFLAGS="$save_LDFLAGS"
9823
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9826 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9827
9828 if test x"$lt_cv_prog_compiler__b" = xyes; then
9829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 else
9831 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9832 fi
9833
9834 ;;
9835 esac
9836 fi
9837 if test "$with_gnu_ld" = no; then
9838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9839 hardcode_libdir_separator=:
9840
9841 case $host_cpu in
9842 hppa*64*|ia64*)
9843 hardcode_direct=no
9844 hardcode_shlibpath_var=no
9845 ;;
9846 *)
9847 hardcode_direct=yes
9848 hardcode_direct_absolute=yes
9849 export_dynamic_flag_spec='${wl}-E'
9850
9851 # hardcode_minus_L: Not really in the search PATH,
9852 # but as the default location of the library.
9853 hardcode_minus_L=yes
9854 ;;
9855 esac
9856 fi
9857 ;;
9858
9859 irix5* | irix6* | nonstopux*)
9860 if test "$GCC" = yes; then
9861 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'
9862 # Try to use the -exported_symbol ld option, if it does not
9863 # work, assume that -exports_file does not work either and
9864 # implicitly export all symbols.
9865 # This should be the same for all languages, so no per-tag cache variable.
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9867 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9868 if ${lt_cv_irix_exported_symbol+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 save_LDFLAGS="$LDFLAGS"
9872 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875 int foo (void) { return 0; }
9876 _ACEOF
9877 if ac_fn_c_try_link "$LINENO"; then :
9878 lt_cv_irix_exported_symbol=yes
9879 else
9880 lt_cv_irix_exported_symbol=no
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 LDFLAGS="$save_LDFLAGS"
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9887 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9888 if test "$lt_cv_irix_exported_symbol" = yes; then
9889 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'
9890 fi
9891 else
9892 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'
9893 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'
9894 fi
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator=:
9898 inherit_rpath=yes
9899 link_all_deplibs=yes
9900 ;;
9901
9902 netbsd* | netbsdelf*-gnu)
9903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9905 else
9906 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9907 fi
9908 hardcode_libdir_flag_spec='-R$libdir'
9909 hardcode_direct=yes
9910 hardcode_shlibpath_var=no
9911 ;;
9912
9913 newsos6)
9914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915 hardcode_direct=yes
9916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9917 hardcode_libdir_separator=:
9918 hardcode_shlibpath_var=no
9919 ;;
9920
9921 *nto* | *qnx*)
9922 ;;
9923
9924 openbsd*)
9925 if test -f /usr/libexec/ld.so; then
9926 hardcode_direct=yes
9927 hardcode_shlibpath_var=no
9928 hardcode_direct_absolute=yes
9929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9933 export_dynamic_flag_spec='${wl}-E'
9934 else
9935 case $host_os in
9936 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec='-R$libdir'
9939 ;;
9940 *)
9941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9942 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9943 ;;
9944 esac
9945 fi
9946 else
9947 ld_shlibs=no
9948 fi
9949 ;;
9950
9951 os2*)
9952 hardcode_libdir_flag_spec='-L$libdir'
9953 hardcode_minus_L=yes
9954 allow_undefined_flag=unsupported
9955 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'
9956 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9957 ;;
9958
9959 osf3*)
9960 if test "$GCC" = yes; then
9961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9962 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'
9963 else
9964 allow_undefined_flag=' -expect_unresolved \*'
9965 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'
9966 fi
9967 archive_cmds_need_lc='no'
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 hardcode_libdir_separator=:
9970 ;;
9971
9972 osf4* | osf5*) # as osf3* with the addition of -msym flag
9973 if test "$GCC" = yes; then
9974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9975 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'
9976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9977 else
9978 allow_undefined_flag=' -expect_unresolved \*'
9979 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'
9980 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~
9981 $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'
9982
9983 # Both c and cxx compiler support -rpath directly
9984 hardcode_libdir_flag_spec='-rpath $libdir'
9985 fi
9986 archive_cmds_need_lc='no'
9987 hardcode_libdir_separator=:
9988 ;;
9989
9990 solaris*)
9991 no_undefined_flag=' -z defs'
9992 if test "$GCC" = yes; then
9993 wlarc='${wl}'
9994 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9996 $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'
9997 else
9998 case `$CC -V 2>&1` in
9999 *"Compilers 5.0"*)
10000 wlarc=''
10001 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10004 ;;
10005 *)
10006 wlarc='${wl}'
10007 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10009 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10010 ;;
10011 esac
10012 fi
10013 hardcode_libdir_flag_spec='-R$libdir'
10014 hardcode_shlibpath_var=no
10015 case $host_os in
10016 solaris2.[0-5] | solaris2.[0-5].*) ;;
10017 *)
10018 # The compiler driver will combine and reorder linker options,
10019 # but understands `-z linker_flag'. GCC discards it without `$wl',
10020 # but is careful enough not to reorder.
10021 # Supported since Solaris 2.6 (maybe 2.5.1?)
10022 if test "$GCC" = yes; then
10023 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10024 else
10025 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10026 fi
10027 ;;
10028 esac
10029 link_all_deplibs=yes
10030 ;;
10031
10032 sunos4*)
10033 if test "x$host_vendor" = xsequent; then
10034 # Use $CC to link under sequent, because it throws in some extra .o
10035 # files that make .init and .fini sections work.
10036 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10037 else
10038 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10039 fi
10040 hardcode_libdir_flag_spec='-L$libdir'
10041 hardcode_direct=yes
10042 hardcode_minus_L=yes
10043 hardcode_shlibpath_var=no
10044 ;;
10045
10046 sysv4)
10047 case $host_vendor in
10048 sni)
10049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct=yes # is this really true???
10051 ;;
10052 siemens)
10053 ## LD is ld it makes a PLAMLIB
10054 ## CC just makes a GrossModule.
10055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10056 reload_cmds='$CC -r -o $output$reload_objs'
10057 hardcode_direct=no
10058 ;;
10059 motorola)
10060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10062 ;;
10063 esac
10064 runpath_var='LD_RUN_PATH'
10065 hardcode_shlibpath_var=no
10066 ;;
10067
10068 sysv4.3*)
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_shlibpath_var=no
10071 export_dynamic_flag_spec='-Bexport'
10072 ;;
10073
10074 sysv4*MP*)
10075 if test -d /usr/nec; then
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_shlibpath_var=no
10078 runpath_var=LD_RUN_PATH
10079 hardcode_runpath_var=yes
10080 ld_shlibs=yes
10081 fi
10082 ;;
10083
10084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10085 no_undefined_flag='${wl}-z,text'
10086 archive_cmds_need_lc=no
10087 hardcode_shlibpath_var=no
10088 runpath_var='LD_RUN_PATH'
10089
10090 if test "$GCC" = yes; then
10091 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 else
10094 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 fi
10097 ;;
10098
10099 sysv5* | sco3.2v5* | sco5v6*)
10100 # Note: We can NOT use -z defs as we might desire, because we do not
10101 # link with -lc, and that would cause any symbols used from libc to
10102 # always be unresolved, which means just about no library would
10103 # ever link correctly. If we're not using GNU ld we use -z text
10104 # though, which does catch some bad symbols but isn't as heavy-handed
10105 # as -z defs.
10106 no_undefined_flag='${wl}-z,text'
10107 allow_undefined_flag='${wl}-z,nodefs'
10108 archive_cmds_need_lc=no
10109 hardcode_shlibpath_var=no
10110 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10111 hardcode_libdir_separator=':'
10112 link_all_deplibs=yes
10113 export_dynamic_flag_spec='${wl}-Bexport'
10114 runpath_var='LD_RUN_PATH'
10115
10116 if test "$GCC" = yes; then
10117 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 else
10120 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 fi
10123 ;;
10124
10125 uts4*)
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 hardcode_shlibpath_var=no
10129 ;;
10130
10131 *)
10132 ld_shlibs=no
10133 ;;
10134 esac
10135
10136 if test x$host_vendor = xsni; then
10137 case $host in
10138 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10139 export_dynamic_flag_spec='${wl}-Blargedynsym'
10140 ;;
10141 esac
10142 fi
10143 fi
10144
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10146 $as_echo "$ld_shlibs" >&6; }
10147 test "$ld_shlibs" = no && can_build_shared=no
10148
10149 with_gnu_ld=$with_gnu_ld
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165 #
10166 # Do we need to explicitly link libc?
10167 #
10168 case "x$archive_cmds_need_lc" in
10169 x|xyes)
10170 # Assume -lc should be added
10171 archive_cmds_need_lc=yes
10172
10173 if test "$enable_shared" = yes && test "$GCC" = yes; then
10174 case $archive_cmds in
10175 *'~'*)
10176 # FIXME: we may have to deal with multi-command sequences.
10177 ;;
10178 '$CC '*)
10179 # Test whether the compiler implicitly links with -lc since on some
10180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10181 # to ld, don't add -lc before -lgcc.
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10183 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10184 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 $RM conftest*
10188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10189
10190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10191 (eval $ac_compile) 2>&5
10192 ac_status=$?
10193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10194 test $ac_status = 0; } 2>conftest.err; then
10195 soname=conftest
10196 lib=conftest
10197 libobjs=conftest.$ac_objext
10198 deplibs=
10199 wl=$lt_prog_compiler_wl
10200 pic_flag=$lt_prog_compiler_pic
10201 compiler_flags=-v
10202 linker_flags=-v
10203 verstring=
10204 output_objdir=.
10205 libname=conftest
10206 lt_save_allow_undefined_flag=$allow_undefined_flag
10207 allow_undefined_flag=
10208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10209 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10210 ac_status=$?
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; }
10213 then
10214 lt_cv_archive_cmds_need_lc=no
10215 else
10216 lt_cv_archive_cmds_need_lc=yes
10217 fi
10218 allow_undefined_flag=$lt_save_allow_undefined_flag
10219 else
10220 cat conftest.err 1>&5
10221 fi
10222 $RM conftest*
10223
10224 fi
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10226 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10227 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10228 ;;
10229 esac
10230 fi
10231 ;;
10232 esac
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10386 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10387
10388 if test "$GCC" = yes; then
10389 case $host_os in
10390 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10391 *) lt_awk_arg="/^libraries:/" ;;
10392 esac
10393 case $host_os in
10394 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10395 *) lt_sed_strip_eq="s,=/,/,g" ;;
10396 esac
10397 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10398 case $lt_search_path_spec in
10399 *\;*)
10400 # if the path contains ";" then we assume it to be the separator
10401 # otherwise default to the standard path separator (i.e. ":") - it is
10402 # assumed that no part of a normal pathname contains ";" but that should
10403 # okay in the real world where ";" in dirpaths is itself problematic.
10404 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10405 ;;
10406 *)
10407 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10408 ;;
10409 esac
10410 # Ok, now we have the path, separated by spaces, we can step through it
10411 # and add multilib dir if necessary.
10412 lt_tmp_lt_search_path_spec=
10413 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10414 for lt_sys_path in $lt_search_path_spec; do
10415 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10416 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10417 else
10418 test -d "$lt_sys_path" && \
10419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10420 fi
10421 done
10422 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10423 BEGIN {RS=" "; FS="/|\n";} {
10424 lt_foo="";
10425 lt_count=0;
10426 for (lt_i = NF; lt_i > 0; lt_i--) {
10427 if ($lt_i != "" && $lt_i != ".") {
10428 if ($lt_i == "..") {
10429 lt_count++;
10430 } else {
10431 if (lt_count == 0) {
10432 lt_foo="/" $lt_i lt_foo;
10433 } else {
10434 lt_count--;
10435 }
10436 }
10437 }
10438 }
10439 if (lt_foo != "") { lt_freq[lt_foo]++; }
10440 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10441 }'`
10442 # AWK program above erroneously prepends '/' to C:/dos/paths
10443 # for these hosts.
10444 case $host_os in
10445 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10446 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10447 esac
10448 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10449 else
10450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10451 fi
10452 library_names_spec=
10453 libname_spec='lib$name'
10454 soname_spec=
10455 shrext_cmds=".so"
10456 postinstall_cmds=
10457 postuninstall_cmds=
10458 finish_cmds=
10459 finish_eval=
10460 shlibpath_var=
10461 shlibpath_overrides_runpath=unknown
10462 version_type=none
10463 dynamic_linker="$host_os ld.so"
10464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10465 need_lib_prefix=unknown
10466 hardcode_into_libs=no
10467
10468 # when you set need_version to no, make sure it does not cause -set_version
10469 # flags to be left without arguments
10470 need_version=unknown
10471
10472 case $host_os in
10473 aix3*)
10474 version_type=linux # correct to gnu/linux during the next big refactor
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10476 shlibpath_var=LIBPATH
10477
10478 # AIX 3 has no versioning support, so we append a major version to the name.
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 ;;
10481
10482 aix[4-9]*)
10483 version_type=linux # correct to gnu/linux during the next big refactor
10484 need_lib_prefix=no
10485 need_version=no
10486 hardcode_into_libs=yes
10487 if test "$host_cpu" = ia64; then
10488 # AIX 5 supports IA64
10489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 else
10492 # With GCC up to 2.95.x, collect2 would create an import file
10493 # for dependence libraries. The import file would start with
10494 # the line `#! .'. This would cause the generated library to
10495 # depend on `.', always an invalid library. This was fixed in
10496 # development snapshots of GCC prior to 3.0.
10497 case $host_os in
10498 aix4 | aix4.[01] | aix4.[01].*)
10499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10500 echo ' yes '
10501 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10502 :
10503 else
10504 can_build_shared=no
10505 fi
10506 ;;
10507 esac
10508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10509 # soname into executable. Probably we can add versioning support to
10510 # collect2, so additional links can be useful in future.
10511 if test "$aix_use_runtimelinking" = yes; then
10512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10513 # instead of lib<name>.a to let people know that these are not
10514 # typical AIX shared libraries.
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 else
10517 # We preserve .a as extension for shared libraries through AIX4.2
10518 # and later when we are not doing run time linking.
10519 library_names_spec='${libname}${release}.a $libname.a'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 fi
10522 shlibpath_var=LIBPATH
10523 fi
10524 ;;
10525
10526 amigaos*)
10527 case $host_cpu in
10528 powerpc)
10529 # Since July 2007 AmigaOS4 officially supports .so libraries.
10530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 ;;
10533 m68k)
10534 library_names_spec='$libname.ixlibrary $libname.a'
10535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10536 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'
10537 ;;
10538 esac
10539 ;;
10540
10541 beos*)
10542 library_names_spec='${libname}${shared_ext}'
10543 dynamic_linker="$host_os ld.so"
10544 shlibpath_var=LIBRARY_PATH
10545 ;;
10546
10547 bsdi[45]*)
10548 version_type=linux # correct to gnu/linux during the next big refactor
10549 need_version=no
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10556 # the default ld.so.conf also contains /usr/contrib/lib and
10557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10558 # libtool to hard-code these into programs
10559 ;;
10560
10561 cygwin* | mingw* | pw32* | cegcc*)
10562 version_type=windows
10563 shrext_cmds=".dll"
10564 need_version=no
10565 need_lib_prefix=no
10566
10567 case $GCC,$cc_basename in
10568 yes,*)
10569 # gcc
10570 library_names_spec='$libname.dll.a'
10571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10572 postinstall_cmds='base_file=`basename \${file}`~
10573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10574 dldir=$destdir/`dirname \$dlpath`~
10575 test -d \$dldir || mkdir -p \$dldir~
10576 $install_prog $dir/$dlname \$dldir/$dlname~
10577 chmod a+x \$dldir/$dlname~
10578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10580 fi'
10581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10582 dlpath=$dir/\$dldll~
10583 $RM \$dlpath'
10584 shlibpath_overrides_runpath=yes
10585
10586 case $host_os in
10587 cygwin*)
10588 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10589 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590
10591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10592 ;;
10593 mingw* | cegcc*)
10594 # MinGW DLLs use traditional 'lib' prefix
10595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596 ;;
10597 pw32*)
10598 # pw32 DLLs use 'pw' prefix rather than 'lib'
10599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10600 ;;
10601 esac
10602 dynamic_linker='Win32 ld.exe'
10603 ;;
10604
10605 *,cl*)
10606 # Native MSVC
10607 libname_spec='$name'
10608 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10609 library_names_spec='${libname}.dll.lib'
10610
10611 case $build_os in
10612 mingw*)
10613 sys_lib_search_path_spec=
10614 lt_save_ifs=$IFS
10615 IFS=';'
10616 for lt_path in $LIB
10617 do
10618 IFS=$lt_save_ifs
10619 # Let DOS variable expansion print the short 8.3 style file name.
10620 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10621 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10622 done
10623 IFS=$lt_save_ifs
10624 # Convert to MSYS style.
10625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10626 ;;
10627 cygwin*)
10628 # Convert to unix form, then to dos form, then back to unix form
10629 # but this time dos style (no spaces!) so that the unix form looks
10630 # like /cygdrive/c/PROGRA~1:/cygdr...
10631 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10632 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10633 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10634 ;;
10635 *)
10636 sys_lib_search_path_spec="$LIB"
10637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10638 # It is most probably a Windows format PATH.
10639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10640 else
10641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10642 fi
10643 # FIXME: find the short name or the path components, as spaces are
10644 # common. (e.g. "Program Files" -> "PROGRA~1")
10645 ;;
10646 esac
10647
10648 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10649 postinstall_cmds='base_file=`basename \${file}`~
10650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10651 dldir=$destdir/`dirname \$dlpath`~
10652 test -d \$dldir || mkdir -p \$dldir~
10653 $install_prog $dir/$dlname \$dldir/$dlname'
10654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10655 dlpath=$dir/\$dldll~
10656 $RM \$dlpath'
10657 shlibpath_overrides_runpath=yes
10658 dynamic_linker='Win32 link.exe'
10659 ;;
10660
10661 *)
10662 # Assume MSVC wrapper
10663 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10664 dynamic_linker='Win32 ld.exe'
10665 ;;
10666 esac
10667 # FIXME: first we should search . and the directory the executable is in
10668 shlibpath_var=PATH
10669 ;;
10670
10671 darwin* | rhapsody*)
10672 dynamic_linker="$host_os dyld"
10673 version_type=darwin
10674 need_lib_prefix=no
10675 need_version=no
10676 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10677 soname_spec='${libname}${release}${major}$shared_ext'
10678 shlibpath_overrides_runpath=yes
10679 shlibpath_var=DYLD_LIBRARY_PATH
10680 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10681
10682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10684 ;;
10685
10686 dgux*)
10687 version_type=linux # correct to gnu/linux during the next big refactor
10688 need_lib_prefix=no
10689 need_version=no
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 ;;
10694
10695 freebsd* | dragonfly*)
10696 # DragonFly does not have aout. When/if they implement a new
10697 # versioning mechanism, adjust this.
10698 if test -x /usr/bin/objformat; then
10699 objformat=`/usr/bin/objformat`
10700 else
10701 case $host_os in
10702 freebsd[23].*) objformat=aout ;;
10703 *) objformat=elf ;;
10704 esac
10705 fi
10706 version_type=freebsd-$objformat
10707 case $version_type in
10708 freebsd-elf*)
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10710 need_version=no
10711 need_lib_prefix=no
10712 ;;
10713 freebsd-*)
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10715 need_version=yes
10716 ;;
10717 esac
10718 shlibpath_var=LD_LIBRARY_PATH
10719 case $host_os in
10720 freebsd2.*)
10721 shlibpath_overrides_runpath=yes
10722 ;;
10723 freebsd3.[01]* | freebsdelf3.[01]*)
10724 shlibpath_overrides_runpath=yes
10725 hardcode_into_libs=yes
10726 ;;
10727 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10728 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10729 shlibpath_overrides_runpath=no
10730 hardcode_into_libs=yes
10731 ;;
10732 *) # from 4.6 on, and DragonFly
10733 shlibpath_overrides_runpath=yes
10734 hardcode_into_libs=yes
10735 ;;
10736 esac
10737 ;;
10738
10739 haiku*)
10740 version_type=linux # correct to gnu/linux during the next big refactor
10741 need_lib_prefix=no
10742 need_version=no
10743 dynamic_linker="$host_os runtime_loader"
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LIBRARY_PATH
10747 shlibpath_overrides_runpath=yes
10748 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10749 hardcode_into_libs=yes
10750 ;;
10751
10752 hpux9* | hpux10* | hpux11*)
10753 # Give a soname corresponding to the major version so that dld.sl refuses to
10754 # link against other versions.
10755 version_type=sunos
10756 need_lib_prefix=no
10757 need_version=no
10758 case $host_cpu in
10759 ia64*)
10760 shrext_cmds='.so'
10761 hardcode_into_libs=yes
10762 dynamic_linker="$host_os dld.so"
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 if test "X$HPUX_IA64_MODE" = X32; then
10768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10769 else
10770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10771 fi
10772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10773 ;;
10774 hppa*64*)
10775 shrext_cmds='.sl'
10776 hardcode_into_libs=yes
10777 dynamic_linker="$host_os dld.sl"
10778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10784 ;;
10785 *)
10786 shrext_cmds='.sl'
10787 dynamic_linker="$host_os dld.sl"
10788 shlibpath_var=SHLIB_PATH
10789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 ;;
10793 esac
10794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10795 postinstall_cmds='chmod 555 $lib'
10796 # or fails outright, so override atomically:
10797 install_override_mode=555
10798 ;;
10799
10800 interix[3-9]*)
10801 version_type=linux # correct to gnu/linux during the next big refactor
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 shlibpath_overrides_runpath=no
10809 hardcode_into_libs=yes
10810 ;;
10811
10812 irix5* | irix6* | nonstopux*)
10813 case $host_os in
10814 nonstopux*) version_type=nonstopux ;;
10815 *)
10816 if test "$lt_cv_prog_gnu_ld" = yes; then
10817 version_type=linux # correct to gnu/linux during the next big refactor
10818 else
10819 version_type=irix
10820 fi ;;
10821 esac
10822 need_lib_prefix=no
10823 need_version=no
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10826 case $host_os in
10827 irix5* | nonstopux*)
10828 libsuff= shlibsuff=
10829 ;;
10830 *)
10831 case $LD in # libtool.m4 will add one of these switches to LD
10832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10833 libsuff= shlibsuff= libmagic=32-bit;;
10834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10835 libsuff=32 shlibsuff=N32 libmagic=N32;;
10836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10838 *) libsuff= shlibsuff= libmagic=never-match;;
10839 esac
10840 ;;
10841 esac
10842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10843 shlibpath_overrides_runpath=no
10844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10846 hardcode_into_libs=yes
10847 ;;
10848
10849 # No shared lib support for Linux oldld, aout, or coff.
10850 linux*oldld* | linux*aout* | linux*coff*)
10851 dynamic_linker=no
10852 ;;
10853
10854 # This must be glibc/ELF.
10855 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10856 version_type=linux # correct to gnu/linux during the next big refactor
10857 need_lib_prefix=no
10858 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=no
10864
10865 # Some binutils ld are patched to set DT_RUNPATH
10866 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 lt_cv_shlibpath_overrides_runpath=no
10870 save_LDFLAGS=$LDFLAGS
10871 save_libdir=$libdir
10872 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10873 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10876
10877 int
10878 main ()
10879 {
10880
10881 ;
10882 return 0;
10883 }
10884 _ACEOF
10885 if ac_fn_c_try_link "$LINENO"; then :
10886 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10887 lt_cv_shlibpath_overrides_runpath=yes
10888 fi
10889 fi
10890 rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LDFLAGS=$save_LDFLAGS
10893 libdir=$save_libdir
10894
10895 fi
10896
10897 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10898
10899 # This implies no fast_install, which is unacceptable.
10900 # Some rework will be needed to allow for fast_install
10901 # before this can be enabled.
10902 hardcode_into_libs=yes
10903
10904 # Append ld.so.conf contents to the search path
10905 if test -f /etc/ld.so.conf; then
10906 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' ' '`
10907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10908 fi
10909
10910 # We used to test for /lib/ld.so.1 and disable shared libraries on
10911 # powerpc, because MkLinux only supported shared libraries with the
10912 # GNU dynamic linker. Since this was broken with cross compilers,
10913 # most powerpc-linux boxes support dynamic linking these days and
10914 # people can always --disable-shared, the test was removed, and we
10915 # assume the GNU/Linux dynamic linker is in use.
10916 dynamic_linker='GNU/Linux ld.so'
10917 ;;
10918
10919 netbsdelf*-gnu)
10920 version_type=linux
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927 hardcode_into_libs=yes
10928 dynamic_linker='NetBSD ld.elf_so'
10929 ;;
10930
10931 netbsd*)
10932 version_type=sunos
10933 need_lib_prefix=no
10934 need_version=no
10935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10938 dynamic_linker='NetBSD (a.out) ld.so'
10939 else
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 dynamic_linker='NetBSD ld.elf_so'
10943 fi
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=yes
10946 hardcode_into_libs=yes
10947 ;;
10948
10949 newsos6)
10950 version_type=linux # correct to gnu/linux during the next big refactor
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=yes
10954 ;;
10955
10956 *nto* | *qnx*)
10957 version_type=qnx
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=no
10964 hardcode_into_libs=yes
10965 dynamic_linker='ldqnx.so'
10966 ;;
10967
10968 openbsd*)
10969 version_type=sunos
10970 sys_lib_dlsearch_path_spec="/usr/lib"
10971 need_lib_prefix=no
10972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10973 case $host_os in
10974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10975 *) need_version=no ;;
10976 esac
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10981 case $host_os in
10982 openbsd2.[89] | openbsd2.[89].*)
10983 shlibpath_overrides_runpath=no
10984 ;;
10985 *)
10986 shlibpath_overrides_runpath=yes
10987 ;;
10988 esac
10989 else
10990 shlibpath_overrides_runpath=yes
10991 fi
10992 ;;
10993
10994 os2*)
10995 libname_spec='$name'
10996 shrext_cmds=".dll"
10997 need_lib_prefix=no
10998 library_names_spec='$libname${shared_ext} $libname.a'
10999 dynamic_linker='OS/2 ld.exe'
11000 shlibpath_var=LIBPATH
11001 ;;
11002
11003 osf3* | osf4* | osf5*)
11004 version_type=osf
11005 need_lib_prefix=no
11006 need_version=no
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11012 ;;
11013
11014 rdos*)
11015 dynamic_linker=no
11016 ;;
11017
11018 solaris*)
11019 version_type=linux # correct to gnu/linux during the next big refactor
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11027 # ldd complains unless libraries are executable
11028 postinstall_cmds='chmod +x $lib'
11029 ;;
11030
11031 sunos4*)
11032 version_type=sunos
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037 if test "$with_gnu_ld" = yes; then
11038 need_lib_prefix=no
11039 fi
11040 need_version=yes
11041 ;;
11042
11043 sysv4 | sysv4.3*)
11044 version_type=linux # correct to gnu/linux during the next big refactor
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 case $host_vendor in
11049 sni)
11050 shlibpath_overrides_runpath=no
11051 need_lib_prefix=no
11052 runpath_var=LD_RUN_PATH
11053 ;;
11054 siemens)
11055 need_lib_prefix=no
11056 ;;
11057 motorola)
11058 need_lib_prefix=no
11059 need_version=no
11060 shlibpath_overrides_runpath=no
11061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11062 ;;
11063 esac
11064 ;;
11065
11066 sysv4*MP*)
11067 if test -d /usr/nec ;then
11068 version_type=linux # correct to gnu/linux during the next big refactor
11069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11070 soname_spec='$libname${shared_ext}.$major'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 fi
11073 ;;
11074
11075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11076 version_type=freebsd-elf
11077 need_lib_prefix=no
11078 need_version=no
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath=yes
11083 hardcode_into_libs=yes
11084 if test "$with_gnu_ld" = yes; then
11085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11086 else
11087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11088 case $host_os in
11089 sco3.2v5*)
11090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11091 ;;
11092 esac
11093 fi
11094 sys_lib_dlsearch_path_spec='/usr/lib'
11095 ;;
11096
11097 tpf*)
11098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=no
11105 hardcode_into_libs=yes
11106 ;;
11107
11108 uts4*)
11109 version_type=linux # correct to gnu/linux during the next big refactor
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 ;;
11114
11115 *)
11116 dynamic_linker=no
11117 ;;
11118 esac
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11120 $as_echo "$dynamic_linker" >&6; }
11121 test "$dynamic_linker" = no && can_build_shared=no
11122
11123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11124 if test "$GCC" = yes; then
11125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11126 fi
11127
11128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11130 fi
11131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11133 fi
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11228 hardcode_action=
11229 if test -n "$hardcode_libdir_flag_spec" ||
11230 test -n "$runpath_var" ||
11231 test "X$hardcode_automatic" = "Xyes" ; then
11232
11233 # We can hardcode non-existent directories.
11234 if test "$hardcode_direct" != no &&
11235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11236 # have to relink, otherwise we might link with an installed library
11237 # when we should be linking with a yet-to-be-installed one
11238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11239 test "$hardcode_minus_L" != no; then
11240 # Linking always hardcodes the temporary library directory.
11241 hardcode_action=relink
11242 else
11243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11244 hardcode_action=immediate
11245 fi
11246 else
11247 # We cannot hardcode anything, or else we can only hardcode existing
11248 # directories.
11249 hardcode_action=unsupported
11250 fi
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11252 $as_echo "$hardcode_action" >&6; }
11253
11254 if test "$hardcode_action" = relink ||
11255 test "$inherit_rpath" = yes; then
11256 # Fast installation is not supported
11257 enable_fast_install=no
11258 elif test "$shlibpath_overrides_runpath" = yes ||
11259 test "$enable_shared" = no; then
11260 # Fast installation is not necessary
11261 enable_fast_install=needless
11262 fi
11263
11264
11265
11266
11267
11268
11269 if test "x$enable_dlopen" != xyes; then
11270 enable_dlopen=unknown
11271 enable_dlopen_self=unknown
11272 enable_dlopen_self_static=unknown
11273 else
11274 lt_cv_dlopen=no
11275 lt_cv_dlopen_libs=
11276
11277 case $host_os in
11278 beos*)
11279 lt_cv_dlopen="load_add_on"
11280 lt_cv_dlopen_libs=
11281 lt_cv_dlopen_self=yes
11282 ;;
11283
11284 mingw* | pw32* | cegcc*)
11285 lt_cv_dlopen="LoadLibrary"
11286 lt_cv_dlopen_libs=
11287 ;;
11288
11289 cygwin*)
11290 lt_cv_dlopen="dlopen"
11291 lt_cv_dlopen_libs=
11292 ;;
11293
11294 darwin*)
11295 # if libdl is installed we need to link against it
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11297 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11298 if ${ac_cv_lib_dl_dlopen+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 ac_check_lib_save_LIBS=$LIBS
11302 LIBS="-ldl $LIBS"
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char dlopen ();
11313 int
11314 main ()
11315 {
11316 return dlopen ();
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_lib_dl_dlopen=yes
11323 else
11324 ac_cv_lib_dl_dlopen=no
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11331 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11332 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11334 else
11335
11336 lt_cv_dlopen="dyld"
11337 lt_cv_dlopen_libs=
11338 lt_cv_dlopen_self=yes
11339
11340 fi
11341
11342 ;;
11343
11344 *)
11345 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11346 if test "x$ac_cv_func_shl_load" = xyes; then :
11347 lt_cv_dlopen="shl_load"
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11350 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11351 if ${ac_cv_lib_dld_shl_load+:} false; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 ac_check_lib_save_LIBS=$LIBS
11355 LIBS="-ldld $LIBS"
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11362 #ifdef __cplusplus
11363 extern "C"
11364 #endif
11365 char shl_load ();
11366 int
11367 main ()
11368 {
11369 return shl_load ();
11370 ;
11371 return 0;
11372 }
11373 _ACEOF
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 ac_cv_lib_dld_shl_load=yes
11376 else
11377 ac_cv_lib_dld_shl_load=no
11378 fi
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11381 LIBS=$ac_check_lib_save_LIBS
11382 fi
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11384 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11385 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11387 else
11388 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11389 if test "x$ac_cv_func_dlopen" = xyes; then :
11390 lt_cv_dlopen="dlopen"
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11393 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11394 if ${ac_cv_lib_dl_dlopen+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldl $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dlopen ();
11409 int
11410 main ()
11411 {
11412 return dlopen ();
11413 ;
11414 return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_dl_dlopen=yes
11419 else
11420 ac_cv_lib_dl_dlopen=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11427 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11428 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11432 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11433 if ${ac_cv_lib_svld_dlopen+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 ac_check_lib_save_LIBS=$LIBS
11437 LIBS="-lsvld $LIBS"
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11440
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char dlopen ();
11448 int
11449 main ()
11450 {
11451 return dlopen ();
11452 ;
11453 return 0;
11454 }
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 ac_cv_lib_svld_dlopen=yes
11458 else
11459 ac_cv_lib_svld_dlopen=no
11460 fi
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11466 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11467 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11471 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11472 if ${ac_cv_lib_dld_dld_link+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474 else
11475 ac_check_lib_save_LIBS=$LIBS
11476 LIBS="-ldld $LIBS"
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479
11480 /* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char dld_link ();
11487 int
11488 main ()
11489 {
11490 return dld_link ();
11491 ;
11492 return 0;
11493 }
11494 _ACEOF
11495 if ac_fn_c_try_link "$LINENO"; then :
11496 ac_cv_lib_dld_dld_link=yes
11497 else
11498 ac_cv_lib_dld_dld_link=no
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
11502 LIBS=$ac_check_lib_save_LIBS
11503 fi
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11505 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11506 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11507 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11508 fi
11509
11510
11511 fi
11512
11513
11514 fi
11515
11516
11517 fi
11518
11519
11520 fi
11521
11522
11523 fi
11524
11525 ;;
11526 esac
11527
11528 if test "x$lt_cv_dlopen" != xno; then
11529 enable_dlopen=yes
11530 else
11531 enable_dlopen=no
11532 fi
11533
11534 case $lt_cv_dlopen in
11535 dlopen)
11536 save_CPPFLAGS="$CPPFLAGS"
11537 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11538
11539 save_LDFLAGS="$LDFLAGS"
11540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11541
11542 save_LIBS="$LIBS"
11543 LIBS="$lt_cv_dlopen_libs $LIBS"
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11546 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11547 if ${lt_cv_dlopen_self+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 if test "$cross_compiling" = yes; then :
11551 lt_cv_dlopen_self=cross
11552 else
11553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11554 lt_status=$lt_dlunknown
11555 cat > conftest.$ac_ext <<_LT_EOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558
11559 #if HAVE_DLFCN_H
11560 #include <dlfcn.h>
11561 #endif
11562
11563 #include <stdio.h>
11564
11565 #ifdef RTLD_GLOBAL
11566 # define LT_DLGLOBAL RTLD_GLOBAL
11567 #else
11568 # ifdef DL_GLOBAL
11569 # define LT_DLGLOBAL DL_GLOBAL
11570 # else
11571 # define LT_DLGLOBAL 0
11572 # endif
11573 #endif
11574
11575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11576 find out it does not work in some platform. */
11577 #ifndef LT_DLLAZY_OR_NOW
11578 # ifdef RTLD_LAZY
11579 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11580 # else
11581 # ifdef DL_LAZY
11582 # define LT_DLLAZY_OR_NOW DL_LAZY
11583 # else
11584 # ifdef RTLD_NOW
11585 # define LT_DLLAZY_OR_NOW RTLD_NOW
11586 # else
11587 # ifdef DL_NOW
11588 # define LT_DLLAZY_OR_NOW DL_NOW
11589 # else
11590 # define LT_DLLAZY_OR_NOW 0
11591 # endif
11592 # endif
11593 # endif
11594 # endif
11595 #endif
11596
11597 /* When -fvisbility=hidden is used, assume the code has been annotated
11598 correspondingly for the symbols needed. */
11599 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11600 int fnord () __attribute__((visibility("default")));
11601 #endif
11602
11603 int fnord () { return 42; }
11604 int main ()
11605 {
11606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11607 int status = $lt_dlunknown;
11608
11609 if (self)
11610 {
11611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11612 else
11613 {
11614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11615 else puts (dlerror ());
11616 }
11617 /* dlclose (self); */
11618 }
11619 else
11620 puts (dlerror ());
11621
11622 return status;
11623 }
11624 _LT_EOF
11625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11626 (eval $ac_link) 2>&5
11627 ac_status=$?
11628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11629 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11630 (./conftest; exit; ) >&5 2>/dev/null
11631 lt_status=$?
11632 case x$lt_status in
11633 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11634 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11635 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11636 esac
11637 else :
11638 # compilation failed
11639 lt_cv_dlopen_self=no
11640 fi
11641 fi
11642 rm -fr conftest*
11643
11644
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11647 $as_echo "$lt_cv_dlopen_self" >&6; }
11648
11649 if test "x$lt_cv_dlopen_self" = xyes; then
11650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11652 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11653 if ${lt_cv_dlopen_self_static+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 if test "$cross_compiling" = yes; then :
11657 lt_cv_dlopen_self_static=cross
11658 else
11659 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11660 lt_status=$lt_dlunknown
11661 cat > conftest.$ac_ext <<_LT_EOF
11662 #line $LINENO "configure"
11663 #include "confdefs.h"
11664
11665 #if HAVE_DLFCN_H
11666 #include <dlfcn.h>
11667 #endif
11668
11669 #include <stdio.h>
11670
11671 #ifdef RTLD_GLOBAL
11672 # define LT_DLGLOBAL RTLD_GLOBAL
11673 #else
11674 # ifdef DL_GLOBAL
11675 # define LT_DLGLOBAL DL_GLOBAL
11676 # else
11677 # define LT_DLGLOBAL 0
11678 # endif
11679 #endif
11680
11681 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11682 find out it does not work in some platform. */
11683 #ifndef LT_DLLAZY_OR_NOW
11684 # ifdef RTLD_LAZY
11685 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11686 # else
11687 # ifdef DL_LAZY
11688 # define LT_DLLAZY_OR_NOW DL_LAZY
11689 # else
11690 # ifdef RTLD_NOW
11691 # define LT_DLLAZY_OR_NOW RTLD_NOW
11692 # else
11693 # ifdef DL_NOW
11694 # define LT_DLLAZY_OR_NOW DL_NOW
11695 # else
11696 # define LT_DLLAZY_OR_NOW 0
11697 # endif
11698 # endif
11699 # endif
11700 # endif
11701 #endif
11702
11703 /* When -fvisbility=hidden is used, assume the code has been annotated
11704 correspondingly for the symbols needed. */
11705 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11706 int fnord () __attribute__((visibility("default")));
11707 #endif
11708
11709 int fnord () { return 42; }
11710 int main ()
11711 {
11712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11713 int status = $lt_dlunknown;
11714
11715 if (self)
11716 {
11717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11718 else
11719 {
11720 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11721 else puts (dlerror ());
11722 }
11723 /* dlclose (self); */
11724 }
11725 else
11726 puts (dlerror ());
11727
11728 return status;
11729 }
11730 _LT_EOF
11731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11732 (eval $ac_link) 2>&5
11733 ac_status=$?
11734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11735 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11736 (./conftest; exit; ) >&5 2>/dev/null
11737 lt_status=$?
11738 case x$lt_status in
11739 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11740 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11741 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11742 esac
11743 else :
11744 # compilation failed
11745 lt_cv_dlopen_self_static=no
11746 fi
11747 fi
11748 rm -fr conftest*
11749
11750
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11753 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11754 fi
11755
11756 CPPFLAGS="$save_CPPFLAGS"
11757 LDFLAGS="$save_LDFLAGS"
11758 LIBS="$save_LIBS"
11759 ;;
11760 esac
11761
11762 case $lt_cv_dlopen_self in
11763 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11764 *) enable_dlopen_self=unknown ;;
11765 esac
11766
11767 case $lt_cv_dlopen_self_static in
11768 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11769 *) enable_dlopen_self_static=unknown ;;
11770 esac
11771 fi
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789 striplib=
11790 old_striplib=
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11792 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11793 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11795 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797 $as_echo "yes" >&6; }
11798 else
11799 # FIXME - insert some real tests, host_os isn't really good enough
11800 case $host_os in
11801 darwin*)
11802 if test -n "$STRIP" ; then
11803 striplib="$STRIP -x"
11804 old_striplib="$STRIP -S"
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806 $as_echo "yes" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811 ;;
11812 *)
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11815 ;;
11816 esac
11817 fi
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830 # Report which library types will actually be built
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11832 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11834 $as_echo "$can_build_shared" >&6; }
11835
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11837 $as_echo_n "checking whether to build shared libraries... " >&6; }
11838 test "$can_build_shared" = "no" && enable_shared=no
11839
11840 # On AIX, shared libraries and static libraries use the same namespace, and
11841 # are all built from PIC.
11842 case $host_os in
11843 aix3*)
11844 test "$enable_shared" = yes && enable_static=no
11845 if test -n "$RANLIB"; then
11846 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11847 postinstall_cmds='$RANLIB $lib'
11848 fi
11849 ;;
11850
11851 aix[4-9]*)
11852 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11853 test "$enable_shared" = yes && enable_static=no
11854 fi
11855 ;;
11856 esac
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11858 $as_echo "$enable_shared" >&6; }
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11861 $as_echo_n "checking whether to build static libraries... " >&6; }
11862 # Make sure either enable_shared or enable_static is yes.
11863 test "$enable_shared" = yes || enable_static=yes
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11865 $as_echo "$enable_static" >&6; }
11866
11867
11868
11869
11870 fi
11871 ac_ext=c
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876
11877 CC="$lt_save_CC"
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893 ac_config_commands="$ac_config_commands libtool"
11894
11895
11896
11897
11898 # Only expand once:
11899
11900
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11903 set x ${MAKE-make}
11904 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11905 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 cat >conftest.make <<\_ACEOF
11909 SHELL = /bin/sh
11910 all:
11911 @echo '@@@%%%=$(MAKE)=@@@%%%'
11912 _ACEOF
11913 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11915 *@@@%%%=?*=@@@%%%*)
11916 eval ac_cv_prog_make_${ac_make}_set=yes;;
11917 *)
11918 eval ac_cv_prog_make_${ac_make}_set=no;;
11919 esac
11920 rm -f conftest.make
11921 fi
11922 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11924 $as_echo "yes" >&6; }
11925 SET_MAKE=
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11929 SET_MAKE="MAKE=${MAKE-make}"
11930 fi
11931
11932 ac_ext=c
11933 ac_cpp='$CPP $CPPFLAGS'
11934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11937 if test -n "$ac_tool_prefix"; then
11938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941 $as_echo_n "checking for $ac_word... " >&6; }
11942 if ${ac_cv_prog_CC+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 if test -n "$CC"; then
11946 ac_cv_prog_CC="$CC" # Let the user override the test.
11947 else
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11950 do
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11955 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 break 2
11958 fi
11959 done
11960 done
11961 IFS=$as_save_IFS
11962
11963 fi
11964 fi
11965 CC=$ac_cv_prog_CC
11966 if test -n "$CC"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11968 $as_echo "$CC" >&6; }
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972 fi
11973
11974
11975 fi
11976 if test -z "$ac_cv_prog_CC"; then
11977 ac_ct_CC=$CC
11978 # Extract the first word of "gcc", so it can be a program name with args.
11979 set dummy gcc; ac_word=$2
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981 $as_echo_n "checking for $ac_word... " >&6; }
11982 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 if test -n "$ac_ct_CC"; then
11986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11987 else
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995 ac_cv_prog_ac_ct_CC="gcc"
11996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 break 2
11998 fi
11999 done
12000 done
12001 IFS=$as_save_IFS
12002
12003 fi
12004 fi
12005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12006 if test -n "$ac_ct_CC"; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12008 $as_echo "$ac_ct_CC" >&6; }
12009 else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12012 fi
12013
12014 if test "x$ac_ct_CC" = x; then
12015 CC=""
12016 else
12017 case $cross_compiling:$ac_tool_warned in
12018 yes:)
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12021 ac_tool_warned=yes ;;
12022 esac
12023 CC=$ac_ct_CC
12024 fi
12025 else
12026 CC="$ac_cv_prog_CC"
12027 fi
12028
12029 if test -z "$CC"; then
12030 if test -n "$ac_tool_prefix"; then
12031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12032 set dummy ${ac_tool_prefix}cc; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_CC+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 if test -n "$CC"; then
12039 ac_cv_prog_CC="$CC" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_CC="${ac_tool_prefix}cc"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052 done
12053 done
12054 IFS=$as_save_IFS
12055
12056 fi
12057 fi
12058 CC=$ac_cv_prog_CC
12059 if test -n "$CC"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12061 $as_echo "$CC" >&6; }
12062 else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067
12068 fi
12069 fi
12070 if test -z "$CC"; then
12071 # Extract the first word of "cc", so it can be a program name with args.
12072 set dummy cc; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_prog_CC+:} false; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 if test -n "$CC"; then
12079 ac_cv_prog_CC="$CC" # Let the user override the test.
12080 else
12081 ac_prog_rejected=no
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12084 do
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12090 ac_prog_rejected=yes
12091 continue
12092 fi
12093 ac_cv_prog_CC="cc"
12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 break 2
12096 fi
12097 done
12098 done
12099 IFS=$as_save_IFS
12100
12101 if test $ac_prog_rejected = yes; then
12102 # We found a bogon in the path, so make sure we never use it.
12103 set dummy $ac_cv_prog_CC
12104 shift
12105 if test $# != 0; then
12106 # We chose a different compiler from the bogus one.
12107 # However, it has the same basename, so the bogon will be chosen
12108 # first if we set CC to just the basename; use the full file name.
12109 shift
12110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12111 fi
12112 fi
12113 fi
12114 fi
12115 CC=$ac_cv_prog_CC
12116 if test -n "$CC"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12118 $as_echo "$CC" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122 fi
12123
12124
12125 fi
12126 if test -z "$CC"; then
12127 if test -n "$ac_tool_prefix"; then
12128 for ac_prog in cl.exe
12129 do
12130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if ${ac_cv_prog_CC+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 if test -n "$CC"; then
12138 ac_cv_prog_CC="$CC" # Let the user override the test.
12139 else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH
12142 do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149 break 2
12150 fi
12151 done
12152 done
12153 IFS=$as_save_IFS
12154
12155 fi
12156 fi
12157 CC=$ac_cv_prog_CC
12158 if test -n "$CC"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12160 $as_echo "$CC" >&6; }
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 fi
12165
12166
12167 test -n "$CC" && break
12168 done
12169 fi
12170 if test -z "$CC"; then
12171 ac_ct_CC=$CC
12172 for ac_prog in cl.exe
12173 do
12174 # Extract the first word of "$ac_prog", so it can be a program name with args.
12175 set dummy $ac_prog; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 if test -n "$ac_ct_CC"; then
12182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12183 else
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12186 do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191 ac_cv_prog_ac_ct_CC="$ac_prog"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12194 fi
12195 done
12196 done
12197 IFS=$as_save_IFS
12198
12199 fi
12200 fi
12201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12202 if test -n "$ac_ct_CC"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12204 $as_echo "$ac_ct_CC" >&6; }
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12208 fi
12209
12210
12211 test -n "$ac_ct_CC" && break
12212 done
12213
12214 if test "x$ac_ct_CC" = x; then
12215 CC=""
12216 else
12217 case $cross_compiling:$ac_tool_warned in
12218 yes:)
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12221 ac_tool_warned=yes ;;
12222 esac
12223 CC=$ac_ct_CC
12224 fi
12225 fi
12226
12227 fi
12228
12229
12230 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12232 as_fn_error $? "no acceptable C compiler found in \$PATH
12233 See \`config.log' for more details" "$LINENO" 5; }
12234
12235 # Provide some information about the compiler.
12236 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12237 set X $ac_compile
12238 ac_compiler=$2
12239 for ac_option in --version -v -V -qversion; do
12240 { { ac_try="$ac_compiler $ac_option >&5"
12241 case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244 esac
12245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12246 $as_echo "$ac_try_echo"; } >&5
12247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12248 ac_status=$?
12249 if test -s conftest.err; then
12250 sed '10a\
12251 ... rest of stderr output deleted ...
12252 10q' conftest.err >conftest.er1
12253 cat conftest.er1 >&5
12254 fi
12255 rm -f conftest.er1 conftest.err
12256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12257 test $ac_status = 0; }
12258 done
12259
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12261 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12262 if ${ac_cv_c_compiler_gnu+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267
12268 int
12269 main ()
12270 {
12271 #ifndef __GNUC__
12272 choke me
12273 #endif
12274
12275 ;
12276 return 0;
12277 }
12278 _ACEOF
12279 if ac_fn_c_try_compile "$LINENO"; then :
12280 ac_compiler_gnu=yes
12281 else
12282 ac_compiler_gnu=no
12283 fi
12284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12286
12287 fi
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12289 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12290 if test $ac_compiler_gnu = yes; then
12291 GCC=yes
12292 else
12293 GCC=
12294 fi
12295 ac_test_CFLAGS=${CFLAGS+set}
12296 ac_save_CFLAGS=$CFLAGS
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12298 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12299 if ${ac_cv_prog_cc_g+:} false; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 ac_save_c_werror_flag=$ac_c_werror_flag
12303 ac_c_werror_flag=yes
12304 ac_cv_prog_cc_g=no
12305 CFLAGS="-g"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 int
12310 main ()
12311 {
12312
12313 ;
12314 return 0;
12315 }
12316 _ACEOF
12317 if ac_fn_c_try_compile "$LINENO"; then :
12318 ac_cv_prog_cc_g=yes
12319 else
12320 CFLAGS=""
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12323
12324 int
12325 main ()
12326 {
12327
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_c_try_compile "$LINENO"; then :
12333
12334 else
12335 ac_c_werror_flag=$ac_save_c_werror_flag
12336 CFLAGS="-g"
12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h. */
12339
12340 int
12341 main ()
12342 {
12343
12344 ;
12345 return 0;
12346 }
12347 _ACEOF
12348 if ac_fn_c_try_compile "$LINENO"; then :
12349 ac_cv_prog_cc_g=yes
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 fi
12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 ac_c_werror_flag=$ac_save_c_werror_flag
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12359 $as_echo "$ac_cv_prog_cc_g" >&6; }
12360 if test "$ac_test_CFLAGS" = set; then
12361 CFLAGS=$ac_save_CFLAGS
12362 elif test $ac_cv_prog_cc_g = yes; then
12363 if test "$GCC" = yes; then
12364 CFLAGS="-g -O2"
12365 else
12366 CFLAGS="-g"
12367 fi
12368 else
12369 if test "$GCC" = yes; then
12370 CFLAGS="-O2"
12371 else
12372 CFLAGS=
12373 fi
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12376 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12377 if ${ac_cv_prog_cc_c89+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 ac_cv_prog_cc_c89=no
12381 ac_save_CC=$CC
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384 #include <stdarg.h>
12385 #include <stdio.h>
12386 struct stat;
12387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12388 struct buf { int x; };
12389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12390 static char *e (p, i)
12391 char **p;
12392 int i;
12393 {
12394 return p[i];
12395 }
12396 static char *f (char * (*g) (char **, int), char **p, ...)
12397 {
12398 char *s;
12399 va_list v;
12400 va_start (v,p);
12401 s = g (p, va_arg (v,int));
12402 va_end (v);
12403 return s;
12404 }
12405
12406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12407 function prototypes and stuff, but not '\xHH' hex character constants.
12408 These don't provoke an error unfortunately, instead are silently treated
12409 as 'x'. The following induces an error, until -std is added to get
12410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12411 array size at least. It's necessary to write '\x00'==0 to get something
12412 that's true only with -std. */
12413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12414
12415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12416 inside strings and character constants. */
12417 #define FOO(x) 'x'
12418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12419
12420 int test (int i, double x);
12421 struct s1 {int (*f) (int a);};
12422 struct s2 {int (*f) (double a);};
12423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12424 int argc;
12425 char **argv;
12426 int
12427 main ()
12428 {
12429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12430 ;
12431 return 0;
12432 }
12433 _ACEOF
12434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12436 do
12437 CC="$ac_save_CC $ac_arg"
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 ac_cv_prog_cc_c89=$ac_arg
12440 fi
12441 rm -f core conftest.err conftest.$ac_objext
12442 test "x$ac_cv_prog_cc_c89" != "xno" && break
12443 done
12444 rm -f conftest.$ac_ext
12445 CC=$ac_save_CC
12446
12447 fi
12448 # AC_CACHE_VAL
12449 case "x$ac_cv_prog_cc_c89" in
12450 x)
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12452 $as_echo "none needed" >&6; } ;;
12453 xno)
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12455 $as_echo "unsupported" >&6; } ;;
12456 *)
12457 CC="$CC $ac_cv_prog_cc_c89"
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12459 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12460 esac
12461 if test "x$ac_cv_prog_cc_c89" != xno; then :
12462
12463 fi
12464
12465 ac_ext=c
12466 ac_cpp='$CPP $CPPFLAGS'
12467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12470
12471 depcc="$CC" am_compiler_list=
12472
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12474 $as_echo_n "checking dependency style of $depcc... " >&6; }
12475 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12479 # We make a subdir and do the tests there. Otherwise we can end up
12480 # making bogus files that we don't know about and never remove. For
12481 # instance it was reported that on HP-UX the gcc test will end up
12482 # making a dummy file named `D' -- because `-MD' means `put the output
12483 # in D'.
12484 rm -rf conftest.dir
12485 mkdir conftest.dir
12486 # Copy depcomp to subdir because otherwise we won't find it if we're
12487 # using a relative directory.
12488 cp "$am_depcomp" conftest.dir
12489 cd conftest.dir
12490 # We will build objects and dependencies in a subdirectory because
12491 # it helps to detect inapplicable dependency modes. For instance
12492 # both Tru64's cc and ICC support -MD to output dependencies as a
12493 # side effect of compilation, but ICC will put the dependencies in
12494 # the current directory while Tru64 will put them in the object
12495 # directory.
12496 mkdir sub
12497
12498 am_cv_CC_dependencies_compiler_type=none
12499 if test "$am_compiler_list" = ""; then
12500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12501 fi
12502 am__universal=false
12503 case " $depcc " in #(
12504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12505 esac
12506
12507 for depmode in $am_compiler_list; do
12508 # Setup a source with many dependencies, because some compilers
12509 # like to wrap large dependency lists on column 80 (with \), and
12510 # we should not choose a depcomp mode which is confused by this.
12511 #
12512 # We need to recreate these files for each test, as the compiler may
12513 # overwrite some of them when testing with obscure command lines.
12514 # This happens at least with the AIX C compiler.
12515 : > sub/conftest.c
12516 for i in 1 2 3 4 5 6; do
12517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12518 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12519 # Solaris 8's {/usr,}/bin/sh.
12520 touch sub/conftst$i.h
12521 done
12522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12523
12524 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12525 # mode. It turns out that the SunPro C++ compiler does not properly
12526 # handle `-M -o', and we need to detect this. Also, some Intel
12527 # versions had trouble with output in subdirs
12528 am__obj=sub/conftest.${OBJEXT-o}
12529 am__minus_obj="-o $am__obj"
12530 case $depmode in
12531 gcc)
12532 # This depmode causes a compiler race in universal mode.
12533 test "$am__universal" = false || continue
12534 ;;
12535 nosideeffect)
12536 # after this tag, mechanisms are not by side-effect, so they'll
12537 # only be used when explicitly requested
12538 if test "x$enable_dependency_tracking" = xyes; then
12539 continue
12540 else
12541 break
12542 fi
12543 ;;
12544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12545 # This compiler won't grok `-c -o', but also, the minuso test has
12546 # not run yet. These depmodes are late enough in the game, and
12547 # so weak that their functioning should not be impacted.
12548 am__obj=conftest.${OBJEXT-o}
12549 am__minus_obj=
12550 ;;
12551 none) break ;;
12552 esac
12553 if depmode=$depmode \
12554 source=sub/conftest.c object=$am__obj \
12555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12557 >/dev/null 2>conftest.err &&
12558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12562 # icc doesn't choke on unknown options, it will just issue warnings
12563 # or remarks (even with -Werror). So we grep stderr for any message
12564 # that says an option was ignored or not supported.
12565 # When given -MP, icc 7.0 and 7.1 complain thusly:
12566 # icc: Command line warning: ignoring option '-M'; no argument required
12567 # The diagnosis changed in icc 8.0:
12568 # icc: Command line remark: option '-MP' not supported
12569 if (grep 'ignoring option' conftest.err ||
12570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12571 am_cv_CC_dependencies_compiler_type=$depmode
12572 break
12573 fi
12574 fi
12575 done
12576
12577 cd ..
12578 rm -rf conftest.dir
12579 else
12580 am_cv_CC_dependencies_compiler_type=none
12581 fi
12582
12583 fi
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12587
12588 if
12589 test "x$enable_dependency_tracking" != xno \
12590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12591 am__fastdepCC_TRUE=
12592 am__fastdepCC_FALSE='#'
12593 else
12594 am__fastdepCC_TRUE='#'
12595 am__fastdepCC_FALSE=
12596 fi
12597
12598
12599 ac_ext=cpp
12600 ac_cpp='$CXXCPP $CPPFLAGS'
12601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12604 if test -z "$CXX"; then
12605 if test -n "$CCC"; then
12606 CXX=$CCC
12607 else
12608 if test -n "$ac_tool_prefix"; then
12609 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12610 do
12611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if ${ac_cv_prog_CXX+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 if test -n "$CXX"; then
12619 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12620 else
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12623 do
12624 IFS=$as_save_IFS
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 break 2
12631 fi
12632 done
12633 done
12634 IFS=$as_save_IFS
12635
12636 fi
12637 fi
12638 CXX=$ac_cv_prog_CXX
12639 if test -n "$CXX"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12641 $as_echo "$CXX" >&6; }
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645 fi
12646
12647
12648 test -n "$CXX" && break
12649 done
12650 fi
12651 if test -z "$CXX"; then
12652 ac_ct_CXX=$CXX
12653 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12654 do
12655 # Extract the first word of "$ac_prog", so it can be a program name with args.
12656 set dummy $ac_prog; ac_word=$2
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658 $as_echo_n "checking for $ac_word... " >&6; }
12659 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 if test -n "$ac_ct_CXX"; then
12663 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12664 else
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12667 do
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672 ac_cv_prog_ac_ct_CXX="$ac_prog"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12675 fi
12676 done
12677 done
12678 IFS=$as_save_IFS
12679
12680 fi
12681 fi
12682 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12683 if test -n "$ac_ct_CXX"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12685 $as_echo "$ac_ct_CXX" >&6; }
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12689 fi
12690
12691
12692 test -n "$ac_ct_CXX" && break
12693 done
12694
12695 if test "x$ac_ct_CXX" = x; then
12696 CXX="g++"
12697 else
12698 case $cross_compiling:$ac_tool_warned in
12699 yes:)
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12702 ac_tool_warned=yes ;;
12703 esac
12704 CXX=$ac_ct_CXX
12705 fi
12706 fi
12707
12708 fi
12709 fi
12710 # Provide some information about the compiler.
12711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12712 set X $ac_compile
12713 ac_compiler=$2
12714 for ac_option in --version -v -V -qversion; do
12715 { { ac_try="$ac_compiler $ac_option >&5"
12716 case "(($ac_try" in
12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718 *) ac_try_echo=$ac_try;;
12719 esac
12720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12721 $as_echo "$ac_try_echo"; } >&5
12722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12723 ac_status=$?
12724 if test -s conftest.err; then
12725 sed '10a\
12726 ... rest of stderr output deleted ...
12727 10q' conftest.err >conftest.er1
12728 cat conftest.er1 >&5
12729 fi
12730 rm -f conftest.er1 conftest.err
12731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12732 test $ac_status = 0; }
12733 done
12734
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12736 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12737 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742
12743 int
12744 main ()
12745 {
12746 #ifndef __GNUC__
12747 choke me
12748 #endif
12749
12750 ;
12751 return 0;
12752 }
12753 _ACEOF
12754 if ac_fn_cxx_try_compile "$LINENO"; then :
12755 ac_compiler_gnu=yes
12756 else
12757 ac_compiler_gnu=no
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12761
12762 fi
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12764 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12765 if test $ac_compiler_gnu = yes; then
12766 GXX=yes
12767 else
12768 GXX=
12769 fi
12770 ac_test_CXXFLAGS=${CXXFLAGS+set}
12771 ac_save_CXXFLAGS=$CXXFLAGS
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12773 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12774 if ${ac_cv_prog_cxx_g+:} false; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12778 ac_cxx_werror_flag=yes
12779 ac_cv_prog_cxx_g=no
12780 CXXFLAGS="-g"
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783
12784 int
12785 main ()
12786 {
12787
12788 ;
12789 return 0;
12790 }
12791 _ACEOF
12792 if ac_fn_cxx_try_compile "$LINENO"; then :
12793 ac_cv_prog_cxx_g=yes
12794 else
12795 CXXFLAGS=""
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798
12799 int
12800 main ()
12801 {
12802
12803 ;
12804 return 0;
12805 }
12806 _ACEOF
12807 if ac_fn_cxx_try_compile "$LINENO"; then :
12808
12809 else
12810 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12811 CXXFLAGS="-g"
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814
12815 int
12816 main ()
12817 {
12818
12819 ;
12820 return 0;
12821 }
12822 _ACEOF
12823 if ac_fn_cxx_try_compile "$LINENO"; then :
12824 ac_cv_prog_cxx_g=yes
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 fi
12828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12834 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12835 if test "$ac_test_CXXFLAGS" = set; then
12836 CXXFLAGS=$ac_save_CXXFLAGS
12837 elif test $ac_cv_prog_cxx_g = yes; then
12838 if test "$GXX" = yes; then
12839 CXXFLAGS="-g -O2"
12840 else
12841 CXXFLAGS="-g"
12842 fi
12843 else
12844 if test "$GXX" = yes; then
12845 CXXFLAGS="-O2"
12846 else
12847 CXXFLAGS=
12848 fi
12849 fi
12850 ac_ext=c
12851 ac_cpp='$CPP $CPPFLAGS'
12852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12855
12856 depcc="$CXX" am_compiler_list=
12857
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12859 $as_echo_n "checking dependency style of $depcc... " >&6; }
12860 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12864 # We make a subdir and do the tests there. Otherwise we can end up
12865 # making bogus files that we don't know about and never remove. For
12866 # instance it was reported that on HP-UX the gcc test will end up
12867 # making a dummy file named `D' -- because `-MD' means `put the output
12868 # in D'.
12869 rm -rf conftest.dir
12870 mkdir conftest.dir
12871 # Copy depcomp to subdir because otherwise we won't find it if we're
12872 # using a relative directory.
12873 cp "$am_depcomp" conftest.dir
12874 cd conftest.dir
12875 # We will build objects and dependencies in a subdirectory because
12876 # it helps to detect inapplicable dependency modes. For instance
12877 # both Tru64's cc and ICC support -MD to output dependencies as a
12878 # side effect of compilation, but ICC will put the dependencies in
12879 # the current directory while Tru64 will put them in the object
12880 # directory.
12881 mkdir sub
12882
12883 am_cv_CXX_dependencies_compiler_type=none
12884 if test "$am_compiler_list" = ""; then
12885 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12886 fi
12887 am__universal=false
12888 case " $depcc " in #(
12889 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12890 esac
12891
12892 for depmode in $am_compiler_list; do
12893 # Setup a source with many dependencies, because some compilers
12894 # like to wrap large dependency lists on column 80 (with \), and
12895 # we should not choose a depcomp mode which is confused by this.
12896 #
12897 # We need to recreate these files for each test, as the compiler may
12898 # overwrite some of them when testing with obscure command lines.
12899 # This happens at least with the AIX C compiler.
12900 : > sub/conftest.c
12901 for i in 1 2 3 4 5 6; do
12902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12903 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12904 # Solaris 8's {/usr,}/bin/sh.
12905 touch sub/conftst$i.h
12906 done
12907 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12908
12909 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12910 # mode. It turns out that the SunPro C++ compiler does not properly
12911 # handle `-M -o', and we need to detect this. Also, some Intel
12912 # versions had trouble with output in subdirs
12913 am__obj=sub/conftest.${OBJEXT-o}
12914 am__minus_obj="-o $am__obj"
12915 case $depmode in
12916 gcc)
12917 # This depmode causes a compiler race in universal mode.
12918 test "$am__universal" = false || continue
12919 ;;
12920 nosideeffect)
12921 # after this tag, mechanisms are not by side-effect, so they'll
12922 # only be used when explicitly requested
12923 if test "x$enable_dependency_tracking" = xyes; then
12924 continue
12925 else
12926 break
12927 fi
12928 ;;
12929 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12930 # This compiler won't grok `-c -o', but also, the minuso test has
12931 # not run yet. These depmodes are late enough in the game, and
12932 # so weak that their functioning should not be impacted.
12933 am__obj=conftest.${OBJEXT-o}
12934 am__minus_obj=
12935 ;;
12936 none) break ;;
12937 esac
12938 if depmode=$depmode \
12939 source=sub/conftest.c object=$am__obj \
12940 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12941 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12942 >/dev/null 2>conftest.err &&
12943 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12944 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12946 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12947 # icc doesn't choke on unknown options, it will just issue warnings
12948 # or remarks (even with -Werror). So we grep stderr for any message
12949 # that says an option was ignored or not supported.
12950 # When given -MP, icc 7.0 and 7.1 complain thusly:
12951 # icc: Command line warning: ignoring option '-M'; no argument required
12952 # The diagnosis changed in icc 8.0:
12953 # icc: Command line remark: option '-MP' not supported
12954 if (grep 'ignoring option' conftest.err ||
12955 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12956 am_cv_CXX_dependencies_compiler_type=$depmode
12957 break
12958 fi
12959 fi
12960 done
12961
12962 cd ..
12963 rm -rf conftest.dir
12964 else
12965 am_cv_CXX_dependencies_compiler_type=none
12966 fi
12967
12968 fi
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12970 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12971 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12972
12973 if
12974 test "x$enable_dependency_tracking" != xno \
12975 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12976 am__fastdepCXX_TRUE=
12977 am__fastdepCXX_FALSE='#'
12978 else
12979 am__fastdepCXX_TRUE='#'
12980 am__fastdepCXX_FALSE=
12981 fi
12982
12983
12984
12985
12986 func_stripname_cnf ()
12987 {
12988 case ${2} in
12989 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12990 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12991 esac
12992 } # func_stripname_cnf
12993
12994 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12995 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12996 (test "X$CXX" != "Xg++"))) ; then
12997 ac_ext=cpp
12998 ac_cpp='$CXXCPP $CPPFLAGS'
12999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13003 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13004 if test -z "$CXXCPP"; then
13005 if ${ac_cv_prog_CXXCPP+:} false; then :
13006 $as_echo_n "(cached) " >&6
13007 else
13008 # Double quotes because CXXCPP needs to be expanded
13009 for CXXCPP in "$CXX -E" "/lib/cpp"
13010 do
13011 ac_preproc_ok=false
13012 for ac_cxx_preproc_warn_flag in '' yes
13013 do
13014 # Use a header file that comes with gcc, so configuring glibc
13015 # with a fresh cross-compiler works.
13016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13017 # <limits.h> exists even on freestanding compilers.
13018 # On the NeXT, cc -E runs the code through the compiler's parser,
13019 # not just through cpp. "Syntax error" is here to catch this case.
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 #ifdef __STDC__
13023 # include <limits.h>
13024 #else
13025 # include <assert.h>
13026 #endif
13027 Syntax error
13028 _ACEOF
13029 if ac_fn_cxx_try_cpp "$LINENO"; then :
13030
13031 else
13032 # Broken: fails on valid input.
13033 continue
13034 fi
13035 rm -f conftest.err conftest.i conftest.$ac_ext
13036
13037 # OK, works on sane cases. Now check whether nonexistent headers
13038 # can be detected and how.
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 #include <ac_nonexistent.h>
13042 _ACEOF
13043 if ac_fn_cxx_try_cpp "$LINENO"; then :
13044 # Broken: success on invalid input.
13045 continue
13046 else
13047 # Passes both tests.
13048 ac_preproc_ok=:
13049 break
13050 fi
13051 rm -f conftest.err conftest.i conftest.$ac_ext
13052
13053 done
13054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13055 rm -f conftest.i conftest.err conftest.$ac_ext
13056 if $ac_preproc_ok; then :
13057 break
13058 fi
13059
13060 done
13061 ac_cv_prog_CXXCPP=$CXXCPP
13062
13063 fi
13064 CXXCPP=$ac_cv_prog_CXXCPP
13065 else
13066 ac_cv_prog_CXXCPP=$CXXCPP
13067 fi
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13069 $as_echo "$CXXCPP" >&6; }
13070 ac_preproc_ok=false
13071 for ac_cxx_preproc_warn_flag in '' yes
13072 do
13073 # Use a header file that comes with gcc, so configuring glibc
13074 # with a fresh cross-compiler works.
13075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13076 # <limits.h> exists even on freestanding compilers.
13077 # On the NeXT, cc -E runs the code through the compiler's parser,
13078 # not just through cpp. "Syntax error" is here to catch this case.
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081 #ifdef __STDC__
13082 # include <limits.h>
13083 #else
13084 # include <assert.h>
13085 #endif
13086 Syntax error
13087 _ACEOF
13088 if ac_fn_cxx_try_cpp "$LINENO"; then :
13089
13090 else
13091 # Broken: fails on valid input.
13092 continue
13093 fi
13094 rm -f conftest.err conftest.i conftest.$ac_ext
13095
13096 # OK, works on sane cases. Now check whether nonexistent headers
13097 # can be detected and how.
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 #include <ac_nonexistent.h>
13101 _ACEOF
13102 if ac_fn_cxx_try_cpp "$LINENO"; then :
13103 # Broken: success on invalid input.
13104 continue
13105 else
13106 # Passes both tests.
13107 ac_preproc_ok=:
13108 break
13109 fi
13110 rm -f conftest.err conftest.i conftest.$ac_ext
13111
13112 done
13113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13114 rm -f conftest.i conftest.err conftest.$ac_ext
13115 if $ac_preproc_ok; then :
13116
13117 else
13118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13120 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13121 See \`config.log' for more details" "$LINENO" 5; }
13122 fi
13123
13124 ac_ext=c
13125 ac_cpp='$CPP $CPPFLAGS'
13126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129
13130 else
13131 _lt_caught_CXX_error=yes
13132 fi
13133
13134 ac_ext=cpp
13135 ac_cpp='$CXXCPP $CPPFLAGS'
13136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13139
13140 archive_cmds_need_lc_CXX=no
13141 allow_undefined_flag_CXX=
13142 always_export_symbols_CXX=no
13143 archive_expsym_cmds_CXX=
13144 compiler_needs_object_CXX=no
13145 export_dynamic_flag_spec_CXX=
13146 hardcode_direct_CXX=no
13147 hardcode_direct_absolute_CXX=no
13148 hardcode_libdir_flag_spec_CXX=
13149 hardcode_libdir_separator_CXX=
13150 hardcode_minus_L_CXX=no
13151 hardcode_shlibpath_var_CXX=unsupported
13152 hardcode_automatic_CXX=no
13153 inherit_rpath_CXX=no
13154 module_cmds_CXX=
13155 module_expsym_cmds_CXX=
13156 link_all_deplibs_CXX=unknown
13157 old_archive_cmds_CXX=$old_archive_cmds
13158 reload_flag_CXX=$reload_flag
13159 reload_cmds_CXX=$reload_cmds
13160 no_undefined_flag_CXX=
13161 whole_archive_flag_spec_CXX=
13162 enable_shared_with_static_runtimes_CXX=no
13163
13164 # Source file extension for C++ test sources.
13165 ac_ext=cpp
13166
13167 # Object file extension for compiled C++ test sources.
13168 objext=o
13169 objext_CXX=$objext
13170
13171 # No sense in running all these tests if we already determined that
13172 # the CXX compiler isn't working. Some variables (like enable_shared)
13173 # are currently assumed to apply to all compilers on this platform,
13174 # and will be corrupted by setting them based on a non-working compiler.
13175 if test "$_lt_caught_CXX_error" != yes; then
13176 # Code to be used in simple compile tests
13177 lt_simple_compile_test_code="int some_variable = 0;"
13178
13179 # Code to be used in simple link tests
13180 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13181
13182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13183
13184
13185
13186
13187
13188
13189 # If no C compiler was specified, use CC.
13190 LTCC=${LTCC-"$CC"}
13191
13192 # If no C compiler flags were specified, use CFLAGS.
13193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13194
13195 # Allow CC to be a program name with arguments.
13196 compiler=$CC
13197
13198
13199 # save warnings/boilerplate of simple test code
13200 ac_outfile=conftest.$ac_objext
13201 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13203 _lt_compiler_boilerplate=`cat conftest.err`
13204 $RM conftest*
13205
13206 ac_outfile=conftest.$ac_objext
13207 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13208 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13209 _lt_linker_boilerplate=`cat conftest.err`
13210 $RM -r conftest*
13211
13212
13213 # Allow CC to be a program name with arguments.
13214 lt_save_CC=$CC
13215 lt_save_CFLAGS=$CFLAGS
13216 lt_save_LD=$LD
13217 lt_save_GCC=$GCC
13218 GCC=$GXX
13219 lt_save_with_gnu_ld=$with_gnu_ld
13220 lt_save_path_LD=$lt_cv_path_LD
13221 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13222 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13223 else
13224 $as_unset lt_cv_prog_gnu_ld
13225 fi
13226 if test -n "${lt_cv_path_LDCXX+set}"; then
13227 lt_cv_path_LD=$lt_cv_path_LDCXX
13228 else
13229 $as_unset lt_cv_path_LD
13230 fi
13231 test -z "${LDCXX+set}" || LD=$LDCXX
13232 CC=${CXX-"c++"}
13233 CFLAGS=$CXXFLAGS
13234 compiler=$CC
13235 compiler_CXX=$CC
13236 for cc_temp in $compiler""; do
13237 case $cc_temp in
13238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13240 \-*) ;;
13241 *) break;;
13242 esac
13243 done
13244 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13245
13246
13247 if test -n "$compiler"; then
13248 # We don't want -fno-exception when compiling C++ code, so set the
13249 # no_builtin_flag separately
13250 if test "$GXX" = yes; then
13251 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13252 else
13253 lt_prog_compiler_no_builtin_flag_CXX=
13254 fi
13255
13256 if test "$GXX" = yes; then
13257 # Set up default GNU C++ configuration
13258
13259
13260
13261 # Check whether --with-gnu-ld was given.
13262 if test "${with_gnu_ld+set}" = set; then :
13263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13264 else
13265 with_gnu_ld=no
13266 fi
13267
13268 ac_prog=ld
13269 if test "$GCC" = yes; then
13270 # Check if gcc -print-prog-name=ld gives a path.
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13272 $as_echo_n "checking for ld used by $CC... " >&6; }
13273 case $host in
13274 *-*-mingw*)
13275 # gcc leaves a trailing carriage return which upsets mingw
13276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13277 *)
13278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13279 esac
13280 case $ac_prog in
13281 # Accept absolute paths.
13282 [\\/]* | ?:[\\/]*)
13283 re_direlt='/[^/][^/]*/\.\./'
13284 # Canonicalize the pathname of ld
13285 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13286 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13287 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13288 done
13289 test -z "$LD" && LD="$ac_prog"
13290 ;;
13291 "")
13292 # If it fails, then pretend we aren't using GCC.
13293 ac_prog=ld
13294 ;;
13295 *)
13296 # If it is relative, then search for the first ld in PATH.
13297 with_gnu_ld=unknown
13298 ;;
13299 esac
13300 elif test "$with_gnu_ld" = yes; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13302 $as_echo_n "checking for GNU ld... " >&6; }
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13305 $as_echo_n "checking for non-GNU ld... " >&6; }
13306 fi
13307 if ${lt_cv_path_LD+:} false; then :
13308 $as_echo_n "(cached) " >&6
13309 else
13310 if test -z "$LD"; then
13311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13312 for ac_dir in $PATH; do
13313 IFS="$lt_save_ifs"
13314 test -z "$ac_dir" && ac_dir=.
13315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13316 lt_cv_path_LD="$ac_dir/$ac_prog"
13317 # Check to see if the program is GNU ld. I'd rather use --version,
13318 # but apparently some variants of GNU ld only accept -v.
13319 # Break only if it was the GNU/non-GNU ld that we prefer.
13320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13321 *GNU* | *'with BFD'*)
13322 test "$with_gnu_ld" != no && break
13323 ;;
13324 *)
13325 test "$with_gnu_ld" != yes && break
13326 ;;
13327 esac
13328 fi
13329 done
13330 IFS="$lt_save_ifs"
13331 else
13332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13333 fi
13334 fi
13335
13336 LD="$lt_cv_path_LD"
13337 if test -n "$LD"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13339 $as_echo "$LD" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13343 fi
13344 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13347 if ${lt_cv_prog_gnu_ld+:} false; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13351 case `$LD -v 2>&1 </dev/null` in
13352 *GNU* | *'with BFD'*)
13353 lt_cv_prog_gnu_ld=yes
13354 ;;
13355 *)
13356 lt_cv_prog_gnu_ld=no
13357 ;;
13358 esac
13359 fi
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13361 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13362 with_gnu_ld=$lt_cv_prog_gnu_ld
13363
13364
13365
13366
13367
13368
13369
13370 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13371 # archiving commands below assume that GNU ld is being used.
13372 if test "$with_gnu_ld" = yes; then
13373 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374 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'
13375
13376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13378
13379 # If archive_cmds runs LD, not CC, wlarc should be empty
13380 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13381 # investigate it a little bit more. (MM)
13382 wlarc='${wl}'
13383
13384 # ancient GNU ld didn't support --whole-archive et. al.
13385 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13386 $GREP 'no-whole-archive' > /dev/null; then
13387 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13388 else
13389 whole_archive_flag_spec_CXX=
13390 fi
13391 else
13392 with_gnu_ld=no
13393 wlarc=
13394
13395 # A generic and very simple default shared library creation
13396 # command for GNU C++ for the case where it uses the native
13397 # linker, instead of GNU ld. If possible, this setting should
13398 # overridden to take advantage of the native linker features on
13399 # the platform it is being used on.
13400 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13401 fi
13402
13403 # Commands to make compiler produce verbose output that lists
13404 # what "hidden" libraries, object files and flags are used when
13405 # linking a shared library.
13406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13407
13408 else
13409 GXX=no
13410 with_gnu_ld=no
13411 wlarc=
13412 fi
13413
13414 # PORTME: fill in a description of your system's C++ link characteristics
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13416 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13417 ld_shlibs_CXX=yes
13418 case $host_os in
13419 aix3*)
13420 # FIXME: insert proper C++ library support
13421 ld_shlibs_CXX=no
13422 ;;
13423 aix[4-9]*)
13424 if test "$host_cpu" = ia64; then
13425 # On IA64, the linker does run time linking by default, so we don't
13426 # have to do anything special.
13427 aix_use_runtimelinking=no
13428 exp_sym_flag='-Bexport'
13429 no_entry_flag=""
13430 else
13431 aix_use_runtimelinking=no
13432
13433 # Test if we are trying to use run time linking or normal
13434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13435 # need to do runtime linking.
13436 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13437 for ld_flag in $LDFLAGS; do
13438 case $ld_flag in
13439 *-brtl*)
13440 aix_use_runtimelinking=yes
13441 break
13442 ;;
13443 esac
13444 done
13445 ;;
13446 esac
13447
13448 exp_sym_flag='-bexport'
13449 no_entry_flag='-bnoentry'
13450 fi
13451
13452 # When large executables or shared objects are built, AIX ld can
13453 # have problems creating the table of contents. If linking a library
13454 # or program results in "error TOC overflow" add -mminimal-toc to
13455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13457
13458 archive_cmds_CXX=''
13459 hardcode_direct_CXX=yes
13460 hardcode_direct_absolute_CXX=yes
13461 hardcode_libdir_separator_CXX=':'
13462 link_all_deplibs_CXX=yes
13463 file_list_spec_CXX='${wl}-f,'
13464
13465 if test "$GXX" = yes; then
13466 case $host_os in aix4.[012]|aix4.[012].*)
13467 # We only want to do this on AIX 4.2 and lower, the check
13468 # below for broken collect2 doesn't work under 4.3+
13469 collect2name=`${CC} -print-prog-name=collect2`
13470 if test -f "$collect2name" &&
13471 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13472 then
13473 # We have reworked collect2
13474 :
13475 else
13476 # We have old collect2
13477 hardcode_direct_CXX=unsupported
13478 # It fails to find uninstalled libraries when the uninstalled
13479 # path is not listed in the libpath. Setting hardcode_minus_L
13480 # to unsupported forces relinking
13481 hardcode_minus_L_CXX=yes
13482 hardcode_libdir_flag_spec_CXX='-L$libdir'
13483 hardcode_libdir_separator_CXX=
13484 fi
13485 esac
13486 shared_flag='-shared'
13487 if test "$aix_use_runtimelinking" = yes; then
13488 shared_flag="$shared_flag "'${wl}-G'
13489 fi
13490 else
13491 # not using gcc
13492 if test "$host_cpu" = ia64; then
13493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13494 # chokes on -Wl,-G. The following line is correct:
13495 shared_flag='-G'
13496 else
13497 if test "$aix_use_runtimelinking" = yes; then
13498 shared_flag='${wl}-G'
13499 else
13500 shared_flag='${wl}-bM:SRE'
13501 fi
13502 fi
13503 fi
13504
13505 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13506 # It seems that -bexpall does not export symbols beginning with
13507 # underscore (_), so it is better to generate a list of symbols to
13508 # export.
13509 always_export_symbols_CXX=yes
13510 if test "$aix_use_runtimelinking" = yes; then
13511 # Warning - without using the other runtime loading flags (-brtl),
13512 # -berok will link without error, but may produce a broken library.
13513 allow_undefined_flag_CXX='-berok'
13514 # Determine the default libpath from the value encoded in an empty
13515 # executable.
13516 if test "${lt_cv_aix_libpath+set}" = set; then
13517 aix_libpath=$lt_cv_aix_libpath
13518 else
13519 if ${lt_cv_aix_libpath__CXX+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524
13525 int
13526 main ()
13527 {
13528
13529 ;
13530 return 0;
13531 }
13532 _ACEOF
13533 if ac_fn_cxx_try_link "$LINENO"; then :
13534
13535 lt_aix_libpath_sed='
13536 /Import File Strings/,/^$/ {
13537 /^0/ {
13538 s/^0 *\([^ ]*\) *$/\1/
13539 p
13540 }
13541 }'
13542 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13543 # Check for a 64-bit object if we didn't find anything.
13544 if test -z "$lt_cv_aix_libpath__CXX"; then
13545 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13546 fi
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550 if test -z "$lt_cv_aix_libpath__CXX"; then
13551 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13552 fi
13553
13554 fi
13555
13556 aix_libpath=$lt_cv_aix_libpath__CXX
13557 fi
13558
13559 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13560
13561 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"
13562 else
13563 if test "$host_cpu" = ia64; then
13564 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13565 allow_undefined_flag_CXX="-z nodefs"
13566 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"
13567 else
13568 # Determine the default libpath from the value encoded in an
13569 # empty executable.
13570 if test "${lt_cv_aix_libpath+set}" = set; then
13571 aix_libpath=$lt_cv_aix_libpath
13572 else
13573 if ${lt_cv_aix_libpath__CXX+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13578
13579 int
13580 main ()
13581 {
13582
13583 ;
13584 return 0;
13585 }
13586 _ACEOF
13587 if ac_fn_cxx_try_link "$LINENO"; then :
13588
13589 lt_aix_libpath_sed='
13590 /Import File Strings/,/^$/ {
13591 /^0/ {
13592 s/^0 *\([^ ]*\) *$/\1/
13593 p
13594 }
13595 }'
13596 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13597 # Check for a 64-bit object if we didn't find anything.
13598 if test -z "$lt_cv_aix_libpath__CXX"; then
13599 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13600 fi
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 if test -z "$lt_cv_aix_libpath__CXX"; then
13605 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13606 fi
13607
13608 fi
13609
13610 aix_libpath=$lt_cv_aix_libpath__CXX
13611 fi
13612
13613 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13614 # Warning - without using the other run time loading flags,
13615 # -berok will link without error, but may produce a broken library.
13616 no_undefined_flag_CXX=' ${wl}-bernotok'
13617 allow_undefined_flag_CXX=' ${wl}-berok'
13618 if test "$with_gnu_ld" = yes; then
13619 # We only use this code for GNU lds that support --whole-archive.
13620 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13621 else
13622 # Exported symbols can be pulled into shared objects from archives
13623 whole_archive_flag_spec_CXX='$convenience'
13624 fi
13625 archive_cmds_need_lc_CXX=yes
13626 # This is similar to how AIX traditionally builds its shared
13627 # libraries.
13628 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'
13629 fi
13630 fi
13631 ;;
13632
13633 beos*)
13634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13635 allow_undefined_flag_CXX=unsupported
13636 # Joseph Beckenbach <[email protected]> says some releases of gcc
13637 # support --undefined. This deserves some investigation. FIXME
13638 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 else
13640 ld_shlibs_CXX=no
13641 fi
13642 ;;
13643
13644 chorus*)
13645 case $cc_basename in
13646 *)
13647 # FIXME: insert proper C++ library support
13648 ld_shlibs_CXX=no
13649 ;;
13650 esac
13651 ;;
13652
13653 cygwin* | mingw* | pw32* | cegcc*)
13654 case $GXX,$cc_basename in
13655 ,cl* | no,cl*)
13656 # Native MSVC
13657 # hardcode_libdir_flag_spec is actually meaningless, as there is
13658 # no search path for DLLs.
13659 hardcode_libdir_flag_spec_CXX=' '
13660 allow_undefined_flag_CXX=unsupported
13661 always_export_symbols_CXX=yes
13662 file_list_spec_CXX='@'
13663 # Tell ltmain to make .lib files, not .a files.
13664 libext=lib
13665 # Tell ltmain to make .dll files, not .so files.
13666 shrext_cmds=".dll"
13667 # FIXME: Setting linknames here is a bad hack.
13668 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13669 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13670 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13671 else
13672 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13673 fi~
13674 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13675 linknames='
13676 # The linker will not automatically build a static lib if we build a DLL.
13677 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13678 enable_shared_with_static_runtimes_CXX=yes
13679 # Don't use ranlib
13680 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13681 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13682 lt_tool_outputfile="@TOOL_OUTPUT@"~
13683 case $lt_outputfile in
13684 *.exe|*.EXE) ;;
13685 *)
13686 lt_outputfile="$lt_outputfile.exe"
13687 lt_tool_outputfile="$lt_tool_outputfile.exe"
13688 ;;
13689 esac~
13690 func_to_tool_file "$lt_outputfile"~
13691 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13692 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13693 $RM "$lt_outputfile.manifest";
13694 fi'
13695 ;;
13696 *)
13697 # g++
13698 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13699 # as there is no search path for DLLs.
13700 hardcode_libdir_flag_spec_CXX='-L$libdir'
13701 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13702 allow_undefined_flag_CXX=unsupported
13703 always_export_symbols_CXX=no
13704 enable_shared_with_static_runtimes_CXX=yes
13705
13706 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13707 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'
13708 # If the export-symbols file already is a .def file (1st line
13709 # is EXPORTS), use it as is; otherwise, prepend...
13710 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13711 cp $export_symbols $output_objdir/$soname.def;
13712 else
13713 echo EXPORTS > $output_objdir/$soname.def;
13714 cat $export_symbols >> $output_objdir/$soname.def;
13715 fi~
13716 $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'
13717 else
13718 ld_shlibs_CXX=no
13719 fi
13720 ;;
13721 esac
13722 ;;
13723 darwin* | rhapsody*)
13724
13725
13726 archive_cmds_need_lc_CXX=no
13727 hardcode_direct_CXX=no
13728 hardcode_automatic_CXX=yes
13729 hardcode_shlibpath_var_CXX=unsupported
13730 if test "$lt_cv_ld_force_load" = "yes"; then
13731 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\"`'
13732
13733 else
13734 whole_archive_flag_spec_CXX=''
13735 fi
13736 link_all_deplibs_CXX=yes
13737 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13738 case $cc_basename in
13739 ifort*) _lt_dar_can_shared=yes ;;
13740 *) _lt_dar_can_shared=$GCC ;;
13741 esac
13742 if test "$_lt_dar_can_shared" = "yes"; then
13743 output_verbose_link_cmd=func_echo_all
13744 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}"
13745 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13746 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}"
13747 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}"
13748 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13749 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}"
13750 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}"
13751 fi
13752
13753 else
13754 ld_shlibs_CXX=no
13755 fi
13756
13757 ;;
13758
13759 dgux*)
13760 case $cc_basename in
13761 ec++*)
13762 # FIXME: insert proper C++ library support
13763 ld_shlibs_CXX=no
13764 ;;
13765 ghcx*)
13766 # Green Hills C++ Compiler
13767 # FIXME: insert proper C++ library support
13768 ld_shlibs_CXX=no
13769 ;;
13770 *)
13771 # FIXME: insert proper C++ library support
13772 ld_shlibs_CXX=no
13773 ;;
13774 esac
13775 ;;
13776
13777 freebsd2.*)
13778 # C++ shared libraries reported to be fairly broken before
13779 # switch to ELF
13780 ld_shlibs_CXX=no
13781 ;;
13782
13783 freebsd-elf*)
13784 archive_cmds_need_lc_CXX=no
13785 ;;
13786
13787 freebsd* | dragonfly*)
13788 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13789 # conventions
13790 ld_shlibs_CXX=yes
13791 ;;
13792
13793 haiku*)
13794 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13795 link_all_deplibs_CXX=yes
13796 ;;
13797
13798 hpux9*)
13799 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13800 hardcode_libdir_separator_CXX=:
13801 export_dynamic_flag_spec_CXX='${wl}-E'
13802 hardcode_direct_CXX=yes
13803 hardcode_minus_L_CXX=yes # Not in the search PATH,
13804 # but as the default
13805 # location of the library.
13806
13807 case $cc_basename in
13808 CC*)
13809 # FIXME: insert proper C++ library support
13810 ld_shlibs_CXX=no
13811 ;;
13812 aCC*)
13813 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'
13814 # Commands to make compiler produce verbose output that lists
13815 # what "hidden" libraries, object files and flags are used when
13816 # linking a shared library.
13817 #
13818 # There doesn't appear to be a way to prevent this compiler from
13819 # explicitly linking system object files so we need to strip them
13820 # from the output so that they don't get included in the library
13821 # dependencies.
13822 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"'
13823 ;;
13824 *)
13825 if test "$GXX" = yes; then
13826 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'
13827 else
13828 # FIXME: insert proper C++ library support
13829 ld_shlibs_CXX=no
13830 fi
13831 ;;
13832 esac
13833 ;;
13834
13835 hpux10*|hpux11*)
13836 if test $with_gnu_ld = no; then
13837 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13838 hardcode_libdir_separator_CXX=:
13839
13840 case $host_cpu in
13841 hppa*64*|ia64*)
13842 ;;
13843 *)
13844 export_dynamic_flag_spec_CXX='${wl}-E'
13845 ;;
13846 esac
13847 fi
13848 case $host_cpu in
13849 hppa*64*|ia64*)
13850 hardcode_direct_CXX=no
13851 hardcode_shlibpath_var_CXX=no
13852 ;;
13853 *)
13854 hardcode_direct_CXX=yes
13855 hardcode_direct_absolute_CXX=yes
13856 hardcode_minus_L_CXX=yes # Not in the search PATH,
13857 # but as the default
13858 # location of the library.
13859 ;;
13860 esac
13861
13862 case $cc_basename in
13863 CC*)
13864 # FIXME: insert proper C++ library support
13865 ld_shlibs_CXX=no
13866 ;;
13867 aCC*)
13868 case $host_cpu in
13869 hppa*64*)
13870 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13871 ;;
13872 ia64*)
13873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13874 ;;
13875 *)
13876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13877 ;;
13878 esac
13879 # Commands to make compiler produce verbose output that lists
13880 # what "hidden" libraries, object files and flags are used when
13881 # linking a shared library.
13882 #
13883 # There doesn't appear to be a way to prevent this compiler from
13884 # explicitly linking system object files so we need to strip them
13885 # from the output so that they don't get included in the library
13886 # dependencies.
13887 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"'
13888 ;;
13889 *)
13890 if test "$GXX" = yes; then
13891 if test $with_gnu_ld = no; then
13892 case $host_cpu in
13893 hppa*64*)
13894 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13895 ;;
13896 ia64*)
13897 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13898 ;;
13899 *)
13900 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'
13901 ;;
13902 esac
13903 fi
13904 else
13905 # FIXME: insert proper C++ library support
13906 ld_shlibs_CXX=no
13907 fi
13908 ;;
13909 esac
13910 ;;
13911
13912 interix[3-9]*)
13913 hardcode_direct_CXX=no
13914 hardcode_shlibpath_var_CXX=no
13915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13916 export_dynamic_flag_spec_CXX='${wl}-E'
13917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13918 # Instead, shared libraries are loaded at an image base (0x10000000 by
13919 # default) and relocated if they conflict, which is a slow very memory
13920 # consuming and fragmenting process. To avoid this, we pick a random,
13921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13923 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'
13924 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'
13925 ;;
13926 irix5* | irix6*)
13927 case $cc_basename in
13928 CC*)
13929 # SGI C++
13930 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'
13931
13932 # Archives containing C++ object files must be created using
13933 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13934 # necessary to make sure instantiated templates are included
13935 # in the archive.
13936 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13937 ;;
13938 *)
13939 if test "$GXX" = yes; then
13940 if test "$with_gnu_ld" = no; then
13941 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'
13942 else
13943 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'
13944 fi
13945 fi
13946 link_all_deplibs_CXX=yes
13947 ;;
13948 esac
13949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13950 hardcode_libdir_separator_CXX=:
13951 inherit_rpath_CXX=yes
13952 ;;
13953
13954 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13955 case $cc_basename in
13956 KCC*)
13957 # Kuck and Associates, Inc. (KAI) C++ Compiler
13958
13959 # KCC will only create a shared library if the output file
13960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13961 # to its proper name (with version) after linking.
13962 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'
13963 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'
13964 # Commands to make compiler produce verbose output that lists
13965 # what "hidden" libraries, object files and flags are used when
13966 # linking a shared library.
13967 #
13968 # There doesn't appear to be a way to prevent this compiler from
13969 # explicitly linking system object files so we need to strip them
13970 # from the output so that they don't get included in the library
13971 # dependencies.
13972 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"'
13973
13974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13976
13977 # Archives containing C++ object files must be created using
13978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13980 ;;
13981 icpc* | ecpc* )
13982 # Intel C++
13983 with_gnu_ld=yes
13984 # version 8.0 and above of icpc choke on multiply defined symbols
13985 # if we add $predep_objects and $postdep_objects, however 7.1 and
13986 # earlier do not add the objects themselves.
13987 case `$CC -V 2>&1` in
13988 *"Version 7."*)
13989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990 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'
13991 ;;
13992 *) # Version 8.0 or newer
13993 tmp_idyn=
13994 case $host_cpu in
13995 ia64*) tmp_idyn=' -i_dynamic';;
13996 esac
13997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13998 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'
13999 ;;
14000 esac
14001 archive_cmds_need_lc_CXX=no
14002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14005 ;;
14006 pgCC* | pgcpp*)
14007 # Portland Group C++ compiler
14008 case `$CC -V` in
14009 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14010 prelink_cmds_CXX='tpldir=Template.dir~
14011 rm -rf $tpldir~
14012 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14013 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14014 old_archive_cmds_CXX='tpldir=Template.dir~
14015 rm -rf $tpldir~
14016 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14017 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14018 $RANLIB $oldlib'
14019 archive_cmds_CXX='tpldir=Template.dir~
14020 rm -rf $tpldir~
14021 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14022 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14023 archive_expsym_cmds_CXX='tpldir=Template.dir~
14024 rm -rf $tpldir~
14025 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14026 $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'
14027 ;;
14028 *) # Version 6 and above use weak symbols
14029 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14030 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'
14031 ;;
14032 esac
14033
14034 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14036 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'
14037 ;;
14038 cxx*)
14039 # Compaq C++
14040 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14041 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'
14042
14043 runpath_var=LD_RUN_PATH
14044 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14045 hardcode_libdir_separator_CXX=:
14046
14047 # Commands to make compiler produce verbose output that lists
14048 # what "hidden" libraries, object files and flags are used when
14049 # linking a shared library.
14050 #
14051 # There doesn't appear to be a way to prevent this compiler from
14052 # explicitly linking system object files so we need to strip them
14053 # from the output so that they don't get included in the library
14054 # dependencies.
14055 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'
14056 ;;
14057 xl* | mpixl* | bgxl*)
14058 # IBM XL 8.0 on PPC, with GNU ld
14059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14060 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14061 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14062 if test "x$supports_anon_versioning" = xyes; then
14063 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14065 echo "local: *; };" >> $output_objdir/$libname.ver~
14066 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14067 fi
14068 ;;
14069 *)
14070 case `$CC -V 2>&1 | sed 5q` in
14071 *Sun\ C*)
14072 # Sun C++ 5.9
14073 no_undefined_flag_CXX=' -zdefs'
14074 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14075 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'
14076 hardcode_libdir_flag_spec_CXX='-R$libdir'
14077 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'
14078 compiler_needs_object_CXX=yes
14079
14080 # Not sure whether something based on
14081 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14082 # would be better.
14083 output_verbose_link_cmd='func_echo_all'
14084
14085 # Archives containing C++ object files must be created using
14086 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14087 # necessary to make sure instantiated templates are included
14088 # in the archive.
14089 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14090 ;;
14091 esac
14092 ;;
14093 esac
14094 ;;
14095
14096 lynxos*)
14097 # FIXME: insert proper C++ library support
14098 ld_shlibs_CXX=no
14099 ;;
14100
14101 m88k*)
14102 # FIXME: insert proper C++ library support
14103 ld_shlibs_CXX=no
14104 ;;
14105
14106 mvs*)
14107 case $cc_basename in
14108 cxx*)
14109 # FIXME: insert proper C++ library support
14110 ld_shlibs_CXX=no
14111 ;;
14112 *)
14113 # FIXME: insert proper C++ library support
14114 ld_shlibs_CXX=no
14115 ;;
14116 esac
14117 ;;
14118
14119 netbsd*)
14120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14121 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14122 wlarc=
14123 hardcode_libdir_flag_spec_CXX='-R$libdir'
14124 hardcode_direct_CXX=yes
14125 hardcode_shlibpath_var_CXX=no
14126 fi
14127 # Workaround some broken pre-1.5 toolchains
14128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14129 ;;
14130
14131 *nto* | *qnx*)
14132 ld_shlibs_CXX=yes
14133 ;;
14134
14135 openbsd2*)
14136 # C++ shared libraries are fairly broken
14137 ld_shlibs_CXX=no
14138 ;;
14139
14140 openbsd*)
14141 if test -f /usr/libexec/ld.so; then
14142 hardcode_direct_CXX=yes
14143 hardcode_shlibpath_var_CXX=no
14144 hardcode_direct_absolute_CXX=yes
14145 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14148 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14149 export_dynamic_flag_spec_CXX='${wl}-E'
14150 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14151 fi
14152 output_verbose_link_cmd=func_echo_all
14153 else
14154 ld_shlibs_CXX=no
14155 fi
14156 ;;
14157
14158 osf3* | osf4* | osf5*)
14159 case $cc_basename in
14160 KCC*)
14161 # Kuck and Associates, Inc. (KAI) C++ Compiler
14162
14163 # KCC will only create a shared library if the output file
14164 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14165 # to its proper name (with version) after linking.
14166 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'
14167
14168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14169 hardcode_libdir_separator_CXX=:
14170
14171 # Archives containing C++ object files must be created using
14172 # the KAI C++ compiler.
14173 case $host in
14174 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14175 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14176 esac
14177 ;;
14178 RCC*)
14179 # Rational C++ 2.4.1
14180 # FIXME: insert proper C++ library support
14181 ld_shlibs_CXX=no
14182 ;;
14183 cxx*)
14184 case $host in
14185 osf3*)
14186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14187 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'
14188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14189 ;;
14190 *)
14191 allow_undefined_flag_CXX=' -expect_unresolved \*'
14192 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'
14193 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14194 echo "-hidden">> $lib.exp~
14195 $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~
14196 $RM $lib.exp'
14197 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14198 ;;
14199 esac
14200
14201 hardcode_libdir_separator_CXX=:
14202
14203 # Commands to make compiler produce verbose output that lists
14204 # what "hidden" libraries, object files and flags are used when
14205 # linking a shared library.
14206 #
14207 # There doesn't appear to be a way to prevent this compiler from
14208 # explicitly linking system object files so we need to strip them
14209 # from the output so that they don't get included in the library
14210 # dependencies.
14211 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"'
14212 ;;
14213 *)
14214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14216 case $host in
14217 osf3*)
14218 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'
14219 ;;
14220 *)
14221 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'
14222 ;;
14223 esac
14224
14225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14226 hardcode_libdir_separator_CXX=:
14227
14228 # Commands to make compiler produce verbose output that lists
14229 # what "hidden" libraries, object files and flags are used when
14230 # linking a shared library.
14231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14232
14233 else
14234 # FIXME: insert proper C++ library support
14235 ld_shlibs_CXX=no
14236 fi
14237 ;;
14238 esac
14239 ;;
14240
14241 psos*)
14242 # FIXME: insert proper C++ library support
14243 ld_shlibs_CXX=no
14244 ;;
14245
14246 sunos4*)
14247 case $cc_basename in
14248 CC*)
14249 # Sun C++ 4.x
14250 # FIXME: insert proper C++ library support
14251 ld_shlibs_CXX=no
14252 ;;
14253 lcc*)
14254 # Lucid
14255 # FIXME: insert proper C++ library support
14256 ld_shlibs_CXX=no
14257 ;;
14258 *)
14259 # FIXME: insert proper C++ library support
14260 ld_shlibs_CXX=no
14261 ;;
14262 esac
14263 ;;
14264
14265 solaris*)
14266 case $cc_basename in
14267 CC* | sunCC*)
14268 # Sun C++ 4.2, 5.x and Centerline C++
14269 archive_cmds_need_lc_CXX=yes
14270 no_undefined_flag_CXX=' -zdefs'
14271 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14272 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14273 $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'
14274
14275 hardcode_libdir_flag_spec_CXX='-R$libdir'
14276 hardcode_shlibpath_var_CXX=no
14277 case $host_os in
14278 solaris2.[0-5] | solaris2.[0-5].*) ;;
14279 *)
14280 # The compiler driver will combine and reorder linker options,
14281 # but understands `-z linker_flag'.
14282 # Supported since Solaris 2.6 (maybe 2.5.1?)
14283 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14284 ;;
14285 esac
14286 link_all_deplibs_CXX=yes
14287
14288 output_verbose_link_cmd='func_echo_all'
14289
14290 # Archives containing C++ object files must be created using
14291 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14292 # necessary to make sure instantiated templates are included
14293 # in the archive.
14294 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14295 ;;
14296 gcx*)
14297 # Green Hills C++ Compiler
14298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14299
14300 # The C++ compiler must be used to create the archive.
14301 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14302 ;;
14303 *)
14304 # GNU C++ compiler with Solaris linker
14305 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14306 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14307 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14308 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14309 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14310 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14311
14312 # Commands to make compiler produce verbose output that lists
14313 # what "hidden" libraries, object files and flags are used when
14314 # linking a shared library.
14315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14316 else
14317 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14318 # platform.
14319 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14320 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14321 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14322
14323 # Commands to make compiler produce verbose output that lists
14324 # what "hidden" libraries, object files and flags are used when
14325 # linking a shared library.
14326 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14327 fi
14328
14329 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14330 case $host_os in
14331 solaris2.[0-5] | solaris2.[0-5].*) ;;
14332 *)
14333 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14334 ;;
14335 esac
14336 fi
14337 ;;
14338 esac
14339 ;;
14340
14341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14342 no_undefined_flag_CXX='${wl}-z,text'
14343 archive_cmds_need_lc_CXX=no
14344 hardcode_shlibpath_var_CXX=no
14345 runpath_var='LD_RUN_PATH'
14346
14347 case $cc_basename in
14348 CC*)
14349 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14351 ;;
14352 *)
14353 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14354 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 ;;
14356 esac
14357 ;;
14358
14359 sysv5* | sco3.2v5* | sco5v6*)
14360 # Note: We can NOT use -z defs as we might desire, because we do not
14361 # link with -lc, and that would cause any symbols used from libc to
14362 # always be unresolved, which means just about no library would
14363 # ever link correctly. If we're not using GNU ld we use -z text
14364 # though, which does catch some bad symbols but isn't as heavy-handed
14365 # as -z defs.
14366 no_undefined_flag_CXX='${wl}-z,text'
14367 allow_undefined_flag_CXX='${wl}-z,nodefs'
14368 archive_cmds_need_lc_CXX=no
14369 hardcode_shlibpath_var_CXX=no
14370 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14371 hardcode_libdir_separator_CXX=':'
14372 link_all_deplibs_CXX=yes
14373 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14374 runpath_var='LD_RUN_PATH'
14375
14376 case $cc_basename in
14377 CC*)
14378 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14379 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14380 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14381 '"$old_archive_cmds_CXX"
14382 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14383 '"$reload_cmds_CXX"
14384 ;;
14385 *)
14386 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14387 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14388 ;;
14389 esac
14390 ;;
14391
14392 tandem*)
14393 case $cc_basename in
14394 NCC*)
14395 # NonStop-UX NCC 3.20
14396 # FIXME: insert proper C++ library support
14397 ld_shlibs_CXX=no
14398 ;;
14399 *)
14400 # FIXME: insert proper C++ library support
14401 ld_shlibs_CXX=no
14402 ;;
14403 esac
14404 ;;
14405
14406 vxworks*)
14407 # FIXME: insert proper C++ library support
14408 ld_shlibs_CXX=no
14409 ;;
14410
14411 *)
14412 # FIXME: insert proper C++ library support
14413 ld_shlibs_CXX=no
14414 ;;
14415 esac
14416
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14418 $as_echo "$ld_shlibs_CXX" >&6; }
14419 test "$ld_shlibs_CXX" = no && can_build_shared=no
14420
14421 GCC_CXX="$GXX"
14422 LD_CXX="$LD"
14423
14424 ## CAVEAT EMPTOR:
14425 ## There is no encapsulation within the following macros, do not change
14426 ## the running order or otherwise move them around unless you know exactly
14427 ## what you are doing...
14428 # Dependencies to place before and after the object being linked:
14429 predep_objects_CXX=
14430 postdep_objects_CXX=
14431 predeps_CXX=
14432 postdeps_CXX=
14433 compiler_lib_search_path_CXX=
14434
14435 cat > conftest.$ac_ext <<_LT_EOF
14436 class Foo
14437 {
14438 public:
14439 Foo (void) { a = 0; }
14440 private:
14441 int a;
14442 };
14443 _LT_EOF
14444
14445
14446 _lt_libdeps_save_CFLAGS=$CFLAGS
14447 case "$CC $CFLAGS " in #(
14448 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14449 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14450 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14451 esac
14452
14453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14454 (eval $ac_compile) 2>&5
14455 ac_status=$?
14456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14457 test $ac_status = 0; }; then
14458 # Parse the compiler output and extract the necessary
14459 # objects, libraries and library flags.
14460
14461 # Sentinel used to keep track of whether or not we are before
14462 # the conftest object file.
14463 pre_test_object_deps_done=no
14464
14465 for p in `eval "$output_verbose_link_cmd"`; do
14466 case ${prev}${p} in
14467
14468 -L* | -R* | -l*)
14469 # Some compilers place space between "-{L,R}" and the path.
14470 # Remove the space.
14471 if test $p = "-L" ||
14472 test $p = "-R"; then
14473 prev=$p
14474 continue
14475 fi
14476
14477 # Expand the sysroot to ease extracting the directories later.
14478 if test -z "$prev"; then
14479 case $p in
14480 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14481 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14482 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14483 esac
14484 fi
14485 case $p in
14486 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14487 esac
14488 if test "$pre_test_object_deps_done" = no; then
14489 case ${prev} in
14490 -L | -R)
14491 # Internal compiler library paths should come after those
14492 # provided the user. The postdeps already come after the
14493 # user supplied libs so there is no need to process them.
14494 if test -z "$compiler_lib_search_path_CXX"; then
14495 compiler_lib_search_path_CXX="${prev}${p}"
14496 else
14497 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14498 fi
14499 ;;
14500 # The "-l" case would never come before the object being
14501 # linked, so don't bother handling this case.
14502 esac
14503 else
14504 if test -z "$postdeps_CXX"; then
14505 postdeps_CXX="${prev}${p}"
14506 else
14507 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14508 fi
14509 fi
14510 prev=
14511 ;;
14512
14513 *.lto.$objext) ;; # Ignore GCC LTO objects
14514 *.$objext)
14515 # This assumes that the test object file only shows up
14516 # once in the compiler output.
14517 if test "$p" = "conftest.$objext"; then
14518 pre_test_object_deps_done=yes
14519 continue
14520 fi
14521
14522 if test "$pre_test_object_deps_done" = no; then
14523 if test -z "$predep_objects_CXX"; then
14524 predep_objects_CXX="$p"
14525 else
14526 predep_objects_CXX="$predep_objects_CXX $p"
14527 fi
14528 else
14529 if test -z "$postdep_objects_CXX"; then
14530 postdep_objects_CXX="$p"
14531 else
14532 postdep_objects_CXX="$postdep_objects_CXX $p"
14533 fi
14534 fi
14535 ;;
14536
14537 *) ;; # Ignore the rest.
14538
14539 esac
14540 done
14541
14542 # Clean up.
14543 rm -f a.out a.exe
14544 else
14545 echo "libtool.m4: error: problem compiling CXX test program"
14546 fi
14547
14548 $RM -f confest.$objext
14549 CFLAGS=$_lt_libdeps_save_CFLAGS
14550
14551 # PORTME: override above test on systems where it is broken
14552 case $host_os in
14553 interix[3-9]*)
14554 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14555 # hack all around it, let's just trust "g++" to DTRT.
14556 predep_objects_CXX=
14557 postdep_objects_CXX=
14558 postdeps_CXX=
14559 ;;
14560
14561 linux*)
14562 case `$CC -V 2>&1 | sed 5q` in
14563 *Sun\ C*)
14564 # Sun C++ 5.9
14565
14566 # The more standards-conforming stlport4 library is
14567 # incompatible with the Cstd library. Avoid specifying
14568 # it if it's in CXXFLAGS. Ignore libCrun as
14569 # -library=stlport4 depends on it.
14570 case " $CXX $CXXFLAGS " in
14571 *" -library=stlport4 "*)
14572 solaris_use_stlport4=yes
14573 ;;
14574 esac
14575
14576 if test "$solaris_use_stlport4" != yes; then
14577 postdeps_CXX='-library=Cstd -library=Crun'
14578 fi
14579 ;;
14580 esac
14581 ;;
14582
14583 solaris*)
14584 case $cc_basename in
14585 CC* | sunCC*)
14586 # The more standards-conforming stlport4 library is
14587 # incompatible with the Cstd library. Avoid specifying
14588 # it if it's in CXXFLAGS. Ignore libCrun as
14589 # -library=stlport4 depends on it.
14590 case " $CXX $CXXFLAGS " in
14591 *" -library=stlport4 "*)
14592 solaris_use_stlport4=yes
14593 ;;
14594 esac
14595
14596 # Adding this requires a known-good setup of shared libraries for
14597 # Sun compiler versions before 5.6, else PIC objects from an old
14598 # archive will be linked into the output, leading to subtle bugs.
14599 if test "$solaris_use_stlport4" != yes; then
14600 postdeps_CXX='-library=Cstd -library=Crun'
14601 fi
14602 ;;
14603 esac
14604 ;;
14605 esac
14606
14607
14608 case " $postdeps_CXX " in
14609 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14610 esac
14611 compiler_lib_search_dirs_CXX=
14612 if test -n "${compiler_lib_search_path_CXX}"; then
14613 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14614 fi
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646 lt_prog_compiler_wl_CXX=
14647 lt_prog_compiler_pic_CXX=
14648 lt_prog_compiler_static_CXX=
14649
14650
14651 # C++ specific cases for pic, static, wl, etc.
14652 if test "$GXX" = yes; then
14653 lt_prog_compiler_wl_CXX='-Wl,'
14654 lt_prog_compiler_static_CXX='-static'
14655
14656 case $host_os in
14657 aix*)
14658 # All AIX code is PIC.
14659 if test "$host_cpu" = ia64; then
14660 # AIX 5 now supports IA64 processor
14661 lt_prog_compiler_static_CXX='-Bstatic'
14662 fi
14663 ;;
14664
14665 amigaos*)
14666 case $host_cpu in
14667 powerpc)
14668 # see comment about AmigaOS4 .so support
14669 lt_prog_compiler_pic_CXX='-fPIC'
14670 ;;
14671 m68k)
14672 # FIXME: we need at least 68020 code to build shared libraries, but
14673 # adding the `-m68020' flag to GCC prevents building anything better,
14674 # like `-m68040'.
14675 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14676 ;;
14677 esac
14678 ;;
14679
14680 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14681 # PIC is the default for these OSes.
14682 ;;
14683 mingw* | cygwin* | os2* | pw32* | cegcc*)
14684 # This hack is so that the source file can tell whether it is being
14685 # built for inclusion in a dll (and should export symbols for example).
14686 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14687 # (--disable-auto-import) libraries
14688 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14689 ;;
14690 darwin* | rhapsody*)
14691 # PIC is the default on this platform
14692 # Common symbols not allowed in MH_DYLIB files
14693 lt_prog_compiler_pic_CXX='-fno-common'
14694 ;;
14695 *djgpp*)
14696 # DJGPP does not support shared libraries at all
14697 lt_prog_compiler_pic_CXX=
14698 ;;
14699 haiku*)
14700 # PIC is the default for Haiku.
14701 # The "-static" flag exists, but is broken.
14702 lt_prog_compiler_static_CXX=
14703 ;;
14704 interix[3-9]*)
14705 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14706 # Instead, we relocate shared libraries at runtime.
14707 ;;
14708 sysv4*MP*)
14709 if test -d /usr/nec; then
14710 lt_prog_compiler_pic_CXX=-Kconform_pic
14711 fi
14712 ;;
14713 hpux*)
14714 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14715 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14716 # sets the default TLS model and affects inlining.
14717 case $host_cpu in
14718 hppa*64*)
14719 ;;
14720 *)
14721 lt_prog_compiler_pic_CXX='-fPIC'
14722 ;;
14723 esac
14724 ;;
14725 *qnx* | *nto*)
14726 # QNX uses GNU C++, but need to define -shared option too, otherwise
14727 # it will coredump.
14728 lt_prog_compiler_pic_CXX='-fPIC -shared'
14729 ;;
14730 *)
14731 lt_prog_compiler_pic_CXX='-fPIC'
14732 ;;
14733 esac
14734 else
14735 case $host_os in
14736 aix[4-9]*)
14737 # All AIX code is PIC.
14738 if test "$host_cpu" = ia64; then
14739 # AIX 5 now supports IA64 processor
14740 lt_prog_compiler_static_CXX='-Bstatic'
14741 else
14742 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14743 fi
14744 ;;
14745 chorus*)
14746 case $cc_basename in
14747 cxch68*)
14748 # Green Hills C++ Compiler
14749 # _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"
14750 ;;
14751 esac
14752 ;;
14753 mingw* | cygwin* | os2* | pw32* | cegcc*)
14754 # This hack is so that the source file can tell whether it is being
14755 # built for inclusion in a dll (and should export symbols for example).
14756 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14757 ;;
14758 dgux*)
14759 case $cc_basename in
14760 ec++*)
14761 lt_prog_compiler_pic_CXX='-KPIC'
14762 ;;
14763 ghcx*)
14764 # Green Hills C++ Compiler
14765 lt_prog_compiler_pic_CXX='-pic'
14766 ;;
14767 *)
14768 ;;
14769 esac
14770 ;;
14771 freebsd* | dragonfly*)
14772 # FreeBSD uses GNU C++
14773 ;;
14774 hpux9* | hpux10* | hpux11*)
14775 case $cc_basename in
14776 CC*)
14777 lt_prog_compiler_wl_CXX='-Wl,'
14778 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14779 if test "$host_cpu" != ia64; then
14780 lt_prog_compiler_pic_CXX='+Z'
14781 fi
14782 ;;
14783 aCC*)
14784 lt_prog_compiler_wl_CXX='-Wl,'
14785 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14786 case $host_cpu in
14787 hppa*64*|ia64*)
14788 # +Z the default
14789 ;;
14790 *)
14791 lt_prog_compiler_pic_CXX='+Z'
14792 ;;
14793 esac
14794 ;;
14795 *)
14796 ;;
14797 esac
14798 ;;
14799 interix*)
14800 # This is c89, which is MS Visual C++ (no shared libs)
14801 # Anyone wants to do a port?
14802 ;;
14803 irix5* | irix6* | nonstopux*)
14804 case $cc_basename in
14805 CC*)
14806 lt_prog_compiler_wl_CXX='-Wl,'
14807 lt_prog_compiler_static_CXX='-non_shared'
14808 # CC pic flag -KPIC is the default.
14809 ;;
14810 *)
14811 ;;
14812 esac
14813 ;;
14814 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14815 case $cc_basename in
14816 KCC*)
14817 # KAI C++ Compiler
14818 lt_prog_compiler_wl_CXX='--backend -Wl,'
14819 lt_prog_compiler_pic_CXX='-fPIC'
14820 ;;
14821 ecpc* )
14822 # old Intel C++ for x86_64 which still supported -KPIC.
14823 lt_prog_compiler_wl_CXX='-Wl,'
14824 lt_prog_compiler_pic_CXX='-KPIC'
14825 lt_prog_compiler_static_CXX='-static'
14826 ;;
14827 icpc* )
14828 # Intel C++, used to be incompatible with GCC.
14829 # ICC 10 doesn't accept -KPIC any more.
14830 lt_prog_compiler_wl_CXX='-Wl,'
14831 lt_prog_compiler_pic_CXX='-fPIC'
14832 lt_prog_compiler_static_CXX='-static'
14833 ;;
14834 pgCC* | pgcpp*)
14835 # Portland Group C++ compiler
14836 lt_prog_compiler_wl_CXX='-Wl,'
14837 lt_prog_compiler_pic_CXX='-fpic'
14838 lt_prog_compiler_static_CXX='-Bstatic'
14839 ;;
14840 cxx*)
14841 # Compaq C++
14842 # Make sure the PIC flag is empty. It appears that all Alpha
14843 # Linux and Compaq Tru64 Unix objects are PIC.
14844 lt_prog_compiler_pic_CXX=
14845 lt_prog_compiler_static_CXX='-non_shared'
14846 ;;
14847 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14848 # IBM XL 8.0, 9.0 on PPC and BlueGene
14849 lt_prog_compiler_wl_CXX='-Wl,'
14850 lt_prog_compiler_pic_CXX='-qpic'
14851 lt_prog_compiler_static_CXX='-qstaticlink'
14852 ;;
14853 *)
14854 case `$CC -V 2>&1 | sed 5q` in
14855 *Sun\ C*)
14856 # Sun C++ 5.9
14857 lt_prog_compiler_pic_CXX='-KPIC'
14858 lt_prog_compiler_static_CXX='-Bstatic'
14859 lt_prog_compiler_wl_CXX='-Qoption ld '
14860 ;;
14861 esac
14862 ;;
14863 esac
14864 ;;
14865 lynxos*)
14866 ;;
14867 m88k*)
14868 ;;
14869 mvs*)
14870 case $cc_basename in
14871 cxx*)
14872 lt_prog_compiler_pic_CXX='-W c,exportall'
14873 ;;
14874 *)
14875 ;;
14876 esac
14877 ;;
14878 netbsd* | netbsdelf*-gnu)
14879 ;;
14880 *qnx* | *nto*)
14881 # QNX uses GNU C++, but need to define -shared option too, otherwise
14882 # it will coredump.
14883 lt_prog_compiler_pic_CXX='-fPIC -shared'
14884 ;;
14885 osf3* | osf4* | osf5*)
14886 case $cc_basename in
14887 KCC*)
14888 lt_prog_compiler_wl_CXX='--backend -Wl,'
14889 ;;
14890 RCC*)
14891 # Rational C++ 2.4.1
14892 lt_prog_compiler_pic_CXX='-pic'
14893 ;;
14894 cxx*)
14895 # Digital/Compaq C++
14896 lt_prog_compiler_wl_CXX='-Wl,'
14897 # Make sure the PIC flag is empty. It appears that all Alpha
14898 # Linux and Compaq Tru64 Unix objects are PIC.
14899 lt_prog_compiler_pic_CXX=
14900 lt_prog_compiler_static_CXX='-non_shared'
14901 ;;
14902 *)
14903 ;;
14904 esac
14905 ;;
14906 psos*)
14907 ;;
14908 solaris*)
14909 case $cc_basename in
14910 CC* | sunCC*)
14911 # Sun C++ 4.2, 5.x and Centerline C++
14912 lt_prog_compiler_pic_CXX='-KPIC'
14913 lt_prog_compiler_static_CXX='-Bstatic'
14914 lt_prog_compiler_wl_CXX='-Qoption ld '
14915 ;;
14916 gcx*)
14917 # Green Hills C++ Compiler
14918 lt_prog_compiler_pic_CXX='-PIC'
14919 ;;
14920 *)
14921 ;;
14922 esac
14923 ;;
14924 sunos4*)
14925 case $cc_basename in
14926 CC*)
14927 # Sun C++ 4.x
14928 lt_prog_compiler_pic_CXX='-pic'
14929 lt_prog_compiler_static_CXX='-Bstatic'
14930 ;;
14931 lcc*)
14932 # Lucid
14933 lt_prog_compiler_pic_CXX='-pic'
14934 ;;
14935 *)
14936 ;;
14937 esac
14938 ;;
14939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14940 case $cc_basename in
14941 CC*)
14942 lt_prog_compiler_wl_CXX='-Wl,'
14943 lt_prog_compiler_pic_CXX='-KPIC'
14944 lt_prog_compiler_static_CXX='-Bstatic'
14945 ;;
14946 esac
14947 ;;
14948 tandem*)
14949 case $cc_basename in
14950 NCC*)
14951 # NonStop-UX NCC 3.20
14952 lt_prog_compiler_pic_CXX='-KPIC'
14953 ;;
14954 *)
14955 ;;
14956 esac
14957 ;;
14958 vxworks*)
14959 ;;
14960 *)
14961 lt_prog_compiler_can_build_shared_CXX=no
14962 ;;
14963 esac
14964 fi
14965
14966 case $host_os in
14967 # For platforms which do not support PIC, -DPIC is meaningless:
14968 *djgpp*)
14969 lt_prog_compiler_pic_CXX=
14970 ;;
14971 *)
14972 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14973 ;;
14974 esac
14975
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14977 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14978 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14979 $as_echo_n "(cached) " >&6
14980 else
14981 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14982 fi
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14984 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14985 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14986
14987 #
14988 # Check to make sure the PIC flag actually works.
14989 #
14990 if test -n "$lt_prog_compiler_pic_CXX"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14992 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14993 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14994 $as_echo_n "(cached) " >&6
14995 else
14996 lt_cv_prog_compiler_pic_works_CXX=no
14997 ac_outfile=conftest.$ac_objext
14998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14999 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15000 # Insert the option either (1) after the last *FLAGS variable, or
15001 # (2) before a word containing "conftest.", or (3) at the end.
15002 # Note that $ac_compile itself does not contain backslashes and begins
15003 # with a dollar sign (not a hyphen), so the echo should work correctly.
15004 # The option is referenced via a variable to avoid confusing sed.
15005 lt_compile=`echo "$ac_compile" | $SED \
15006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15008 -e 's:$: $lt_compiler_flag:'`
15009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15010 (eval "$lt_compile" 2>conftest.err)
15011 ac_status=$?
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 if (exit $ac_status) && test -s "$ac_outfile"; then
15015 # The compiler can only warn and ignore the option if not recognized
15016 # So say no if there are warnings other than the usual output.
15017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15020 lt_cv_prog_compiler_pic_works_CXX=yes
15021 fi
15022 fi
15023 $RM conftest*
15024
15025 fi
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15027 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15028
15029 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15030 case $lt_prog_compiler_pic_CXX in
15031 "" | " "*) ;;
15032 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15033 esac
15034 else
15035 lt_prog_compiler_pic_CXX=
15036 lt_prog_compiler_can_build_shared_CXX=no
15037 fi
15038
15039 fi
15040
15041
15042
15043
15044
15045 #
15046 # Check to make sure the static flag actually works.
15047 #
15048 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15050 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15051 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054 lt_cv_prog_compiler_static_works_CXX=no
15055 save_LDFLAGS="$LDFLAGS"
15056 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15057 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15058 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15059 # The linker can only warn and ignore the option if not recognized
15060 # So say no if there are warnings
15061 if test -s conftest.err; then
15062 # Append any errors to the config.log.
15063 cat conftest.err 1>&5
15064 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15066 if diff conftest.exp conftest.er2 >/dev/null; then
15067 lt_cv_prog_compiler_static_works_CXX=yes
15068 fi
15069 else
15070 lt_cv_prog_compiler_static_works_CXX=yes
15071 fi
15072 fi
15073 $RM -r conftest*
15074 LDFLAGS="$save_LDFLAGS"
15075
15076 fi
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15078 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15079
15080 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15081 :
15082 else
15083 lt_prog_compiler_static_CXX=
15084 fi
15085
15086
15087
15088
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15090 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15091 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 lt_cv_prog_compiler_c_o_CXX=no
15095 $RM -r conftest 2>/dev/null
15096 mkdir conftest
15097 cd conftest
15098 mkdir out
15099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15100
15101 lt_compiler_flag="-o out/conftest2.$ac_objext"
15102 # Insert the option either (1) after the last *FLAGS variable, or
15103 # (2) before a word containing "conftest.", or (3) at the end.
15104 # Note that $ac_compile itself does not contain backslashes and begins
15105 # with a dollar sign (not a hyphen), so the echo should work correctly.
15106 lt_compile=`echo "$ac_compile" | $SED \
15107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15109 -e 's:$: $lt_compiler_flag:'`
15110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15111 (eval "$lt_compile" 2>out/conftest.err)
15112 ac_status=$?
15113 cat out/conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15116 then
15117 # The compiler can only warn and ignore the option if not recognized
15118 # So say no if there are warnings
15119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15122 lt_cv_prog_compiler_c_o_CXX=yes
15123 fi
15124 fi
15125 chmod u+w . 2>&5
15126 $RM conftest*
15127 # SGI C++ compiler will create directory out/ii_files/ for
15128 # template instantiation
15129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15130 $RM out/* && rmdir out
15131 cd ..
15132 $RM -r conftest
15133 $RM conftest*
15134
15135 fi
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15137 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15138
15139
15140
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15143 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 lt_cv_prog_compiler_c_o_CXX=no
15147 $RM -r conftest 2>/dev/null
15148 mkdir conftest
15149 cd conftest
15150 mkdir out
15151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15152
15153 lt_compiler_flag="-o out/conftest2.$ac_objext"
15154 # Insert the option either (1) after the last *FLAGS variable, or
15155 # (2) before a word containing "conftest.", or (3) at the end.
15156 # Note that $ac_compile itself does not contain backslashes and begins
15157 # with a dollar sign (not a hyphen), so the echo should work correctly.
15158 lt_compile=`echo "$ac_compile" | $SED \
15159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15161 -e 's:$: $lt_compiler_flag:'`
15162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15163 (eval "$lt_compile" 2>out/conftest.err)
15164 ac_status=$?
15165 cat out/conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15168 then
15169 # The compiler can only warn and ignore the option if not recognized
15170 # So say no if there are warnings
15171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15174 lt_cv_prog_compiler_c_o_CXX=yes
15175 fi
15176 fi
15177 chmod u+w . 2>&5
15178 $RM conftest*
15179 # SGI C++ compiler will create directory out/ii_files/ for
15180 # template instantiation
15181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15182 $RM out/* && rmdir out
15183 cd ..
15184 $RM -r conftest
15185 $RM conftest*
15186
15187 fi
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15189 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15190
15191
15192
15193
15194 hard_links="nottested"
15195 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15196 # do not overwrite the value of need_locks provided by the user
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15198 $as_echo_n "checking if we can lock with hard links... " >&6; }
15199 hard_links=yes
15200 $RM conftest*
15201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15202 touch conftest.a
15203 ln conftest.a conftest.b 2>&5 || hard_links=no
15204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15206 $as_echo "$hard_links" >&6; }
15207 if test "$hard_links" = no; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15209 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15210 need_locks=warn
15211 fi
15212 else
15213 need_locks=no
15214 fi
15215
15216
15217
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15219 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15220
15221 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15222 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15223 case $host_os in
15224 aix[4-9]*)
15225 # If we're using GNU nm, then we don't want the "-C" option.
15226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15227 # Also, AIX nm treats weak defined symbols like other global defined
15228 # symbols, whereas GNU nm marks them as "W".
15229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15230 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'
15231 else
15232 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'
15233 fi
15234 ;;
15235 pw32*)
15236 export_symbols_cmds_CXX="$ltdll_cmds"
15237 ;;
15238 cygwin* | mingw* | cegcc*)
15239 case $cc_basename in
15240 cl*)
15241 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15242 ;;
15243 *)
15244 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'
15245 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15246 ;;
15247 esac
15248 ;;
15249 linux* | k*bsd*-gnu | gnu*)
15250 link_all_deplibs_CXX=no
15251 ;;
15252 *)
15253 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15254 ;;
15255 esac
15256
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15258 $as_echo "$ld_shlibs_CXX" >&6; }
15259 test "$ld_shlibs_CXX" = no && can_build_shared=no
15260
15261 with_gnu_ld_CXX=$with_gnu_ld
15262
15263
15264
15265
15266
15267
15268 #
15269 # Do we need to explicitly link libc?
15270 #
15271 case "x$archive_cmds_need_lc_CXX" in
15272 x|xyes)
15273 # Assume -lc should be added
15274 archive_cmds_need_lc_CXX=yes
15275
15276 if test "$enable_shared" = yes && test "$GCC" = yes; then
15277 case $archive_cmds_CXX in
15278 *'~'*)
15279 # FIXME: we may have to deal with multi-command sequences.
15280 ;;
15281 '$CC '*)
15282 # Test whether the compiler implicitly links with -lc since on some
15283 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15284 # to ld, don't add -lc before -lgcc.
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15286 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15287 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 $RM conftest*
15291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15292
15293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15294 (eval $ac_compile) 2>&5
15295 ac_status=$?
15296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15297 test $ac_status = 0; } 2>conftest.err; then
15298 soname=conftest
15299 lib=conftest
15300 libobjs=conftest.$ac_objext
15301 deplibs=
15302 wl=$lt_prog_compiler_wl_CXX
15303 pic_flag=$lt_prog_compiler_pic_CXX
15304 compiler_flags=-v
15305 linker_flags=-v
15306 verstring=
15307 output_objdir=.
15308 libname=conftest
15309 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15310 allow_undefined_flag_CXX=
15311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15312 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15313 ac_status=$?
15314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15315 test $ac_status = 0; }
15316 then
15317 lt_cv_archive_cmds_need_lc_CXX=no
15318 else
15319 lt_cv_archive_cmds_need_lc_CXX=yes
15320 fi
15321 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15322 else
15323 cat conftest.err 1>&5
15324 fi
15325 $RM conftest*
15326
15327 fi
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15329 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15330 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15331 ;;
15332 esac
15333 fi
15334 ;;
15335 esac
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15399 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15400
15401 library_names_spec=
15402 libname_spec='lib$name'
15403 soname_spec=
15404 shrext_cmds=".so"
15405 postinstall_cmds=
15406 postuninstall_cmds=
15407 finish_cmds=
15408 finish_eval=
15409 shlibpath_var=
15410 shlibpath_overrides_runpath=unknown
15411 version_type=none
15412 dynamic_linker="$host_os ld.so"
15413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15414 need_lib_prefix=unknown
15415 hardcode_into_libs=no
15416
15417 # when you set need_version to no, make sure it does not cause -set_version
15418 # flags to be left without arguments
15419 need_version=unknown
15420
15421 case $host_os in
15422 aix3*)
15423 version_type=linux # correct to gnu/linux during the next big refactor
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15425 shlibpath_var=LIBPATH
15426
15427 # AIX 3 has no versioning support, so we append a major version to the name.
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 ;;
15430
15431 aix[4-9]*)
15432 version_type=linux # correct to gnu/linux during the next big refactor
15433 need_lib_prefix=no
15434 need_version=no
15435 hardcode_into_libs=yes
15436 if test "$host_cpu" = ia64; then
15437 # AIX 5 supports IA64
15438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 else
15441 # With GCC up to 2.95.x, collect2 would create an import file
15442 # for dependence libraries. The import file would start with
15443 # the line `#! .'. This would cause the generated library to
15444 # depend on `.', always an invalid library. This was fixed in
15445 # development snapshots of GCC prior to 3.0.
15446 case $host_os in
15447 aix4 | aix4.[01] | aix4.[01].*)
15448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15449 echo ' yes '
15450 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15451 :
15452 else
15453 can_build_shared=no
15454 fi
15455 ;;
15456 esac
15457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15458 # soname into executable. Probably we can add versioning support to
15459 # collect2, so additional links can be useful in future.
15460 if test "$aix_use_runtimelinking" = yes; then
15461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15462 # instead of lib<name>.a to let people know that these are not
15463 # typical AIX shared libraries.
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15465 else
15466 # We preserve .a as extension for shared libraries through AIX4.2
15467 # and later when we are not doing run time linking.
15468 library_names_spec='${libname}${release}.a $libname.a'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 fi
15471 shlibpath_var=LIBPATH
15472 fi
15473 ;;
15474
15475 amigaos*)
15476 case $host_cpu in
15477 powerpc)
15478 # Since July 2007 AmigaOS4 officially supports .so libraries.
15479 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481 ;;
15482 m68k)
15483 library_names_spec='$libname.ixlibrary $libname.a'
15484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15485 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'
15486 ;;
15487 esac
15488 ;;
15489
15490 beos*)
15491 library_names_spec='${libname}${shared_ext}'
15492 dynamic_linker="$host_os ld.so"
15493 shlibpath_var=LIBRARY_PATH
15494 ;;
15495
15496 bsdi[45]*)
15497 version_type=linux # correct to gnu/linux during the next big refactor
15498 need_version=no
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15505 # the default ld.so.conf also contains /usr/contrib/lib and
15506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15507 # libtool to hard-code these into programs
15508 ;;
15509
15510 cygwin* | mingw* | pw32* | cegcc*)
15511 version_type=windows
15512 shrext_cmds=".dll"
15513 need_version=no
15514 need_lib_prefix=no
15515
15516 case $GCC,$cc_basename in
15517 yes,*)
15518 # gcc
15519 library_names_spec='$libname.dll.a'
15520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15521 postinstall_cmds='base_file=`basename \${file}`~
15522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15523 dldir=$destdir/`dirname \$dlpath`~
15524 test -d \$dldir || mkdir -p \$dldir~
15525 $install_prog $dir/$dlname \$dldir/$dlname~
15526 chmod a+x \$dldir/$dlname~
15527 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15528 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15529 fi'
15530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15531 dlpath=$dir/\$dldll~
15532 $RM \$dlpath'
15533 shlibpath_overrides_runpath=yes
15534
15535 case $host_os in
15536 cygwin*)
15537 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15539
15540 ;;
15541 mingw* | cegcc*)
15542 # MinGW DLLs use traditional 'lib' prefix
15543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15544 ;;
15545 pw32*)
15546 # pw32 DLLs use 'pw' prefix rather than 'lib'
15547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15548 ;;
15549 esac
15550 dynamic_linker='Win32 ld.exe'
15551 ;;
15552
15553 *,cl*)
15554 # Native MSVC
15555 libname_spec='$name'
15556 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15557 library_names_spec='${libname}.dll.lib'
15558
15559 case $build_os in
15560 mingw*)
15561 sys_lib_search_path_spec=
15562 lt_save_ifs=$IFS
15563 IFS=';'
15564 for lt_path in $LIB
15565 do
15566 IFS=$lt_save_ifs
15567 # Let DOS variable expansion print the short 8.3 style file name.
15568 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15569 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15570 done
15571 IFS=$lt_save_ifs
15572 # Convert to MSYS style.
15573 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15574 ;;
15575 cygwin*)
15576 # Convert to unix form, then to dos form, then back to unix form
15577 # but this time dos style (no spaces!) so that the unix form looks
15578 # like /cygdrive/c/PROGRA~1:/cygdr...
15579 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15580 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15581 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15582 ;;
15583 *)
15584 sys_lib_search_path_spec="$LIB"
15585 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15586 # It is most probably a Windows format PATH.
15587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15588 else
15589 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15590 fi
15591 # FIXME: find the short name or the path components, as spaces are
15592 # common. (e.g. "Program Files" -> "PROGRA~1")
15593 ;;
15594 esac
15595
15596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15597 postinstall_cmds='base_file=`basename \${file}`~
15598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15599 dldir=$destdir/`dirname \$dlpath`~
15600 test -d \$dldir || mkdir -p \$dldir~
15601 $install_prog $dir/$dlname \$dldir/$dlname'
15602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15603 dlpath=$dir/\$dldll~
15604 $RM \$dlpath'
15605 shlibpath_overrides_runpath=yes
15606 dynamic_linker='Win32 link.exe'
15607 ;;
15608
15609 *)
15610 # Assume MSVC wrapper
15611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15612 dynamic_linker='Win32 ld.exe'
15613 ;;
15614 esac
15615 # FIXME: first we should search . and the directory the executable is in
15616 shlibpath_var=PATH
15617 ;;
15618
15619 darwin* | rhapsody*)
15620 dynamic_linker="$host_os dyld"
15621 version_type=darwin
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15625 soname_spec='${libname}${release}${major}$shared_ext'
15626 shlibpath_overrides_runpath=yes
15627 shlibpath_var=DYLD_LIBRARY_PATH
15628 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15629
15630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15631 ;;
15632
15633 dgux*)
15634 version_type=linux # correct to gnu/linux during the next big refactor
15635 need_lib_prefix=no
15636 need_version=no
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 ;;
15641
15642 freebsd* | dragonfly*)
15643 # DragonFly does not have aout. When/if they implement a new
15644 # versioning mechanism, adjust this.
15645 if test -x /usr/bin/objformat; then
15646 objformat=`/usr/bin/objformat`
15647 else
15648 case $host_os in
15649 freebsd[23].*) objformat=aout ;;
15650 *) objformat=elf ;;
15651 esac
15652 fi
15653 version_type=freebsd-$objformat
15654 case $version_type in
15655 freebsd-elf*)
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15657 need_version=no
15658 need_lib_prefix=no
15659 ;;
15660 freebsd-*)
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15662 need_version=yes
15663 ;;
15664 esac
15665 shlibpath_var=LD_LIBRARY_PATH
15666 case $host_os in
15667 freebsd2.*)
15668 shlibpath_overrides_runpath=yes
15669 ;;
15670 freebsd3.[01]* | freebsdelf3.[01]*)
15671 shlibpath_overrides_runpath=yes
15672 hardcode_into_libs=yes
15673 ;;
15674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15676 shlibpath_overrides_runpath=no
15677 hardcode_into_libs=yes
15678 ;;
15679 *) # from 4.6 on, and DragonFly
15680 shlibpath_overrides_runpath=yes
15681 hardcode_into_libs=yes
15682 ;;
15683 esac
15684 ;;
15685
15686 haiku*)
15687 version_type=linux # correct to gnu/linux during the next big refactor
15688 need_lib_prefix=no
15689 need_version=no
15690 dynamic_linker="$host_os runtime_loader"
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LIBRARY_PATH
15694 shlibpath_overrides_runpath=yes
15695 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15696 hardcode_into_libs=yes
15697 ;;
15698
15699 hpux9* | hpux10* | hpux11*)
15700 # Give a soname corresponding to the major version so that dld.sl refuses to
15701 # link against other versions.
15702 version_type=sunos
15703 need_lib_prefix=no
15704 need_version=no
15705 case $host_cpu in
15706 ia64*)
15707 shrext_cmds='.so'
15708 hardcode_into_libs=yes
15709 dynamic_linker="$host_os dld.so"
15710 shlibpath_var=LD_LIBRARY_PATH
15711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 if test "X$HPUX_IA64_MODE" = X32; then
15715 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15716 else
15717 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15718 fi
15719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15720 ;;
15721 hppa*64*)
15722 shrext_cmds='.sl'
15723 hardcode_into_libs=yes
15724 dynamic_linker="$host_os dld.sl"
15725 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15731 ;;
15732 *)
15733 shrext_cmds='.sl'
15734 dynamic_linker="$host_os dld.sl"
15735 shlibpath_var=SHLIB_PATH
15736 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 ;;
15740 esac
15741 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15742 postinstall_cmds='chmod 555 $lib'
15743 # or fails outright, so override atomically:
15744 install_override_mode=555
15745 ;;
15746
15747 interix[3-9]*)
15748 version_type=linux # correct to gnu/linux during the next big refactor
15749 need_lib_prefix=no
15750 need_version=no
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15754 shlibpath_var=LD_LIBRARY_PATH
15755 shlibpath_overrides_runpath=no
15756 hardcode_into_libs=yes
15757 ;;
15758
15759 irix5* | irix6* | nonstopux*)
15760 case $host_os in
15761 nonstopux*) version_type=nonstopux ;;
15762 *)
15763 if test "$lt_cv_prog_gnu_ld" = yes; then
15764 version_type=linux # correct to gnu/linux during the next big refactor
15765 else
15766 version_type=irix
15767 fi ;;
15768 esac
15769 need_lib_prefix=no
15770 need_version=no
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15773 case $host_os in
15774 irix5* | nonstopux*)
15775 libsuff= shlibsuff=
15776 ;;
15777 *)
15778 case $LD in # libtool.m4 will add one of these switches to LD
15779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15780 libsuff= shlibsuff= libmagic=32-bit;;
15781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15782 libsuff=32 shlibsuff=N32 libmagic=N32;;
15783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15784 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15785 *) libsuff= shlibsuff= libmagic=never-match;;
15786 esac
15787 ;;
15788 esac
15789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15790 shlibpath_overrides_runpath=no
15791 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15792 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15793 hardcode_into_libs=yes
15794 ;;
15795
15796 # No shared lib support for Linux oldld, aout, or coff.
15797 linux*oldld* | linux*aout* | linux*coff*)
15798 dynamic_linker=no
15799 ;;
15800
15801 # This must be glibc/ELF.
15802 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15803 version_type=linux # correct to gnu/linux during the next big refactor
15804 need_lib_prefix=no
15805 need_version=no
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15807 soname_spec='${libname}${release}${shared_ext}$major'
15808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15809 shlibpath_var=LD_LIBRARY_PATH
15810 shlibpath_overrides_runpath=no
15811
15812 # Some binutils ld are patched to set DT_RUNPATH
15813 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 lt_cv_shlibpath_overrides_runpath=no
15817 save_LDFLAGS=$LDFLAGS
15818 save_libdir=$libdir
15819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823
15824 int
15825 main ()
15826 {
15827
15828 ;
15829 return 0;
15830 }
15831 _ACEOF
15832 if ac_fn_cxx_try_link "$LINENO"; then :
15833 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15834 lt_cv_shlibpath_overrides_runpath=yes
15835 fi
15836 fi
15837 rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15839 LDFLAGS=$save_LDFLAGS
15840 libdir=$save_libdir
15841
15842 fi
15843
15844 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15845
15846 # This implies no fast_install, which is unacceptable.
15847 # Some rework will be needed to allow for fast_install
15848 # before this can be enabled.
15849 hardcode_into_libs=yes
15850
15851 # Append ld.so.conf contents to the search path
15852 if test -f /etc/ld.so.conf; then
15853 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' ' '`
15854 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15855 fi
15856
15857 # We used to test for /lib/ld.so.1 and disable shared libraries on
15858 # powerpc, because MkLinux only supported shared libraries with the
15859 # GNU dynamic linker. Since this was broken with cross compilers,
15860 # most powerpc-linux boxes support dynamic linking these days and
15861 # people can always --disable-shared, the test was removed, and we
15862 # assume the GNU/Linux dynamic linker is in use.
15863 dynamic_linker='GNU/Linux ld.so'
15864 ;;
15865
15866 netbsdelf*-gnu)
15867 version_type=linux
15868 need_lib_prefix=no
15869 need_version=no
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15871 soname_spec='${libname}${release}${shared_ext}$major'
15872 shlibpath_var=LD_LIBRARY_PATH
15873 shlibpath_overrides_runpath=no
15874 hardcode_into_libs=yes
15875 dynamic_linker='NetBSD ld.elf_so'
15876 ;;
15877
15878 netbsd*)
15879 version_type=sunos
15880 need_lib_prefix=no
15881 need_version=no
15882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15885 dynamic_linker='NetBSD (a.out) ld.so'
15886 else
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15888 soname_spec='${libname}${release}${shared_ext}$major'
15889 dynamic_linker='NetBSD ld.elf_so'
15890 fi
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=yes
15893 hardcode_into_libs=yes
15894 ;;
15895
15896 newsos6)
15897 version_type=linux # correct to gnu/linux during the next big refactor
15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 shlibpath_overrides_runpath=yes
15901 ;;
15902
15903 *nto* | *qnx*)
15904 version_type=qnx
15905 need_lib_prefix=no
15906 need_version=no
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=no
15911 hardcode_into_libs=yes
15912 dynamic_linker='ldqnx.so'
15913 ;;
15914
15915 openbsd*)
15916 version_type=sunos
15917 sys_lib_dlsearch_path_spec="/usr/lib"
15918 need_lib_prefix=no
15919 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15920 case $host_os in
15921 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15922 *) need_version=no ;;
15923 esac
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15928 case $host_os in
15929 openbsd2.[89] | openbsd2.[89].*)
15930 shlibpath_overrides_runpath=no
15931 ;;
15932 *)
15933 shlibpath_overrides_runpath=yes
15934 ;;
15935 esac
15936 else
15937 shlibpath_overrides_runpath=yes
15938 fi
15939 ;;
15940
15941 os2*)
15942 libname_spec='$name'
15943 shrext_cmds=".dll"
15944 need_lib_prefix=no
15945 library_names_spec='$libname${shared_ext} $libname.a'
15946 dynamic_linker='OS/2 ld.exe'
15947 shlibpath_var=LIBPATH
15948 ;;
15949
15950 osf3* | osf4* | osf5*)
15951 version_type=osf
15952 need_lib_prefix=no
15953 need_version=no
15954 soname_spec='${libname}${release}${shared_ext}$major'
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15958 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15959 ;;
15960
15961 rdos*)
15962 dynamic_linker=no
15963 ;;
15964
15965 solaris*)
15966 version_type=linux # correct to gnu/linux during the next big refactor
15967 need_lib_prefix=no
15968 need_version=no
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 shlibpath_var=LD_LIBRARY_PATH
15972 shlibpath_overrides_runpath=yes
15973 hardcode_into_libs=yes
15974 # ldd complains unless libraries are executable
15975 postinstall_cmds='chmod +x $lib'
15976 ;;
15977
15978 sunos4*)
15979 version_type=sunos
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15982 shlibpath_var=LD_LIBRARY_PATH
15983 shlibpath_overrides_runpath=yes
15984 if test "$with_gnu_ld" = yes; then
15985 need_lib_prefix=no
15986 fi
15987 need_version=yes
15988 ;;
15989
15990 sysv4 | sysv4.3*)
15991 version_type=linux # correct to gnu/linux during the next big refactor
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 case $host_vendor in
15996 sni)
15997 shlibpath_overrides_runpath=no
15998 need_lib_prefix=no
15999 runpath_var=LD_RUN_PATH
16000 ;;
16001 siemens)
16002 need_lib_prefix=no
16003 ;;
16004 motorola)
16005 need_lib_prefix=no
16006 need_version=no
16007 shlibpath_overrides_runpath=no
16008 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16009 ;;
16010 esac
16011 ;;
16012
16013 sysv4*MP*)
16014 if test -d /usr/nec ;then
16015 version_type=linux # correct to gnu/linux during the next big refactor
16016 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16017 soname_spec='$libname${shared_ext}.$major'
16018 shlibpath_var=LD_LIBRARY_PATH
16019 fi
16020 ;;
16021
16022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16023 version_type=freebsd-elf
16024 need_lib_prefix=no
16025 need_version=no
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 shlibpath_var=LD_LIBRARY_PATH
16029 shlibpath_overrides_runpath=yes
16030 hardcode_into_libs=yes
16031 if test "$with_gnu_ld" = yes; then
16032 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16033 else
16034 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16035 case $host_os in
16036 sco3.2v5*)
16037 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16038 ;;
16039 esac
16040 fi
16041 sys_lib_dlsearch_path_spec='/usr/lib'
16042 ;;
16043
16044 tpf*)
16045 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16046 version_type=linux # correct to gnu/linux during the next big refactor
16047 need_lib_prefix=no
16048 need_version=no
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=no
16052 hardcode_into_libs=yes
16053 ;;
16054
16055 uts4*)
16056 version_type=linux # correct to gnu/linux during the next big refactor
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 soname_spec='${libname}${release}${shared_ext}$major'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 ;;
16061
16062 *)
16063 dynamic_linker=no
16064 ;;
16065 esac
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16067 $as_echo "$dynamic_linker" >&6; }
16068 test "$dynamic_linker" = no && can_build_shared=no
16069
16070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16071 if test "$GCC" = yes; then
16072 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16073 fi
16074
16075 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16076 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16077 fi
16078 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16079 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16080 fi
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16121 hardcode_action_CXX=
16122 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16123 test -n "$runpath_var_CXX" ||
16124 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16125
16126 # We can hardcode non-existent directories.
16127 if test "$hardcode_direct_CXX" != no &&
16128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16129 # have to relink, otherwise we might link with an installed library
16130 # when we should be linking with a yet-to-be-installed one
16131 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16132 test "$hardcode_minus_L_CXX" != no; then
16133 # Linking always hardcodes the temporary library directory.
16134 hardcode_action_CXX=relink
16135 else
16136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16137 hardcode_action_CXX=immediate
16138 fi
16139 else
16140 # We cannot hardcode anything, or else we can only hardcode existing
16141 # directories.
16142 hardcode_action_CXX=unsupported
16143 fi
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16145 $as_echo "$hardcode_action_CXX" >&6; }
16146
16147 if test "$hardcode_action_CXX" = relink ||
16148 test "$inherit_rpath_CXX" = yes; then
16149 # Fast installation is not supported
16150 enable_fast_install=no
16151 elif test "$shlibpath_overrides_runpath" = yes ||
16152 test "$enable_shared" = no; then
16153 # Fast installation is not necessary
16154 enable_fast_install=needless
16155 fi
16156
16157
16158
16159
16160
16161
16162
16163 fi # test -n "$compiler"
16164
16165 CC=$lt_save_CC
16166 CFLAGS=$lt_save_CFLAGS
16167 LDCXX=$LD
16168 LD=$lt_save_LD
16169 GCC=$lt_save_GCC
16170 with_gnu_ld=$lt_save_with_gnu_ld
16171 lt_cv_path_LDCXX=$lt_cv_path_LD
16172 lt_cv_path_LD=$lt_save_path_LD
16173 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16174 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16175 fi # test "$_lt_caught_CXX_error" != yes
16176
16177 ac_ext=c
16178 ac_cpp='$CPP $CPPFLAGS'
16179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16182
16183
16184
16185
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16187 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16188 if ${ac_cv_c_const+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16193
16194 int
16195 main ()
16196 {
16197
16198 #ifndef __cplusplus
16199 /* Ultrix mips cc rejects this sort of thing. */
16200 typedef int charset[2];
16201 const charset cs = { 0, 0 };
16202 /* SunOS 4.1.1 cc rejects this. */
16203 char const *const *pcpcc;
16204 char **ppc;
16205 /* NEC SVR4.0.2 mips cc rejects this. */
16206 struct point {int x, y;};
16207 static struct point const zero = {0,0};
16208 /* AIX XL C 1.02.0.0 rejects this.
16209 It does not let you subtract one const X* pointer from another in
16210 an arm of an if-expression whose if-part is not a constant
16211 expression */
16212 const char *g = "string";
16213 pcpcc = &g + (g ? g-g : 0);
16214 /* HPUX 7.0 cc rejects these. */
16215 ++pcpcc;
16216 ppc = (char**) pcpcc;
16217 pcpcc = (char const *const *) ppc;
16218 { /* SCO 3.2v4 cc rejects this sort of thing. */
16219 char tx;
16220 char *t = &tx;
16221 char const *s = 0 ? (char *) 0 : (char const *) 0;
16222
16223 *t++ = 0;
16224 if (s) return 0;
16225 }
16226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16227 int x[] = {25, 17};
16228 const int *foo = &x[0];
16229 ++foo;
16230 }
16231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16232 typedef const int *iptr;
16233 iptr p = 0;
16234 ++p;
16235 }
16236 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16238 struct s { int j; const int *ap[3]; } bx;
16239 struct s *b = &bx; b->j = 5;
16240 }
16241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16242 const int foo = 10;
16243 if (!foo) return 0;
16244 }
16245 return !cs[0] && !zero.x;
16246 #endif
16247
16248 ;
16249 return 0;
16250 }
16251 _ACEOF
16252 if ac_fn_c_try_compile "$LINENO"; then :
16253 ac_cv_c_const=yes
16254 else
16255 ac_cv_c_const=no
16256 fi
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 fi
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16260 $as_echo "$ac_cv_c_const" >&6; }
16261 if test $ac_cv_c_const = no; then
16262
16263 $as_echo "#define const /**/" >>confdefs.h
16264
16265 fi
16266
16267
16268 ac_ext=c
16269 ac_cpp='$CPP $CPPFLAGS'
16270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16273
16274
16275 case "$target" in
16276 *-*-cygwin* | *-*-mingw32*)
16277 CFLAGS="$CFLAGS -DWIN32"
16278 if test "$build" != "$target"; then # cross-compiling
16279 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
16280 fi
16281 ;;
16282 *)
16283 ;;
16284 esac
16285
16286 case "$target" in
16287 *-*-cygwin* | *-*-mingw32*)
16288 MATHLIB=""
16289 ;;
16290 *-*-beos* | *-*-haiku*)
16291 MATHLIB=""
16292 ;;
16293 *-*-darwin*)
16294 MATHLIB=""
16295 ;;
16296 *-*-aix*)
16297 MATHLIB="-lm"
16298 if test x$ac_cv_c_compiler_gnu = xyes; then
16299 CFLAGS="-mthreads"
16300 fi
16301 ;;
16302 *)
16303 MATHLIB="-lm"
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16305 $as_echo_n "checking for X... " >&6; }
16306
16307
16308 # Check whether --with-x was given.
16309 if test "${with_x+set}" = set; then :
16310 withval=$with_x;
16311 fi
16312
16313 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16314 if test "x$with_x" = xno; then
16315 # The user explicitly disabled X.
16316 have_x=disabled
16317 else
16318 case $x_includes,$x_libraries in #(
16319 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
16320 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 # One or both of the vars are not set, and there is no cached value.
16324 ac_x_includes=no ac_x_libraries=no
16325 rm -f -r conftest.dir
16326 if mkdir conftest.dir; then
16327 cd conftest.dir
16328 cat >Imakefile <<'_ACEOF'
16329 incroot:
16330 @echo incroot='${INCROOT}'
16331 usrlibdir:
16332 @echo usrlibdir='${USRLIBDIR}'
16333 libdir:
16334 @echo libdir='${LIBDIR}'
16335 _ACEOF
16336 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16337 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16338 for ac_var in incroot usrlibdir libdir; do
16339 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16340 done
16341 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16342 for ac_extension in a so sl dylib la dll; do
16343 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16344 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16345 ac_im_usrlibdir=$ac_im_libdir; break
16346 fi
16347 done
16348 # Screen out bogus values from the imake configuration. They are
16349 # bogus both because they are the default anyway, and because
16350 # using them would break gcc on systems where it needs fixed includes.
16351 case $ac_im_incroot in
16352 /usr/include) ac_x_includes= ;;
16353 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16354 esac
16355 case $ac_im_usrlibdir in
16356 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16357 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16358 esac
16359 fi
16360 cd ..
16361 rm -f -r conftest.dir
16362 fi
16363
16364 # Standard set of common directories for X headers.
16365 # Check X11 before X11Rn because it is often a symlink to the current release.
16366 ac_x_header_dirs='
16367 /usr/X11/include
16368 /usr/X11R7/include
16369 /usr/X11R6/include
16370 /usr/X11R5/include
16371 /usr/X11R4/include
16372
16373 /usr/include/X11
16374 /usr/include/X11R7
16375 /usr/include/X11R6
16376 /usr/include/X11R5
16377 /usr/include/X11R4
16378
16379 /usr/local/X11/include
16380 /usr/local/X11R7/include
16381 /usr/local/X11R6/include
16382 /usr/local/X11R5/include
16383 /usr/local/X11R4/include
16384
16385 /usr/local/include/X11
16386 /usr/local/include/X11R7
16387 /usr/local/include/X11R6
16388 /usr/local/include/X11R5
16389 /usr/local/include/X11R4
16390
16391 /usr/X386/include
16392 /usr/x386/include
16393 /usr/XFree86/include/X11
16394
16395 /usr/include
16396 /usr/local/include
16397 /usr/unsupported/include
16398 /usr/athena/include
16399 /usr/local/x11r5/include
16400 /usr/lpp/Xamples/include
16401
16402 /usr/openwin/include
16403 /usr/openwin/share/include'
16404
16405 if test "$ac_x_includes" = no; then
16406 # Guess where to find include files, by looking for Xlib.h.
16407 # First, try using that file with no special directory specified.
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16410 #include <X11/Xlib.h>
16411 _ACEOF
16412 if ac_fn_c_try_cpp "$LINENO"; then :
16413 # We can compile using X headers with no special include directory.
16414 ac_x_includes=
16415 else
16416 for ac_dir in $ac_x_header_dirs; do
16417 if test -r "$ac_dir/X11/Xlib.h"; then
16418 ac_x_includes=$ac_dir
16419 break
16420 fi
16421 done
16422 fi
16423 rm -f conftest.err conftest.i conftest.$ac_ext
16424 fi # $ac_x_includes = no
16425
16426 if test "$ac_x_libraries" = no; then
16427 # Check for the libraries.
16428 # See if we find them without any special options.
16429 # Don't add to $LIBS permanently.
16430 ac_save_LIBS=$LIBS
16431 LIBS="-lX11 $LIBS"
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 #include <X11/Xlib.h>
16435 int
16436 main ()
16437 {
16438 XrmInitialize ()
16439 ;
16440 return 0;
16441 }
16442 _ACEOF
16443 if ac_fn_c_try_link "$LINENO"; then :
16444 LIBS=$ac_save_LIBS
16445 # We can link X programs with no special library path.
16446 ac_x_libraries=
16447 else
16448 LIBS=$ac_save_LIBS
16449 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16450 do
16451 # Don't even attempt the hair of trying to link an X program!
16452 for ac_extension in a so sl dylib la dll; do
16453 if test -r "$ac_dir/libX11.$ac_extension"; then
16454 ac_x_libraries=$ac_dir
16455 break 2
16456 fi
16457 done
16458 done
16459 fi
16460 rm -f core conftest.err conftest.$ac_objext \
16461 conftest$ac_exeext conftest.$ac_ext
16462 fi # $ac_x_libraries = no
16463
16464 case $ac_x_includes,$ac_x_libraries in #(
16465 no,* | *,no | *\'*)
16466 # Didn't find X, or a directory has "'" in its name.
16467 ac_cv_have_x="have_x=no";; #(
16468 *)
16469 # Record where we found X for the cache.
16470 ac_cv_have_x="have_x=yes\
16471 ac_x_includes='$ac_x_includes'\
16472 ac_x_libraries='$ac_x_libraries'"
16473 esac
16474 fi
16475 ;; #(
16476 *) have_x=yes;;
16477 esac
16478 eval "$ac_cv_have_x"
16479 fi # $with_x != no
16480
16481 if test "$have_x" != yes; then
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16483 $as_echo "$have_x" >&6; }
16484 no_x=yes
16485 else
16486 # If each of the values was on the command line, it overrides each guess.
16487 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16488 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16489 # Update the cache value to reflect the command line values.
16490 ac_cv_have_x="have_x=yes\
16491 ac_x_includes='$x_includes'\
16492 ac_x_libraries='$x_libraries'"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16494 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16495 fi
16496
16497 if test "$no_x" = yes; then
16498 # Not all programs may use this symbol, but it does not hurt to define it.
16499
16500 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
16501
16502 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
16503 else
16504 if test -n "$x_includes"; then
16505 X_CFLAGS="$X_CFLAGS -I$x_includes"
16506 fi
16507
16508 # It would also be nice to do this for all -L options, not just this one.
16509 if test -n "$x_libraries"; then
16510 X_LIBS="$X_LIBS -L$x_libraries"
16511 # For Solaris; some versions of Sun CC require a space after -R and
16512 # others require no space. Words are not sufficient . . . .
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
16514 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
16515 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16516 ac_xsave_c_werror_flag=$ac_c_werror_flag
16517 ac_c_werror_flag=yes
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16520
16521 int
16522 main ()
16523 {
16524
16525 ;
16526 return 0;
16527 }
16528 _ACEOF
16529 if ac_fn_c_try_link "$LINENO"; then :
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16532 X_LIBS="$X_LIBS -R$x_libraries"
16533 else
16534 LIBS="$ac_xsave_LIBS -R $x_libraries"
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537
16538 int
16539 main ()
16540 {
16541
16542 ;
16543 return 0;
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_link "$LINENO"; then :
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16548 $as_echo "yes" >&6; }
16549 X_LIBS="$X_LIBS -R $x_libraries"
16550 else
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
16552 $as_echo "neither works" >&6; }
16553 fi
16554 rm -f core conftest.err conftest.$ac_objext \
16555 conftest$ac_exeext conftest.$ac_ext
16556 fi
16557 rm -f core conftest.err conftest.$ac_objext \
16558 conftest$ac_exeext conftest.$ac_ext
16559 ac_c_werror_flag=$ac_xsave_c_werror_flag
16560 LIBS=$ac_xsave_LIBS
16561 fi
16562
16563 # Check for system-dependent libraries X programs must link with.
16564 # Do this before checking for the system-independent R6 libraries
16565 # (-lICE), since we may need -lsocket or whatever for X linking.
16566
16567 if test "$ISC" = yes; then
16568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16569 else
16570 # Martyn Johnson says this is needed for Ultrix, if the X
16571 # libraries were built with DECnet support. And Karl Berry says
16572 # the Alpha needs dnet_stub (dnet does not exist).
16573 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16576
16577 /* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16580 #ifdef __cplusplus
16581 extern "C"
16582 #endif
16583 char XOpenDisplay ();
16584 int
16585 main ()
16586 {
16587 return XOpenDisplay ();
16588 ;
16589 return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_link "$LINENO"; then :
16593
16594 else
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
16596 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
16597 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 ac_check_lib_save_LIBS=$LIBS
16601 LIBS="-ldnet $LIBS"
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604
16605 /* Override any GCC internal prototype to avoid an error.
16606 Use char because int might match the return type of a GCC
16607 builtin and then its argument prototype would still apply. */
16608 #ifdef __cplusplus
16609 extern "C"
16610 #endif
16611 char dnet_ntoa ();
16612 int
16613 main ()
16614 {
16615 return dnet_ntoa ();
16616 ;
16617 return 0;
16618 }
16619 _ACEOF
16620 if ac_fn_c_try_link "$LINENO"; then :
16621 ac_cv_lib_dnet_dnet_ntoa=yes
16622 else
16623 ac_cv_lib_dnet_dnet_ntoa=no
16624 fi
16625 rm -f core conftest.err conftest.$ac_objext \
16626 conftest$ac_exeext conftest.$ac_ext
16627 LIBS=$ac_check_lib_save_LIBS
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16630 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
16631 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
16632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
16633 fi
16634
16635 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
16637 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
16638 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
16639 $as_echo_n "(cached) " >&6
16640 else
16641 ac_check_lib_save_LIBS=$LIBS
16642 LIBS="-ldnet_stub $LIBS"
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16645
16646 /* Override any GCC internal prototype to avoid an error.
16647 Use char because int might match the return type of a GCC
16648 builtin and then its argument prototype would still apply. */
16649 #ifdef __cplusplus
16650 extern "C"
16651 #endif
16652 char dnet_ntoa ();
16653 int
16654 main ()
16655 {
16656 return dnet_ntoa ();
16657 ;
16658 return 0;
16659 }
16660 _ACEOF
16661 if ac_fn_c_try_link "$LINENO"; then :
16662 ac_cv_lib_dnet_stub_dnet_ntoa=yes
16663 else
16664 ac_cv_lib_dnet_stub_dnet_ntoa=no
16665 fi
16666 rm -f core conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16668 LIBS=$ac_check_lib_save_LIBS
16669 fi
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16671 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
16672 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
16673 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
16674 fi
16675
16676 fi
16677 fi
16678 rm -f core conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS="$ac_xsave_LIBS"
16681
16682 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
16683 # to get the SysV transport functions.
16684 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
16685 # needs -lnsl.
16686 # The nsl library prevents programs from opening the X display
16687 # on Irix 5.2, according to T.E. Dickey.
16688 # The functions gethostbyname, getservbyname, and inet_addr are
16689 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
16690 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16691 if test "x$ac_cv_func_gethostbyname" = xyes; then :
16692
16693 fi
16694
16695 if test $ac_cv_func_gethostbyname = no; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16697 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16698 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 ac_check_lib_save_LIBS=$LIBS
16702 LIBS="-lnsl $LIBS"
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16705
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16709 #ifdef __cplusplus
16710 extern "C"
16711 #endif
16712 char gethostbyname ();
16713 int
16714 main ()
16715 {
16716 return gethostbyname ();
16717 ;
16718 return 0;
16719 }
16720 _ACEOF
16721 if ac_fn_c_try_link "$LINENO"; then :
16722 ac_cv_lib_nsl_gethostbyname=yes
16723 else
16724 ac_cv_lib_nsl_gethostbyname=no
16725 fi
16726 rm -f core conftest.err conftest.$ac_objext \
16727 conftest$ac_exeext conftest.$ac_ext
16728 LIBS=$ac_check_lib_save_LIBS
16729 fi
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16731 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16732 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
16734 fi
16735
16736 if test $ac_cv_lib_nsl_gethostbyname = no; then
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
16738 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
16739 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
16740 $as_echo_n "(cached) " >&6
16741 else
16742 ac_check_lib_save_LIBS=$LIBS
16743 LIBS="-lbsd $LIBS"
16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16746
16747 /* Override any GCC internal prototype to avoid an error.
16748 Use char because int might match the return type of a GCC
16749 builtin and then its argument prototype would still apply. */
16750 #ifdef __cplusplus
16751 extern "C"
16752 #endif
16753 char gethostbyname ();
16754 int
16755 main ()
16756 {
16757 return gethostbyname ();
16758 ;
16759 return 0;
16760 }
16761 _ACEOF
16762 if ac_fn_c_try_link "$LINENO"; then :
16763 ac_cv_lib_bsd_gethostbyname=yes
16764 else
16765 ac_cv_lib_bsd_gethostbyname=no
16766 fi
16767 rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16769 LIBS=$ac_check_lib_save_LIBS
16770 fi
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
16772 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
16773 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
16774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
16775 fi
16776
16777 fi
16778 fi
16779
16780 # [email protected] says without -lsocket,
16781 # socket/setsockopt and other routines are undefined under SCO ODT
16782 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
16783 # on later versions), says Simon Leinen: it contains gethostby*
16784 # variants that don't use the name server (or something). -lsocket
16785 # must be given before -lnsl if both are needed. We assume that
16786 # if connect needs -lnsl, so does gethostbyname.
16787 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
16788 if test "x$ac_cv_func_connect" = xyes; then :
16789
16790 fi
16791
16792 if test $ac_cv_func_connect = no; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
16794 $as_echo_n "checking for connect in -lsocket... " >&6; }
16795 if ${ac_cv_lib_socket_connect+:} false; then :
16796 $as_echo_n "(cached) " >&6
16797 else
16798 ac_check_lib_save_LIBS=$LIBS
16799 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802
16803 /* Override any GCC internal prototype to avoid an error.
16804 Use char because int might match the return type of a GCC
16805 builtin and then its argument prototype would still apply. */
16806 #ifdef __cplusplus
16807 extern "C"
16808 #endif
16809 char connect ();
16810 int
16811 main ()
16812 {
16813 return connect ();
16814 ;
16815 return 0;
16816 }
16817 _ACEOF
16818 if ac_fn_c_try_link "$LINENO"; then :
16819 ac_cv_lib_socket_connect=yes
16820 else
16821 ac_cv_lib_socket_connect=no
16822 fi
16823 rm -f core conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
16825 LIBS=$ac_check_lib_save_LIBS
16826 fi
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
16828 $as_echo "$ac_cv_lib_socket_connect" >&6; }
16829 if test "x$ac_cv_lib_socket_connect" = xyes; then :
16830 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
16831 fi
16832
16833 fi
16834
16835 # Guillermo Gomez says -lposix is necessary on A/UX.
16836 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
16837 if test "x$ac_cv_func_remove" = xyes; then :
16838
16839 fi
16840
16841 if test $ac_cv_func_remove = no; then
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
16843 $as_echo_n "checking for remove in -lposix... " >&6; }
16844 if ${ac_cv_lib_posix_remove+:} false; then :
16845 $as_echo_n "(cached) " >&6
16846 else
16847 ac_check_lib_save_LIBS=$LIBS
16848 LIBS="-lposix $LIBS"
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16851
16852 /* Override any GCC internal prototype to avoid an error.
16853 Use char because int might match the return type of a GCC
16854 builtin and then its argument prototype would still apply. */
16855 #ifdef __cplusplus
16856 extern "C"
16857 #endif
16858 char remove ();
16859 int
16860 main ()
16861 {
16862 return remove ();
16863 ;
16864 return 0;
16865 }
16866 _ACEOF
16867 if ac_fn_c_try_link "$LINENO"; then :
16868 ac_cv_lib_posix_remove=yes
16869 else
16870 ac_cv_lib_posix_remove=no
16871 fi
16872 rm -f core conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16874 LIBS=$ac_check_lib_save_LIBS
16875 fi
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
16877 $as_echo "$ac_cv_lib_posix_remove" >&6; }
16878 if test "x$ac_cv_lib_posix_remove" = xyes; then :
16879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
16880 fi
16881
16882 fi
16883
16884 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
16885 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
16886 if test "x$ac_cv_func_shmat" = xyes; then :
16887
16888 fi
16889
16890 if test $ac_cv_func_shmat = no; then
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
16892 $as_echo_n "checking for shmat in -lipc... " >&6; }
16893 if ${ac_cv_lib_ipc_shmat+:} false; then :
16894 $as_echo_n "(cached) " >&6
16895 else
16896 ac_check_lib_save_LIBS=$LIBS
16897 LIBS="-lipc $LIBS"
16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16900
16901 /* Override any GCC internal prototype to avoid an error.
16902 Use char because int might match the return type of a GCC
16903 builtin and then its argument prototype would still apply. */
16904 #ifdef __cplusplus
16905 extern "C"
16906 #endif
16907 char shmat ();
16908 int
16909 main ()
16910 {
16911 return shmat ();
16912 ;
16913 return 0;
16914 }
16915 _ACEOF
16916 if ac_fn_c_try_link "$LINENO"; then :
16917 ac_cv_lib_ipc_shmat=yes
16918 else
16919 ac_cv_lib_ipc_shmat=no
16920 fi
16921 rm -f core conftest.err conftest.$ac_objext \
16922 conftest$ac_exeext conftest.$ac_ext
16923 LIBS=$ac_check_lib_save_LIBS
16924 fi
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
16926 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
16927 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
16928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
16929 fi
16930
16931 fi
16932 fi
16933
16934 # Check for libraries that X11R6 Xt/Xaw programs need.
16935 ac_save_LDFLAGS=$LDFLAGS
16936 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
16937 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
16938 # check for ICE first), but we must link in the order -lSM -lICE or
16939 # we get undefined symbols. So assume we have SM if we have ICE.
16940 # These have to be linked with before -lX11, unlike the other
16941 # libraries we check for below, so use a different variable.
16942 # John Interrante, Karl Berry
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
16944 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
16945 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
16946 $as_echo_n "(cached) " >&6
16947 else
16948 ac_check_lib_save_LIBS=$LIBS
16949 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16952
16953 /* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16956 #ifdef __cplusplus
16957 extern "C"
16958 #endif
16959 char IceConnectionNumber ();
16960 int
16961 main ()
16962 {
16963 return IceConnectionNumber ();
16964 ;
16965 return 0;
16966 }
16967 _ACEOF
16968 if ac_fn_c_try_link "$LINENO"; then :
16969 ac_cv_lib_ICE_IceConnectionNumber=yes
16970 else
16971 ac_cv_lib_ICE_IceConnectionNumber=no
16972 fi
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975 LIBS=$ac_check_lib_save_LIBS
16976 fi
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
16978 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
16979 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
16980 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
16981 fi
16982
16983 LDFLAGS=$ac_save_LDFLAGS
16984
16985 fi
16986
16987 ;;
16988 esac
16989
16990 LIBS="$LIBS $MATHLIB"
16991
16992 # Check whether --enable-mmx was given.
16993 if test "${enable_mmx+set}" = set; then :
16994 enableval=$enable_mmx;
16995 else
16996 enable_mmx=yes
16997 fi
16998
16999
17000 if test x$enable_mmx = xyes; then
17001 CFLAGS="$CFLAGS -O -DUSE_MMX"
17002 # The cast to long int works around a bug in the HP C Compiler
17003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17005 # This bug is HP SR number 8606223364.
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17007 $as_echo_n "checking size of long... " >&6; }
17008 if ${ac_cv_sizeof_long+:} false; then :
17009 $as_echo_n "(cached) " >&6
17010 else
17011 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17012
17013 else
17014 if test "$ac_cv_type_long" = yes; then
17015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17017 as_fn_error 77 "cannot compute sizeof (long)
17018 See \`config.log' for more details" "$LINENO" 5; }
17019 else
17020 ac_cv_sizeof_long=0
17021 fi
17022 fi
17023
17024 fi
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17026 $as_echo "$ac_cv_sizeof_long" >&6; }
17027
17028
17029
17030 cat >>confdefs.h <<_ACEOF
17031 #define SIZEOF_LONG $ac_cv_sizeof_long
17032 _ACEOF
17033
17034
17035 if test "$ac_cv_sizeof_long" = "4"; then
17036 CFLAGS="$CFLAGS -mmmx"
17037 fi
17038 fi
17039
17040
17041 # Check whether --with-sdl-prefix was given.
17042 if test "${with_sdl_prefix+set}" = set; then :
17043 withval=$with_sdl_prefix; sdl_prefix="$withval"
17044 else
17045 sdl_prefix=""
17046 fi
17047
17048
17049 # Check whether --with-sdl-exec-prefix was given.
17050 if test "${with_sdl_exec_prefix+set}" = set; then :
17051 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
17052 else
17053 sdl_exec_prefix=""
17054 fi
17055
17056 # Check whether --enable-sdltest was given.
17057 if test "${enable_sdltest+set}" = set; then :
17058 enableval=$enable_sdltest;
17059 else
17060 enable_sdltest=yes
17061 fi
17062
17063
17064 if test x$sdl_exec_prefix != x ; then
17065 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
17066 if test x${SDL_CONFIG+set} != xset ; then
17067 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
17068 fi
17069 fi
17070 if test x$sdl_prefix != x ; then
17071 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
17072 if test x${SDL_CONFIG+set} != xset ; then
17073 SDL_CONFIG=$sdl_prefix/bin/sdl-config
17074 fi
17075 fi
17076
17077 as_save_PATH="$PATH"
17078 if test "x$prefix" != xNONE; then
17079 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
17080 fi
17081 # Extract the first word of "sdl-config", so it can be a program name with args.
17082 set dummy sdl-config; ac_word=$2
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17084 $as_echo_n "checking for $ac_word... " >&6; }
17085 if ${ac_cv_path_SDL_CONFIG+:} false; then :
17086 $as_echo_n "(cached) " >&6
17087 else
17088 case $SDL_CONFIG in
17089 [\\/]* | ?:[\\/]*)
17090 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
17091 ;;
17092 *)
17093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094 for as_dir in $PATH
17095 do
17096 IFS=$as_save_IFS
17097 test -z "$as_dir" && as_dir=.
17098 for ac_exec_ext in '' $ac_executable_extensions; do
17099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17100 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17102 break 2
17103 fi
17104 done
17105 done
17106 IFS=$as_save_IFS
17107
17108 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
17109 ;;
17110 esac
17111 fi
17112 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
17113 if test -n "$SDL_CONFIG"; then
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
17115 $as_echo "$SDL_CONFIG" >&6; }
17116 else
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17118 $as_echo "no" >&6; }
17119 fi
17120
17121
17122 PATH="$as_save_PATH"
17123 min_sdl_version=$SDL_VERSION
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
17125 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
17126 no_sdl=""
17127 if test "$SDL_CONFIG" = "no" ; then
17128 no_sdl=yes
17129 else
17130 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
17131 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
17132
17133 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
17134 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17135 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
17136 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17137 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
17138 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17139 if test "x$enable_sdltest" = "xyes" ; then
17140 ac_save_CFLAGS="$CFLAGS"
17141 ac_save_CXXFLAGS="$CXXFLAGS"
17142 ac_save_LIBS="$LIBS"
17143 CFLAGS="$CFLAGS $SDL_CFLAGS"
17144 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
17145 LIBS="$LIBS $SDL_LIBS"
17146 rm -f conf.sdltest
17147 if test "$cross_compiling" = yes; then :
17148 echo $ac_n "cross compiling; assumed OK... $ac_c"
17149 else
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17152
17153 #include <stdio.h>
17154 #include <stdlib.h>
17155 #include <string.h>
17156 #include "SDL.h"
17157
17158 char*
17159 my_strdup (char *str)
17160 {
17161 char *new_str;
17162
17163 if (str)
17164 {
17165 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
17166 strcpy (new_str, str);
17167 }
17168 else
17169 new_str = NULL;
17170
17171 return new_str;
17172 }
17173
17174 int main (int argc, char *argv[])
17175 {
17176 int major, minor, micro;
17177 char *tmp_version;
17178
17179 /* This hangs on some systems (?)
17180 system ("touch conf.sdltest");
17181 */
17182 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
17183
17184 /* HP/UX 9 (%@#!) writes to sscanf strings */
17185 tmp_version = my_strdup("$min_sdl_version");
17186 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17187 printf("%s, bad version string\n", "$min_sdl_version");
17188 exit(1);
17189 }
17190
17191 if (($sdl_major_version > major) ||
17192 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
17193 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
17194 {
17195 return 0;
17196 }
17197 else
17198 {
17199 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
17200 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
17201 printf("*** best to upgrade to the required version.\n");
17202 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
17203 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
17204 printf("*** config.cache before re-running configure\n");
17205 return 1;
17206 }
17207 }
17208
17209
17210 _ACEOF
17211 if ac_fn_c_try_run "$LINENO"; then :
17212
17213 else
17214 no_sdl=yes
17215 fi
17216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17217 conftest.$ac_objext conftest.beam conftest.$ac_ext
17218 fi
17219
17220 CFLAGS="$ac_save_CFLAGS"
17221 CXXFLAGS="$ac_save_CXXFLAGS"
17222 LIBS="$ac_save_LIBS"
17223 fi
17224 fi
17225 if test "x$no_sdl" = x ; then
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17227 $as_echo "yes" >&6; }
17228 :
17229 else
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17231 $as_echo "no" >&6; }
17232 if test "$SDL_CONFIG" = "no" ; then
17233 echo "*** The sdl-config script installed by SDL could not be found"
17234 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
17235 echo "*** your path, or set the SDL_CONFIG environment variable to the"
17236 echo "*** full path to sdl-config."
17237 else
17238 if test -f conf.sdltest ; then
17239 :
17240 else
17241 echo "*** Could not run SDL test program, checking why..."
17242 CFLAGS="$CFLAGS $SDL_CFLAGS"
17243 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
17244 LIBS="$LIBS $SDL_LIBS"
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247
17248 #include <stdio.h>
17249 #include "SDL.h"
17250
17251 int main(int argc, char *argv[])
17252 { return 0; }
17253 #undef main
17254 #define main K_and_R_C_main
17255
17256 int
17257 main ()
17258 {
17259 return 0;
17260 ;
17261 return 0;
17262 }
17263 _ACEOF
17264 if ac_fn_c_try_link "$LINENO"; then :
17265 echo "*** The test program compiled, but did not run. This usually means"
17266 echo "*** that the run-time linker is not finding SDL or finding the wrong"
17267 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
17268 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17269 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17270 echo "*** is required on your system"
17271 echo "***"
17272 echo "*** If you have an old version installed, it is best to remove it, although"
17273 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17274 else
17275 echo "*** The test program failed to compile or link. See the file config.log for the"
17276 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
17277 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
17278 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
17279 fi
17280 rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17282 CFLAGS="$ac_save_CFLAGS"
17283 CXXFLAGS="$ac_save_CXXFLAGS"
17284 LIBS="$ac_save_LIBS"
17285 fi
17286 fi
17287 SDL_CFLAGS=""
17288 SDL_LIBS=""
17289 as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
17290
17291 fi
17292
17293
17294 rm -f conf.sdltest
17295
17296 CFLAGS="$CFLAGS $SDL_CFLAGS"
17297 # Remove dependencies from 'sdl-config' not meant for us libraries:
17298 SDL_LIBS=$(echo "$SDL_LIBS" | sed -e 's/-lmingw32//' -e 's/-lSDLmain//')
17299 LIBS="$LIBS $SDL_LIBS"
17300
17301 # Finally create all the generated files
17302 ac_config_files="$ac_config_files Makefile SDL_gfx.pc"
17303
17304 cat >confcache <<\_ACEOF
17305 # This file is a shell script that caches the results of configure
17306 # tests run on this system so they can be shared between configure
17307 # scripts and configure runs, see configure's option --config-cache.
17308 # It is not useful on other systems. If it contains results you don't
17309 # want to keep, you may remove or edit it.
17310 #
17311 # config.status only pays attention to the cache file if you give it
17312 # the --recheck option to rerun configure.
17313 #
17314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17316 # following values.
17317
17318 _ACEOF
17319
17320 # The following way of writing the cache mishandles newlines in values,
17321 # but we know of no workaround that is simple, portable, and efficient.
17322 # So, we kill variables containing newlines.
17323 # Ultrix sh set writes to stderr and can't be redirected directly,
17324 # and sets the high bit in the cache file unless we assign to the vars.
17325 (
17326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17327 eval ac_val=\$$ac_var
17328 case $ac_val in #(
17329 *${as_nl}*)
17330 case $ac_var in #(
17331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17333 esac
17334 case $ac_var in #(
17335 _ | IFS | as_nl) ;; #(
17336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17337 *) { eval $ac_var=; unset $ac_var;} ;;
17338 esac ;;
17339 esac
17340 done
17341
17342 (set) 2>&1 |
17343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17344 *${as_nl}ac_space=\ *)
17345 # `set' does not quote correctly, so add quotes: double-quote
17346 # substitution turns \\\\ into \\, and sed turns \\ into \.
17347 sed -n \
17348 "s/'/'\\\\''/g;
17349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17350 ;; #(
17351 *)
17352 # `set' quotes correctly as required by POSIX, so do not add quotes.
17353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17354 ;;
17355 esac |
17356 sort
17357 ) |
17358 sed '
17359 /^ac_cv_env_/b end
17360 t clear
17361 :clear
17362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17363 t end
17364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17365 :end' >>confcache
17366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17367 if test -w "$cache_file"; then
17368 if test "x$cache_file" != "x/dev/null"; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17370 $as_echo "$as_me: updating cache $cache_file" >&6;}
17371 if test ! -f "$cache_file" || test -h "$cache_file"; then
17372 cat confcache >"$cache_file"
17373 else
17374 case $cache_file in #(
17375 */* | ?:*)
17376 mv -f confcache "$cache_file"$$ &&
17377 mv -f "$cache_file"$$ "$cache_file" ;; #(
17378 *)
17379 mv -f confcache "$cache_file" ;;
17380 esac
17381 fi
17382 fi
17383 else
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17386 fi
17387 fi
17388 rm -f confcache
17389
17390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17391 # Let make expand exec_prefix.
17392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17393
17394 # Transform confdefs.h into DEFS.
17395 # Protect against shell expansion while executing Makefile rules.
17396 # Protect against Makefile macro expansion.
17397 #
17398 # If the first sed substitution is executed (which looks for macros that
17399 # take arguments), then branch to the quote section. Otherwise,
17400 # look for a macro that doesn't take arguments.
17401 ac_script='
17402 :mline
17403 /\\$/{
17404 N
17405 s,\\\n,,
17406 b mline
17407 }
17408 t clear
17409 :clear
17410 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17411 t quote
17412 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17413 t quote
17414 b any
17415 :quote
17416 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17417 s/\[/\\&/g
17418 s/\]/\\&/g
17419 s/\$/$$/g
17420 H
17421 :any
17422 ${
17423 g
17424 s/^\n//
17425 s/\n/ /g
17426 p
17427 }
17428 '
17429 DEFS=`sed -n "$ac_script" confdefs.h`
17430
17431
17432 ac_libobjs=
17433 ac_ltlibobjs=
17434 U=
17435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17436 # 1. Remove the extension, and $U if already installed.
17437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17438 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17440 # will be set to the directory where LIBOBJS objects are built.
17441 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17442 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17443 done
17444 LIBOBJS=$ac_libobjs
17445
17446 LTLIBOBJS=$ac_ltlibobjs
17447
17448
17449 if test -n "$EXEEXT"; then
17450 am__EXEEXT_TRUE=
17451 am__EXEEXT_FALSE='#'
17452 else
17453 am__EXEEXT_TRUE='#'
17454 am__EXEEXT_FALSE=
17455 fi
17456
17457 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17458 as_fn_error $? "conditional \"AMDEP\" was never defined.
17459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17460 fi
17461 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17462 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17464 fi
17465 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17466 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17468 fi
17469 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17470 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17472 fi
17473
17474 : "${CONFIG_STATUS=./config.status}"
17475 ac_write_fail=0
17476 ac_clean_files_save=$ac_clean_files
17477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17479 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17480 as_write_fail=0
17481 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17482 #! $SHELL
17483 # Generated by $as_me.
17484 # Run this file to recreate the current configuration.
17485 # Compiler output produced by configure, useful for debugging
17486 # configure, is in config.log if it exists.
17487
17488 debug=false
17489 ac_cs_recheck=false
17490 ac_cs_silent=false
17491
17492 SHELL=\${CONFIG_SHELL-$SHELL}
17493 export SHELL
17494 _ASEOF
17495 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17496 ## -------------------- ##
17497 ## M4sh Initialization. ##
17498 ## -------------------- ##
17499
17500 # Be more Bourne compatible
17501 DUALCASE=1; export DUALCASE # for MKS sh
17502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17503 emulate sh
17504 NULLCMD=:
17505 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17506 # is contrary to our usage. Disable this feature.
17507 alias -g '${1+"$@"}'='"$@"'
17508 setopt NO_GLOB_SUBST
17509 else
17510 case `(set -o) 2>/dev/null` in #(
17511 *posix*) :
17512 set -o posix ;; #(
17513 *) :
17514 ;;
17515 esac
17516 fi
17517
17518
17519 as_nl='
17520 '
17521 export as_nl
17522 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17523 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17526 # Prefer a ksh shell builtin over an external printf program on Solaris,
17527 # but without wasting forks for bash or zsh.
17528 if test -z "$BASH_VERSION$ZSH_VERSION" \
17529 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17530 as_echo='print -r --'
17531 as_echo_n='print -rn --'
17532 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17533 as_echo='printf %s\n'
17534 as_echo_n='printf %s'
17535 else
17536 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17537 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17538 as_echo_n='/usr/ucb/echo -n'
17539 else
17540 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17541 as_echo_n_body='eval
17542 arg=$1;
17543 case $arg in #(
17544 *"$as_nl"*)
17545 expr "X$arg" : "X\\(.*\\)$as_nl";
17546 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17547 esac;
17548 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17549 '
17550 export as_echo_n_body
17551 as_echo_n='sh -c $as_echo_n_body as_echo'
17552 fi
17553 export as_echo_body
17554 as_echo='sh -c $as_echo_body as_echo'
17555 fi
17556
17557 # The user is always right.
17558 if test "${PATH_SEPARATOR+set}" != set; then
17559 PATH_SEPARATOR=:
17560 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17561 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17562 PATH_SEPARATOR=';'
17563 }
17564 fi
17565
17566
17567 # IFS
17568 # We need space, tab and new line, in precisely that order. Quoting is
17569 # there to prevent editors from complaining about space-tab.
17570 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17571 # splitting by setting IFS to empty value.)
17572 IFS=" "" $as_nl"
17573
17574 # Find who we are. Look in the path if we contain no directory separator.
17575 as_myself=
17576 case $0 in #((
17577 *[\\/]* ) as_myself=$0 ;;
17578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17579 for as_dir in $PATH
17580 do
17581 IFS=$as_save_IFS
17582 test -z "$as_dir" && as_dir=.
17583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17584 done
17585 IFS=$as_save_IFS
17586
17587 ;;
17588 esac
17589 # We did not find ourselves, most probably we were run as `sh COMMAND'
17590 # in which case we are not to be found in the path.
17591 if test "x$as_myself" = x; then
17592 as_myself=$0
17593 fi
17594 if test ! -f "$as_myself"; then
17595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17596 exit 1
17597 fi
17598
17599 # Unset variables that we do not need and which cause bugs (e.g. in
17600 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17601 # suppresses any "Segmentation fault" message there. '((' could
17602 # trigger a bug in pdksh 5.2.14.
17603 for as_var in BASH_ENV ENV MAIL MAILPATH
17604 do eval test x\${$as_var+set} = xset \
17605 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17606 done
17607 PS1='$ '
17608 PS2='> '
17609 PS4='+ '
17610
17611 # NLS nuisances.
17612 LC_ALL=C
17613 export LC_ALL
17614 LANGUAGE=C
17615 export LANGUAGE
17616
17617 # CDPATH.
17618 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17619
17620
17621 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17622 # ----------------------------------------
17623 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17624 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17625 # script with STATUS, using 1 if that was 0.
17626 as_fn_error ()
17627 {
17628 as_status=$1; test $as_status -eq 0 && as_status=1
17629 if test "$4"; then
17630 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17631 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17632 fi
17633 $as_echo "$as_me: error: $2" >&2
17634 as_fn_exit $as_status
17635 } # as_fn_error
17636
17637
17638 # as_fn_set_status STATUS
17639 # -----------------------
17640 # Set $? to STATUS, without forking.
17641 as_fn_set_status ()
17642 {
17643 return $1
17644 } # as_fn_set_status
17645
17646 # as_fn_exit STATUS
17647 # -----------------
17648 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17649 as_fn_exit ()
17650 {
17651 set +e
17652 as_fn_set_status $1
17653 exit $1
17654 } # as_fn_exit
17655
17656 # as_fn_unset VAR
17657 # ---------------
17658 # Portably unset VAR.
17659 as_fn_unset ()
17660 {
17661 { eval $1=; unset $1;}
17662 }
17663 as_unset=as_fn_unset
17664 # as_fn_append VAR VALUE
17665 # ----------------------
17666 # Append the text in VALUE to the end of the definition contained in VAR. Take
17667 # advantage of any shell optimizations that allow amortized linear growth over
17668 # repeated appends, instead of the typical quadratic growth present in naive
17669 # implementations.
17670 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17671 eval 'as_fn_append ()
17672 {
17673 eval $1+=\$2
17674 }'
17675 else
17676 as_fn_append ()
17677 {
17678 eval $1=\$$1\$2
17679 }
17680 fi # as_fn_append
17681
17682 # as_fn_arith ARG...
17683 # ------------------
17684 # Perform arithmetic evaluation on the ARGs, and store the result in the
17685 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17686 # must be portable across $(()) and expr.
17687 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17688 eval 'as_fn_arith ()
17689 {
17690 as_val=$(( $* ))
17691 }'
17692 else
17693 as_fn_arith ()
17694 {
17695 as_val=`expr "$@" || test $? -eq 1`
17696 }
17697 fi # as_fn_arith
17698
17699
17700 if expr a : '\(a\)' >/dev/null 2>&1 &&
17701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17702 as_expr=expr
17703 else
17704 as_expr=false
17705 fi
17706
17707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17708 as_basename=basename
17709 else
17710 as_basename=false
17711 fi
17712
17713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17714 as_dirname=dirname
17715 else
17716 as_dirname=false
17717 fi
17718
17719 as_me=`$as_basename -- "$0" ||
17720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17721 X"$0" : 'X\(//\)$' \| \
17722 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17723 $as_echo X/"$0" |
17724 sed '/^.*\/\([^/][^/]*\)\/*$/{
17725 s//\1/
17726 q
17727 }
17728 /^X\/\(\/\/\)$/{
17729 s//\1/
17730 q
17731 }
17732 /^X\/\(\/\).*/{
17733 s//\1/
17734 q
17735 }
17736 s/.*/./; q'`
17737
17738 # Avoid depending upon Character Ranges.
17739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17742 as_cr_digits='0123456789'
17743 as_cr_alnum=$as_cr_Letters$as_cr_digits
17744
17745 ECHO_C= ECHO_N= ECHO_T=
17746 case `echo -n x` in #(((((
17747 -n*)
17748 case `echo 'xy\c'` in
17749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17750 xy) ECHO_C='\c';;
17751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17752 ECHO_T=' ';;
17753 esac;;
17754 *)
17755 ECHO_N='-n';;
17756 esac
17757
17758 rm -f conf$$ conf$$.exe conf$$.file
17759 if test -d conf$$.dir; then
17760 rm -f conf$$.dir/conf$$.file
17761 else
17762 rm -f conf$$.dir
17763 mkdir conf$$.dir 2>/dev/null
17764 fi
17765 if (echo >conf$$.file) 2>/dev/null; then
17766 if ln -s conf$$.file conf$$ 2>/dev/null; then
17767 as_ln_s='ln -s'
17768 # ... but there are two gotchas:
17769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17771 # In both cases, we have to default to `cp -pR'.
17772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17773 as_ln_s='cp -pR'
17774 elif ln conf$$.file conf$$ 2>/dev/null; then
17775 as_ln_s=ln
17776 else
17777 as_ln_s='cp -pR'
17778 fi
17779 else
17780 as_ln_s='cp -pR'
17781 fi
17782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17783 rmdir conf$$.dir 2>/dev/null
17784
17785
17786 # as_fn_mkdir_p
17787 # -------------
17788 # Create "$as_dir" as a directory, including parents if necessary.
17789 as_fn_mkdir_p ()
17790 {
17791
17792 case $as_dir in #(
17793 -*) as_dir=./$as_dir;;
17794 esac
17795 test -d "$as_dir" || eval $as_mkdir_p || {
17796 as_dirs=
17797 while :; do
17798 case $as_dir in #(
17799 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17800 *) as_qdir=$as_dir;;
17801 esac
17802 as_dirs="'$as_qdir' $as_dirs"
17803 as_dir=`$as_dirname -- "$as_dir" ||
17804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17805 X"$as_dir" : 'X\(//\)[^/]' \| \
17806 X"$as_dir" : 'X\(//\)$' \| \
17807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17808 $as_echo X"$as_dir" |
17809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17810 s//\1/
17811 q
17812 }
17813 /^X\(\/\/\)[^/].*/{
17814 s//\1/
17815 q
17816 }
17817 /^X\(\/\/\)$/{
17818 s//\1/
17819 q
17820 }
17821 /^X\(\/\).*/{
17822 s//\1/
17823 q
17824 }
17825 s/.*/./; q'`
17826 test -d "$as_dir" && break
17827 done
17828 test -z "$as_dirs" || eval "mkdir $as_dirs"
17829 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17830
17831
17832 } # as_fn_mkdir_p
17833 if mkdir -p . 2>/dev/null; then
17834 as_mkdir_p='mkdir -p "$as_dir"'
17835 else
17836 test -d ./-p && rmdir ./-p
17837 as_mkdir_p=false
17838 fi
17839
17840
17841 # as_fn_executable_p FILE
17842 # -----------------------
17843 # Test if FILE is an executable regular file.
17844 as_fn_executable_p ()
17845 {
17846 test -f "$1" && test -x "$1"
17847 } # as_fn_executable_p
17848 as_test_x='test -x'
17849 as_executable_p=as_fn_executable_p
17850
17851 # Sed expression to map a string onto a valid CPP name.
17852 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17853
17854 # Sed expression to map a string onto a valid variable name.
17855 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17856
17857
17858 exec 6>&1
17859 ## ----------------------------------- ##
17860 ## Main body of $CONFIG_STATUS script. ##
17861 ## ----------------------------------- ##
17862 _ASEOF
17863 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17864
17865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17866 # Save the log message, to keep $0 and so on meaningful, and to
17867 # report actual input values of CONFIG_FILES etc. instead of their
17868 # values after options handling.
17869 ac_log="
17870 This file was extended by $as_me, which was
17871 generated by GNU Autoconf 2.69. Invocation command line was
17872
17873 CONFIG_FILES = $CONFIG_FILES
17874 CONFIG_HEADERS = $CONFIG_HEADERS
17875 CONFIG_LINKS = $CONFIG_LINKS
17876 CONFIG_COMMANDS = $CONFIG_COMMANDS
17877 $ $0 $@
17878
17879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17880 "
17881
17882 _ACEOF
17883
17884 case $ac_config_files in *"
17885 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17886 esac
17887
17888
17889
17890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17891 # Files that config.status was made for.
17892 config_files="$ac_config_files"
17893 config_commands="$ac_config_commands"
17894
17895 _ACEOF
17896
17897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17898 ac_cs_usage="\
17899 \`$as_me' instantiates files and other configuration actions
17900 from templates according to the current configuration. Unless the files
17901 and actions are specified as TAGs, all are instantiated by default.
17902
17903 Usage: $0 [OPTION]... [TAG]...
17904
17905 -h, --help print this help, then exit
17906 -V, --version print version number and configuration settings, then exit
17907 --config print configuration, then exit
17908 -q, --quiet, --silent
17909 do not print progress messages
17910 -d, --debug don't remove temporary files
17911 --recheck update $as_me by reconfiguring in the same conditions
17912 --file=FILE[:TEMPLATE]
17913 instantiate the configuration file FILE
17914
17915 Configuration files:
17916 $config_files
17917
17918 Configuration commands:
17919 $config_commands
17920
17921 Report bugs to the package provider."
17922
17923 _ACEOF
17924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17925 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17926 ac_cs_version="\\
17927 config.status
17928 configured by $0, generated by GNU Autoconf 2.69,
17929 with options \\"\$ac_cs_config\\"
17930
17931 Copyright (C) 2012 Free Software Foundation, Inc.
17932 This config.status script is free software; the Free Software Foundation
17933 gives unlimited permission to copy, distribute and modify it."
17934
17935 ac_pwd='$ac_pwd'
17936 srcdir='$srcdir'
17937 INSTALL='$INSTALL'
17938 MKDIR_P='$MKDIR_P'
17939 AWK='$AWK'
17940 test -n "\$AWK" || AWK=awk
17941 _ACEOF
17942
17943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17944 # The default lists apply if the user does not specify any file.
17945 ac_need_defaults=:
17946 while test $# != 0
17947 do
17948 case $1 in
17949 --*=?*)
17950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17951 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17952 ac_shift=:
17953 ;;
17954 --*=)
17955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17956 ac_optarg=
17957 ac_shift=:
17958 ;;
17959 *)
17960 ac_option=$1
17961 ac_optarg=$2
17962 ac_shift=shift
17963 ;;
17964 esac
17965
17966 case $ac_option in
17967 # Handling of the options.
17968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17969 ac_cs_recheck=: ;;
17970 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17971 $as_echo "$ac_cs_version"; exit ;;
17972 --config | --confi | --conf | --con | --co | --c )
17973 $as_echo "$ac_cs_config"; exit ;;
17974 --debug | --debu | --deb | --de | --d | -d )
17975 debug=: ;;
17976 --file | --fil | --fi | --f )
17977 $ac_shift
17978 case $ac_optarg in
17979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17980 '') as_fn_error $? "missing file argument" ;;
17981 esac
17982 as_fn_append CONFIG_FILES " '$ac_optarg'"
17983 ac_need_defaults=false;;
17984 --he | --h | --help | --hel | -h )
17985 $as_echo "$ac_cs_usage"; exit ;;
17986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17987 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17988 ac_cs_silent=: ;;
17989
17990 # This is an error.
17991 -*) as_fn_error $? "unrecognized option: \`$1'
17992 Try \`$0 --help' for more information." ;;
17993
17994 *) as_fn_append ac_config_targets " $1"
17995 ac_need_defaults=false ;;
17996
17997 esac
17998 shift
17999 done
18000
18001 ac_configure_extra_args=
18002
18003 if $ac_cs_silent; then
18004 exec 6>/dev/null
18005 ac_configure_extra_args="$ac_configure_extra_args --silent"
18006 fi
18007
18008 _ACEOF
18009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18010 if \$ac_cs_recheck; then
18011 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18012 shift
18013 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18014 CONFIG_SHELL='$SHELL'
18015 export CONFIG_SHELL
18016 exec "\$@"
18017 fi
18018
18019 _ACEOF
18020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18021 exec 5>>config.log
18022 {
18023 echo
18024 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18025 ## Running $as_me. ##
18026 _ASBOX
18027 $as_echo "$ac_log"
18028 } >&5
18029
18030 _ACEOF
18031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18032 #
18033 # INIT-COMMANDS
18034 #
18035 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18036
18037
18038 # The HP-UX ksh and POSIX shell print the target directory to stdout
18039 # if CDPATH is set.
18040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18041
18042 sed_quote_subst='$sed_quote_subst'
18043 double_quote_subst='$double_quote_subst'
18044 delay_variable_subst='$delay_variable_subst'
18045 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18046 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18047 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18048 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18049 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18050 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18051 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18052 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18053 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18054 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18055 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18056 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18057 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18058 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18059 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18060 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18061 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18062 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18063 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18064 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18065 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18066 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18067 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18068 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18069 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18070 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18071 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18072 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18073 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18074 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18075 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18076 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18077 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18078 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18079 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18080 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18081 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18082 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18083 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18084 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18085 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18086 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18087 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18088 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18089 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18090 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18091 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18092 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18093 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18094 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18095 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18096 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18097 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18098 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18099 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18100 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18101 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18102 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"`'
18103 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18104 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18105 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18106 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18107 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18108 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18109 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18110 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18111 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18112 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18113 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18114 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18115 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18116 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18117 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18118 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18119 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18120 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18121 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18122 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18123 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18124 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18125 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18126 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18127 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18128 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18129 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18130 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18131 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18132 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18133 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18134 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18135 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18136 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18137 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18138 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18139 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18140 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18141 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18142 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18143 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18144 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18145 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18146 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18147 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18148 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18149 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18150 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18151 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18152 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18153 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18154 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18155 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18156 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18157 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18158 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18159 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18160 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18161 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18162 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18163 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18164 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18165 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18166 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18167 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18168 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18169 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18170 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18171 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18172 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18173 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18174 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18175 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18176 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18177 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18178 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18179 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18180 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18181 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18182 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18183 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18184 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18185 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18186 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18187 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18188 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18189 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18190 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18191 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18192 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18193 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18194 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18195 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18196 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18197 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18198 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18199 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18200 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18201 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18202 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18203 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18204 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18205 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18206 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18207 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18208 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18209 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18210 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18211 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18212 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18213 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18214 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18215 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18216 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18217 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18218 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18219 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18220 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18221 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18222 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18223 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18224 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18225 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18226 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18227 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18228 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18229 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18230
18231 LTCC='$LTCC'
18232 LTCFLAGS='$LTCFLAGS'
18233 compiler='$compiler_DEFAULT'
18234
18235 # A function that is used when there is no print builtin or printf.
18236 func_fallback_echo ()
18237 {
18238 eval 'cat <<_LTECHO_EOF
18239 \$1
18240 _LTECHO_EOF'
18241 }
18242
18243 # Quote evaled strings.
18244 for var in AS \
18245 DLLTOOL \
18246 OBJDUMP \
18247 SHELL \
18248 ECHO \
18249 PATH_SEPARATOR \
18250 SED \
18251 GREP \
18252 EGREP \
18253 FGREP \
18254 LD \
18255 NM \
18256 LN_S \
18257 lt_SP2NL \
18258 lt_NL2SP \
18259 reload_flag \
18260 deplibs_check_method \
18261 file_magic_cmd \
18262 file_magic_glob \
18263 want_nocaseglob \
18264 sharedlib_from_linklib_cmd \
18265 AR \
18266 AR_FLAGS \
18267 archiver_list_spec \
18268 STRIP \
18269 RANLIB \
18270 CC \
18271 CFLAGS \
18272 compiler \
18273 lt_cv_sys_global_symbol_pipe \
18274 lt_cv_sys_global_symbol_to_cdecl \
18275 lt_cv_sys_global_symbol_to_c_name_address \
18276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18277 nm_file_list_spec \
18278 lt_prog_compiler_no_builtin_flag \
18279 lt_prog_compiler_pic \
18280 lt_prog_compiler_wl \
18281 lt_prog_compiler_static \
18282 lt_cv_prog_compiler_c_o \
18283 need_locks \
18284 MANIFEST_TOOL \
18285 DSYMUTIL \
18286 NMEDIT \
18287 LIPO \
18288 OTOOL \
18289 OTOOL64 \
18290 shrext_cmds \
18291 export_dynamic_flag_spec \
18292 whole_archive_flag_spec \
18293 compiler_needs_object \
18294 with_gnu_ld \
18295 allow_undefined_flag \
18296 no_undefined_flag \
18297 hardcode_libdir_flag_spec \
18298 hardcode_libdir_separator \
18299 exclude_expsyms \
18300 include_expsyms \
18301 file_list_spec \
18302 variables_saved_for_relink \
18303 libname_spec \
18304 library_names_spec \
18305 soname_spec \
18306 install_override_mode \
18307 finish_eval \
18308 old_striplib \
18309 striplib \
18310 compiler_lib_search_dirs \
18311 predep_objects \
18312 postdep_objects \
18313 predeps \
18314 postdeps \
18315 compiler_lib_search_path \
18316 LD_CXX \
18317 reload_flag_CXX \
18318 compiler_CXX \
18319 lt_prog_compiler_no_builtin_flag_CXX \
18320 lt_prog_compiler_pic_CXX \
18321 lt_prog_compiler_wl_CXX \
18322 lt_prog_compiler_static_CXX \
18323 lt_cv_prog_compiler_c_o_CXX \
18324 export_dynamic_flag_spec_CXX \
18325 whole_archive_flag_spec_CXX \
18326 compiler_needs_object_CXX \
18327 with_gnu_ld_CXX \
18328 allow_undefined_flag_CXX \
18329 no_undefined_flag_CXX \
18330 hardcode_libdir_flag_spec_CXX \
18331 hardcode_libdir_separator_CXX \
18332 exclude_expsyms_CXX \
18333 include_expsyms_CXX \
18334 file_list_spec_CXX \
18335 compiler_lib_search_dirs_CXX \
18336 predep_objects_CXX \
18337 postdep_objects_CXX \
18338 predeps_CXX \
18339 postdeps_CXX \
18340 compiler_lib_search_path_CXX; do
18341 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18342 *[\\\\\\\`\\"\\\$]*)
18343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18344 ;;
18345 *)
18346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18347 ;;
18348 esac
18349 done
18350
18351 # Double-quote double-evaled strings.
18352 for var in reload_cmds \
18353 old_postinstall_cmds \
18354 old_postuninstall_cmds \
18355 old_archive_cmds \
18356 extract_expsyms_cmds \
18357 old_archive_from_new_cmds \
18358 old_archive_from_expsyms_cmds \
18359 archive_cmds \
18360 archive_expsym_cmds \
18361 module_cmds \
18362 module_expsym_cmds \
18363 export_symbols_cmds \
18364 prelink_cmds \
18365 postlink_cmds \
18366 postinstall_cmds \
18367 postuninstall_cmds \
18368 finish_cmds \
18369 sys_lib_search_path_spec \
18370 sys_lib_dlsearch_path_spec \
18371 reload_cmds_CXX \
18372 old_archive_cmds_CXX \
18373 old_archive_from_new_cmds_CXX \
18374 old_archive_from_expsyms_cmds_CXX \
18375 archive_cmds_CXX \
18376 archive_expsym_cmds_CXX \
18377 module_cmds_CXX \
18378 module_expsym_cmds_CXX \
18379 export_symbols_cmds_CXX \
18380 prelink_cmds_CXX \
18381 postlink_cmds_CXX; do
18382 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18383 *[\\\\\\\`\\"\\\$]*)
18384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18385 ;;
18386 *)
18387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18388 ;;
18389 esac
18390 done
18391
18392 ac_aux_dir='$ac_aux_dir'
18393 xsi_shell='$xsi_shell'
18394 lt_shell_append='$lt_shell_append'
18395
18396 # See if we are running on zsh, and set the options which allow our
18397 # commands through without removal of \ escapes INIT.
18398 if test -n "\${ZSH_VERSION+set}" ; then
18399 setopt NO_GLOB_SUBST
18400 fi
18401
18402
18403 PACKAGE='$PACKAGE'
18404 VERSION='$VERSION'
18405 TIMESTAMP='$TIMESTAMP'
18406 RM='$RM'
18407 ofile='$ofile'
18408
18409
18410
18411
18412
18413
18414 _ACEOF
18415
18416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18417
18418 # Handling of arguments.
18419 for ac_config_target in $ac_config_targets
18420 do
18421 case $ac_config_target in
18422 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18423 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18424 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18425 "SDL_gfx.pc") CONFIG_FILES="$CONFIG_FILES SDL_gfx.pc" ;;
18426
18427 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18428 esac
18429 done
18430
18431
18432 # If the user did not use the arguments to specify the items to instantiate,
18433 # then the envvar interface is used. Set only those that are not.
18434 # We use the long form for the default assignment because of an extremely
18435 # bizarre bug on SunOS 4.1.3.
18436 if $ac_need_defaults; then
18437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18439 fi
18440
18441 # Have a temporary directory for convenience. Make it in the build tree
18442 # simply because there is no reason against having it here, and in addition,
18443 # creating and moving files from /tmp can sometimes cause problems.
18444 # Hook for its removal unless debugging.
18445 # Note that there is a small window in which the directory will not be cleaned:
18446 # after its creation but before its name has been assigned to `$tmp'.
18447 $debug ||
18448 {
18449 tmp= ac_tmp=
18450 trap 'exit_status=$?
18451 : "${ac_tmp:=$tmp}"
18452 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18453 ' 0
18454 trap 'as_fn_exit 1' 1 2 13 15
18455 }
18456 # Create a (secure) tmp directory for tmp files.
18457
18458 {
18459 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18460 test -d "$tmp"
18461 } ||
18462 {
18463 tmp=./conf$$-$RANDOM
18464 (umask 077 && mkdir "$tmp")
18465 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18466 ac_tmp=$tmp
18467
18468 # Set up the scripts for CONFIG_FILES section.
18469 # No need to generate them if there are no CONFIG_FILES.
18470 # This happens for instance with `./config.status config.h'.
18471 if test -n "$CONFIG_FILES"; then
18472
18473
18474 ac_cr=`echo X | tr X '\015'`
18475 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18476 # But we know of no other shell where ac_cr would be empty at this
18477 # point, so we can use a bashism as a fallback.
18478 if test "x$ac_cr" = x; then
18479 eval ac_cr=\$\'\\r\'
18480 fi
18481 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18482 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18483 ac_cs_awk_cr='\\r'
18484 else
18485 ac_cs_awk_cr=$ac_cr
18486 fi
18487
18488 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18489 _ACEOF
18490
18491
18492 {
18493 echo "cat >conf$$subs.awk <<_ACEOF" &&
18494 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18495 echo "_ACEOF"
18496 } >conf$$subs.sh ||
18497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18498 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18499 ac_delim='%!_!# '
18500 for ac_last_try in false false false false false :; do
18501 . ./conf$$subs.sh ||
18502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18503
18504 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18505 if test $ac_delim_n = $ac_delim_num; then
18506 break
18507 elif $ac_last_try; then
18508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18509 else
18510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18511 fi
18512 done
18513 rm -f conf$$subs.sh
18514
18515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18516 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18517 _ACEOF
18518 sed -n '
18519 h
18520 s/^/S["/; s/!.*/"]=/
18521 p
18522 g
18523 s/^[^!]*!//
18524 :repl
18525 t repl
18526 s/'"$ac_delim"'$//
18527 t delim
18528 :nl
18529 h
18530 s/\(.\{148\}\)..*/\1/
18531 t more1
18532 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18533 p
18534 n
18535 b repl
18536 :more1
18537 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18538 p
18539 g
18540 s/.\{148\}//
18541 t nl
18542 :delim
18543 h
18544 s/\(.\{148\}\)..*/\1/
18545 t more2
18546 s/["\\]/\\&/g; s/^/"/; s/$/"/
18547 p
18548 b
18549 :more2
18550 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18551 p
18552 g
18553 s/.\{148\}//
18554 t delim
18555 ' <conf$$subs.awk | sed '
18556 /^[^""]/{
18557 N
18558 s/\n//
18559 }
18560 ' >>$CONFIG_STATUS || ac_write_fail=1
18561 rm -f conf$$subs.awk
18562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18563 _ACAWK
18564 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18565 for (key in S) S_is_set[key] = 1
18566 FS = ""
18567
18568 }
18569 {
18570 line = $ 0
18571 nfields = split(line, field, "@")
18572 substed = 0
18573 len = length(field[1])
18574 for (i = 2; i < nfields; i++) {
18575 key = field[i]
18576 keylen = length(key)
18577 if (S_is_set[key]) {
18578 value = S[key]
18579 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18580 len += length(value) + length(field[++i])
18581 substed = 1
18582 } else
18583 len += 1 + keylen
18584 }
18585
18586 print line
18587 }
18588
18589 _ACAWK
18590 _ACEOF
18591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18592 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18593 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18594 else
18595 cat
18596 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18597 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18598 _ACEOF
18599
18600 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18601 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18602 # trailing colons and then remove the whole line if VPATH becomes empty
18603 # (actually we leave an empty line to preserve line numbers).
18604 if test "x$srcdir" = x.; then
18605 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18606 h
18607 s///
18608 s/^/:/
18609 s/[ ]*$/:/
18610 s/:\$(srcdir):/:/g
18611 s/:\${srcdir}:/:/g
18612 s/:@srcdir@:/:/g
18613 s/^:*//
18614 s/:*$//
18615 x
18616 s/\(=[ ]*\).*/\1/
18617 G
18618 s/\n//
18619 s/^[^=]*=[ ]*$//
18620 }'
18621 fi
18622
18623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18624 fi # test -n "$CONFIG_FILES"
18625
18626
18627 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18628 shift
18629 for ac_tag
18630 do
18631 case $ac_tag in
18632 :[FHLC]) ac_mode=$ac_tag; continue;;
18633 esac
18634 case $ac_mode$ac_tag in
18635 :[FHL]*:*);;
18636 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18637 :[FH]-) ac_tag=-:-;;
18638 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18639 esac
18640 ac_save_IFS=$IFS
18641 IFS=:
18642 set x $ac_tag
18643 IFS=$ac_save_IFS
18644 shift
18645 ac_file=$1
18646 shift
18647
18648 case $ac_mode in
18649 :L) ac_source=$1;;
18650 :[FH])
18651 ac_file_inputs=
18652 for ac_f
18653 do
18654 case $ac_f in
18655 -) ac_f="$ac_tmp/stdin";;
18656 *) # Look for the file first in the build tree, then in the source tree
18657 # (if the path is not absolute). The absolute path cannot be DOS-style,
18658 # because $ac_f cannot contain `:'.
18659 test -f "$ac_f" ||
18660 case $ac_f in
18661 [\\/$]*) false;;
18662 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18663 esac ||
18664 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18665 esac
18666 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18667 as_fn_append ac_file_inputs " '$ac_f'"
18668 done
18669
18670 # Let's still pretend it is `configure' which instantiates (i.e., don't
18671 # use $as_me), people would be surprised to read:
18672 # /* config.h. Generated by config.status. */
18673 configure_input='Generated from '`
18674 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18675 `' by configure.'
18676 if test x"$ac_file" != x-; then
18677 configure_input="$ac_file. $configure_input"
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18679 $as_echo "$as_me: creating $ac_file" >&6;}
18680 fi
18681 # Neutralize special characters interpreted by sed in replacement strings.
18682 case $configure_input in #(
18683 *\&* | *\|* | *\\* )
18684 ac_sed_conf_input=`$as_echo "$configure_input" |
18685 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18686 *) ac_sed_conf_input=$configure_input;;
18687 esac
18688
18689 case $ac_tag in
18690 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18692 esac
18693 ;;
18694 esac
18695
18696 ac_dir=`$as_dirname -- "$ac_file" ||
18697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18698 X"$ac_file" : 'X\(//\)[^/]' \| \
18699 X"$ac_file" : 'X\(//\)$' \| \
18700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18701 $as_echo X"$ac_file" |
18702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18703 s//\1/
18704 q
18705 }
18706 /^X\(\/\/\)[^/].*/{
18707 s//\1/
18708 q
18709 }
18710 /^X\(\/\/\)$/{
18711 s//\1/
18712 q
18713 }
18714 /^X\(\/\).*/{
18715 s//\1/
18716 q
18717 }
18718 s/.*/./; q'`
18719 as_dir="$ac_dir"; as_fn_mkdir_p
18720 ac_builddir=.
18721
18722 case "$ac_dir" in
18723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18724 *)
18725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18726 # A ".." for each directory in $ac_dir_suffix.
18727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18728 case $ac_top_builddir_sub in
18729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18731 esac ;;
18732 esac
18733 ac_abs_top_builddir=$ac_pwd
18734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18735 # for backward compatibility:
18736 ac_top_builddir=$ac_top_build_prefix
18737
18738 case $srcdir in
18739 .) # We are building in place.
18740 ac_srcdir=.
18741 ac_top_srcdir=$ac_top_builddir_sub
18742 ac_abs_top_srcdir=$ac_pwd ;;
18743 [\\/]* | ?:[\\/]* ) # Absolute name.
18744 ac_srcdir=$srcdir$ac_dir_suffix;
18745 ac_top_srcdir=$srcdir
18746 ac_abs_top_srcdir=$srcdir ;;
18747 *) # Relative name.
18748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18749 ac_top_srcdir=$ac_top_build_prefix$srcdir
18750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18751 esac
18752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18753
18754
18755 case $ac_mode in
18756 :F)
18757 #
18758 # CONFIG_FILE
18759 #
18760
18761 case $INSTALL in
18762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18763 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18764 esac
18765 ac_MKDIR_P=$MKDIR_P
18766 case $MKDIR_P in
18767 [\\/$]* | ?:[\\/]* ) ;;
18768 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18769 esac
18770 _ACEOF
18771
18772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18773 # If the template does not know about datarootdir, expand it.
18774 # FIXME: This hack should be removed a few years after 2.60.
18775 ac_datarootdir_hack=; ac_datarootdir_seen=
18776 ac_sed_dataroot='
18777 /datarootdir/ {
18778 p
18779 q
18780 }
18781 /@datadir@/p
18782 /@docdir@/p
18783 /@infodir@/p
18784 /@localedir@/p
18785 /@mandir@/p'
18786 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18787 *datarootdir*) ac_datarootdir_seen=yes;;
18788 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18790 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18791 _ACEOF
18792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793 ac_datarootdir_hack='
18794 s&@datadir@&$datadir&g
18795 s&@docdir@&$docdir&g
18796 s&@infodir@&$infodir&g
18797 s&@localedir@&$localedir&g
18798 s&@mandir@&$mandir&g
18799 s&\\\${datarootdir}&$datarootdir&g' ;;
18800 esac
18801 _ACEOF
18802
18803 # Neutralize VPATH when `$srcdir' = `.'.
18804 # Shell code in configure.ac might set extrasub.
18805 # FIXME: do we really want to maintain this feature?
18806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18807 ac_sed_extra="$ac_vpsub
18808 $extrasub
18809 _ACEOF
18810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18811 :t
18812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18813 s|@configure_input@|$ac_sed_conf_input|;t t
18814 s&@top_builddir@&$ac_top_builddir_sub&;t t
18815 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18816 s&@srcdir@&$ac_srcdir&;t t
18817 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18818 s&@top_srcdir@&$ac_top_srcdir&;t t
18819 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18820 s&@builddir@&$ac_builddir&;t t
18821 s&@abs_builddir@&$ac_abs_builddir&;t t
18822 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18823 s&@INSTALL@&$ac_INSTALL&;t t
18824 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18825 $ac_datarootdir_hack
18826 "
18827 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18828 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18829
18830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18831 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18833 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18835 which seems to be undefined. Please make sure it is defined" >&5
18836 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18837 which seems to be undefined. Please make sure it is defined" >&2;}
18838
18839 rm -f "$ac_tmp/stdin"
18840 case $ac_file in
18841 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18842 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18843 esac \
18844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18845 ;;
18846
18847
18848 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18849 $as_echo "$as_me: executing $ac_file commands" >&6;}
18850 ;;
18851 esac
18852
18853
18854 case $ac_file$ac_mode in
18855 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18856 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18857 # are listed without --file. Let's play safe and only enable the eval
18858 # if we detect the quoting.
18859 case $CONFIG_FILES in
18860 *\'*) eval set x "$CONFIG_FILES" ;;
18861 *) set x $CONFIG_FILES ;;
18862 esac
18863 shift
18864 for mf
18865 do
18866 # Strip MF so we end up with the name of the file.
18867 mf=`echo "$mf" | sed -e 's/:.*$//'`
18868 # Check whether this is an Automake generated Makefile or not.
18869 # We used to match only the files named `Makefile.in', but
18870 # some people rename them; so instead we look at the file content.
18871 # Grep'ing the first line is not enough: some people post-process
18872 # each Makefile.in and add a new line on top of each file to say so.
18873 # Grep'ing the whole file is not good either: AIX grep has a line
18874 # limit of 2048, but all sed's we know have understand at least 4000.
18875 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18876 dirpart=`$as_dirname -- "$mf" ||
18877 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18878 X"$mf" : 'X\(//\)[^/]' \| \
18879 X"$mf" : 'X\(//\)$' \| \
18880 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18881 $as_echo X"$mf" |
18882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18883 s//\1/
18884 q
18885 }
18886 /^X\(\/\/\)[^/].*/{
18887 s//\1/
18888 q
18889 }
18890 /^X\(\/\/\)$/{
18891 s//\1/
18892 q
18893 }
18894 /^X\(\/\).*/{
18895 s//\1/
18896 q
18897 }
18898 s/.*/./; q'`
18899 else
18900 continue
18901 fi
18902 # Extract the definition of DEPDIR, am__include, and am__quote
18903 # from the Makefile without running `make'.
18904 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18905 test -z "$DEPDIR" && continue
18906 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18907 test -z "am__include" && continue
18908 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18909 # When using ansi2knr, U may be empty or an underscore; expand it
18910 U=`sed -n 's/^U = //p' < "$mf"`
18911 # Find all dependency output files, they are included files with
18912 # $(DEPDIR) in their names. We invoke sed twice because it is the
18913 # simplest approach to changing $(DEPDIR) to its actual value in the
18914 # expansion.
18915 for file in `sed -n "
18916 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18917 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18918 # Make sure the directory exists.
18919 test -f "$dirpart/$file" && continue
18920 fdir=`$as_dirname -- "$file" ||
18921 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18922 X"$file" : 'X\(//\)[^/]' \| \
18923 X"$file" : 'X\(//\)$' \| \
18924 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18925 $as_echo X"$file" |
18926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18927 s//\1/
18928 q
18929 }
18930 /^X\(\/\/\)[^/].*/{
18931 s//\1/
18932 q
18933 }
18934 /^X\(\/\/\)$/{
18935 s//\1/
18936 q
18937 }
18938 /^X\(\/\).*/{
18939 s//\1/
18940 q
18941 }
18942 s/.*/./; q'`
18943 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18944 # echo "creating $dirpart/$file"
18945 echo '# dummy' > "$dirpart/$file"
18946 done
18947 done
18948 }
18949 ;;
18950 "libtool":C)
18951
18952 # See if we are running on zsh, and set the options which allow our
18953 # commands through without removal of \ escapes.
18954 if test -n "${ZSH_VERSION+set}" ; then
18955 setopt NO_GLOB_SUBST
18956 fi
18957
18958 cfgfile="${ofile}T"
18959 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18960 $RM "$cfgfile"
18961
18962 cat <<_LT_EOF >> "$cfgfile"
18963 #! $SHELL
18964
18965 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18966 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18967 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18968 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18969 #
18970 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18971 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18972 # Foundation, Inc.
18973 # Written by Gordon Matzigkeit, 1996
18974 #
18975 # This file is part of GNU Libtool.
18976 #
18977 # GNU Libtool is free software; you can redistribute it and/or
18978 # modify it under the terms of the GNU General Public License as
18979 # published by the Free Software Foundation; either version 2 of
18980 # the License, or (at your option) any later version.
18981 #
18982 # As a special exception to the GNU General Public License,
18983 # if you distribute this file as part of a program or library that
18984 # is built using GNU Libtool, you may include this file under the
18985 # same distribution terms that you use for the rest of that program.
18986 #
18987 # GNU Libtool is distributed in the hope that it will be useful,
18988 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18989 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18990 # GNU General Public License for more details.
18991 #
18992 # You should have received a copy of the GNU General Public License
18993 # along with GNU Libtool; see the file COPYING. If not, a copy
18994 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18995 # obtained by writing to the Free Software Foundation, Inc.,
18996 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18997
18998
18999 # The names of the tagged configurations supported by this script.
19000 available_tags="CXX "
19001
19002 # ### BEGIN LIBTOOL CONFIG
19003
19004 # Assembler program.
19005 AS=$lt_AS
19006
19007 # DLL creation program.
19008 DLLTOOL=$lt_DLLTOOL
19009
19010 # Object dumper program.
19011 OBJDUMP=$lt_OBJDUMP
19012
19013 # Which release of libtool.m4 was used?
19014 macro_version=$macro_version
19015 macro_revision=$macro_revision
19016
19017 # Whether or not to build shared libraries.
19018 build_libtool_libs=$enable_shared
19019
19020 # Whether or not to build static libraries.
19021 build_old_libs=$enable_static
19022
19023 # What type of objects to build.
19024 pic_mode=$pic_mode
19025
19026 # Whether or not to optimize for fast installation.
19027 fast_install=$enable_fast_install
19028
19029 # Shell to use when invoking shell scripts.
19030 SHELL=$lt_SHELL
19031
19032 # An echo program that protects backslashes.
19033 ECHO=$lt_ECHO
19034
19035 # The PATH separator for the build system.
19036 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19037
19038 # The host system.
19039 host_alias=$host_alias
19040 host=$host
19041 host_os=$host_os
19042
19043 # The build system.
19044 build_alias=$build_alias
19045 build=$build
19046 build_os=$build_os
19047
19048 # A sed program that does not truncate output.
19049 SED=$lt_SED
19050
19051 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19052 Xsed="\$SED -e 1s/^X//"
19053
19054 # A grep program that handles long lines.
19055 GREP=$lt_GREP
19056
19057 # An ERE matcher.
19058 EGREP=$lt_EGREP
19059
19060 # A literal string matcher.
19061 FGREP=$lt_FGREP
19062
19063 # A BSD- or MS-compatible name lister.
19064 NM=$lt_NM
19065
19066 # Whether we need soft or hard links.
19067 LN_S=$lt_LN_S
19068
19069 # What is the maximum length of a command?
19070 max_cmd_len=$max_cmd_len
19071
19072 # Object file suffix (normally "o").
19073 objext=$ac_objext
19074
19075 # Executable file suffix (normally "").
19076 exeext=$exeext
19077
19078 # whether the shell understands "unset".
19079 lt_unset=$lt_unset
19080
19081 # turn spaces into newlines.
19082 SP2NL=$lt_lt_SP2NL
19083
19084 # turn newlines into spaces.
19085 NL2SP=$lt_lt_NL2SP
19086
19087 # convert \$build file names to \$host format.
19088 to_host_file_cmd=$lt_cv_to_host_file_cmd
19089
19090 # convert \$build files to toolchain format.
19091 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19092
19093 # Method to check whether dependent libraries are shared objects.
19094 deplibs_check_method=$lt_deplibs_check_method
19095
19096 # Command to use when deplibs_check_method = "file_magic".
19097 file_magic_cmd=$lt_file_magic_cmd
19098
19099 # How to find potential files when deplibs_check_method = "file_magic".
19100 file_magic_glob=$lt_file_magic_glob
19101
19102 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19103 want_nocaseglob=$lt_want_nocaseglob
19104
19105 # Command to associate shared and link libraries.
19106 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19107
19108 # The archiver.
19109 AR=$lt_AR
19110
19111 # Flags to create an archive.
19112 AR_FLAGS=$lt_AR_FLAGS
19113
19114 # How to feed a file listing to the archiver.
19115 archiver_list_spec=$lt_archiver_list_spec
19116
19117 # A symbol stripping program.
19118 STRIP=$lt_STRIP
19119
19120 # Commands used to install an old-style archive.
19121 RANLIB=$lt_RANLIB
19122 old_postinstall_cmds=$lt_old_postinstall_cmds
19123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19124
19125 # Whether to use a lock for old archive extraction.
19126 lock_old_archive_extraction=$lock_old_archive_extraction
19127
19128 # A C compiler.
19129 LTCC=$lt_CC
19130
19131 # LTCC compiler flags.
19132 LTCFLAGS=$lt_CFLAGS
19133
19134 # Take the output of nm and produce a listing of raw symbols and C names.
19135 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19136
19137 # Transform the output of nm in a proper C declaration.
19138 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19139
19140 # Transform the output of nm in a C name address pair.
19141 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19142
19143 # Transform the output of nm in a C name address pair when lib prefix is needed.
19144 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19145
19146 # Specify filename containing input files for \$NM.
19147 nm_file_list_spec=$lt_nm_file_list_spec
19148
19149 # The root where to search for dependent libraries,and in which our libraries should be installed.
19150 lt_sysroot=$lt_sysroot
19151
19152 # The name of the directory that contains temporary libtool files.
19153 objdir=$objdir
19154
19155 # Used to examine libraries when file_magic_cmd begins with "file".
19156 MAGIC_CMD=$MAGIC_CMD
19157
19158 # Must we lock files when doing compilation?
19159 need_locks=$lt_need_locks
19160
19161 # Manifest tool.
19162 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19163
19164 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19165 DSYMUTIL=$lt_DSYMUTIL
19166
19167 # Tool to change global to local symbols on Mac OS X.
19168 NMEDIT=$lt_NMEDIT
19169
19170 # Tool to manipulate fat objects and archives on Mac OS X.
19171 LIPO=$lt_LIPO
19172
19173 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19174 OTOOL=$lt_OTOOL
19175
19176 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19177 OTOOL64=$lt_OTOOL64
19178
19179 # Old archive suffix (normally "a").
19180 libext=$libext
19181
19182 # Shared library suffix (normally ".so").
19183 shrext_cmds=$lt_shrext_cmds
19184
19185 # The commands to extract the exported symbol list from a shared archive.
19186 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19187
19188 # Variables whose values should be saved in libtool wrapper scripts and
19189 # restored at link time.
19190 variables_saved_for_relink=$lt_variables_saved_for_relink
19191
19192 # Do we need the "lib" prefix for modules?
19193 need_lib_prefix=$need_lib_prefix
19194
19195 # Do we need a version for libraries?
19196 need_version=$need_version
19197
19198 # Library versioning type.
19199 version_type=$version_type
19200
19201 # Shared library runtime path variable.
19202 runpath_var=$runpath_var
19203
19204 # Shared library path variable.
19205 shlibpath_var=$shlibpath_var
19206
19207 # Is shlibpath searched before the hard-coded library search path?
19208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19209
19210 # Format of library name prefix.
19211 libname_spec=$lt_libname_spec
19212
19213 # List of archive names. First name is the real one, the rest are links.
19214 # The last name is the one that the linker finds with -lNAME
19215 library_names_spec=$lt_library_names_spec
19216
19217 # The coded name of the library, if different from the real name.
19218 soname_spec=$lt_soname_spec
19219
19220 # Permission mode override for installation of shared libraries.
19221 install_override_mode=$lt_install_override_mode
19222
19223 # Command to use after installation of a shared archive.
19224 postinstall_cmds=$lt_postinstall_cmds
19225
19226 # Command to use after uninstallation of a shared archive.
19227 postuninstall_cmds=$lt_postuninstall_cmds
19228
19229 # Commands used to finish a libtool library installation in a directory.
19230 finish_cmds=$lt_finish_cmds
19231
19232 # As "finish_cmds", except a single script fragment to be evaled but
19233 # not shown.
19234 finish_eval=$lt_finish_eval
19235
19236 # Whether we should hardcode library paths into libraries.
19237 hardcode_into_libs=$hardcode_into_libs
19238
19239 # Compile-time system search path for libraries.
19240 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19241
19242 # Run-time system search path for libraries.
19243 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19244
19245 # Whether dlopen is supported.
19246 dlopen_support=$enable_dlopen
19247
19248 # Whether dlopen of programs is supported.
19249 dlopen_self=$enable_dlopen_self
19250
19251 # Whether dlopen of statically linked programs is supported.
19252 dlopen_self_static=$enable_dlopen_self_static
19253
19254 # Commands to strip libraries.
19255 old_striplib=$lt_old_striplib
19256 striplib=$lt_striplib
19257
19258
19259 # The linker used to build libraries.
19260 LD=$lt_LD
19261
19262 # How to create reloadable object files.
19263 reload_flag=$lt_reload_flag
19264 reload_cmds=$lt_reload_cmds
19265
19266 # Commands used to build an old-style archive.
19267 old_archive_cmds=$lt_old_archive_cmds
19268
19269 # A language specific compiler.
19270 CC=$lt_compiler
19271
19272 # Is the compiler the GNU compiler?
19273 with_gcc=$GCC
19274
19275 # Compiler flag to turn off builtin functions.
19276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19277
19278 # Additional compiler flags for building library objects.
19279 pic_flag=$lt_lt_prog_compiler_pic
19280
19281 # How to pass a linker flag through the compiler.
19282 wl=$lt_lt_prog_compiler_wl
19283
19284 # Compiler flag to prevent dynamic linking.
19285 link_static_flag=$lt_lt_prog_compiler_static
19286
19287 # Does compiler simultaneously support -c and -o options?
19288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19289
19290 # Whether or not to add -lc for building shared libraries.
19291 build_libtool_need_lc=$archive_cmds_need_lc
19292
19293 # Whether or not to disallow shared libs when runtime libs are static.
19294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19295
19296 # Compiler flag to allow reflexive dlopens.
19297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19298
19299 # Compiler flag to generate shared objects directly from archives.
19300 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19301
19302 # Whether the compiler copes with passing no objects directly.
19303 compiler_needs_object=$lt_compiler_needs_object
19304
19305 # Create an old-style archive from a shared archive.
19306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19307
19308 # Create a temporary old-style archive to link instead of a shared archive.
19309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19310
19311 # Commands used to build a shared archive.
19312 archive_cmds=$lt_archive_cmds
19313 archive_expsym_cmds=$lt_archive_expsym_cmds
19314
19315 # Commands used to build a loadable module if different from building
19316 # a shared archive.
19317 module_cmds=$lt_module_cmds
19318 module_expsym_cmds=$lt_module_expsym_cmds
19319
19320 # Whether we are building with GNU ld or not.
19321 with_gnu_ld=$lt_with_gnu_ld
19322
19323 # Flag that allows shared libraries with undefined symbols to be built.
19324 allow_undefined_flag=$lt_allow_undefined_flag
19325
19326 # Flag that enforces no undefined symbols.
19327 no_undefined_flag=$lt_no_undefined_flag
19328
19329 # Flag to hardcode \$libdir into a binary during linking.
19330 # This must work even if \$libdir does not exist
19331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19332
19333 # Whether we need a single "-rpath" flag with a separated argument.
19334 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19335
19336 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19337 # DIR into the resulting binary.
19338 hardcode_direct=$hardcode_direct
19339
19340 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19341 # DIR into the resulting binary and the resulting library dependency is
19342 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19343 # library is relocated.
19344 hardcode_direct_absolute=$hardcode_direct_absolute
19345
19346 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19347 # into the resulting binary.
19348 hardcode_minus_L=$hardcode_minus_L
19349
19350 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19351 # into the resulting binary.
19352 hardcode_shlibpath_var=$hardcode_shlibpath_var
19353
19354 # Set to "yes" if building a shared library automatically hardcodes DIR
19355 # into the library and all subsequent libraries and executables linked
19356 # against it.
19357 hardcode_automatic=$hardcode_automatic
19358
19359 # Set to yes if linker adds runtime paths of dependent libraries
19360 # to runtime path list.
19361 inherit_rpath=$inherit_rpath
19362
19363 # Whether libtool must link a program against all its dependency libraries.
19364 link_all_deplibs=$link_all_deplibs
19365
19366 # Set to "yes" if exported symbols are required.
19367 always_export_symbols=$always_export_symbols
19368
19369 # The commands to list exported symbols.
19370 export_symbols_cmds=$lt_export_symbols_cmds
19371
19372 # Symbols that should not be listed in the preloaded symbols.
19373 exclude_expsyms=$lt_exclude_expsyms
19374
19375 # Symbols that must always be exported.
19376 include_expsyms=$lt_include_expsyms
19377
19378 # Commands necessary for linking programs (against libraries) with templates.
19379 prelink_cmds=$lt_prelink_cmds
19380
19381 # Commands necessary for finishing linking programs.
19382 postlink_cmds=$lt_postlink_cmds
19383
19384 # Specify filename containing input files.
19385 file_list_spec=$lt_file_list_spec
19386
19387 # How to hardcode a shared library path into an executable.
19388 hardcode_action=$hardcode_action
19389
19390 # The directories searched by this compiler when creating a shared library.
19391 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19392
19393 # Dependencies to place before and after the objects being linked to
19394 # create a shared library.
19395 predep_objects=$lt_predep_objects
19396 postdep_objects=$lt_postdep_objects
19397 predeps=$lt_predeps
19398 postdeps=$lt_postdeps
19399
19400 # The library search path used internally by the compiler when linking
19401 # a shared library.
19402 compiler_lib_search_path=$lt_compiler_lib_search_path
19403
19404 # ### END LIBTOOL CONFIG
19405
19406 _LT_EOF
19407
19408 case $host_os in
19409 aix3*)
19410 cat <<\_LT_EOF >> "$cfgfile"
19411 # AIX sometimes has problems with the GCC collect2 program. For some
19412 # reason, if we set the COLLECT_NAMES environment variable, the problems
19413 # vanish in a puff of smoke.
19414 if test "X${COLLECT_NAMES+set}" != Xset; then
19415 COLLECT_NAMES=
19416 export COLLECT_NAMES
19417 fi
19418 _LT_EOF
19419 ;;
19420 esac
19421
19422
19423 ltmain="$ac_aux_dir/ltmain.sh"
19424
19425
19426 # We use sed instead of cat because bash on DJGPP gets confused if
19427 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19428 # text mode, it properly converts lines to CR/LF. This bash problem
19429 # is reportedly fixed, but why not run on old versions too?
19430 sed '$q' "$ltmain" >> "$cfgfile" \
19431 || (rm -f "$cfgfile"; exit 1)
19432
19433 if test x"$xsi_shell" = xyes; then
19434 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19435 func_dirname ()\
19436 {\
19437 \ case ${1} in\
19438 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19439 \ * ) func_dirname_result="${3}" ;;\
19440 \ esac\
19441 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19442 && mv -f "$cfgfile.tmp" "$cfgfile" \
19443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19444 test 0 -eq $? || _lt_function_replace_fail=:
19445
19446
19447 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19448 func_basename ()\
19449 {\
19450 \ func_basename_result="${1##*/}"\
19451 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19452 && mv -f "$cfgfile.tmp" "$cfgfile" \
19453 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19454 test 0 -eq $? || _lt_function_replace_fail=:
19455
19456
19457 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19458 func_dirname_and_basename ()\
19459 {\
19460 \ case ${1} in\
19461 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19462 \ * ) func_dirname_result="${3}" ;;\
19463 \ esac\
19464 \ func_basename_result="${1##*/}"\
19465 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19466 && mv -f "$cfgfile.tmp" "$cfgfile" \
19467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19468 test 0 -eq $? || _lt_function_replace_fail=:
19469
19470
19471 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19472 func_stripname ()\
19473 {\
19474 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19475 \ # positional parameters, so assign one to ordinary parameter first.\
19476 \ func_stripname_result=${3}\
19477 \ func_stripname_result=${func_stripname_result#"${1}"}\
19478 \ func_stripname_result=${func_stripname_result%"${2}"}\
19479 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19480 && mv -f "$cfgfile.tmp" "$cfgfile" \
19481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19482 test 0 -eq $? || _lt_function_replace_fail=:
19483
19484
19485 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19486 func_split_long_opt ()\
19487 {\
19488 \ func_split_long_opt_name=${1%%=*}\
19489 \ func_split_long_opt_arg=${1#*=}\
19490 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19491 && mv -f "$cfgfile.tmp" "$cfgfile" \
19492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19493 test 0 -eq $? || _lt_function_replace_fail=:
19494
19495
19496 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19497 func_split_short_opt ()\
19498 {\
19499 \ func_split_short_opt_arg=${1#??}\
19500 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19501 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19502 && mv -f "$cfgfile.tmp" "$cfgfile" \
19503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19504 test 0 -eq $? || _lt_function_replace_fail=:
19505
19506
19507 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19508 func_lo2o ()\
19509 {\
19510 \ case ${1} in\
19511 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19512 \ *) func_lo2o_result=${1} ;;\
19513 \ esac\
19514 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19515 && mv -f "$cfgfile.tmp" "$cfgfile" \
19516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19517 test 0 -eq $? || _lt_function_replace_fail=:
19518
19519
19520 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19521 func_xform ()\
19522 {\
19523 func_xform_result=${1%.*}.lo\
19524 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19525 && mv -f "$cfgfile.tmp" "$cfgfile" \
19526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19527 test 0 -eq $? || _lt_function_replace_fail=:
19528
19529
19530 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19531 func_arith ()\
19532 {\
19533 func_arith_result=$(( $* ))\
19534 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19535 && mv -f "$cfgfile.tmp" "$cfgfile" \
19536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19537 test 0 -eq $? || _lt_function_replace_fail=:
19538
19539
19540 sed -e '/^func_len ()$/,/^} # func_len /c\
19541 func_len ()\
19542 {\
19543 func_len_result=${#1}\
19544 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19545 && mv -f "$cfgfile.tmp" "$cfgfile" \
19546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19547 test 0 -eq $? || _lt_function_replace_fail=:
19548
19549 fi
19550
19551 if test x"$lt_shell_append" = xyes; then
19552 sed -e '/^func_append ()$/,/^} # func_append /c\
19553 func_append ()\
19554 {\
19555 eval "${1}+=\\${2}"\
19556 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19557 && mv -f "$cfgfile.tmp" "$cfgfile" \
19558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19559 test 0 -eq $? || _lt_function_replace_fail=:
19560
19561
19562 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19563 func_append_quoted ()\
19564 {\
19565 \ func_quote_for_eval "${2}"\
19566 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19567 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19568 && mv -f "$cfgfile.tmp" "$cfgfile" \
19569 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19570 test 0 -eq $? || _lt_function_replace_fail=:
19571
19572
19573 # Save a `func_append' function call where possible by direct use of '+='
19574 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19575 && mv -f "$cfgfile.tmp" "$cfgfile" \
19576 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19577 test 0 -eq $? || _lt_function_replace_fail=:
19578 else
19579 # Save a `func_append' function call even when '+=' is not available
19580 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19581 && mv -f "$cfgfile.tmp" "$cfgfile" \
19582 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19583 test 0 -eq $? || _lt_function_replace_fail=:
19584 fi
19585
19586 if test x"$_lt_function_replace_fail" = x":"; then
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19588 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19589 fi
19590
19591
19592 mv -f "$cfgfile" "$ofile" ||
19593 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19594 chmod +x "$ofile"
19595
19596
19597 cat <<_LT_EOF >> "$ofile"
19598
19599 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19600
19601 # The linker used to build libraries.
19602 LD=$lt_LD_CXX
19603
19604 # How to create reloadable object files.
19605 reload_flag=$lt_reload_flag_CXX
19606 reload_cmds=$lt_reload_cmds_CXX
19607
19608 # Commands used to build an old-style archive.
19609 old_archive_cmds=$lt_old_archive_cmds_CXX
19610
19611 # A language specific compiler.
19612 CC=$lt_compiler_CXX
19613
19614 # Is the compiler the GNU compiler?
19615 with_gcc=$GCC_CXX
19616
19617 # Compiler flag to turn off builtin functions.
19618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19619
19620 # Additional compiler flags for building library objects.
19621 pic_flag=$lt_lt_prog_compiler_pic_CXX
19622
19623 # How to pass a linker flag through the compiler.
19624 wl=$lt_lt_prog_compiler_wl_CXX
19625
19626 # Compiler flag to prevent dynamic linking.
19627 link_static_flag=$lt_lt_prog_compiler_static_CXX
19628
19629 # Does compiler simultaneously support -c and -o options?
19630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19631
19632 # Whether or not to add -lc for building shared libraries.
19633 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19634
19635 # Whether or not to disallow shared libs when runtime libs are static.
19636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19637
19638 # Compiler flag to allow reflexive dlopens.
19639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19640
19641 # Compiler flag to generate shared objects directly from archives.
19642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19643
19644 # Whether the compiler copes with passing no objects directly.
19645 compiler_needs_object=$lt_compiler_needs_object_CXX
19646
19647 # Create an old-style archive from a shared archive.
19648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19649
19650 # Create a temporary old-style archive to link instead of a shared archive.
19651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19652
19653 # Commands used to build a shared archive.
19654 archive_cmds=$lt_archive_cmds_CXX
19655 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19656
19657 # Commands used to build a loadable module if different from building
19658 # a shared archive.
19659 module_cmds=$lt_module_cmds_CXX
19660 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19661
19662 # Whether we are building with GNU ld or not.
19663 with_gnu_ld=$lt_with_gnu_ld_CXX
19664
19665 # Flag that allows shared libraries with undefined symbols to be built.
19666 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19667
19668 # Flag that enforces no undefined symbols.
19669 no_undefined_flag=$lt_no_undefined_flag_CXX
19670
19671 # Flag to hardcode \$libdir into a binary during linking.
19672 # This must work even if \$libdir does not exist
19673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19674
19675 # Whether we need a single "-rpath" flag with a separated argument.
19676 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19677
19678 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19679 # DIR into the resulting binary.
19680 hardcode_direct=$hardcode_direct_CXX
19681
19682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19683 # DIR into the resulting binary and the resulting library dependency is
19684 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19685 # library is relocated.
19686 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19687
19688 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19689 # into the resulting binary.
19690 hardcode_minus_L=$hardcode_minus_L_CXX
19691
19692 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19693 # into the resulting binary.
19694 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19695
19696 # Set to "yes" if building a shared library automatically hardcodes DIR
19697 # into the library and all subsequent libraries and executables linked
19698 # against it.
19699 hardcode_automatic=$hardcode_automatic_CXX
19700
19701 # Set to yes if linker adds runtime paths of dependent libraries
19702 # to runtime path list.
19703 inherit_rpath=$inherit_rpath_CXX
19704
19705 # Whether libtool must link a program against all its dependency libraries.
19706 link_all_deplibs=$link_all_deplibs_CXX
19707
19708 # Set to "yes" if exported symbols are required.
19709 always_export_symbols=$always_export_symbols_CXX
19710
19711 # The commands to list exported symbols.
19712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19713
19714 # Symbols that should not be listed in the preloaded symbols.
19715 exclude_expsyms=$lt_exclude_expsyms_CXX
19716
19717 # Symbols that must always be exported.
19718 include_expsyms=$lt_include_expsyms_CXX
19719
19720 # Commands necessary for linking programs (against libraries) with templates.
19721 prelink_cmds=$lt_prelink_cmds_CXX
19722
19723 # Commands necessary for finishing linking programs.
19724 postlink_cmds=$lt_postlink_cmds_CXX
19725
19726 # Specify filename containing input files.
19727 file_list_spec=$lt_file_list_spec_CXX
19728
19729 # How to hardcode a shared library path into an executable.
19730 hardcode_action=$hardcode_action_CXX
19731
19732 # The directories searched by this compiler when creating a shared library.
19733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19734
19735 # Dependencies to place before and after the objects being linked to
19736 # create a shared library.
19737 predep_objects=$lt_predep_objects_CXX
19738 postdep_objects=$lt_postdep_objects_CXX
19739 predeps=$lt_predeps_CXX
19740 postdeps=$lt_postdeps_CXX
19741
19742 # The library search path used internally by the compiler when linking
19743 # a shared library.
19744 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19745
19746 # ### END LIBTOOL TAG CONFIG: CXX
19747 _LT_EOF
19748
19749 ;;
19750
19751 esac
19752 done # for ac_tag
19753
19754
19755 as_fn_exit 0
19756 _ACEOF
19757 ac_clean_files=$ac_clean_files_save
19758
19759 test $ac_write_fail = 0 ||
19760 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19761
19762
19763 # configure is writing to config.log, and then calls config.status.
19764 # config.status does its own redirection, appending to config.log.
19765 # Unfortunately, on DOS this fails, as config.log is still kept open
19766 # by configure, so config.status won't be able to write to it; its
19767 # output is simply discarded. So we exec the FD to /dev/null,
19768 # effectively closing config.log, so it can be properly (re)opened and
19769 # appended to by config.status. When coming back to configure, we
19770 # need to make the FD available again.
19771 if test "$no_create" != yes; then
19772 ac_cs_success=:
19773 ac_config_status_args=
19774 test "$silent" = yes &&
19775 ac_config_status_args="$ac_config_status_args --quiet"
19776 exec 5>/dev/null
19777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19778 exec 5>>config.log
19779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19780 # would make configure fail if this is the last instruction.
19781 $ac_cs_success || as_fn_exit 1
19782 fi
19783 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19785 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19786 fi
19787
19788
19789 echo
19790 echo "Options summary:"
19791 echo "* --enable-mmx: $enable_mmx"