]> git.ipfire.org Git - thirdparty/gcc.git/blob - libobjc/configure
752f6fdfebd8e330bb694f03d6145c3f7a63d62c
[thirdparty/gcc.git] / libobjc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
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 bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libobjc'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="objc/objc.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 get_gcc_base_ver
635 OBJC_BOEHM_GC_LIBS
636 OBJC_BOEHM_GC_INCLUDES
637 OBJC_BOEHM_GC
638 OBJC_GCFLAGS
639 SET_MAKE
640 CPP
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 AWK
647 STRIP
648 LN_S
649 NM
650 ac_ct_DUMPBIN
651 DUMPBIN
652 LD
653 FGREP
654 EGREP
655 GREP
656 SED
657 LIBTOOL
658 OBJDUMP
659 DLLTOOL
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 RANLIB
667 AR
668 AS
669 XCFLAGS
670 extra_ldflags_libobjc
671 lt_host_flags
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
678 CC
679 libsuffix
680 includedirname
681 toolexeclibdir
682 toolexecdir
683 glibcpp_srcdir
684 target_noncanonical
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 multi_basedir
694 VERSION
695 target_subdir
696 host_subdir
697 build_subdir
698 build_libsubdir
699 build_os
700 build_vendor
701 build_cpu
702 build
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files=''
742 ac_user_opts='
743 enable_option_checking
744 with_build_libsubdir
745 with_target_subdir
746 with_cross_host
747 enable_version_specific_runtime_libs
748 enable_multilib
749 with_toolexeclibdir
750 enable_cet
751 enable_maintainer_mode
752 enable_shared
753 enable_static
754 with_pic
755 enable_fast_install
756 with_gnu_ld
757 enable_libtool_lock
758 enable_tls
759 enable_objc_gc
760 with_target_bdw_gc
761 with_target_bdw_gc_include
762 with_target_bdw_gc_lib
763 with_gcc_major_version_only
764 '
765 ac_precious_vars='build_alias
766 host_alias
767 target_alias
768 CPP
769 CPPFLAGS'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
829 fi
830
831 case $ac_option in
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *=) ac_optarg= ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175 ;;
1176
1177 esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198 do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1227 fi
1228 fi
1229
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233 test "$silent" = yes && exec 6>/dev/null
1234
1235
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error $? "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\).*/{
1267 s//\1/
1268 q
1269 }
1270 s/.*/./; q'`
1271 srcdir=$ac_confdir
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 srcdir=..
1274 fi
1275 else
1276 ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 fi
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285 pwd)`
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 srcdir=.
1289 fi
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1293 case $srcdir in
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 esac
1296 for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 done
1302
1303 #
1304 # Report the --help message.
1305 #
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1309 cat <<_ACEOF
1310 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1311
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1316
1317 Defaults for the options are specified in brackets.
1318
1319 Configuration:
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking ...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 [PREFIX]
1335
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1340
1341 For better control, use the options below.
1342
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1364
1365 cat <<\_ACEOF
1366
1367 System types:
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 --target=TARGET configure for building compilers for TARGET [HOST]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of package-unused version-unused:";;
1377 esac
1378 cat <<\_ACEOF
1379
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1385 --enable-multilib build many library versions (default)
1386 --enable-cet enable Intel CET in target libraries [default=auto]
1387 --enable-maintainer-mode
1388 enable make rules and dependencies not useful (and
1389 sometimes confusing) to the casual installer
1390 --enable-shared[=PKGS] build shared libraries [default=yes]
1391 --enable-static[=PKGS] build static libraries [default=yes]
1392 --enable-fast-install[=PKGS]
1393 optimize for fast installation [default=yes]
1394 --disable-libtool-lock avoid locking (might break parallel builds)
1395 --enable-tls Use thread-local storage [default=yes]
1396 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1397 Objective-C runtime
1398
1399 Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-build-libsubdir=DIR Directory where to find libraries for build system
1403 --with-target-subdir=SUBDIR
1404 configuring in a subdirectory
1405 --with-cross-host=HOST configuring with a cross compiler
1406 --with-toolexeclibdir=DIR
1407 install libraries built with a cross compiler within
1408 DIR
1409 --with-pic try to use only PIC/non-PIC objects [default=use
1410 both]
1411 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1412 --with-target-bdw-gc=PATHLIST
1413 specify prefix directory for installed bdw-gc
1414 package. Equivalent to
1415 --with-target-bdw-gc-include=PATH/include plus
1416 --with-target-bdw-gc-lib=PATH/lib
1417 --with-target-bdw-gc-include=PATHLIST
1418 specify directories for installed bdw-gc include
1419 files
1420 --with-target-bdw-gc-lib=PATHLIST
1421 specify directories for installed bdw-gc library
1422 --with-gcc-major-version-only
1423 use only GCC major number in filesystem paths
1424
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CPP C preprocessor
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to the package provider.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1449 ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 package-unused configure version-unused
1502 generated by GNU Autoconf 2.69
1503
1504 Copyright (C) 2012 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547 fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_link ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest$ac_exeext
1560 if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest$ac_exeext && {
1579 test "$cross_compiling" = yes ||
1580 test -x conftest$ac_exeext
1581 }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588 fi
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_link
1598
1599 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists and can be compiled using the include files in
1602 # INCLUDES, setting the cache variable VAR accordingly.
1603 ac_fn_c_check_header_compile ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1610 else
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 $4
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_compile "$LINENO"; then :
1617 eval "$3=yes"
1618 else
1619 eval "$3=no"
1620 fi
1621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622 fi
1623 eval ac_res=\$$3
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625 $as_echo "$ac_res" >&6; }
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
1628 } # ac_fn_c_check_header_compile
1629
1630 # ac_fn_c_try_cpp LINENO
1631 # ----------------------
1632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_cpp ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } > conftest.i && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 }; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_cpp
1666
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1671 ac_fn_c_try_run ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=$ac_status
1702 fi
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_run
1708
1709 # ac_fn_c_check_func LINENO FUNC VAR
1710 # ----------------------------------
1711 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1712 ac_fn_c_check_func ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 if test x$gcc_no_link = xyes; then
1721 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1722 fi
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727 #define $2 innocuous_$2
1728
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1733
1734 #ifdef __STDC__
1735 # include <limits.h>
1736 #else
1737 # include <assert.h>
1738 #endif
1739
1740 #undef $2
1741
1742 /* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745 #ifdef __cplusplus
1746 extern "C"
1747 #endif
1748 char $2 ();
1749 /* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752 #if defined __stub_$2 || defined __stub___$2
1753 choke me
1754 #endif
1755
1756 int
1757 main ()
1758 {
1759 return $2 ();
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_func
1778
1779 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782 # the include files in INCLUDES and setting the cache variable VAR
1783 # accordingly.
1784 ac_fn_c_check_header_mongrel ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if eval \${$3+:} false; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 else
1797 # Is the header compilable?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799 $as_echo_n "checking $2 usability... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 $4
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807 else
1808 ac_header_compiler=no
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812 $as_echo "$ac_header_compiler" >&6; }
1813
1814 # Is the header present?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816 $as_echo_n "checking $2 presence... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823 else
1824 ac_header_preproc=no
1825 fi
1826 rm -f conftest.err conftest.i conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828 $as_echo "$ac_header_preproc" >&6; }
1829
1830 # So? What about this header?
1831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ;;
1850 esac
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 eval "$3=\$ac_header_compiler"
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 fi
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_c_check_header_mongrel
1865 cat >config.log <<_ACEOF
1866 This file contains any messages produced by compilers while
1867 running configure, to aid debugging if configure makes a mistake.
1868
1869 It was created by package-unused $as_me version-unused, which was
1870 generated by GNU Autoconf 2.69. Invocation command line was
1871
1872 $ $0 $@
1873
1874 _ACEOF
1875 exec 5>>config.log
1876 {
1877 cat <<_ASUNAME
1878 ## --------- ##
1879 ## Platform. ##
1880 ## --------- ##
1881
1882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1890
1891 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1892 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1895 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1896 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1897 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1898
1899 _ASUNAME
1900
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904 IFS=$as_save_IFS
1905 test -z "$as_dir" && as_dir=.
1906 $as_echo "PATH: $as_dir"
1907 done
1908 IFS=$as_save_IFS
1909
1910 } >&5
1911
1912 cat >&5 <<_ACEOF
1913
1914
1915 ## ----------- ##
1916 ## Core tests. ##
1917 ## ----------- ##
1918
1919 _ACEOF
1920
1921
1922 # Keep a trace of the command line.
1923 # Strip out --no-create and --no-recursion so they do not pile up.
1924 # Strip out --silent because we don't want to record it for future runs.
1925 # Also quote any args containing shell meta-characters.
1926 # Make two passes to allow for proper duplicate-argument suppression.
1927 ac_configure_args=
1928 ac_configure_args0=
1929 ac_configure_args1=
1930 ac_must_keep_next=false
1931 for ac_pass in 1 2
1932 do
1933 for ac_arg
1934 do
1935 case $ac_arg in
1936 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938 | -silent | --silent | --silen | --sile | --sil)
1939 continue ;;
1940 *\'*)
1941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 esac
1943 case $ac_pass in
1944 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1945 2)
1946 as_fn_append ac_configure_args1 " '$ac_arg'"
1947 if test $ac_must_keep_next = true; then
1948 ac_must_keep_next=false # Got value, back to normal.
1949 else
1950 case $ac_arg in
1951 *=* | --config-cache | -C | -disable-* | --disable-* \
1952 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1953 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1954 | -with-* | --with-* | -without-* | --without-* | --x)
1955 case "$ac_configure_args0 " in
1956 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957 esac
1958 ;;
1959 -* ) ac_must_keep_next=true ;;
1960 esac
1961 fi
1962 as_fn_append ac_configure_args " '$ac_arg'"
1963 ;;
1964 esac
1965 done
1966 done
1967 { ac_configure_args0=; unset ac_configure_args0;}
1968 { ac_configure_args1=; unset ac_configure_args1;}
1969
1970 # When interrupted or exit'd, cleanup temporary files, and complete
1971 # config.log. We remove comments because anyway the quotes in there
1972 # would cause problems or look ugly.
1973 # WARNING: Use '\'' to represent an apostrophe within the trap.
1974 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1975 trap 'exit_status=$?
1976 # Save into config.log some information that might help in debugging.
1977 {
1978 echo
1979
1980 $as_echo "## ---------------- ##
1981 ## Cache variables. ##
1982 ## ---------------- ##"
1983 echo
1984 # The following way of writing the cache mishandles newlines in values,
1985 (
1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in #(
1989 *${as_nl}*)
1990 case $ac_var in #(
1991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 esac
1994 case $ac_var in #(
1995 _ | IFS | as_nl) ;; #(
1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997 *) { eval $ac_var=; unset $ac_var;} ;;
1998 esac ;;
1999 esac
2000 done
2001 (set) 2>&1 |
2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003 *${as_nl}ac_space=\ *)
2004 sed -n \
2005 "s/'\''/'\''\\\\'\'''\''/g;
2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 ;; #(
2008 *)
2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 ;;
2011 esac |
2012 sort
2013 )
2014 echo
2015
2016 $as_echo "## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##"
2019 echo
2020 for ac_var in $ac_subst_vars
2021 do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 $as_echo "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2029
2030 if test -n "$ac_subst_files"; then
2031 $as_echo "## ------------------- ##
2032 ## File substitutions. ##
2033 ## ------------------- ##"
2034 echo
2035 for ac_var in $ac_subst_files
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 $as_echo "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044 fi
2045
2046 if test -s confdefs.h; then
2047 $as_echo "## ----------- ##
2048 ## confdefs.h. ##
2049 ## ----------- ##"
2050 echo
2051 cat confdefs.h
2052 echo
2053 fi
2054 test "$ac_signal" != 0 &&
2055 $as_echo "$as_me: caught signal $ac_signal"
2056 $as_echo "$as_me: exit $exit_status"
2057 } >&5
2058 rm -f core *.core core.conftest.* &&
2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060 exit $exit_status
2061 ' 0
2062 for ac_signal in 1 2 13 15; do
2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2064 done
2065 ac_signal=0
2066
2067 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2068 rm -f -r conftest* confdefs.h
2069
2070 $as_echo "/* confdefs.h */" > confdefs.h
2071
2072 # Predefined preprocessor variables.
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_NAME "$PACKAGE_NAME"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_STRING "$PACKAGE_STRING"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_URL "$PACKAGE_URL"
2096 _ACEOF
2097
2098
2099 # Let the site file select an alternate cache file if it wants to.
2100 # Prefer an explicitly selected file to automatically selected ones.
2101 ac_site_file1=NONE
2102 ac_site_file2=NONE
2103 if test -n "$CONFIG_SITE"; then
2104 # We do not want a PATH search for config.site.
2105 case $CONFIG_SITE in #((
2106 -*) ac_site_file1=./$CONFIG_SITE;;
2107 */*) ac_site_file1=$CONFIG_SITE;;
2108 *) ac_site_file1=./$CONFIG_SITE;;
2109 esac
2110 elif test "x$prefix" != xNONE; then
2111 ac_site_file1=$prefix/share/config.site
2112 ac_site_file2=$prefix/etc/config.site
2113 else
2114 ac_site_file1=$ac_default_prefix/share/config.site
2115 ac_site_file2=$ac_default_prefix/etc/config.site
2116 fi
2117 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2118 do
2119 test "x$ac_site_file" = xNONE && continue
2120 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2123 sed 's/^/| /' "$ac_site_file" >&5
2124 . "$ac_site_file" \
2125 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2127 as_fn_error $? "failed to load site script $ac_site_file
2128 See \`config.log' for more details" "$LINENO" 5; }
2129 fi
2130 done
2131
2132 if test -r "$cache_file"; then
2133 # Some versions of bash will fail to source /dev/null (special files
2134 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2135 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2137 $as_echo "$as_me: loading cache $cache_file" >&6;}
2138 case $cache_file in
2139 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2140 *) . "./$cache_file";;
2141 esac
2142 fi
2143 else
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2145 $as_echo "$as_me: creating cache $cache_file" >&6;}
2146 >$cache_file
2147 fi
2148
2149 # Check that the precious variables saved in the cache have kept the same
2150 # value.
2151 ac_cache_corrupted=false
2152 for ac_var in $ac_precious_vars; do
2153 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2154 eval ac_new_set=\$ac_env_${ac_var}_set
2155 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2156 eval ac_new_val=\$ac_env_${ac_var}_value
2157 case $ac_old_set,$ac_new_set in
2158 set,)
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2162 ,set)
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2164 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2165 ac_cache_corrupted=: ;;
2166 ,);;
2167 *)
2168 if test "x$ac_old_val" != "x$ac_new_val"; then
2169 # differences in whitespace do not lead to failure.
2170 ac_old_val_w=`echo x $ac_old_val`
2171 ac_new_val_w=`echo x $ac_new_val`
2172 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2174 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2175 ac_cache_corrupted=:
2176 else
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2178 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2179 eval $ac_var=\$ac_old_val
2180 fi
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2182 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2184 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2185 fi;;
2186 esac
2187 # Pass precious variables to config.status.
2188 if test "$ac_new_set" = set; then
2189 case $ac_new_val in
2190 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 *) ac_arg=$ac_var=$ac_new_val ;;
2192 esac
2193 case " $ac_configure_args " in
2194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2195 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2196 esac
2197 fi
2198 done
2199 if $ac_cache_corrupted; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2203 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2204 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2205 fi
2206 ## -------------------- ##
2207 ## Main body of script. ##
2208 ## -------------------- ##
2209
2210 ac_ext=c
2211 ac_cpp='$CPP $CPPFLAGS'
2212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2215
2216
2217
2218
2219
2220
2221
2222 ac_aux_dir=
2223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224 if test -f "$ac_dir/install-sh"; then
2225 ac_aux_dir=$ac_dir
2226 ac_install_sh="$ac_aux_dir/install-sh -c"
2227 break
2228 elif test -f "$ac_dir/install.sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install.sh -c"
2231 break
2232 elif test -f "$ac_dir/shtool"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/shtool install -c"
2235 break
2236 fi
2237 done
2238 if test -z "$ac_aux_dir"; then
2239 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2240 fi
2241
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2249
2250
2251 # Make sure we can run config.sub.
2252 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2253 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2254
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2256 $as_echo_n "checking build system type... " >&6; }
2257 if ${ac_cv_build+:} false; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 ac_build_alias=$build_alias
2261 test "x$ac_build_alias" = x &&
2262 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2263 test "x$ac_build_alias" = x &&
2264 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2267
2268 fi
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2270 $as_echo "$ac_cv_build" >&6; }
2271 case $ac_cv_build in
2272 *-*-*) ;;
2273 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2274 esac
2275 build=$ac_cv_build
2276 ac_save_IFS=$IFS; IFS='-'
2277 set x $ac_cv_build
2278 shift
2279 build_cpu=$1
2280 build_vendor=$2
2281 shift; shift
2282 # Remember, the first character of IFS is used to create $*,
2283 # except with old shells:
2284 build_os=$*
2285 IFS=$ac_save_IFS
2286 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2287
2288
2289 case ${build_alias} in
2290 "") build_noncanonical=${build} ;;
2291 *) build_noncanonical=${build_alias} ;;
2292 esac
2293
2294 case ${host_alias} in
2295 "") host_noncanonical=${build_noncanonical} ;;
2296 *) host_noncanonical=${host_alias} ;;
2297 esac
2298
2299 case ${target_alias} in
2300 "") target_noncanonical=${host_noncanonical} ;;
2301 *) target_noncanonical=${target_alias} ;;
2302 esac
2303
2304
2305 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2306 # have matching libraries, they should use host libraries: Makefile.tpl
2307 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2308 # However, they still use the build modules, because the corresponding
2309 # host modules (e.g. bison) are only built for the host when bootstrap
2310 # finishes. So:
2311 # - build_subdir is where we find build modules, and never changes.
2312 # - build_libsubdir is where we find build libraries, and can be overridden.
2313
2314 # Prefix 'build-' so this never conflicts with target_subdir.
2315 build_subdir="build-${build_noncanonical}"
2316
2317 # Check whether --with-build-libsubdir was given.
2318 if test "${with_build_libsubdir+set}" = set; then :
2319 withval=$with_build_libsubdir; build_libsubdir="$withval"
2320 else
2321 build_libsubdir="$build_subdir"
2322 fi
2323
2324 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2325 if ( test $srcdir = . && test -d gcc ) \
2326 || test -d $srcdir/../host-${host_noncanonical}; then
2327 host_subdir="host-${host_noncanonical}"
2328 else
2329 host_subdir=.
2330 fi
2331 # No prefix.
2332 target_subdir=${target_noncanonical}
2333
2334
2335 # We need the following definitions because AC_PROG_LIBTOOL relies on them
2336 PACKAGE=libobjc
2337 # Version is pulled out to make it a bit easier to change using sed.
2338 VERSION=4:0:0
2339
2340
2341 # This works around the fact that libtool configuration may change LD
2342 # for this particular configuration, but some shells, instead of
2343 # keeping the changes in LD private, export them just because LD is
2344 # exported.
2345 ORIGINAL_LD_FOR_MULTILIBS=$LD
2346
2347 # -------
2348 # Options
2349 # -------
2350
2351 # We use these options to decide which functions to include.
2352
2353 # Check whether --with-target-subdir was given.
2354 if test "${with_target_subdir+set}" = set; then :
2355 withval=$with_target_subdir;
2356 fi
2357
2358
2359 # Check whether --with-cross-host was given.
2360 if test "${with_cross_host+set}" = set; then :
2361 withval=$with_cross_host;
2362 fi
2363
2364
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2366 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2367 # Check whether --enable-version-specific-runtime-libs was given.
2368 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2369 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2370 yes) version_specific_libs=yes ;;
2371 no) version_specific_libs=no ;;
2372 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2373 esac
2374 else
2375 version_specific_libs=no
2376 fi
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2379 $as_echo "$version_specific_libs" >&6; }
2380
2381 # -----------
2382 # Directories
2383 # -----------
2384
2385 # Find the rest of the source tree framework.
2386 # Default to --enable-multilib
2387 # Check whether --enable-multilib was given.
2388 if test "${enable_multilib+set}" = set; then :
2389 enableval=$enable_multilib; case "$enableval" in
2390 yes) multilib=yes ;;
2391 no) multilib=no ;;
2392 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2393 esac
2394 else
2395 multilib=yes
2396 fi
2397
2398
2399 # We may get other options which we leave undocumented:
2400 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2401 # See config-ml.in if you want the gory details.
2402
2403 if test "$srcdir" = "."; then
2404 if test "$with_target_subdir" != "."; then
2405 multi_basedir="$srcdir/$with_multisrctop../.."
2406 else
2407 multi_basedir="$srcdir/$with_multisrctop.."
2408 fi
2409 else
2410 multi_basedir="$srcdir/.."
2411 fi
2412
2413
2414 # Even if the default multilib is not a cross compilation,
2415 # it may be that some of the other multilibs are.
2416 if test $cross_compiling = no && test $multilib = yes \
2417 && test "x${with_multisubdir}" != x ; then
2418 cross_compiling=maybe
2419 fi
2420
2421 ac_config_commands="$ac_config_commands default-1"
2422
2423
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2425 $as_echo_n "checking host system type... " >&6; }
2426 if ${ac_cv_host+:} false; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 if test "x$host_alias" = x; then
2430 ac_cv_host=$ac_cv_build
2431 else
2432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2434 fi
2435
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2438 $as_echo "$ac_cv_host" >&6; }
2439 case $ac_cv_host in
2440 *-*-*) ;;
2441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2442 esac
2443 host=$ac_cv_host
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_host
2446 shift
2447 host_cpu=$1
2448 host_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 host_os=$*
2453 IFS=$ac_save_IFS
2454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2458 $as_echo_n "checking target system type... " >&6; }
2459 if ${ac_cv_target+:} false; then :
2460 $as_echo_n "(cached) " >&6
2461 else
2462 if test "x$target_alias" = x; then
2463 ac_cv_target=$ac_cv_host
2464 else
2465 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2467 fi
2468
2469 fi
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2471 $as_echo "$ac_cv_target" >&6; }
2472 case $ac_cv_target in
2473 *-*-*) ;;
2474 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2475 esac
2476 target=$ac_cv_target
2477 ac_save_IFS=$IFS; IFS='-'
2478 set x $ac_cv_target
2479 shift
2480 target_cpu=$1
2481 target_vendor=$2
2482 shift; shift
2483 # Remember, the first character of IFS is used to create $*,
2484 # except with old shells:
2485 target_os=$*
2486 IFS=$ac_save_IFS
2487 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2488
2489
2490 # The aliases save the names the user supplied, while $host etc.
2491 # will get canonicalized.
2492 test -n "$target_alias" &&
2493 test "$program_prefix$program_suffix$program_transform_name" = \
2494 NONENONEs,x,x, &&
2495 program_prefix=${target_alias}-
2496
2497
2498
2499
2500 # Export source directory.
2501 # These need to be absolute paths, yet at the same time need to
2502 # canonicalize only relative paths, because then amd will not unmount
2503 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2504 case $srcdir in
2505 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2506 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2507 esac
2508
2509
2510
2511 # Check whether --with-toolexeclibdir was given.
2512 if test "${with_toolexeclibdir+set}" = set; then :
2513 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
2514 /)
2515 ;;
2516 */)
2517 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
2518 ;;
2519 esac
2520 else
2521 with_toolexeclibdir=no
2522 fi
2523
2524
2525
2526 # Calculate toolexeclibdir
2527 # Also toolexecdir, though it's only used in toolexeclibdir
2528 case ${version_specific_libs} in
2529 yes)
2530 # Need the gcc compiler version to know where to install libraries
2531 # and header files if --enable-version-specific-runtime-libs option
2532 # is selected.
2533 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2534 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2535 ;;
2536 no)
2537 if test -n "$with_cross_host" &&
2538 test x"$with_cross_host" != x"no"; then
2539 # Install a library built with a cross compiler in tooldir, not libdir.
2540 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2541 case ${with_toolexeclibdir} in
2542 no)
2543 toolexeclibdir='$(toolexecdir)/lib'
2544 ;;
2545 *)
2546 toolexeclibdir=${with_toolexeclibdir}
2547 ;;
2548 esac
2549 else
2550 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2551 toolexeclibdir='$(libdir)'
2552 fi
2553 multi_os_directory=`$CC -print-multi-os-directory`
2554 case $multi_os_directory in
2555 .) ;; # Avoid trailing /.
2556 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2557 esac
2558 ;;
2559 esac
2560
2561
2562
2563 # Figure out if we want to name the include directory and the
2564 # library name changes differently.
2565 includedirname=include
2566 libsuffix=
2567 case "${host}" in
2568 *-darwin*)
2569 # Darwin is the only target so far that needs a different include directory.
2570 includedirname=include-gnu-runtime
2571 libsuffix=-gnu
2572 ;;
2573 esac
2574
2575
2576
2577 ac_config_headers="$ac_config_headers config.h"
2578
2579
2580 # --------
2581 # Programs
2582 # --------
2583
2584
2585
2586 # We must force CC to /not/ be a precious variable; otherwise
2587 # the wrong, non-multilib-adjusted value will be used in multilibs.
2588 # As a side effect, we have to subst CFLAGS ourselves.
2589
2590
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if ${ac_cv_prog_CC+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2632
2633
2634 fi
2635 if test -z "$ac_cv_prog_CC"; then
2636 ac_ct_CC=$CC
2637 # Extract the first word of "gcc", so it can be a program name with args.
2638 set dummy gcc; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_ac_ct_CC="gcc"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2667 $as_echo "$ac_ct_CC" >&6; }
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 fi
2672
2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677 yes:)
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2680 ac_tool_warned=yes ;;
2681 esac
2682 CC=$ac_ct_CC
2683 fi
2684 else
2685 CC="$ac_cv_prog_CC"
2686 fi
2687
2688 if test -z "$CC"; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}cc; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_CC+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_CC="${ac_tool_prefix}cc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727 fi
2728 fi
2729 if test -z "$CC"; then
2730 # Extract the first word of "cc", so it can be a program name with args.
2731 set dummy cc; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_CC+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 ac_prog_rejected=no
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2749 ac_prog_rejected=yes
2750 continue
2751 fi
2752 ac_cv_prog_CC="cc"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 if test $ac_prog_rejected = yes; then
2761 # We found a bogon in the path, so make sure we never use it.
2762 set dummy $ac_cv_prog_CC
2763 shift
2764 if test $# != 0; then
2765 # We chose a different compiler from the bogus one.
2766 # However, it has the same basename, so the bogon will be chosen
2767 # first if we set CC to just the basename; use the full file name.
2768 shift
2769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2770 fi
2771 fi
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783
2784 fi
2785 if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 for ac_prog in cl.exe
2788 do
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_CC+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 test -n "$CC" && break
2827 done
2828 fi
2829 if test -z "$CC"; then
2830 ac_ct_CC=$CC
2831 for ac_prog in cl.exe
2832 do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_CC="$ac_prog"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869
2870 test -n "$ac_ct_CC" && break
2871 done
2872
2873 if test "x$ac_ct_CC" = x; then
2874 CC=""
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877 yes:)
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882 CC=$ac_ct_CC
2883 fi
2884 fi
2885
2886 fi
2887
2888
2889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 as_fn_error $? "no acceptable C compiler found in \$PATH
2892 See \`config.log' for more details" "$LINENO" 5; }
2893
2894 # Provide some information about the compiler.
2895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2896 set X $ac_compile
2897 ac_compiler=$2
2898 for ac_option in --version -v -V -qversion; do
2899 { { ac_try="$ac_compiler $ac_option >&5"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2907 ac_status=$?
2908 if test -s conftest.err; then
2909 sed '10a\
2910 ... rest of stderr output deleted ...
2911 10q' conftest.err >conftest.er1
2912 cat conftest.er1 >&5
2913 fi
2914 rm -f conftest.er1 conftest.err
2915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2916 test $ac_status = 0; }
2917 done
2918
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2921 #include <stdio.h>
2922 int
2923 main ()
2924 {
2925 printf ("hello world\n");
2926 ;
2927 return 0;
2928 }
2929 _ACEOF
2930 # FIXME: Cleanup?
2931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2932 (eval $ac_link) 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 gcc_no_link=no
2937 else
2938 gcc_no_link=yes
2939 fi
2940 if test x$gcc_no_link = xyes; then
2941 # Setting cross_compile will disable run tests; it will
2942 # also disable AC_CHECK_FILE but that's generally
2943 # correct if we can't link.
2944 cross_compiling=yes
2945 EXEEXT=
2946 else
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949
2950 int
2951 main ()
2952 {
2953
2954 ;
2955 return 0;
2956 }
2957 _ACEOF
2958 ac_clean_files_save=$ac_clean_files
2959 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2960 # Try to create an executable without -o first, disregard a.out.
2961 # It will help us diagnose broken compilers, and finding out an intuition
2962 # of exeext.
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2964 $as_echo_n "checking whether the C compiler works... " >&6; }
2965 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2966
2967 # The possible output files:
2968 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2969
2970 ac_rmfiles=
2971 for ac_file in $ac_files
2972 do
2973 case $ac_file in
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2975 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2976 esac
2977 done
2978 rm -f $ac_rmfiles
2979
2980 if { { ac_try="$ac_link_default"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_link_default") 2>&5
2988 ac_status=$?
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }; then :
2991 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2992 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2993 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2994 # so that the user can short-circuit this test for compilers unknown to
2995 # Autoconf.
2996 for ac_file in $ac_files ''
2997 do
2998 test -f "$ac_file" || continue
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3001 ;;
3002 [ab].out )
3003 # We found the default executable, but exeext='' is most
3004 # certainly right.
3005 break;;
3006 *.* )
3007 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3008 then :; else
3009 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3010 fi
3011 # We set ac_cv_exeext here because the later test for it is not
3012 # safe: cross compilers may not add the suffix if given an `-o'
3013 # argument, so we may need to know it at that point already.
3014 # Even if this section looks crufty: it has the advantage of
3015 # actually working.
3016 break;;
3017 * )
3018 break;;
3019 esac
3020 done
3021 test "$ac_cv_exeext" = no && ac_cv_exeext=
3022
3023 else
3024 ac_file=''
3025 fi
3026 if test -z "$ac_file"; then :
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 $as_echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 as_fn_error 77 "C compiler cannot create executables
3035 See \`config.log' for more details" "$LINENO" 5; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3038 $as_echo "yes" >&6; }
3039 fi
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3041 $as_echo_n "checking for C compiler default output file name... " >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3043 $as_echo "$ac_file" >&6; }
3044 ac_exeext=$ac_cv_exeext
3045
3046 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3047 ac_clean_files=$ac_clean_files_save
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3049 $as_echo_n "checking for suffix of executables... " >&6; }
3050 if { { ac_try="$ac_link"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_link") 2>&5
3058 ac_status=$?
3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3060 test $ac_status = 0; }; then :
3061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3062 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3063 # work properly (i.e., refer to `conftest.exe'), while it won't with
3064 # `rm'.
3065 for ac_file in conftest.exe conftest conftest.*; do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 break;;
3071 * ) break;;
3072 esac
3073 done
3074 else
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details" "$LINENO" 5; }
3079 fi
3080 rm -f conftest conftest$ac_cv_exeext
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3082 $as_echo "$ac_cv_exeext" >&6; }
3083
3084 rm -f conftest.$ac_ext
3085 EXEEXT=$ac_cv_exeext
3086 ac_exeext=$EXEEXT
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089 #include <stdio.h>
3090 int
3091 main ()
3092 {
3093 FILE *f = fopen ("conftest.out", "w");
3094 return ferror (f) || fclose (f) != 0;
3095
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 ac_clean_files="$ac_clean_files conftest.out"
3101 # Check that the compiler produces executables we can run. If not, either
3102 # the compiler is broken, or we cross compile.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3104 $as_echo_n "checking whether we are cross compiling... " >&6; }
3105 if test "$cross_compiling" != yes; then
3106 { { ac_try="$ac_link"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_link") 2>&5
3114 ac_status=$?
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }
3117 if { ac_try='./conftest$ac_cv_exeext'
3118 { { case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }; }; then
3128 cross_compiling=no
3129 else
3130 if test "$cross_compiling" = maybe; then
3131 cross_compiling=yes
3132 else
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error $? "cannot run C compiled programs.
3136 If you meant to cross compile, use \`--host'.
3137 See \`config.log' for more details" "$LINENO" 5; }
3138 fi
3139 fi
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3142 $as_echo "$cross_compiling" >&6; }
3143
3144 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3145 ac_clean_files=$ac_clean_files_save
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3148 $as_echo_n "checking for suffix of object files... " >&6; }
3149 if ${ac_cv_objext+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3154
3155 int
3156 main ()
3157 {
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.o conftest.obj
3164 if { { ac_try="$ac_compile"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_compile") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
3175 for ac_file in conftest.o conftest.obj conftest.*; do
3176 test -f "$ac_file" || continue;
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180 break;;
3181 esac
3182 done
3183 else
3184 $as_echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "cannot compute suffix of object files: cannot compile
3190 See \`config.log' for more details" "$LINENO" 5; }
3191 fi
3192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3193 fi
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3195 $as_echo "$ac_cv_objext" >&6; }
3196 OBJEXT=$ac_cv_objext
3197 ac_objext=$OBJEXT
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3199 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3200 if ${ac_cv_c_compiler_gnu+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 if ac_fn_c_try_compile "$LINENO"; then :
3218 ac_compiler_gnu=yes
3219 else
3220 ac_compiler_gnu=no
3221 fi
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3224
3225 fi
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3227 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3228 if test $ac_compiler_gnu = yes; then
3229 GCC=yes
3230 else
3231 GCC=
3232 fi
3233 ac_test_CFLAGS=${CFLAGS+set}
3234 ac_save_CFLAGS=$CFLAGS
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3236 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3237 if ${ac_cv_prog_cc_g+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 ac_save_c_werror_flag=$ac_c_werror_flag
3241 ac_c_werror_flag=yes
3242 ac_cv_prog_cc_g=no
3243 CFLAGS="-g"
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3246
3247 int
3248 main ()
3249 {
3250
3251 ;
3252 return 0;
3253 }
3254 _ACEOF
3255 if ac_fn_c_try_compile "$LINENO"; then :
3256 ac_cv_prog_cc_g=yes
3257 else
3258 CFLAGS=""
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3261
3262 int
3263 main ()
3264 {
3265
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 if ac_fn_c_try_compile "$LINENO"; then :
3271
3272 else
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3274 CFLAGS="-g"
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3277
3278 int
3279 main ()
3280 {
3281
3282 ;
3283 return 0;
3284 }
3285 _ACEOF
3286 if ac_fn_c_try_compile "$LINENO"; then :
3287 ac_cv_prog_cc_g=yes
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 fi
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 fi
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3297 $as_echo "$ac_cv_prog_cc_g" >&6; }
3298 if test "$ac_test_CFLAGS" = set; then
3299 CFLAGS=$ac_save_CFLAGS
3300 elif test $ac_cv_prog_cc_g = yes; then
3301 if test "$GCC" = yes; then
3302 CFLAGS="-g -O2"
3303 else
3304 CFLAGS="-g"
3305 fi
3306 else
3307 if test "$GCC" = yes; then
3308 CFLAGS="-O2"
3309 else
3310 CFLAGS=
3311 fi
3312 fi
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3314 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3315 if ${ac_cv_prog_cc_c89+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 ac_cv_prog_cc_c89=no
3319 ac_save_CC=$CC
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3322 #include <stdarg.h>
3323 #include <stdio.h>
3324 struct stat;
3325 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3326 struct buf { int x; };
3327 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3328 static char *e (p, i)
3329 char **p;
3330 int i;
3331 {
3332 return p[i];
3333 }
3334 static char *f (char * (*g) (char **, int), char **p, ...)
3335 {
3336 char *s;
3337 va_list v;
3338 va_start (v,p);
3339 s = g (p, va_arg (v,int));
3340 va_end (v);
3341 return s;
3342 }
3343
3344 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3345 function prototypes and stuff, but not '\xHH' hex character constants.
3346 These don't provoke an error unfortunately, instead are silently treated
3347 as 'x'. The following induces an error, until -std is added to get
3348 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3349 array size at least. It's necessary to write '\x00'==0 to get something
3350 that's true only with -std. */
3351 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3352
3353 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3354 inside strings and character constants. */
3355 #define FOO(x) 'x'
3356 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3357
3358 int test (int i, double x);
3359 struct s1 {int (*f) (int a);};
3360 struct s2 {int (*f) (double a);};
3361 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3362 int argc;
3363 char **argv;
3364 int
3365 main ()
3366 {
3367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3373 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3374 do
3375 CC="$ac_save_CC $ac_arg"
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_cv_prog_cc_c89=$ac_arg
3378 fi
3379 rm -f core conftest.err conftest.$ac_objext
3380 test "x$ac_cv_prog_cc_c89" != "xno" && break
3381 done
3382 rm -f conftest.$ac_ext
3383 CC=$ac_save_CC
3384
3385 fi
3386 # AC_CACHE_VAL
3387 case "x$ac_cv_prog_cc_c89" in
3388 x)
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3390 $as_echo "none needed" >&6; } ;;
3391 xno)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3393 $as_echo "unsupported" >&6; } ;;
3394 *)
3395 CC="$CC $ac_cv_prog_cc_c89"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3397 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3398 esac
3399 if test "x$ac_cv_prog_cc_c89" != xno; then :
3400
3401 fi
3402
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409
3410
3411 # extra LD Flags which are required for targets
3412
3413
3414
3415 case $host in
3416 *-cygwin* | *-mingw*)
3417 # 'host' will be top-level target in the case of a target lib,
3418 # we must compare to with_cross_host to decide if this is a native
3419 # or cross-compiler and select where to install dlls appropriately.
3420 if test -n "$with_cross_host" &&
3421 test x"$with_cross_host" != x"no"; then
3422 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
3423 else
3424 lt_host_flags='-no-undefined -bindir "$(bindir)"';
3425 fi
3426 ;;
3427 *)
3428 lt_host_flags=
3429 ;;
3430 esac
3431
3432
3433
3434 case "${host}" in
3435 *-darwin*)
3436 # Darwin needs -single_module when linking libobjc
3437 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
3438 ;;
3439 *-cygwin*|*-mingw*)
3440 # Tell libtool to build DLLs on Windows
3441 extra_ldflags_libobjc='$(lt_host_flags)'
3442 ;;
3443 esac
3444
3445
3446 # Add CET specific flags if CET is enabled
3447
3448 # Check whether --enable-cet was given.
3449 if test "${enable_cet+set}" = set; then :
3450 enableval=$enable_cet;
3451 case "$enableval" in
3452 yes|no|auto) ;;
3453 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
3454 esac
3455
3456 else
3457 enable_cet=auto
3458 fi
3459
3460
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
3462 $as_echo_n "checking for CET support... " >&6; }
3463
3464 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
3465 case "$host" in
3466 i[34567]86-*-linux* | x86_64-*-linux*)
3467 case "$enable_cet" in
3468 auto)
3469 # Check if target supports multi-byte NOPs
3470 # and if compiler and assembler support CET insn.
3471 cet_save_CFLAGS="$CFLAGS"
3472 CFLAGS="$CFLAGS -fcf-protection"
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475
3476 int
3477 main ()
3478 {
3479
3480 #if !defined(__SSE2__)
3481 #error target does not support multi-byte NOPs
3482 #else
3483 asm ("setssbsy");
3484 #endif
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491 enable_cet=yes
3492 else
3493 enable_cet=no
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 CFLAGS="$cet_save_CFLAGS"
3497 ;;
3498 yes)
3499 # Check if assembler supports CET.
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502
3503 int
3504 main ()
3505 {
3506 asm ("setssbsy");
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512
3513 else
3514 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ;;
3518 esac
3519 ;;
3520 *)
3521 enable_cet=no
3522 ;;
3523 esac
3524 if test x$enable_cet = xyes; then
3525 CET_FLAGS="-fcf-protection -mshstk"
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3531 fi
3532
3533 XCFLAGS="$XCFLAGS $CET_FLAGS"
3534
3535
3536
3537
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}as; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_AS+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$AS"; then
3547 ac_cv_prog_AS="$AS" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_AS="${ac_tool_prefix}as"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560 done
3561 done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 AS=$ac_cv_prog_AS
3567 if test -n "$AS"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3569 $as_echo "$AS" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575
3576 fi
3577 if test -z "$ac_cv_prog_AS"; then
3578 ac_ct_AS=$AS
3579 # Extract the first word of "as", so it can be a program name with args.
3580 set dummy as; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$ac_ct_AS"; then
3587 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_ac_ct_AS="as"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600 done
3601 done
3602 IFS=$as_save_IFS
3603
3604 fi
3605 fi
3606 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3607 if test -n "$ac_ct_AS"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3609 $as_echo "$ac_ct_AS" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3613 fi
3614
3615 if test "x$ac_ct_AS" = x; then
3616 AS=""
3617 else
3618 case $cross_compiling:$ac_tool_warned in
3619 yes:)
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622 ac_tool_warned=yes ;;
3623 esac
3624 AS=$ac_ct_AS
3625 fi
3626 else
3627 AS="$ac_cv_prog_AS"
3628 fi
3629
3630 if test -n "$ac_tool_prefix"; then
3631 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3632 set dummy ${ac_tool_prefix}ar; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_AR+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$AR"; then
3639 ac_cv_prog_AR="$AR" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_prog_AR="${ac_tool_prefix}ar"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 AR=$ac_cv_prog_AR
3659 if test -n "$AR"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3661 $as_echo "$AR" >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 fi
3666
3667
3668 fi
3669 if test -z "$ac_cv_prog_AR"; then
3670 ac_ct_AR=$AR
3671 # Extract the first word of "ar", so it can be a program name with args.
3672 set dummy ar; ac_word=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 if test -n "$ac_ct_AR"; then
3679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688 ac_cv_prog_ac_ct_AR="ar"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 break 2
3691 fi
3692 done
3693 done
3694 IFS=$as_save_IFS
3695
3696 fi
3697 fi
3698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3699 if test -n "$ac_ct_AR"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3701 $as_echo "$ac_ct_AR" >&6; }
3702 else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3705 fi
3706
3707 if test "x$ac_ct_AR" = x; then
3708 AR=""
3709 else
3710 case $cross_compiling:$ac_tool_warned in
3711 yes:)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714 ac_tool_warned=yes ;;
3715 esac
3716 AR=$ac_ct_AR
3717 fi
3718 else
3719 AR="$ac_cv_prog_AR"
3720 fi
3721
3722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if ${ac_cv_prog_RANLIB+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -n "$RANLIB"; then
3731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744 done
3745 done
3746 IFS=$as_save_IFS
3747
3748 fi
3749 fi
3750 RANLIB=$ac_cv_prog_RANLIB
3751 if test -n "$RANLIB"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3753 $as_echo "$RANLIB" >&6; }
3754 else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 fi
3758
3759
3760 fi
3761 if test -z "$ac_cv_prog_RANLIB"; then
3762 ac_ct_RANLIB=$RANLIB
3763 # Extract the first word of "ranlib", so it can be a program name with args.
3764 set dummy ranlib; ac_word=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 if test -n "$ac_ct_RANLIB"; then
3771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_ac_ct_RANLIB="ranlib"
3781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3791 if test -n "$ac_ct_RANLIB"; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3793 $as_echo "$ac_ct_RANLIB" >&6; }
3794 else
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3797 fi
3798
3799 if test "x$ac_ct_RANLIB" = x; then
3800 RANLIB=":"
3801 else
3802 case $cross_compiling:$ac_tool_warned in
3803 yes:)
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3806 ac_tool_warned=yes ;;
3807 esac
3808 RANLIB=$ac_ct_RANLIB
3809 fi
3810 else
3811 RANLIB="$ac_cv_prog_RANLIB"
3812 fi
3813
3814 # Find a good install program. We prefer a C program (faster),
3815 # so one script is as good as another. But avoid the broken or
3816 # incompatible versions:
3817 # SysV /etc/install, /usr/sbin/install
3818 # SunOS /usr/etc/install
3819 # IRIX /sbin/install
3820 # AIX /bin/install
3821 # AmigaOS /C/install, which installs bootblocks on floppy discs
3822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3825 # OS/2's system install, which has a completely different semantic
3826 # ./install, which can be erroneously created by make from ./install.sh.
3827 # Reject install programs that cannot install multiple files.
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3830 if test -z "$INSTALL"; then
3831 if ${ac_cv_path_install+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 # Account for people who put trailing slashes in PATH elements.
3840 case $as_dir/ in #((
3841 ./ | .// | /[cC]/* | \
3842 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3843 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3844 /usr/ucb/* ) ;;
3845 *)
3846 # OSF1 and SCO ODT 3.0 have their own names for install.
3847 # Don't use installbsd from OSF since it installs stuff as root
3848 # by default.
3849 for ac_prog in ginstall scoinst install; do
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3852 if test $ac_prog = install &&
3853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3854 # AIX install. It has an incompatible calling convention.
3855 :
3856 elif test $ac_prog = install &&
3857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3858 # program-specific install script used by HP pwplus--don't use.
3859 :
3860 else
3861 rm -rf conftest.one conftest.two conftest.dir
3862 echo one > conftest.one
3863 echo two > conftest.two
3864 mkdir conftest.dir
3865 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3866 test -s conftest.one && test -s conftest.two &&
3867 test -s conftest.dir/conftest.one &&
3868 test -s conftest.dir/conftest.two
3869 then
3870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3871 break 3
3872 fi
3873 fi
3874 fi
3875 done
3876 done
3877 ;;
3878 esac
3879
3880 done
3881 IFS=$as_save_IFS
3882
3883 rm -rf conftest.one conftest.two conftest.dir
3884
3885 fi
3886 if test "${ac_cv_path_install+set}" = set; then
3887 INSTALL=$ac_cv_path_install
3888 else
3889 # As a last resort, use the slow shell script. Don't cache a
3890 # value for INSTALL within a source directory, because that will
3891 # break other packages using the cache if that directory is
3892 # removed, or if the value is a relative name.
3893 INSTALL=$ac_install_sh
3894 fi
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3897 $as_echo "$INSTALL" >&6; }
3898
3899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3900 # It thinks the first close brace ends the variable substitution.
3901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3902
3903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3904
3905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3906
3907
3908
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3910 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3911 # Check whether --enable-maintainer-mode was given.
3912 if test "${enable_maintainer_mode+set}" = set; then :
3913 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3914 else
3915 USE_MAINTAINER_MODE=no
3916 fi
3917
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3919 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3920 if test $USE_MAINTAINER_MODE = yes; then
3921 MAINTAINER_MODE_TRUE=
3922 MAINTAINER_MODE_FALSE='#'
3923 else
3924 MAINTAINER_MODE_TRUE='#'
3925 MAINTAINER_MODE_FALSE=
3926 fi
3927
3928 MAINT=$MAINTAINER_MODE_TRUE
3929
3930
3931
3932 # Enable Win32 DLL on MS Windows - FIXME
3933 enable_win32_dll=yes
3934
3935 case $host in
3936 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}as; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if ${ac_cv_prog_AS+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 if test -n "$AS"; then
3946 ac_cv_prog_AS="$AS" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_AS="${ac_tool_prefix}as"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3958 fi
3959 done
3960 done
3961 IFS=$as_save_IFS
3962
3963 fi
3964 fi
3965 AS=$ac_cv_prog_AS
3966 if test -n "$AS"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3968 $as_echo "$AS" >&6; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3972 fi
3973
3974
3975 fi
3976 if test -z "$ac_cv_prog_AS"; then
3977 ac_ct_AS=$AS
3978 # Extract the first word of "as", so it can be a program name with args.
3979 set dummy as; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$ac_ct_AS"; then
3986 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_ac_ct_AS="as"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4006 if test -n "$ac_ct_AS"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4008 $as_echo "$ac_ct_AS" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014 if test "x$ac_ct_AS" = x; then
4015 AS="false"
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018 yes:)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023 AS=$ac_ct_AS
4024 fi
4025 else
4026 AS="$ac_cv_prog_AS"
4027 fi
4028
4029 if test -n "$ac_tool_prefix"; then
4030 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4031 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if ${ac_cv_prog_DLLTOOL+:} false; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if test -n "$DLLTOOL"; then
4038 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4050 fi
4051 done
4052 done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 DLLTOOL=$ac_cv_prog_DLLTOOL
4058 if test -n "$DLLTOOL"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4060 $as_echo "$DLLTOOL" >&6; }
4061 else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066
4067 fi
4068 if test -z "$ac_cv_prog_DLLTOOL"; then
4069 ac_ct_DLLTOOL=$DLLTOOL
4070 # Extract the first word of "dlltool", so it can be a program name with args.
4071 set dummy dlltool; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 if test -n "$ac_ct_DLLTOOL"; then
4078 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4090 fi
4091 done
4092 done
4093 IFS=$as_save_IFS
4094
4095 fi
4096 fi
4097 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4098 if test -n "$ac_ct_DLLTOOL"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4100 $as_echo "$ac_ct_DLLTOOL" >&6; }
4101 else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4106 if test "x$ac_ct_DLLTOOL" = x; then
4107 DLLTOOL="false"
4108 else
4109 case $cross_compiling:$ac_tool_warned in
4110 yes:)
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4113 ac_tool_warned=yes ;;
4114 esac
4115 DLLTOOL=$ac_ct_DLLTOOL
4116 fi
4117 else
4118 DLLTOOL="$ac_cv_prog_DLLTOOL"
4119 fi
4120
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_prog_OBJDUMP+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if test -n "$OBJDUMP"; then
4130 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4142 fi
4143 done
4144 done
4145 IFS=$as_save_IFS
4146
4147 fi
4148 fi
4149 OBJDUMP=$ac_cv_prog_OBJDUMP
4150 if test -n "$OBJDUMP"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4152 $as_echo "$OBJDUMP" >&6; }
4153 else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4156 fi
4157
4158
4159 fi
4160 if test -z "$ac_cv_prog_OBJDUMP"; then
4161 ac_ct_OBJDUMP=$OBJDUMP
4162 # Extract the first word of "objdump", so it can be a program name with args.
4163 set dummy objdump; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$ac_ct_OBJDUMP"; then
4170 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183 done
4184 done
4185 IFS=$as_save_IFS
4186
4187 fi
4188 fi
4189 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4190 if test -n "$ac_ct_OBJDUMP"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4192 $as_echo "$ac_ct_OBJDUMP" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 fi
4197
4198 if test "x$ac_ct_OBJDUMP" = x; then
4199 OBJDUMP="false"
4200 else
4201 case $cross_compiling:$ac_tool_warned in
4202 yes:)
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned=yes ;;
4206 esac
4207 OBJDUMP=$ac_ct_OBJDUMP
4208 fi
4209 else
4210 OBJDUMP="$ac_cv_prog_OBJDUMP"
4211 fi
4212
4213 ;;
4214 esac
4215
4216 test -z "$AS" && AS=as
4217
4218
4219
4220
4221
4222 test -z "$DLLTOOL" && DLLTOOL=dlltool
4223
4224
4225
4226
4227
4228 test -z "$OBJDUMP" && OBJDUMP=objdump
4229
4230
4231
4232
4233
4234
4235
4236
4237 case `pwd` in
4238 *\ * | *\ *)
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4240 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4241 esac
4242
4243
4244
4245 macro_version='2.2.7a'
4246 macro_revision='1.3134'
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260 ltmain="$ac_aux_dir/ltmain.sh"
4261
4262 # Backslashify metacharacters that are still active within
4263 # double-quoted strings.
4264 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4265
4266 # Same as above, but do not quote variable references.
4267 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4268
4269 # Sed substitution to delay expansion of an escaped shell variable in a
4270 # double_quote_subst'ed string.
4271 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4272
4273 # Sed substitution to delay expansion of an escaped single quote.
4274 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4275
4276 # Sed substitution to avoid accidental globbing in evaled expressions
4277 no_glob_subst='s/\*/\\\*/g'
4278
4279 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4280 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4281 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4282
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4284 $as_echo_n "checking how to print strings... " >&6; }
4285 # Test print first, because it will be a builtin if present.
4286 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4287 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4288 ECHO='print -r --'
4289 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4290 ECHO='printf %s\n'
4291 else
4292 # Use this function as a fallback that always works.
4293 func_fallback_echo ()
4294 {
4295 eval 'cat <<_LTECHO_EOF
4296 $1
4297 _LTECHO_EOF'
4298 }
4299 ECHO='func_fallback_echo'
4300 fi
4301
4302 # func_echo_all arg...
4303 # Invoke $ECHO with all args, space-separated.
4304 func_echo_all ()
4305 {
4306 $ECHO ""
4307 }
4308
4309 case "$ECHO" in
4310 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4311 $as_echo "printf" >&6; } ;;
4312 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4313 $as_echo "print -r" >&6; } ;;
4314 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4315 $as_echo "cat" >&6; } ;;
4316 esac
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4332 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4333 if ${ac_cv_path_SED+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4337 for ac_i in 1 2 3 4 5 6 7; do
4338 ac_script="$ac_script$as_nl$ac_script"
4339 done
4340 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4341 { ac_script=; unset ac_script;}
4342 if test -z "$SED"; then
4343 ac_path_SED_found=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_prog in sed gsed; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4353 as_fn_executable_p "$ac_path_SED" || continue
4354 # Check for GNU ac_path_SED and select it if it is found.
4355 # Check for GNU $ac_path_SED
4356 case `"$ac_path_SED" --version 2>&1` in
4357 *GNU*)
4358 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4359 *)
4360 ac_count=0
4361 $as_echo_n 0123456789 >"conftest.in"
4362 while :
4363 do
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo '' >> "conftest.nl"
4368 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370 as_fn_arith $ac_count + 1 && ac_count=$as_val
4371 if test $ac_count -gt ${ac_path_SED_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_SED="$ac_path_SED"
4374 ac_path_SED_max=$ac_count
4375 fi
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4378 done
4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 esac
4381
4382 $ac_path_SED_found && break 3
4383 done
4384 done
4385 done
4386 IFS=$as_save_IFS
4387 if test -z "$ac_cv_path_SED"; then
4388 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4389 fi
4390 else
4391 ac_cv_path_SED=$SED
4392 fi
4393
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4396 $as_echo "$ac_cv_path_SED" >&6; }
4397 SED="$ac_cv_path_SED"
4398 rm -f conftest.sed
4399
4400 test -z "$SED" && SED=sed
4401 Xsed="$SED -e 1s/^X//"
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4414 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4415 if ${ac_cv_path_GREP+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -z "$GREP"; then
4419 ac_path_GREP_found=false
4420 # Loop through the user's path and test for each of PROGNAME-LIST
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423 do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_prog in grep ggrep; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4429 as_fn_executable_p "$ac_path_GREP" || continue
4430 # Check for GNU ac_path_GREP and select it if it is found.
4431 # Check for GNU $ac_path_GREP
4432 case `"$ac_path_GREP" --version 2>&1` in
4433 *GNU*)
4434 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4435 *)
4436 ac_count=0
4437 $as_echo_n 0123456789 >"conftest.in"
4438 while :
4439 do
4440 cat "conftest.in" "conftest.in" >"conftest.tmp"
4441 mv "conftest.tmp" "conftest.in"
4442 cp "conftest.in" "conftest.nl"
4443 $as_echo 'GREP' >> "conftest.nl"
4444 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4446 as_fn_arith $ac_count + 1 && ac_count=$as_val
4447 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4448 # Best one so far, save it but keep looking for a better one
4449 ac_cv_path_GREP="$ac_path_GREP"
4450 ac_path_GREP_max=$ac_count
4451 fi
4452 # 10*(2^10) chars as input seems more than enough
4453 test $ac_count -gt 10 && break
4454 done
4455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4456 esac
4457
4458 $ac_path_GREP_found && break 3
4459 done
4460 done
4461 done
4462 IFS=$as_save_IFS
4463 if test -z "$ac_cv_path_GREP"; then
4464 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4465 fi
4466 else
4467 ac_cv_path_GREP=$GREP
4468 fi
4469
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4472 $as_echo "$ac_cv_path_GREP" >&6; }
4473 GREP="$ac_cv_path_GREP"
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4477 $as_echo_n "checking for egrep... " >&6; }
4478 if ${ac_cv_path_EGREP+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4482 then ac_cv_path_EGREP="$GREP -E"
4483 else
4484 if test -z "$EGREP"; then
4485 ac_path_EGREP_found=false
4486 # Loop through the user's path and test for each of PROGNAME-LIST
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489 do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_prog in egrep; do
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4495 as_fn_executable_p "$ac_path_EGREP" || continue
4496 # Check for GNU ac_path_EGREP and select it if it is found.
4497 # Check for GNU $ac_path_EGREP
4498 case `"$ac_path_EGREP" --version 2>&1` in
4499 *GNU*)
4500 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4501 *)
4502 ac_count=0
4503 $as_echo_n 0123456789 >"conftest.in"
4504 while :
4505 do
4506 cat "conftest.in" "conftest.in" >"conftest.tmp"
4507 mv "conftest.tmp" "conftest.in"
4508 cp "conftest.in" "conftest.nl"
4509 $as_echo 'EGREP' >> "conftest.nl"
4510 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512 as_fn_arith $ac_count + 1 && ac_count=$as_val
4513 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4514 # Best one so far, save it but keep looking for a better one
4515 ac_cv_path_EGREP="$ac_path_EGREP"
4516 ac_path_EGREP_max=$ac_count
4517 fi
4518 # 10*(2^10) chars as input seems more than enough
4519 test $ac_count -gt 10 && break
4520 done
4521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4522 esac
4523
4524 $ac_path_EGREP_found && break 3
4525 done
4526 done
4527 done
4528 IFS=$as_save_IFS
4529 if test -z "$ac_cv_path_EGREP"; then
4530 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4531 fi
4532 else
4533 ac_cv_path_EGREP=$EGREP
4534 fi
4535
4536 fi
4537 fi
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4539 $as_echo "$ac_cv_path_EGREP" >&6; }
4540 EGREP="$ac_cv_path_EGREP"
4541
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4544 $as_echo_n "checking for fgrep... " >&6; }
4545 if ${ac_cv_path_FGREP+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4549 then ac_cv_path_FGREP="$GREP -F"
4550 else
4551 if test -z "$FGREP"; then
4552 ac_path_FGREP_found=false
4553 # Loop through the user's path and test for each of PROGNAME-LIST
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_prog in fgrep; do
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4562 as_fn_executable_p "$ac_path_FGREP" || continue
4563 # Check for GNU ac_path_FGREP and select it if it is found.
4564 # Check for GNU $ac_path_FGREP
4565 case `"$ac_path_FGREP" --version 2>&1` in
4566 *GNU*)
4567 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4568 *)
4569 ac_count=0
4570 $as_echo_n 0123456789 >"conftest.in"
4571 while :
4572 do
4573 cat "conftest.in" "conftest.in" >"conftest.tmp"
4574 mv "conftest.tmp" "conftest.in"
4575 cp "conftest.in" "conftest.nl"
4576 $as_echo 'FGREP' >> "conftest.nl"
4577 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4579 as_fn_arith $ac_count + 1 && ac_count=$as_val
4580 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4581 # Best one so far, save it but keep looking for a better one
4582 ac_cv_path_FGREP="$ac_path_FGREP"
4583 ac_path_FGREP_max=$ac_count
4584 fi
4585 # 10*(2^10) chars as input seems more than enough
4586 test $ac_count -gt 10 && break
4587 done
4588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589 esac
4590
4591 $ac_path_FGREP_found && break 3
4592 done
4593 done
4594 done
4595 IFS=$as_save_IFS
4596 if test -z "$ac_cv_path_FGREP"; then
4597 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4598 fi
4599 else
4600 ac_cv_path_FGREP=$FGREP
4601 fi
4602
4603 fi
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4606 $as_echo "$ac_cv_path_FGREP" >&6; }
4607 FGREP="$ac_cv_path_FGREP"
4608
4609
4610 test -z "$GREP" && GREP=grep
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630 # Check whether --with-gnu-ld was given.
4631 if test "${with_gnu_ld+set}" = set; then :
4632 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4633 else
4634 with_gnu_ld=no
4635 fi
4636
4637 ac_prog=ld
4638 if test "$GCC" = yes; then
4639 # Check if gcc -print-prog-name=ld gives a path.
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4641 $as_echo_n "checking for ld used by $CC... " >&6; }
4642 case $host in
4643 *-*-mingw*)
4644 # gcc leaves a trailing carriage return which upsets mingw
4645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4646 *)
4647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4648 esac
4649 case $ac_prog in
4650 # Accept absolute paths.
4651 [\\/]* | ?:[\\/]*)
4652 re_direlt='/[^/][^/]*/\.\./'
4653 # Canonicalize the pathname of ld
4654 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4655 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4656 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4657 done
4658 test -z "$LD" && LD="$ac_prog"
4659 ;;
4660 "")
4661 # If it fails, then pretend we aren't using GCC.
4662 ac_prog=ld
4663 ;;
4664 *)
4665 # If it is relative, then search for the first ld in PATH.
4666 with_gnu_ld=unknown
4667 ;;
4668 esac
4669 elif test "$with_gnu_ld" = yes; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4671 $as_echo_n "checking for GNU ld... " >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4674 $as_echo_n "checking for non-GNU ld... " >&6; }
4675 fi
4676 if ${lt_cv_path_LD+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -z "$LD"; then
4680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4681 for ac_dir in $PATH; do
4682 IFS="$lt_save_ifs"
4683 test -z "$ac_dir" && ac_dir=.
4684 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4685 lt_cv_path_LD="$ac_dir/$ac_prog"
4686 # Check to see if the program is GNU ld. I'd rather use --version,
4687 # but apparently some variants of GNU ld only accept -v.
4688 # Break only if it was the GNU/non-GNU ld that we prefer.
4689 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4690 *GNU* | *'with BFD'*)
4691 test "$with_gnu_ld" != no && break
4692 ;;
4693 *)
4694 test "$with_gnu_ld" != yes && break
4695 ;;
4696 esac
4697 fi
4698 done
4699 IFS="$lt_save_ifs"
4700 else
4701 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4702 fi
4703 fi
4704
4705 LD="$lt_cv_path_LD"
4706 if test -n "$LD"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4708 $as_echo "$LD" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 fi
4713 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4715 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4716 if ${lt_cv_prog_gnu_ld+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4720 case `$LD -v 2>&1 </dev/null` in
4721 *GNU* | *'with BFD'*)
4722 lt_cv_prog_gnu_ld=yes
4723 ;;
4724 *)
4725 lt_cv_prog_gnu_ld=no
4726 ;;
4727 esac
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4730 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4731 with_gnu_ld=$lt_cv_prog_gnu_ld
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4742 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4743 if ${lt_cv_path_NM+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$NM"; then
4747 # Let the user override the nm to test.
4748 lt_nm_to_check="$NM"
4749 else
4750 lt_nm_to_check="${ac_tool_prefix}nm"
4751 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4752 lt_nm_to_check="$lt_nm_to_check nm"
4753 fi
4754 fi
4755 for lt_tmp_nm in "$lt_nm_to_check"; do
4756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4757 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4758 IFS="$lt_save_ifs"
4759 test -z "$ac_dir" && ac_dir=.
4760 # Strip out any user-provided options from the nm to test twice,
4761 # the first time to test to see if nm (rather than its options) has
4762 # an explicit path, the second time to yield a file which can be
4763 # nm'ed itself.
4764 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
4765 case "$tmp_nm_path" in
4766 */*|*\\*) tmp_nm="$lt_tmp_nm";;
4767 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
4768 esac
4769 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
4770 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
4771 # Check to see if the nm accepts a BSD-compat flag.
4772 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4773 # nm: unknown option "B" ignored
4774 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
4775 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
4776 break
4777 ;;
4778 *)
4779 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
4780 *$tmp_nm*)
4781 lt_cv_path_NM="$tmp_nm -p"
4782 break
4783 ;;
4784 *)
4785 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4786 continue # so that we can try to find one that supports BSD flags
4787 ;;
4788 esac
4789 ;;
4790 esac
4791 fi
4792 done
4793 IFS="$lt_save_ifs"
4794 done
4795 : ${lt_cv_path_NM=no}
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4798 $as_echo "$lt_cv_path_NM" >&6; }
4799 if test "$lt_cv_path_NM" != "no"; then
4800 NM="$lt_cv_path_NM"
4801 else
4802 # Didn't find any BSD compatible name lister, look for dumpbin.
4803 if test -n "$DUMPBIN"; then :
4804 # Let the user override the test.
4805 else
4806 if test -n "$ac_tool_prefix"; then
4807 for ac_prog in dumpbin "link -dump"
4808 do
4809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if ${ac_cv_prog_DUMPBIN+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$DUMPBIN"; then
4817 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 DUMPBIN=$ac_cv_prog_DUMPBIN
4837 if test -n "$DUMPBIN"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4839 $as_echo "$DUMPBIN" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845
4846 test -n "$DUMPBIN" && break
4847 done
4848 fi
4849 if test -z "$DUMPBIN"; then
4850 ac_ct_DUMPBIN=$DUMPBIN
4851 for ac_prog in dumpbin "link -dump"
4852 do
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$ac_ct_DUMPBIN"; then
4861 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4881 if test -n "$ac_ct_DUMPBIN"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4883 $as_echo "$ac_ct_DUMPBIN" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888
4889
4890 test -n "$ac_ct_DUMPBIN" && break
4891 done
4892
4893 if test "x$ac_ct_DUMPBIN" = x; then
4894 DUMPBIN=":"
4895 else
4896 case $cross_compiling:$ac_tool_warned in
4897 yes:)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900 ac_tool_warned=yes ;;
4901 esac
4902 DUMPBIN=$ac_ct_DUMPBIN
4903 fi
4904 fi
4905
4906 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4907 *COFF*)
4908 DUMPBIN="$DUMPBIN -symbols"
4909 ;;
4910 *)
4911 DUMPBIN=:
4912 ;;
4913 esac
4914 fi
4915
4916 if test "$DUMPBIN" != ":"; then
4917 NM="$DUMPBIN"
4918 fi
4919 fi
4920 test -z "$NM" && NM=nm
4921
4922
4923
4924
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4928 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4929 if ${lt_cv_nm_interface+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 lt_cv_nm_interface="BSD nm"
4933 echo "int some_variable = 0;" > conftest.$ac_ext
4934 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4935 (eval "$ac_compile" 2>conftest.err)
4936 cat conftest.err >&5
4937 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4938 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4939 cat conftest.err >&5
4940 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4941 cat conftest.out >&5
4942 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4943 lt_cv_nm_interface="MS dumpbin"
4944 fi
4945 rm -f conftest*
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4948 $as_echo "$lt_cv_nm_interface" >&6; }
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4951 $as_echo_n "checking whether ln -s works... " >&6; }
4952 LN_S=$as_ln_s
4953 if test "$LN_S" = "ln -s"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955 $as_echo "yes" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4958 $as_echo "no, using $LN_S" >&6; }
4959 fi
4960
4961 # find the maximum length of command line arguments
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4963 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4964 if ${lt_cv_sys_max_cmd_len+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 i=0
4968 teststring="ABCD"
4969
4970 case $build_os in
4971 msdosdjgpp*)
4972 # On DJGPP, this test can blow up pretty badly due to problems in libc
4973 # (any single argument exceeding 2000 bytes causes a buffer overrun
4974 # during glob expansion). Even if it were fixed, the result of this
4975 # check would be larger than it should be.
4976 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4977 ;;
4978
4979 gnu*)
4980 # Under GNU Hurd, this test is not required because there is
4981 # no limit to the length of command line arguments.
4982 # Libtool will interpret -1 as no limit whatsoever
4983 lt_cv_sys_max_cmd_len=-1;
4984 ;;
4985
4986 cygwin* | mingw* | cegcc*)
4987 # On Win9x/ME, this test blows up -- it succeeds, but takes
4988 # about 5 minutes as the teststring grows exponentially.
4989 # Worse, since 9x/ME are not pre-emptively multitasking,
4990 # you end up with a "frozen" computer, even though with patience
4991 # the test eventually succeeds (with a max line length of 256k).
4992 # Instead, let's just punt: use the minimum linelength reported by
4993 # all of the supported platforms: 8192 (on NT/2K/XP).
4994 lt_cv_sys_max_cmd_len=8192;
4995 ;;
4996
4997 mint*)
4998 # On MiNT this can take a long time and run out of memory.
4999 lt_cv_sys_max_cmd_len=8192;
5000 ;;
5001
5002 amigaos*)
5003 # On AmigaOS with pdksh, this test takes hours, literally.
5004 # So we just punt and use a minimum line length of 8192.
5005 lt_cv_sys_max_cmd_len=8192;
5006 ;;
5007
5008 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5009 # This has been around since 386BSD, at least. Likely further.
5010 if test -x /sbin/sysctl; then
5011 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5012 elif test -x /usr/sbin/sysctl; then
5013 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5014 else
5015 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5016 fi
5017 # And add a safety zone
5018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5020 ;;
5021
5022 interix*)
5023 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5024 lt_cv_sys_max_cmd_len=196608
5025 ;;
5026
5027 osf*)
5028 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5029 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5030 # nice to cause kernel panics so lets avoid the loop below.
5031 # First set a reasonable default.
5032 lt_cv_sys_max_cmd_len=16384
5033 #
5034 if test -x /sbin/sysconfig; then
5035 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5036 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5037 esac
5038 fi
5039 ;;
5040 sco3.2v5*)
5041 lt_cv_sys_max_cmd_len=102400
5042 ;;
5043 sysv5* | sco5v6* | sysv4.2uw2*)
5044 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5045 if test -n "$kargmax"; then
5046 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5047 else
5048 lt_cv_sys_max_cmd_len=32768
5049 fi
5050 ;;
5051 *)
5052 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5053 if test -n "$lt_cv_sys_max_cmd_len"; then
5054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5056 else
5057 # Make teststring a little bigger before we do anything with it.
5058 # a 1K string should be a reasonable start.
5059 for i in 1 2 3 4 5 6 7 8 ; do
5060 teststring=$teststring$teststring
5061 done
5062 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5063 # If test is not a shell built-in, we'll probably end up computing a
5064 # maximum length that is only half of the actual maximum length, but
5065 # we can't tell.
5066 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5067 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5068 test $i != 17 # 1/2 MB should be enough
5069 do
5070 i=`expr $i + 1`
5071 teststring=$teststring$teststring
5072 done
5073 # Only check the string length outside the loop.
5074 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5075 teststring=
5076 # Add a significant safety factor because C++ compilers can tack on
5077 # massive amounts of additional arguments before passing them to the
5078 # linker. It appears as though 1/2 is a usable value.
5079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5080 fi
5081 ;;
5082 esac
5083
5084 fi
5085
5086 if test -n $lt_cv_sys_max_cmd_len ; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5088 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5091 $as_echo "none" >&6; }
5092 fi
5093 max_cmd_len=$lt_cv_sys_max_cmd_len
5094
5095
5096
5097
5098
5099
5100 : ${CP="cp -f"}
5101 : ${MV="mv -f"}
5102 : ${RM="rm -f"}
5103
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5105 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5106 # Try some XSI features
5107 xsi_shell=no
5108 ( _lt_dummy="a/b/c"
5109 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5110 = c,a/b,, \
5111 && eval 'test $(( 1 + 1 )) -eq 2 \
5112 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5113 && xsi_shell=yes
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5115 $as_echo "$xsi_shell" >&6; }
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5119 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5120 lt_shell_append=no
5121 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5122 >/dev/null 2>&1 \
5123 && lt_shell_append=yes
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5125 $as_echo "$lt_shell_append" >&6; }
5126
5127
5128 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5129 lt_unset=unset
5130 else
5131 lt_unset=false
5132 fi
5133
5134
5135
5136
5137
5138 # test EBCDIC or ASCII
5139 case `echo X|tr X '\101'` in
5140 A) # ASCII based system
5141 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5142 lt_SP2NL='tr \040 \012'
5143 lt_NL2SP='tr \015\012 \040\040'
5144 ;;
5145 *) # EBCDIC based system
5146 lt_SP2NL='tr \100 \n'
5147 lt_NL2SP='tr \r\n \100\100'
5148 ;;
5149 esac
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5160 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5161 if ${lt_cv_ld_reload_flag+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 lt_cv_ld_reload_flag='-r'
5165 fi
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5167 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5168 reload_flag=$lt_cv_ld_reload_flag
5169 case $reload_flag in
5170 "" | " "*) ;;
5171 *) reload_flag=" $reload_flag" ;;
5172 esac
5173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5174 case $host_os in
5175 darwin*)
5176 if test "$GCC" = yes; then
5177 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5178 else
5179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5180 fi
5181 ;;
5182 esac
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192 if test -n "$ac_tool_prefix"; then
5193 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5194 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_OBJDUMP+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if test -n "$OBJDUMP"; then
5201 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218 fi
5219 fi
5220 OBJDUMP=$ac_cv_prog_OBJDUMP
5221 if test -n "$OBJDUMP"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5223 $as_echo "$OBJDUMP" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229
5230 fi
5231 if test -z "$ac_cv_prog_OBJDUMP"; then
5232 ac_ct_OBJDUMP=$OBJDUMP
5233 # Extract the first word of "objdump", so it can be a program name with args.
5234 set dummy objdump; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if test -n "$ac_ct_OBJDUMP"; then
5241 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5242 else
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258 fi
5259 fi
5260 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5261 if test -n "$ac_ct_OBJDUMP"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5263 $as_echo "$ac_ct_OBJDUMP" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 $as_echo "no" >&6; }
5267 fi
5268
5269 if test "x$ac_ct_OBJDUMP" = x; then
5270 OBJDUMP="false"
5271 else
5272 case $cross_compiling:$ac_tool_warned in
5273 yes:)
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5276 ac_tool_warned=yes ;;
5277 esac
5278 OBJDUMP=$ac_ct_OBJDUMP
5279 fi
5280 else
5281 OBJDUMP="$ac_cv_prog_OBJDUMP"
5282 fi
5283
5284 test -z "$OBJDUMP" && OBJDUMP=objdump
5285
5286
5287
5288
5289
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5292 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5293 if ${lt_cv_deplibs_check_method+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 lt_cv_file_magic_cmd='$MAGIC_CMD'
5297 lt_cv_file_magic_test_file=
5298 lt_cv_deplibs_check_method='unknown'
5299 # Need to set the preceding variable on all platforms that support
5300 # interlibrary dependencies.
5301 # 'none' -- dependencies not supported.
5302 # `unknown' -- same as none, but documents that we really don't know.
5303 # 'pass_all' -- all dependencies passed with no checks.
5304 # 'test_compile' -- check by making test program.
5305 # 'file_magic [[regex]]' -- check by looking for files in library path
5306 # which responds to the $file_magic_cmd with a given extended regex.
5307 # If you have `file' or equivalent on your system and you're not sure
5308 # whether `pass_all' will *always* work, you probably want this one.
5309
5310 case $host_os in
5311 aix[4-9]*)
5312 lt_cv_deplibs_check_method=pass_all
5313 ;;
5314
5315 beos*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318
5319 bsdi[45]*)
5320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5321 lt_cv_file_magic_cmd='/usr/bin/file -L'
5322 lt_cv_file_magic_test_file=/shlib/libc.so
5323 ;;
5324
5325 cygwin*)
5326 # func_win32_libid is a shell function defined in ltmain.sh
5327 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5328 lt_cv_file_magic_cmd='func_win32_libid'
5329 ;;
5330
5331 mingw* | pw32*)
5332 # Base MSYS/MinGW do not provide the 'file' command needed by
5333 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5334 # unless we find 'file', for example because we are cross-compiling.
5335 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5336 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5338 lt_cv_file_magic_cmd='func_win32_libid'
5339 else
5340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5341 lt_cv_file_magic_cmd='$OBJDUMP -f'
5342 fi
5343 ;;
5344
5345 cegcc*)
5346 # use the weaker test based on 'objdump'. See mingw*.
5347 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5348 lt_cv_file_magic_cmd='$OBJDUMP -f'
5349 ;;
5350
5351 darwin* | rhapsody*)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354
5355 freebsd* | dragonfly*)
5356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5357 case $host_cpu in
5358 i*86 )
5359 # Not sure whether the presence of OpenBSD here was a mistake.
5360 # Let's accept both of them until this is cleared up.
5361 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5362 lt_cv_file_magic_cmd=/usr/bin/file
5363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5364 ;;
5365 esac
5366 else
5367 lt_cv_deplibs_check_method=pass_all
5368 fi
5369 ;;
5370
5371 gnu*)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374
5375 haiku*)
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378
5379 hpux10.20* | hpux11*)
5380 lt_cv_file_magic_cmd=/usr/bin/file
5381 case $host_cpu in
5382 ia64*)
5383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5384 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5385 ;;
5386 hppa*64*)
5387 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]'
5388 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5389 ;;
5390 *)
5391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5392 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5393 ;;
5394 esac
5395 ;;
5396
5397 interix[3-9]*)
5398 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5400 ;;
5401
5402 irix5* | irix6* | nonstopux*)
5403 case $LD in
5404 *-32|*"-32 ") libmagic=32-bit;;
5405 *-n32|*"-n32 ") libmagic=N32;;
5406 *-64|*"-64 ") libmagic=64-bit;;
5407 *) libmagic=never-match;;
5408 esac
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412 # This must be Linux ELF.
5413 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5414 lt_cv_deplibs_check_method=pass_all
5415 ;;
5416
5417 netbsd*)
5418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5420 else
5421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5422 fi
5423 ;;
5424
5425 newos6*)
5426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5427 lt_cv_file_magic_cmd=/usr/bin/file
5428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5429 ;;
5430
5431 *nto* | *qnx*)
5432 lt_cv_deplibs_check_method=pass_all
5433 ;;
5434
5435 openbsd*)
5436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5438 else
5439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5440 fi
5441 ;;
5442
5443 osf3* | osf4* | osf5*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446
5447 rdos*)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450
5451 solaris*)
5452 lt_cv_deplibs_check_method=pass_all
5453 ;;
5454
5455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458
5459 sysv4 | sysv4.3*)
5460 case $host_vendor in
5461 motorola)
5462 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]'
5463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5464 ;;
5465 ncr)
5466 lt_cv_deplibs_check_method=pass_all
5467 ;;
5468 sequent)
5469 lt_cv_file_magic_cmd='/bin/file'
5470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5471 ;;
5472 sni)
5473 lt_cv_file_magic_cmd='/bin/file'
5474 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5475 lt_cv_file_magic_test_file=/lib/libc.so
5476 ;;
5477 siemens)
5478 lt_cv_deplibs_check_method=pass_all
5479 ;;
5480 pc)
5481 lt_cv_deplibs_check_method=pass_all
5482 ;;
5483 esac
5484 ;;
5485
5486 tpf*)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489 vxworks*)
5490 # Assume VxWorks cross toolchains are built on Linux, possibly
5491 # as canadian for Windows hosts.
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
5494 esac
5495
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5498 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5499 file_magic_cmd=$lt_cv_file_magic_cmd
5500 deplibs_check_method=$lt_cv_deplibs_check_method
5501 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514 plugin_option=
5515 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5516 for plugin in $plugin_names; do
5517 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5518 if test x$plugin_so = x$plugin; then
5519 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5520 fi
5521 if test x$plugin_so != x$plugin; then
5522 plugin_option="--plugin $plugin_so"
5523 break
5524 fi
5525 done
5526
5527 if test -n "$ac_tool_prefix"; then
5528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5529 set dummy ${ac_tool_prefix}ar; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_AR+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$AR"; then
5536 ac_cv_prog_AR="$AR" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_AR="${ac_tool_prefix}ar"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549 done
5550 done
5551 IFS=$as_save_IFS
5552
5553 fi
5554 fi
5555 AR=$ac_cv_prog_AR
5556 if test -n "$AR"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5558 $as_echo "$AR" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563
5564
5565 fi
5566 if test -z "$ac_cv_prog_AR"; then
5567 ac_ct_AR=$AR
5568 # Extract the first word of "ar", so it can be a program name with args.
5569 set dummy ar; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -n "$ac_ct_AR"; then
5576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_prog_ac_ct_AR="ar"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589 done
5590 done
5591 IFS=$as_save_IFS
5592
5593 fi
5594 fi
5595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5596 if test -n "$ac_ct_AR"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5598 $as_echo "$ac_ct_AR" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604 if test "x$ac_ct_AR" = x; then
5605 AR="false"
5606 else
5607 case $cross_compiling:$ac_tool_warned in
5608 yes:)
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5611 ac_tool_warned=yes ;;
5612 esac
5613 AR=$ac_ct_AR
5614 fi
5615 else
5616 AR="$ac_cv_prog_AR"
5617 fi
5618
5619 test -z "$AR" && AR=ar
5620 if test -n "$plugin_option"; then
5621 if $AR --help 2>&1 | grep -q "\--plugin"; then
5622 touch conftest.c
5623 $AR $plugin_option rc conftest.a conftest.c
5624 if test "$?" != 0; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5626 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5627 else
5628 AR="$AR $plugin_option"
5629 fi
5630 rm -f conftest.*
5631 fi
5632 fi
5633 test -z "$AR_FLAGS" && AR_FLAGS=cru
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 if test -n "$ac_tool_prefix"; then
5646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5647 set dummy ${ac_tool_prefix}strip; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_STRIP+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -n "$STRIP"; then
5654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671 fi
5672 fi
5673 STRIP=$ac_cv_prog_STRIP
5674 if test -n "$STRIP"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5676 $as_echo "$STRIP" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682
5683 fi
5684 if test -z "$ac_cv_prog_STRIP"; then
5685 ac_ct_STRIP=$STRIP
5686 # Extract the first word of "strip", so it can be a program name with args.
5687 set dummy strip; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 if test -n "$ac_ct_STRIP"; then
5694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_ac_ct_STRIP="strip"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 fi
5712 fi
5713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5714 if test -n "$ac_ct_STRIP"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5716 $as_echo "$ac_ct_STRIP" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5720 fi
5721
5722 if test "x$ac_ct_STRIP" = x; then
5723 STRIP=":"
5724 else
5725 case $cross_compiling:$ac_tool_warned in
5726 yes:)
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5729 ac_tool_warned=yes ;;
5730 esac
5731 STRIP=$ac_ct_STRIP
5732 fi
5733 else
5734 STRIP="$ac_cv_prog_STRIP"
5735 fi
5736
5737 test -z "$STRIP" && STRIP=:
5738
5739
5740
5741
5742
5743
5744 if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5746 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_RANLIB+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$RANLIB"; then
5753 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 RANLIB=$ac_cv_prog_RANLIB
5773 if test -n "$RANLIB"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5775 $as_echo "$RANLIB" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781
5782 fi
5783 if test -z "$ac_cv_prog_RANLIB"; then
5784 ac_ct_RANLIB=$RANLIB
5785 # Extract the first word of "ranlib", so it can be a program name with args.
5786 set dummy ranlib; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -n "$ac_ct_RANLIB"; then
5793 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_ac_ct_RANLIB="ranlib"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5805 fi
5806 done
5807 done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5813 if test -n "$ac_ct_RANLIB"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5815 $as_echo "$ac_ct_RANLIB" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821 if test "x$ac_ct_RANLIB" = x; then
5822 RANLIB=":"
5823 else
5824 case $cross_compiling:$ac_tool_warned in
5825 yes:)
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828 ac_tool_warned=yes ;;
5829 esac
5830 RANLIB=$ac_ct_RANLIB
5831 fi
5832 else
5833 RANLIB="$ac_cv_prog_RANLIB"
5834 fi
5835
5836 test -z "$RANLIB" && RANLIB=:
5837 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5838 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5839 RANLIB="$RANLIB $plugin_option"
5840 fi
5841 fi
5842
5843
5844
5845
5846
5847
5848 # Determine commands to create old-style static archives.
5849 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5850 old_postinstall_cmds='chmod 644 $oldlib'
5851 old_postuninstall_cmds=
5852
5853 if test -n "$RANLIB"; then
5854 case $host_os in
5855 openbsd*)
5856 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5857 ;;
5858 *)
5859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5860 ;;
5861 esac
5862 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5863 fi
5864
5865 case $host_os in
5866 darwin*)
5867 lock_old_archive_extraction=yes ;;
5868 *)
5869 lock_old_archive_extraction=no ;;
5870 esac
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 for ac_prog in gawk mawk nawk awk
5893 do
5894 # Extract the first word of "$ac_prog", so it can be a program name with args.
5895 set dummy $ac_prog; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_AWK+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$AWK"; then
5902 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_AWK="$ac_prog"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 AWK=$ac_cv_prog_AWK
5922 if test -n "$AWK"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5924 $as_echo "$AWK" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930
5931 test -n "$AWK" && break
5932 done
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 # If no C compiler was specified, use CC.
5953 LTCC=${LTCC-"$CC"}
5954
5955 # If no C compiler flags were specified, use CFLAGS.
5956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5957
5958 # Allow CC to be a program name with arguments.
5959 compiler=$CC
5960
5961
5962 # Check for command to grab the raw symbol name followed by C symbol from nm.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5964 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5965 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968
5969 # These are sane defaults that work on at least a few old systems.
5970 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5971
5972 # Character class describing NM global symbol codes.
5973 symcode='[BCDEGRST]'
5974
5975 # Regexp to match symbols that can be accessed directly from C.
5976 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5977
5978 # Define system-specific variables.
5979 case $host_os in
5980 aix*)
5981 symcode='[BCDT]'
5982 ;;
5983 cygwin* | mingw* | pw32* | cegcc*)
5984 symcode='[ABCDGISTW]'
5985 ;;
5986 hpux*)
5987 if test "$host_cpu" = ia64; then
5988 symcode='[ABCDEGRST]'
5989 fi
5990 ;;
5991 irix* | nonstopux*)
5992 symcode='[BCDEGRST]'
5993 ;;
5994 osf*)
5995 symcode='[BCDEGQRST]'
5996 ;;
5997 solaris*)
5998 symcode='[BCDRT]'
5999 ;;
6000 sco3.2v5*)
6001 symcode='[DT]'
6002 ;;
6003 sysv4.2uw2*)
6004 symcode='[DT]'
6005 ;;
6006 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6007 symcode='[ABDT]'
6008 ;;
6009 sysv4)
6010 symcode='[DFNSTU]'
6011 ;;
6012 esac
6013
6014 # If we're using GNU nm, then use its standard symbol codes.
6015 case `$NM -V 2>&1` in
6016 *GNU* | *'with BFD'*)
6017 symcode='[ABCDGIRSTW]' ;;
6018 esac
6019
6020 # Transform an extracted symbol line into a proper C declaration.
6021 # Some systems (esp. on ia64) link data and code symbols differently,
6022 # so use this general approach.
6023 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6024
6025 # Transform an extracted symbol line into symbol name and symbol address
6026 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6027 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'"
6028
6029 # Handle CRLF in mingw tool chain
6030 opt_cr=
6031 case $build_os in
6032 mingw*)
6033 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6034 ;;
6035 esac
6036
6037 # Try without a prefix underscore, then with it.
6038 for ac_symprfx in "" "_"; do
6039
6040 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6041 symxfrm="\\1 $ac_symprfx\\2 \\2"
6042
6043 # Write the raw and C identifiers.
6044 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6045 # Fake it for dumpbin and say T for any non-static function
6046 # and D for any global variable.
6047 # Also find C++ and __fastcall symbols from MSVC++,
6048 # which start with @ or ?.
6049 lt_cv_sys_global_symbol_pipe="$AWK '"\
6050 " {last_section=section; section=\$ 3};"\
6051 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6052 " \$ 0!~/External *\|/{next};"\
6053 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6054 " {if(hide[section]) next};"\
6055 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6056 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6057 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6058 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6059 " ' prfx=^$ac_symprfx"
6060 else
6061 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6062 fi
6063
6064 # Check to see that the pipe works correctly.
6065 pipe_works=no
6066
6067 rm -f conftest*
6068 cat > conftest.$ac_ext <<_LT_EOF
6069 #ifdef __cplusplus
6070 extern "C" {
6071 #endif
6072 char nm_test_var;
6073 void nm_test_func(void);
6074 void nm_test_func(void){}
6075 #ifdef __cplusplus
6076 }
6077 #endif
6078 int main(){nm_test_var='a';nm_test_func();return(0);}
6079 _LT_EOF
6080
6081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6082 (eval $ac_compile) 2>&5
6083 ac_status=$?
6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6085 test $ac_status = 0; }; then
6086 # Now try to grab the symbols.
6087 nlist=conftest.nm
6088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6089 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6090 ac_status=$?
6091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6092 test $ac_status = 0; } && test -s "$nlist"; then
6093 # Try sorting and uniquifying the output.
6094 if sort "$nlist" | uniq > "$nlist"T; then
6095 mv -f "$nlist"T "$nlist"
6096 else
6097 rm -f "$nlist"T
6098 fi
6099
6100 # Make sure that we snagged all the symbols we need.
6101 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6102 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6103 cat <<_LT_EOF > conftest.$ac_ext
6104 #ifdef __cplusplus
6105 extern "C" {
6106 #endif
6107
6108 _LT_EOF
6109 # Now generate the symbol file.
6110 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6111
6112 cat <<_LT_EOF >> conftest.$ac_ext
6113
6114 /* The mapping between symbol names and symbols. */
6115 const struct {
6116 const char *name;
6117 void *address;
6118 }
6119 lt__PROGRAM__LTX_preloaded_symbols[] =
6120 {
6121 { "@PROGRAM@", (void *) 0 },
6122 _LT_EOF
6123 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6124 cat <<\_LT_EOF >> conftest.$ac_ext
6125 {0, (void *) 0}
6126 };
6127
6128 /* This works around a problem in FreeBSD linker */
6129 #ifdef FREEBSD_WORKAROUND
6130 static const void *lt_preloaded_setup() {
6131 return lt__PROGRAM__LTX_preloaded_symbols;
6132 }
6133 #endif
6134
6135 #ifdef __cplusplus
6136 }
6137 #endif
6138 _LT_EOF
6139 # Now try linking the two files.
6140 mv conftest.$ac_objext conftstm.$ac_objext
6141 lt_save_LIBS="$LIBS"
6142 lt_save_CFLAGS="$CFLAGS"
6143 LIBS="conftstm.$ac_objext"
6144 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6146 (eval $ac_link) 2>&5
6147 ac_status=$?
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6150 pipe_works=yes
6151 fi
6152 LIBS="$lt_save_LIBS"
6153 CFLAGS="$lt_save_CFLAGS"
6154 else
6155 echo "cannot find nm_test_func in $nlist" >&5
6156 fi
6157 else
6158 echo "cannot find nm_test_var in $nlist" >&5
6159 fi
6160 else
6161 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6162 fi
6163 else
6164 echo "$progname: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6166 fi
6167 rm -rf conftest* conftst*
6168
6169 # Do not use the global_symbol_pipe unless it works.
6170 if test "$pipe_works" = yes; then
6171 break
6172 else
6173 lt_cv_sys_global_symbol_pipe=
6174 fi
6175 done
6176
6177 fi
6178
6179 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6180 lt_cv_sys_global_symbol_to_cdecl=
6181 fi
6182 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6184 $as_echo "failed" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6187 $as_echo "ok" >&6; }
6188 fi
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 # Check whether --enable-libtool-lock was given.
6212 if test "${enable_libtool_lock+set}" = set; then :
6213 enableval=$enable_libtool_lock;
6214 fi
6215
6216 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6217
6218 # Some flags need to be propagated to the compiler or linker for good
6219 # libtool support.
6220 case $host in
6221 ia64-*-hpux*)
6222 # Find out which ABI we are using.
6223 echo 'int i;' > conftest.$ac_ext
6224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6225 (eval $ac_compile) 2>&5
6226 ac_status=$?
6227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228 test $ac_status = 0; }; then
6229 case `/usr/bin/file conftest.$ac_objext` in
6230 *ELF-32*)
6231 HPUX_IA64_MODE="32"
6232 ;;
6233 *ELF-64*)
6234 HPUX_IA64_MODE="64"
6235 ;;
6236 esac
6237 fi
6238 rm -rf conftest*
6239 ;;
6240 *-*-irix6*)
6241 # Find out which ABI we are using.
6242 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }; then
6248 if test "$lt_cv_prog_gnu_ld" = yes; then
6249 case `/usr/bin/file conftest.$ac_objext` in
6250 *32-bit*)
6251 LD="${LD-ld} -melf32bsmip"
6252 ;;
6253 *N32*)
6254 LD="${LD-ld} -melf32bmipn32"
6255 ;;
6256 *64-bit*)
6257 LD="${LD-ld} -melf64bmip"
6258 ;;
6259 esac
6260 else
6261 case `/usr/bin/file conftest.$ac_objext` in
6262 *32-bit*)
6263 LD="${LD-ld} -32"
6264 ;;
6265 *N32*)
6266 LD="${LD-ld} -n32"
6267 ;;
6268 *64-bit*)
6269 LD="${LD-ld} -64"
6270 ;;
6271 esac
6272 fi
6273 fi
6274 rm -rf conftest*
6275 ;;
6276
6277 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6278 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6279 # Find out which ABI we are using.
6280 echo 'int i;' > conftest.$ac_ext
6281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6282 (eval $ac_compile) 2>&5
6283 ac_status=$?
6284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285 test $ac_status = 0; }; then
6286 case `/usr/bin/file conftest.o` in
6287 *32-bit*)
6288 case $host in
6289 x86_64-*kfreebsd*-gnu)
6290 LD="${LD-ld} -m elf_i386_fbsd"
6291 ;;
6292 x86_64-*linux*)
6293 case `/usr/bin/file conftest.o` in
6294 *x86-64*)
6295 LD="${LD-ld} -m elf32_x86_64"
6296 ;;
6297 *)
6298 LD="${LD-ld} -m elf_i386"
6299 ;;
6300 esac
6301 ;;
6302 powerpc64le-*linux*)
6303 LD="${LD-ld} -m elf32lppclinux"
6304 ;;
6305 powerpc64-*linux*)
6306 LD="${LD-ld} -m elf32ppclinux"
6307 ;;
6308 s390x-*linux*)
6309 LD="${LD-ld} -m elf_s390"
6310 ;;
6311 sparc64-*linux*)
6312 LD="${LD-ld} -m elf32_sparc"
6313 ;;
6314 esac
6315 ;;
6316 *64-bit*)
6317 case $host in
6318 x86_64-*kfreebsd*-gnu)
6319 LD="${LD-ld} -m elf_x86_64_fbsd"
6320 ;;
6321 x86_64-*linux*)
6322 LD="${LD-ld} -m elf_x86_64"
6323 ;;
6324 powerpcle-*linux*)
6325 LD="${LD-ld} -m elf64lppc"
6326 ;;
6327 powerpc-*linux*)
6328 LD="${LD-ld} -m elf64ppc"
6329 ;;
6330 s390*-*linux*|s390*-*tpf*)
6331 LD="${LD-ld} -m elf64_s390"
6332 ;;
6333 sparc*-*linux*)
6334 LD="${LD-ld} -m elf64_sparc"
6335 ;;
6336 esac
6337 ;;
6338 esac
6339 fi
6340 rm -rf conftest*
6341 ;;
6342
6343 *-*-sco3.2v5*)
6344 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6345 SAVE_CFLAGS="$CFLAGS"
6346 CFLAGS="$CFLAGS -belf"
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6348 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6349 if ${lt_cv_cc_needs_belf+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 ac_ext=c
6353 ac_cpp='$CPP $CPPFLAGS'
6354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6357
6358 if test x$gcc_no_link = xyes; then
6359 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6360 fi
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363
6364 int
6365 main ()
6366 {
6367
6368 ;
6369 return 0;
6370 }
6371 _ACEOF
6372 if ac_fn_c_try_link "$LINENO"; then :
6373 lt_cv_cc_needs_belf=yes
6374 else
6375 lt_cv_cc_needs_belf=no
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext \
6378 conftest$ac_exeext conftest.$ac_ext
6379 ac_ext=c
6380 ac_cpp='$CPP $CPPFLAGS'
6381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6384
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6387 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6388 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6389 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6390 CFLAGS="$SAVE_CFLAGS"
6391 fi
6392 ;;
6393 sparc*-*solaris*)
6394 # Find out which ABI we are using.
6395 echo 'int i;' > conftest.$ac_ext
6396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6397 (eval $ac_compile) 2>&5
6398 ac_status=$?
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; }; then
6401 case `/usr/bin/file conftest.o` in
6402 *64-bit*)
6403 case $lt_cv_prog_gnu_ld in
6404 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6405 *)
6406 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6407 LD="${LD-ld} -64"
6408 fi
6409 ;;
6410 esac
6411 ;;
6412 esac
6413 fi
6414 rm -rf conftest*
6415 ;;
6416 esac
6417
6418 need_locks="$enable_libtool_lock"
6419
6420
6421 case $host_os in
6422 rhapsody* | darwin*)
6423 if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6425 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if test -n "$DSYMUTIL"; then
6432 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6452 if test -n "$DSYMUTIL"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6454 $as_echo "$DSYMUTIL" >&6; }
6455 else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460
6461 fi
6462 if test -z "$ac_cv_prog_DSYMUTIL"; then
6463 ac_ct_DSYMUTIL=$DSYMUTIL
6464 # Extract the first word of "dsymutil", so it can be a program name with args.
6465 set dummy dsymutil; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 if test -n "$ac_ct_DSYMUTIL"; then
6472 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485 done
6486 done
6487 IFS=$as_save_IFS
6488
6489 fi
6490 fi
6491 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6492 if test -n "$ac_ct_DSYMUTIL"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6494 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6495 else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499
6500 if test "x$ac_ct_DSYMUTIL" = x; then
6501 DSYMUTIL=":"
6502 else
6503 case $cross_compiling:$ac_tool_warned in
6504 yes:)
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507 ac_tool_warned=yes ;;
6508 esac
6509 DSYMUTIL=$ac_ct_DSYMUTIL
6510 fi
6511 else
6512 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6513 fi
6514
6515 if test -n "$ac_tool_prefix"; then
6516 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6517 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if ${ac_cv_prog_NMEDIT+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 if test -n "$NMEDIT"; then
6524 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 NMEDIT=$ac_cv_prog_NMEDIT
6544 if test -n "$NMEDIT"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6546 $as_echo "$NMEDIT" >&6; }
6547 else
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6550 fi
6551
6552
6553 fi
6554 if test -z "$ac_cv_prog_NMEDIT"; then
6555 ac_ct_NMEDIT=$NMEDIT
6556 # Extract the first word of "nmedit", so it can be a program name with args.
6557 set dummy nmedit; ac_word=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 if test -n "$ac_ct_NMEDIT"; then
6564 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6573 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6584 if test -n "$ac_ct_NMEDIT"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6586 $as_echo "$ac_ct_NMEDIT" >&6; }
6587 else
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591
6592 if test "x$ac_ct_NMEDIT" = x; then
6593 NMEDIT=":"
6594 else
6595 case $cross_compiling:$ac_tool_warned in
6596 yes:)
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599 ac_tool_warned=yes ;;
6600 esac
6601 NMEDIT=$ac_ct_NMEDIT
6602 fi
6603 else
6604 NMEDIT="$ac_cv_prog_NMEDIT"
6605 fi
6606
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_LIPO+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 if test -n "$LIPO"; then
6616 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 LIPO=$ac_cv_prog_LIPO
6636 if test -n "$LIPO"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6638 $as_echo "$LIPO" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_LIPO"; then
6647 ac_ct_LIPO=$LIPO
6648 # Extract the first word of "lipo", so it can be a program name with args.
6649 set dummy lipo; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 if test -n "$ac_ct_LIPO"; then
6656 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_LIPO="lipo"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6676 if test -n "$ac_ct_LIPO"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6678 $as_echo "$ac_ct_LIPO" >&6; }
6679 else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683
6684 if test "x$ac_ct_LIPO" = x; then
6685 LIPO=":"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 LIPO=$ac_ct_LIPO
6694 fi
6695 else
6696 LIPO="$ac_cv_prog_LIPO"
6697 fi
6698
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}otool; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_OTOOL+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$OTOOL"; then
6708 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 OTOOL=$ac_cv_prog_OTOOL
6728 if test -n "$OTOOL"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6730 $as_echo "$OTOOL" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736
6737 fi
6738 if test -z "$ac_cv_prog_OTOOL"; then
6739 ac_ct_OTOOL=$OTOOL
6740 # Extract the first word of "otool", so it can be a program name with args.
6741 set dummy otool; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$ac_ct_OTOOL"; then
6748 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_ac_ct_OTOOL="otool"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6768 if test -n "$ac_ct_OTOOL"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6770 $as_echo "$ac_ct_OTOOL" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776 if test "x$ac_ct_OTOOL" = x; then
6777 OTOOL=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785 OTOOL=$ac_ct_OTOOL
6786 fi
6787 else
6788 OTOOL="$ac_cv_prog_OTOOL"
6789 fi
6790
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_OTOOL64+:} false; then :
6797 $as_echo_n "(cached) " >&6
6798 else
6799 if test -n "$OTOOL64"; then
6800 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 OTOOL64=$ac_cv_prog_OTOOL64
6820 if test -n "$OTOOL64"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6822 $as_echo "$OTOOL64" >&6; }
6823 else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6826 fi
6827
6828
6829 fi
6830 if test -z "$ac_cv_prog_OTOOL64"; then
6831 ac_ct_OTOOL64=$OTOOL64
6832 # Extract the first word of "otool64", so it can be a program name with args.
6833 set dummy otool64; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 if test -n "$ac_ct_OTOOL64"; then
6840 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_ac_ct_OTOOL64="otool64"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6860 if test -n "$ac_ct_OTOOL64"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6862 $as_echo "$ac_ct_OTOOL64" >&6; }
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867
6868 if test "x$ac_ct_OTOOL64" = x; then
6869 OTOOL64=":"
6870 else
6871 case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877 OTOOL64=$ac_ct_OTOOL64
6878 fi
6879 else
6880 OTOOL64="$ac_cv_prog_OTOOL64"
6881 fi
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6910 $as_echo_n "checking for -single_module linker flag... " >&6; }
6911 if ${lt_cv_apple_cc_single_mod+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 lt_cv_apple_cc_single_mod=no
6915 if test -z "${LT_MULTI_MODULE}"; then
6916 # By default we will add the -single_module flag. You can override
6917 # by either setting the environment variable LT_MULTI_MODULE
6918 # non-empty at configure time, or by adding -multi_module to the
6919 # link flags.
6920 rm -rf libconftest.dylib*
6921 echo "int foo(void){return 1;}" > conftest.c
6922 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6923 -dynamiclib -Wl,-single_module conftest.c" >&5
6924 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6925 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6926 _lt_result=$?
6927 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6928 lt_cv_apple_cc_single_mod=yes
6929 else
6930 cat conftest.err >&5
6931 fi
6932 rm -rf libconftest.dylib*
6933 rm -f conftest.*
6934 fi
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6937 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6939 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6940 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 lt_cv_ld_exported_symbols_list=no
6944 save_LDFLAGS=$LDFLAGS
6945 echo "_main" > conftest.sym
6946 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6947 if test x$gcc_no_link = xyes; then
6948 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6949 fi
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6952
6953 int
6954 main ()
6955 {
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 if ac_fn_c_try_link "$LINENO"; then :
6962 lt_cv_ld_exported_symbols_list=yes
6963 else
6964 lt_cv_ld_exported_symbols_list=no
6965 fi
6966 rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6968 LDFLAGS="$save_LDFLAGS"
6969
6970 fi
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6972 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6974 $as_echo_n "checking for -force_load linker flag... " >&6; }
6975 if ${lt_cv_ld_force_load+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 lt_cv_ld_force_load=no
6979 cat > conftest.c << _LT_EOF
6980 int forced_loaded() { return 2;}
6981 _LT_EOF
6982 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6983 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6984 echo "$AR cru libconftest.a conftest.o" >&5
6985 $AR cru libconftest.a conftest.o 2>&5
6986 cat > conftest.c << _LT_EOF
6987 int main() { return 0;}
6988 _LT_EOF
6989 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6990 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6991 _lt_result=$?
6992 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6993 lt_cv_ld_force_load=yes
6994 else
6995 cat conftest.err >&5
6996 fi
6997 rm -f conftest.err libconftest.a conftest conftest.c
6998 rm -rf conftest.dSYM
6999
7000 fi
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7002 $as_echo "$lt_cv_ld_force_load" >&6; }
7003 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7004 # build without first building modern cctools / linker.
7005 case $host_cpu-$host_os in
7006 *-rhapsody* | *-darwin1.[012])
7007 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7008 *-darwin1.*)
7009 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7010 *-darwin*)
7011 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7012 # deployment target is forced to an earlier version.
7013 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7014 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7015 ;;
7016 10.[012][,.]*)
7017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7018 ;;
7019 *)
7020 ;;
7021 esac
7022 ;;
7023 esac
7024 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7025 _lt_dar_single_mod='$single_module'
7026 fi
7027 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7028 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7029 else
7030 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7031 fi
7032 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7033 _lt_dsymutil='~$DSYMUTIL $lib || :'
7034 else
7035 _lt_dsymutil=
7036 fi
7037 ;;
7038 esac
7039
7040 ac_ext=c
7041 ac_cpp='$CPP $CPPFLAGS'
7042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7047 # On Suns, sometimes $CPP names a directory.
7048 if test -n "$CPP" && test -d "$CPP"; then
7049 CPP=
7050 fi
7051 if test -z "$CPP"; then
7052 if ${ac_cv_prog_CPP+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 # Double quotes because CPP needs to be expanded
7056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7057 do
7058 ac_preproc_ok=false
7059 for ac_c_preproc_warn_flag in '' yes
7060 do
7061 # Use a header file that comes with gcc, so configuring glibc
7062 # with a fresh cross-compiler works.
7063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7064 # <limits.h> exists even on freestanding compilers.
7065 # On the NeXT, cc -E runs the code through the compiler's parser,
7066 # not just through cpp. "Syntax error" is here to catch this case.
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7069 #ifdef __STDC__
7070 # include <limits.h>
7071 #else
7072 # include <assert.h>
7073 #endif
7074 Syntax error
7075 _ACEOF
7076 if ac_fn_c_try_cpp "$LINENO"; then :
7077
7078 else
7079 # Broken: fails on valid input.
7080 continue
7081 fi
7082 rm -f conftest.err conftest.i conftest.$ac_ext
7083
7084 # OK, works on sane cases. Now check whether nonexistent headers
7085 # can be detected and how.
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 #include <ac_nonexistent.h>
7089 _ACEOF
7090 if ac_fn_c_try_cpp "$LINENO"; then :
7091 # Broken: success on invalid input.
7092 continue
7093 else
7094 # Passes both tests.
7095 ac_preproc_ok=:
7096 break
7097 fi
7098 rm -f conftest.err conftest.i conftest.$ac_ext
7099
7100 done
7101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7102 rm -f conftest.i conftest.err conftest.$ac_ext
7103 if $ac_preproc_ok; then :
7104 break
7105 fi
7106
7107 done
7108 ac_cv_prog_CPP=$CPP
7109
7110 fi
7111 CPP=$ac_cv_prog_CPP
7112 else
7113 ac_cv_prog_CPP=$CPP
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7116 $as_echo "$CPP" >&6; }
7117 ac_preproc_ok=false
7118 for ac_c_preproc_warn_flag in '' yes
7119 do
7120 # Use a header file that comes with gcc, so configuring glibc
7121 # with a fresh cross-compiler works.
7122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7123 # <limits.h> exists even on freestanding compilers.
7124 # On the NeXT, cc -E runs the code through the compiler's parser,
7125 # not just through cpp. "Syntax error" is here to catch this case.
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 #ifdef __STDC__
7129 # include <limits.h>
7130 #else
7131 # include <assert.h>
7132 #endif
7133 Syntax error
7134 _ACEOF
7135 if ac_fn_c_try_cpp "$LINENO"; then :
7136
7137 else
7138 # Broken: fails on valid input.
7139 continue
7140 fi
7141 rm -f conftest.err conftest.i conftest.$ac_ext
7142
7143 # OK, works on sane cases. Now check whether nonexistent headers
7144 # can be detected and how.
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7147 #include <ac_nonexistent.h>
7148 _ACEOF
7149 if ac_fn_c_try_cpp "$LINENO"; then :
7150 # Broken: success on invalid input.
7151 continue
7152 else
7153 # Passes both tests.
7154 ac_preproc_ok=:
7155 break
7156 fi
7157 rm -f conftest.err conftest.i conftest.$ac_ext
7158
7159 done
7160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7161 rm -f conftest.i conftest.err conftest.$ac_ext
7162 if $ac_preproc_ok; then :
7163
7164 else
7165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7168 See \`config.log' for more details" "$LINENO" 5; }
7169 fi
7170
7171 ac_ext=c
7172 ac_cpp='$CPP $CPPFLAGS'
7173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176
7177
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7179 $as_echo_n "checking for ANSI C header files... " >&6; }
7180 if ${ac_cv_header_stdc+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 #include <stdlib.h>
7186 #include <stdarg.h>
7187 #include <string.h>
7188 #include <float.h>
7189
7190 int
7191 main ()
7192 {
7193
7194 ;
7195 return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 ac_cv_header_stdc=yes
7200 else
7201 ac_cv_header_stdc=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204
7205 if test $ac_cv_header_stdc = yes; then
7206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #include <string.h>
7210
7211 _ACEOF
7212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7213 $EGREP "memchr" >/dev/null 2>&1; then :
7214
7215 else
7216 ac_cv_header_stdc=no
7217 fi
7218 rm -f conftest*
7219
7220 fi
7221
7222 if test $ac_cv_header_stdc = yes; then
7223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 #include <stdlib.h>
7227
7228 _ACEOF
7229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7230 $EGREP "free" >/dev/null 2>&1; then :
7231
7232 else
7233 ac_cv_header_stdc=no
7234 fi
7235 rm -f conftest*
7236
7237 fi
7238
7239 if test $ac_cv_header_stdc = yes; then
7240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7241 if test "$cross_compiling" = yes; then :
7242 :
7243 else
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <ctype.h>
7247 #include <stdlib.h>
7248 #if ((' ' & 0x0FF) == 0x020)
7249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7251 #else
7252 # define ISLOWER(c) \
7253 (('a' <= (c) && (c) <= 'i') \
7254 || ('j' <= (c) && (c) <= 'r') \
7255 || ('s' <= (c) && (c) <= 'z'))
7256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7257 #endif
7258
7259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7260 int
7261 main ()
7262 {
7263 int i;
7264 for (i = 0; i < 256; i++)
7265 if (XOR (islower (i), ISLOWER (i))
7266 || toupper (i) != TOUPPER (i))
7267 return 2;
7268 return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_c_try_run "$LINENO"; then :
7272
7273 else
7274 ac_cv_header_stdc=no
7275 fi
7276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7277 conftest.$ac_objext conftest.beam conftest.$ac_ext
7278 fi
7279
7280 fi
7281 fi
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7283 $as_echo "$ac_cv_header_stdc" >&6; }
7284 if test $ac_cv_header_stdc = yes; then
7285
7286 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7287
7288 fi
7289
7290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7292 inttypes.h stdint.h unistd.h
7293 do :
7294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7296 "
7297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7298 cat >>confdefs.h <<_ACEOF
7299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7300 _ACEOF
7301
7302 fi
7303
7304 done
7305
7306
7307 for ac_header in dlfcn.h
7308 do :
7309 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7310 "
7311 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7312 cat >>confdefs.h <<_ACEOF
7313 #define HAVE_DLFCN_H 1
7314 _ACEOF
7315
7316 fi
7317
7318 done
7319
7320
7321
7322
7323
7324 # Set options
7325
7326
7327
7328 enable_dlopen=no
7329
7330
7331
7332 # Check whether --enable-shared was given.
7333 if test "${enable_shared+set}" = set; then :
7334 enableval=$enable_shared; p=${PACKAGE-default}
7335 case $enableval in
7336 yes) enable_shared=yes ;;
7337 no) enable_shared=no ;;
7338 *)
7339 enable_shared=no
7340 # Look at the argument we got. We use all the common list separators.
7341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7342 for pkg in $enableval; do
7343 IFS="$lt_save_ifs"
7344 if test "X$pkg" = "X$p"; then
7345 enable_shared=yes
7346 fi
7347 done
7348 IFS="$lt_save_ifs"
7349 ;;
7350 esac
7351 else
7352 enable_shared=yes
7353 fi
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363 # Check whether --enable-static was given.
7364 if test "${enable_static+set}" = set; then :
7365 enableval=$enable_static; p=${PACKAGE-default}
7366 case $enableval in
7367 yes) enable_static=yes ;;
7368 no) enable_static=no ;;
7369 *)
7370 enable_static=no
7371 # Look at the argument we got. We use all the common list separators.
7372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7373 for pkg in $enableval; do
7374 IFS="$lt_save_ifs"
7375 if test "X$pkg" = "X$p"; then
7376 enable_static=yes
7377 fi
7378 done
7379 IFS="$lt_save_ifs"
7380 ;;
7381 esac
7382 else
7383 enable_static=yes
7384 fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 # Check whether --with-pic was given.
7396 if test "${with_pic+set}" = set; then :
7397 withval=$with_pic; pic_mode="$withval"
7398 else
7399 pic_mode=default
7400 fi
7401
7402
7403 test -z "$pic_mode" && pic_mode=default
7404
7405
7406
7407
7408
7409
7410
7411 # Check whether --enable-fast-install was given.
7412 if test "${enable_fast_install+set}" = set; then :
7413 enableval=$enable_fast_install; p=${PACKAGE-default}
7414 case $enableval in
7415 yes) enable_fast_install=yes ;;
7416 no) enable_fast_install=no ;;
7417 *)
7418 enable_fast_install=no
7419 # Look at the argument we got. We use all the common list separators.
7420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7421 for pkg in $enableval; do
7422 IFS="$lt_save_ifs"
7423 if test "X$pkg" = "X$p"; then
7424 enable_fast_install=yes
7425 fi
7426 done
7427 IFS="$lt_save_ifs"
7428 ;;
7429 esac
7430 else
7431 enable_fast_install=yes
7432 fi
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 # This can be used to rebuild libtool when needed
7445 LIBTOOL_DEPS="$ltmain"
7446
7447 # Always use our own libtool.
7448 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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 test -z "$LN_S" && LN_S="ln -s"
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490 if test -n "${ZSH_VERSION+set}" ; then
7491 setopt NO_GLOB_SUBST
7492 fi
7493
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7495 $as_echo_n "checking for objdir... " >&6; }
7496 if ${lt_cv_objdir+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 rm -f .libs 2>/dev/null
7500 mkdir .libs 2>/dev/null
7501 if test -d .libs; then
7502 lt_cv_objdir=.libs
7503 else
7504 # MS-DOS does not allow filenames that begin with a dot.
7505 lt_cv_objdir=_libs
7506 fi
7507 rmdir .libs 2>/dev/null
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7510 $as_echo "$lt_cv_objdir" >&6; }
7511 objdir=$lt_cv_objdir
7512
7513
7514
7515
7516
7517 cat >>confdefs.h <<_ACEOF
7518 #define LT_OBJDIR "$lt_cv_objdir/"
7519 _ACEOF
7520
7521
7522
7523
7524 case $host_os in
7525 aix3*)
7526 # AIX sometimes has problems with the GCC collect2 program. For some
7527 # reason, if we set the COLLECT_NAMES environment variable, the problems
7528 # vanish in a puff of smoke.
7529 if test "X${COLLECT_NAMES+set}" != Xset; then
7530 COLLECT_NAMES=
7531 export COLLECT_NAMES
7532 fi
7533 ;;
7534 esac
7535
7536 # Global variables:
7537 ofile=libtool
7538 can_build_shared=yes
7539
7540 # All known linkers require a `.a' archive for static linking (except MSVC,
7541 # which needs '.lib').
7542 libext=a
7543
7544 with_gnu_ld="$lt_cv_prog_gnu_ld"
7545
7546 old_CC="$CC"
7547 old_CFLAGS="$CFLAGS"
7548
7549 # Set sane defaults for various variables
7550 test -z "$CC" && CC=cc
7551 test -z "$LTCC" && LTCC=$CC
7552 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7553 test -z "$LD" && LD=ld
7554 test -z "$ac_objext" && ac_objext=o
7555
7556 for cc_temp in $compiler""; do
7557 case $cc_temp in
7558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7560 \-*) ;;
7561 *) break;;
7562 esac
7563 done
7564 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7565
7566
7567 # Only perform the check for file, if the check method requires it
7568 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7569 case $deplibs_check_method in
7570 file_magic*)
7571 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7573 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7574 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 case $MAGIC_CMD in
7578 [\\/*] | ?:[\\/]*)
7579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7580 ;;
7581 *)
7582 lt_save_MAGIC_CMD="$MAGIC_CMD"
7583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7584 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7585 for ac_dir in $ac_dummy; do
7586 IFS="$lt_save_ifs"
7587 test -z "$ac_dir" && ac_dir=.
7588 if test -f $ac_dir/${ac_tool_prefix}file; then
7589 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7590 if test -n "$file_magic_test_file"; then
7591 case $deplibs_check_method in
7592 "file_magic "*)
7593 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7595 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7596 $EGREP "$file_magic_regex" > /dev/null; then
7597 :
7598 else
7599 cat <<_LT_EOF 1>&2
7600
7601 *** Warning: the command libtool uses to detect shared libraries,
7602 *** $file_magic_cmd, produces output that libtool cannot recognize.
7603 *** The result is that libtool may fail to recognize shared libraries
7604 *** as such. This will affect the creation of libtool libraries that
7605 *** depend on shared libraries, but programs linked with such libtool
7606 *** libraries will work regardless of this problem. Nevertheless, you
7607 *** may want to report the problem to your system manager and/or to
7608 *** bug-libtool@gnu.org
7609
7610 _LT_EOF
7611 fi ;;
7612 esac
7613 fi
7614 break
7615 fi
7616 done
7617 IFS="$lt_save_ifs"
7618 MAGIC_CMD="$lt_save_MAGIC_CMD"
7619 ;;
7620 esac
7621 fi
7622
7623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7624 if test -n "$MAGIC_CMD"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7626 $as_echo "$MAGIC_CMD" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632
7633
7634
7635
7636 if test -z "$lt_cv_path_MAGIC_CMD"; then
7637 if test -n "$ac_tool_prefix"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7639 $as_echo_n "checking for file... " >&6; }
7640 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 case $MAGIC_CMD in
7644 [\\/*] | ?:[\\/]*)
7645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7646 ;;
7647 *)
7648 lt_save_MAGIC_CMD="$MAGIC_CMD"
7649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7651 for ac_dir in $ac_dummy; do
7652 IFS="$lt_save_ifs"
7653 test -z "$ac_dir" && ac_dir=.
7654 if test -f $ac_dir/file; then
7655 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7656 if test -n "$file_magic_test_file"; then
7657 case $deplibs_check_method in
7658 "file_magic "*)
7659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7662 $EGREP "$file_magic_regex" > /dev/null; then
7663 :
7664 else
7665 cat <<_LT_EOF 1>&2
7666
7667 *** Warning: the command libtool uses to detect shared libraries,
7668 *** $file_magic_cmd, produces output that libtool cannot recognize.
7669 *** The result is that libtool may fail to recognize shared libraries
7670 *** as such. This will affect the creation of libtool libraries that
7671 *** depend on shared libraries, but programs linked with such libtool
7672 *** libraries will work regardless of this problem. Nevertheless, you
7673 *** may want to report the problem to your system manager and/or to
7674 *** bug-libtool@gnu.org
7675
7676 _LT_EOF
7677 fi ;;
7678 esac
7679 fi
7680 break
7681 fi
7682 done
7683 IFS="$lt_save_ifs"
7684 MAGIC_CMD="$lt_save_MAGIC_CMD"
7685 ;;
7686 esac
7687 fi
7688
7689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7690 if test -n "$MAGIC_CMD"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7692 $as_echo "$MAGIC_CMD" >&6; }
7693 else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7696 fi
7697
7698
7699 else
7700 MAGIC_CMD=:
7701 fi
7702 fi
7703
7704 fi
7705 ;;
7706 esac
7707
7708 # Use C for the default configuration in the libtool script
7709
7710 lt_save_CC="$CC"
7711 ac_ext=c
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716
7717
7718 # Source file extension for C test sources.
7719 ac_ext=c
7720
7721 # Object file extension for compiled C test sources.
7722 objext=o
7723 objext=$objext
7724
7725 # Code to be used in simple compile tests
7726 lt_simple_compile_test_code="int some_variable = 0;"
7727
7728 # Code to be used in simple link tests
7729 lt_simple_link_test_code='int main(){return(0);}'
7730
7731
7732
7733
7734
7735
7736
7737 # If no C compiler was specified, use CC.
7738 LTCC=${LTCC-"$CC"}
7739
7740 # If no C compiler flags were specified, use CFLAGS.
7741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7742
7743 # Allow CC to be a program name with arguments.
7744 compiler=$CC
7745
7746 # Save the default compiler, since it gets overwritten when the other
7747 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7748 compiler_DEFAULT=$CC
7749
7750 # save warnings/boilerplate of simple test code
7751 ac_outfile=conftest.$ac_objext
7752 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7753 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7754 _lt_compiler_boilerplate=`cat conftest.err`
7755 $RM conftest*
7756
7757 ac_outfile=conftest.$ac_objext
7758 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7759 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7760 _lt_linker_boilerplate=`cat conftest.err`
7761 $RM -r conftest*
7762
7763
7764 ## CAVEAT EMPTOR:
7765 ## There is no encapsulation within the following macros, do not change
7766 ## the running order or otherwise move them around unless you know exactly
7767 ## what you are doing...
7768 if test -n "$compiler"; then
7769
7770 lt_prog_compiler_no_builtin_flag=
7771
7772 if test "$GCC" = yes; then
7773 case $cc_basename in
7774 nvcc*)
7775 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7776 *)
7777 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7778 esac
7779
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7781 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7782 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 lt_cv_prog_compiler_rtti_exceptions=no
7786 ac_outfile=conftest.$ac_objext
7787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7788 lt_compiler_flag="-fno-rtti -fno-exceptions"
7789 # Insert the option either (1) after the last *FLAGS variable, or
7790 # (2) before a word containing "conftest.", or (3) at the end.
7791 # Note that $ac_compile itself does not contain backslashes and begins
7792 # with a dollar sign (not a hyphen), so the echo should work correctly.
7793 # The option is referenced via a variable to avoid confusing sed.
7794 lt_compile=`echo "$ac_compile" | $SED \
7795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7797 -e 's:$: $lt_compiler_flag:'`
7798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7799 (eval "$lt_compile" 2>conftest.err)
7800 ac_status=$?
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 if (exit $ac_status) && test -s "$ac_outfile"; then
7804 # The compiler can only warn and ignore the option if not recognized
7805 # So say no if there are warnings other than the usual output.
7806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7809 lt_cv_prog_compiler_rtti_exceptions=yes
7810 fi
7811 fi
7812 $RM conftest*
7813
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7816 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7817
7818 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7819 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7820 else
7821 :
7822 fi
7823
7824 fi
7825
7826
7827
7828
7829
7830
7831 lt_prog_compiler_wl=
7832 lt_prog_compiler_pic=
7833 lt_prog_compiler_static=
7834
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7837
7838 if test "$GCC" = yes; then
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_static='-static'
7841
7842 case $host_os in
7843 aix*)
7844 # All AIX code is PIC.
7845 if test "$host_cpu" = ia64; then
7846 # AIX 5 now supports IA64 processor
7847 lt_prog_compiler_static='-Bstatic'
7848 fi
7849 lt_prog_compiler_pic='-fPIC'
7850 ;;
7851
7852 amigaos*)
7853 case $host_cpu in
7854 powerpc)
7855 # see comment about AmigaOS4 .so support
7856 lt_prog_compiler_pic='-fPIC'
7857 ;;
7858 m68k)
7859 # FIXME: we need at least 68020 code to build shared libraries, but
7860 # adding the `-m68020' flag to GCC prevents building anything better,
7861 # like `-m68040'.
7862 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7863 ;;
7864 esac
7865 ;;
7866
7867 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7868 # PIC is the default for these OSes.
7869 ;;
7870
7871 mingw* | cygwin* | pw32* | os2* | cegcc*)
7872 # This hack is so that the source file can tell whether it is being
7873 # built for inclusion in a dll (and should export symbols for example).
7874 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7875 # (--disable-auto-import) libraries
7876 lt_prog_compiler_pic='-DDLL_EXPORT'
7877 ;;
7878
7879 darwin* | rhapsody*)
7880 # PIC is the default on this platform
7881 # Common symbols not allowed in MH_DYLIB files
7882 lt_prog_compiler_pic='-fno-common'
7883 ;;
7884
7885 haiku*)
7886 # PIC is the default for Haiku.
7887 # The "-static" flag exists, but is broken.
7888 lt_prog_compiler_static=
7889 ;;
7890
7891 hpux*)
7892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7894 # sets the default TLS model and affects inlining.
7895 case $host_cpu in
7896 hppa*64*)
7897 # +Z the default
7898 ;;
7899 *)
7900 lt_prog_compiler_pic='-fPIC'
7901 ;;
7902 esac
7903 ;;
7904
7905 interix[3-9]*)
7906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7907 # Instead, we relocate shared libraries at runtime.
7908 ;;
7909
7910 msdosdjgpp*)
7911 # Just because we use GCC doesn't mean we suddenly get shared libraries
7912 # on systems that don't support them.
7913 lt_prog_compiler_can_build_shared=no
7914 enable_shared=no
7915 ;;
7916
7917 *nto* | *qnx*)
7918 # QNX uses GNU C++, but need to define -shared option too, otherwise
7919 # it will coredump.
7920 lt_prog_compiler_pic='-fPIC -shared'
7921 ;;
7922
7923 sysv4*MP*)
7924 if test -d /usr/nec; then
7925 lt_prog_compiler_pic=-Kconform_pic
7926 fi
7927 ;;
7928
7929 *)
7930 lt_prog_compiler_pic='-fPIC'
7931 ;;
7932 esac
7933
7934 case $cc_basename in
7935 nvcc*) # Cuda Compiler Driver 2.2
7936 lt_prog_compiler_wl='-Xlinker '
7937 lt_prog_compiler_pic='-Xcompiler -fPIC'
7938 ;;
7939 esac
7940 else
7941 # PORTME Check for flag to pass linker flags through the system compiler.
7942 case $host_os in
7943 aix*)
7944 lt_prog_compiler_wl='-Wl,'
7945 if test "$host_cpu" = ia64; then
7946 # AIX 5 now supports IA64 processor
7947 lt_prog_compiler_static='-Bstatic'
7948 else
7949 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7950 fi
7951 ;;
7952
7953 mingw* | cygwin* | pw32* | os2* | cegcc*)
7954 # This hack is so that the source file can tell whether it is being
7955 # built for inclusion in a dll (and should export symbols for example).
7956 lt_prog_compiler_pic='-DDLL_EXPORT'
7957 ;;
7958
7959 hpux9* | hpux10* | hpux11*)
7960 lt_prog_compiler_wl='-Wl,'
7961 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7962 # not for PA HP-UX.
7963 case $host_cpu in
7964 hppa*64*|ia64*)
7965 # +Z the default
7966 ;;
7967 *)
7968 lt_prog_compiler_pic='+Z'
7969 ;;
7970 esac
7971 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7972 lt_prog_compiler_static='${wl}-a ${wl}archive'
7973 ;;
7974
7975 irix5* | irix6* | nonstopux*)
7976 lt_prog_compiler_wl='-Wl,'
7977 # PIC (with -KPIC) is the default.
7978 lt_prog_compiler_static='-non_shared'
7979 ;;
7980
7981 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7982 case $cc_basename in
7983 # old Intel for x86_64 which still supported -KPIC.
7984 ecc*)
7985 lt_prog_compiler_wl='-Wl,'
7986 lt_prog_compiler_pic='-KPIC'
7987 lt_prog_compiler_static='-static'
7988 ;;
7989 # icc used to be incompatible with GCC.
7990 # ICC 10 doesn't accept -KPIC any more.
7991 icc* | ifort*)
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='-fPIC'
7994 lt_prog_compiler_static='-static'
7995 ;;
7996 # Lahey Fortran 8.1.
7997 lf95*)
7998 lt_prog_compiler_wl='-Wl,'
7999 lt_prog_compiler_pic='--shared'
8000 lt_prog_compiler_static='--static'
8001 ;;
8002 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8003 # Portland Group compilers (*not* the Pentium gcc compiler,
8004 # which looks to be a dead project)
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='-fpic'
8007 lt_prog_compiler_static='-Bstatic'
8008 ;;
8009 ccc*)
8010 lt_prog_compiler_wl='-Wl,'
8011 # All Alpha code is PIC.
8012 lt_prog_compiler_static='-non_shared'
8013 ;;
8014 xl* | bgxl* | bgf* | mpixl*)
8015 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_pic='-qpic'
8018 lt_prog_compiler_static='-qstaticlink'
8019 ;;
8020 *)
8021 case `$CC -V 2>&1 | sed 5q` in
8022 *Sun\ F* | *Sun*Fortran*)
8023 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8024 lt_prog_compiler_pic='-KPIC'
8025 lt_prog_compiler_static='-Bstatic'
8026 lt_prog_compiler_wl=''
8027 ;;
8028 *Sun\ C*)
8029 # Sun C 5.9
8030 lt_prog_compiler_pic='-KPIC'
8031 lt_prog_compiler_static='-Bstatic'
8032 lt_prog_compiler_wl='-Wl,'
8033 ;;
8034 esac
8035 ;;
8036 esac
8037 ;;
8038
8039 newsos6)
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
8042 ;;
8043
8044 *nto* | *qnx*)
8045 # QNX uses GNU C++, but need to define -shared option too, otherwise
8046 # it will coredump.
8047 lt_prog_compiler_pic='-fPIC -shared'
8048 ;;
8049
8050 osf3* | osf4* | osf5*)
8051 lt_prog_compiler_wl='-Wl,'
8052 # All OSF/1 code is PIC.
8053 lt_prog_compiler_static='-non_shared'
8054 ;;
8055
8056 rdos*)
8057 lt_prog_compiler_static='-non_shared'
8058 ;;
8059
8060 solaris*)
8061 lt_prog_compiler_pic='-KPIC'
8062 lt_prog_compiler_static='-Bstatic'
8063 case $cc_basename in
8064 f77* | f90* | f95*)
8065 lt_prog_compiler_wl='-Qoption ld ';;
8066 *)
8067 lt_prog_compiler_wl='-Wl,';;
8068 esac
8069 ;;
8070
8071 sunos4*)
8072 lt_prog_compiler_wl='-Qoption ld '
8073 lt_prog_compiler_pic='-PIC'
8074 lt_prog_compiler_static='-Bstatic'
8075 ;;
8076
8077 sysv4 | sysv4.2uw2* | sysv4.3*)
8078 lt_prog_compiler_wl='-Wl,'
8079 lt_prog_compiler_pic='-KPIC'
8080 lt_prog_compiler_static='-Bstatic'
8081 ;;
8082
8083 sysv4*MP*)
8084 if test -d /usr/nec ;then
8085 lt_prog_compiler_pic='-Kconform_pic'
8086 lt_prog_compiler_static='-Bstatic'
8087 fi
8088 ;;
8089
8090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8091 lt_prog_compiler_wl='-Wl,'
8092 lt_prog_compiler_pic='-KPIC'
8093 lt_prog_compiler_static='-Bstatic'
8094 ;;
8095
8096 unicos*)
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_can_build_shared=no
8099 ;;
8100
8101 uts4*)
8102 lt_prog_compiler_pic='-pic'
8103 lt_prog_compiler_static='-Bstatic'
8104 ;;
8105
8106 *)
8107 lt_prog_compiler_can_build_shared=no
8108 ;;
8109 esac
8110 fi
8111
8112 case $host_os in
8113 # For platforms which do not support PIC, -DPIC is meaningless:
8114 *djgpp*)
8115 lt_prog_compiler_pic=
8116 ;;
8117 *)
8118 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8119 ;;
8120 esac
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8122 $as_echo "$lt_prog_compiler_pic" >&6; }
8123
8124
8125
8126
8127
8128
8129 #
8130 # Check to make sure the PIC flag actually works.
8131 #
8132 if test -n "$lt_prog_compiler_pic"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8134 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8135 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 lt_cv_prog_compiler_pic_works=no
8139 ac_outfile=conftest.$ac_objext
8140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8141 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8142 # Insert the option either (1) after the last *FLAGS variable, or
8143 # (2) before a word containing "conftest.", or (3) at the end.
8144 # Note that $ac_compile itself does not contain backslashes and begins
8145 # with a dollar sign (not a hyphen), so the echo should work correctly.
8146 # The option is referenced via a variable to avoid confusing sed.
8147 lt_compile=`echo "$ac_compile" | $SED \
8148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8150 -e 's:$: $lt_compiler_flag:'`
8151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8152 (eval "$lt_compile" 2>conftest.err)
8153 ac_status=$?
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 if (exit $ac_status) && test -s "$ac_outfile"; then
8157 # The compiler can only warn and ignore the option if not recognized
8158 # So say no if there are warnings other than the usual output.
8159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8162 lt_cv_prog_compiler_pic_works=yes
8163 fi
8164 fi
8165 $RM conftest*
8166
8167 fi
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8169 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8170
8171 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8172 case $lt_prog_compiler_pic in
8173 "" | " "*) ;;
8174 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8175 esac
8176 else
8177 lt_prog_compiler_pic=
8178 lt_prog_compiler_can_build_shared=no
8179 fi
8180
8181 fi
8182
8183
8184
8185
8186
8187
8188 #
8189 # Check to make sure the static flag actually works.
8190 #
8191 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8193 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8194 if ${lt_cv_prog_compiler_static_works+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 lt_cv_prog_compiler_static_works=no
8198 save_LDFLAGS="$LDFLAGS"
8199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8202 # The linker can only warn and ignore the option if not recognized
8203 # So say no if there are warnings
8204 if test -s conftest.err; then
8205 # Append any errors to the config.log.
8206 cat conftest.err 1>&5
8207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8209 if diff conftest.exp conftest.er2 >/dev/null; then
8210 lt_cv_prog_compiler_static_works=yes
8211 fi
8212 else
8213 lt_cv_prog_compiler_static_works=yes
8214 fi
8215 fi
8216 $RM -r conftest*
8217 LDFLAGS="$save_LDFLAGS"
8218
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8221 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8222
8223 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8224 :
8225 else
8226 lt_prog_compiler_static=
8227 fi
8228
8229
8230
8231
8232
8233
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8237 if ${lt_cv_prog_compiler_c_o+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 lt_cv_prog_compiler_c_o=no
8241 $RM -r conftest 2>/dev/null
8242 mkdir conftest
8243 cd conftest
8244 mkdir out
8245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8246
8247 lt_compiler_flag="-o out/conftest2.$ac_objext"
8248 # Insert the option either (1) after the last *FLAGS variable, or
8249 # (2) before a word containing "conftest.", or (3) at the end.
8250 # Note that $ac_compile itself does not contain backslashes and begins
8251 # with a dollar sign (not a hyphen), so the echo should work correctly.
8252 lt_compile=`echo "$ac_compile" | $SED \
8253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255 -e 's:$: $lt_compiler_flag:'`
8256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8257 (eval "$lt_compile" 2>out/conftest.err)
8258 ac_status=$?
8259 cat out/conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8262 then
8263 # The compiler can only warn and ignore the option if not recognized
8264 # So say no if there are warnings
8265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8268 lt_cv_prog_compiler_c_o=yes
8269 fi
8270 fi
8271 chmod u+w . 2>&5
8272 $RM conftest*
8273 # SGI C++ compiler will create directory out/ii_files/ for
8274 # template instantiation
8275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8276 $RM out/* && rmdir out
8277 cd ..
8278 $RM -r conftest
8279 $RM conftest*
8280
8281 fi
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8283 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8284
8285
8286
8287
8288
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8292 if ${lt_cv_prog_compiler_c_o+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 lt_cv_prog_compiler_c_o=no
8296 $RM -r conftest 2>/dev/null
8297 mkdir conftest
8298 cd conftest
8299 mkdir out
8300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8301
8302 lt_compiler_flag="-o out/conftest2.$ac_objext"
8303 # Insert the option either (1) after the last *FLAGS variable, or
8304 # (2) before a word containing "conftest.", or (3) at the end.
8305 # Note that $ac_compile itself does not contain backslashes and begins
8306 # with a dollar sign (not a hyphen), so the echo should work correctly.
8307 lt_compile=`echo "$ac_compile" | $SED \
8308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8310 -e 's:$: $lt_compiler_flag:'`
8311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8312 (eval "$lt_compile" 2>out/conftest.err)
8313 ac_status=$?
8314 cat out/conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8317 then
8318 # The compiler can only warn and ignore the option if not recognized
8319 # So say no if there are warnings
8320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8323 lt_cv_prog_compiler_c_o=yes
8324 fi
8325 fi
8326 chmod u+w . 2>&5
8327 $RM conftest*
8328 # SGI C++ compiler will create directory out/ii_files/ for
8329 # template instantiation
8330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8331 $RM out/* && rmdir out
8332 cd ..
8333 $RM -r conftest
8334 $RM conftest*
8335
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8338 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8339
8340
8341
8342
8343 hard_links="nottested"
8344 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8345 # do not overwrite the value of need_locks provided by the user
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8347 $as_echo_n "checking if we can lock with hard links... " >&6; }
8348 hard_links=yes
8349 $RM conftest*
8350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8351 touch conftest.a
8352 ln conftest.a conftest.b 2>&5 || hard_links=no
8353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8355 $as_echo "$hard_links" >&6; }
8356 if test "$hard_links" = no; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8358 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8359 need_locks=warn
8360 fi
8361 else
8362 need_locks=no
8363 fi
8364
8365
8366
8367
8368
8369
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8371 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8372
8373 runpath_var=
8374 allow_undefined_flag=
8375 always_export_symbols=no
8376 archive_cmds=
8377 archive_expsym_cmds=
8378 compiler_needs_object=no
8379 enable_shared_with_static_runtimes=no
8380 export_dynamic_flag_spec=
8381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8382 hardcode_automatic=no
8383 hardcode_direct=no
8384 hardcode_direct_absolute=no
8385 hardcode_libdir_flag_spec=
8386 hardcode_libdir_flag_spec_ld=
8387 hardcode_libdir_separator=
8388 hardcode_minus_L=no
8389 hardcode_shlibpath_var=unsupported
8390 inherit_rpath=no
8391 link_all_deplibs=unknown
8392 module_cmds=
8393 module_expsym_cmds=
8394 old_archive_from_new_cmds=
8395 old_archive_from_expsyms_cmds=
8396 thread_safe_flag_spec=
8397 whole_archive_flag_spec=
8398 # include_expsyms should be a list of space-separated symbols to be *always*
8399 # included in the symbol list
8400 include_expsyms=
8401 # exclude_expsyms can be an extended regexp of symbols to exclude
8402 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8403 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8404 # as well as any symbol that contains `d'.
8405 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8406 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8407 # platforms (ab)use it in PIC code, but their linkers get confused if
8408 # the symbol is explicitly referenced. Since portable code cannot
8409 # rely on this symbol name, it's probably fine to never include it in
8410 # preloaded symbol tables.
8411 # Exclude shared library initialization/finalization symbols.
8412 extract_expsyms_cmds=
8413
8414 case $host_os in
8415 cygwin* | mingw* | pw32* | cegcc*)
8416 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8417 # When not using gcc, we currently assume that we are using
8418 # Microsoft Visual C++.
8419 if test "$GCC" != yes; then
8420 with_gnu_ld=no
8421 fi
8422 ;;
8423 interix*)
8424 # we just hope/assume this is gcc and not c89 (= MSVC++)
8425 with_gnu_ld=yes
8426 ;;
8427 openbsd*)
8428 with_gnu_ld=no
8429 ;;
8430 esac
8431
8432 ld_shlibs=yes
8433
8434 # On some targets, GNU ld is compatible enough with the native linker
8435 # that we're better off using the native interface for both.
8436 lt_use_gnu_ld_interface=no
8437 if test "$with_gnu_ld" = yes; then
8438 case $host_os in
8439 aix*)
8440 # The AIX port of GNU ld has always aspired to compatibility
8441 # with the native linker. However, as the warning in the GNU ld
8442 # block says, versions before 2.19.5* couldn't really create working
8443 # shared libraries, regardless of the interface used.
8444 case `$LD -v 2>&1` in
8445 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8446 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8447 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8448 *)
8449 lt_use_gnu_ld_interface=yes
8450 ;;
8451 esac
8452 ;;
8453 *)
8454 lt_use_gnu_ld_interface=yes
8455 ;;
8456 esac
8457 fi
8458
8459 if test "$lt_use_gnu_ld_interface" = yes; then
8460 # If archive_cmds runs LD, not CC, wlarc should be empty
8461 wlarc='${wl}'
8462
8463 # Set some defaults for GNU ld with shared library support. These
8464 # are reset later if shared libraries are not supported. Putting them
8465 # here allows them to be overridden if necessary.
8466 runpath_var=LD_RUN_PATH
8467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468 export_dynamic_flag_spec='${wl}--export-dynamic'
8469 # ancient GNU ld didn't support --whole-archive et. al.
8470 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8471 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8472 else
8473 whole_archive_flag_spec=
8474 fi
8475 supports_anon_versioning=no
8476 case `$LD -v 2>&1` in
8477 *GNU\ gold*) supports_anon_versioning=yes ;;
8478 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8479 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8480 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8481 *\ 2.11.*) ;; # other 2.11 versions
8482 *) supports_anon_versioning=yes ;;
8483 esac
8484
8485 # See if GNU ld supports shared libraries.
8486 case $host_os in
8487 aix[3-9]*)
8488 # On AIX/PPC, the GNU linker is very broken
8489 if test "$host_cpu" != ia64; then
8490 ld_shlibs=no
8491 cat <<_LT_EOF 1>&2
8492
8493 *** Warning: the GNU linker, at least up to release 2.19, is reported
8494 *** to be unable to reliably create shared libraries on AIX.
8495 *** Therefore, libtool is disabling shared libraries support. If you
8496 *** really care for shared libraries, you may want to install binutils
8497 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8498 *** You will then need to restart the configuration process.
8499
8500 _LT_EOF
8501 fi
8502 ;;
8503
8504 amigaos*)
8505 case $host_cpu in
8506 powerpc)
8507 # see comment about AmigaOS4 .so support
8508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509 archive_expsym_cmds=''
8510 ;;
8511 m68k)
8512 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)'
8513 hardcode_libdir_flag_spec='-L$libdir'
8514 hardcode_minus_L=yes
8515 ;;
8516 esac
8517 ;;
8518
8519 beos*)
8520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8521 allow_undefined_flag=unsupported
8522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8523 # support --undefined. This deserves some investigation. FIXME
8524 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8525 else
8526 ld_shlibs=no
8527 fi
8528 ;;
8529
8530 cygwin* | mingw* | pw32* | cegcc*)
8531 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8532 # as there is no search path for DLLs.
8533 hardcode_libdir_flag_spec='-L$libdir'
8534 export_dynamic_flag_spec='${wl}--export-all-symbols'
8535 allow_undefined_flag=unsupported
8536 always_export_symbols=no
8537 enable_shared_with_static_runtimes=yes
8538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8539
8540 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8542 # If the export-symbols file already is a .def file (1st line
8543 # is EXPORTS), use it as is; otherwise, prepend...
8544 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8545 cp $export_symbols $output_objdir/$soname.def;
8546 else
8547 echo EXPORTS > $output_objdir/$soname.def;
8548 cat $export_symbols >> $output_objdir/$soname.def;
8549 fi~
8550 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8551 else
8552 ld_shlibs=no
8553 fi
8554 ;;
8555
8556 haiku*)
8557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558 link_all_deplibs=yes
8559 ;;
8560
8561 interix[3-9]*)
8562 hardcode_direct=no
8563 hardcode_shlibpath_var=no
8564 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8565 export_dynamic_flag_spec='${wl}-E'
8566 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8567 # Instead, shared libraries are loaded at an image base (0x10000000 by
8568 # default) and relocated if they conflict, which is a slow very memory
8569 # consuming and fragmenting process. To avoid this, we pick a random,
8570 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8571 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8572 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8573 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'
8574 ;;
8575
8576 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8577 tmp_diet=no
8578 if test "$host_os" = linux-dietlibc; then
8579 case $cc_basename in
8580 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8581 esac
8582 fi
8583 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8584 && test "$tmp_diet" = no
8585 then
8586 tmp_addflag=' $pic_flag'
8587 tmp_sharedflag='-shared'
8588 case $cc_basename,$host_cpu in
8589 pgcc*) # Portland Group C compiler
8590 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'
8591 tmp_addflag=' $pic_flag'
8592 ;;
8593 pgf77* | pgf90* | pgf95* | pgfortran*)
8594 # Portland Group f77 and f90 compilers
8595 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'
8596 tmp_addflag=' $pic_flag -Mnomain' ;;
8597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8598 tmp_addflag=' -i_dynamic' ;;
8599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8600 tmp_addflag=' -i_dynamic -nofor_main' ;;
8601 ifc* | ifort*) # Intel Fortran compiler
8602 tmp_addflag=' -nofor_main' ;;
8603 lf95*) # Lahey Fortran 8.1
8604 whole_archive_flag_spec=
8605 tmp_sharedflag='--shared' ;;
8606 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8607 tmp_sharedflag='-qmkshrobj'
8608 tmp_addflag= ;;
8609 nvcc*) # Cuda Compiler Driver 2.2
8610 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'
8611 compiler_needs_object=yes
8612 ;;
8613 esac
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ C*) # Sun C 5.9
8616 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'
8617 compiler_needs_object=yes
8618 tmp_sharedflag='-G' ;;
8619 *Sun\ F*) # Sun Fortran 8.3
8620 tmp_sharedflag='-G' ;;
8621 esac
8622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623
8624 if test "x$supports_anon_versioning" = xyes; then
8625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8627 echo "local: *; };" >> $output_objdir/$libname.ver~
8628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8629 fi
8630
8631 case $cc_basename in
8632 xlf* | bgf* | bgxlf* | mpixlf*)
8633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8635 hardcode_libdir_flag_spec=
8636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8637 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8638 if test "x$supports_anon_versioning" = xyes; then
8639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8641 echo "local: *; };" >> $output_objdir/$libname.ver~
8642 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8643 fi
8644 ;;
8645 esac
8646 else
8647 ld_shlibs=no
8648 fi
8649 ;;
8650
8651 netbsd*)
8652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8654 wlarc=
8655 else
8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8658 fi
8659 ;;
8660
8661 solaris*)
8662 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8663 ld_shlibs=no
8664 cat <<_LT_EOF 1>&2
8665
8666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8667 *** create shared libraries on Solaris systems. Therefore, libtool
8668 *** is disabling shared libraries support. We urge you to upgrade GNU
8669 *** binutils to release 2.9.1 or newer. Another option is to modify
8670 *** your PATH or compiler configuration so that the native linker is
8671 *** used, and then restart.
8672
8673 _LT_EOF
8674 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8677 else
8678 ld_shlibs=no
8679 fi
8680 ;;
8681
8682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8683 case `$LD -v 2>&1` in
8684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8685 ld_shlibs=no
8686 cat <<_LT_EOF 1>&2
8687
8688 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8689 *** reliably create shared libraries on SCO systems. Therefore, libtool
8690 *** is disabling shared libraries support. We urge you to upgrade GNU
8691 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8692 *** your PATH or compiler configuration so that the native linker is
8693 *** used, and then restart.
8694
8695 _LT_EOF
8696 ;;
8697 *)
8698 # For security reasons, it is highly recommended that you always
8699 # use absolute paths for naming shared libraries, and exclude the
8700 # DT_RUNPATH tag from executables and libraries. But doing so
8701 # requires that you compile everything twice, which is a pain.
8702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8706 else
8707 ld_shlibs=no
8708 fi
8709 ;;
8710 esac
8711 ;;
8712
8713 sunos4*)
8714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8715 wlarc=
8716 hardcode_direct=yes
8717 hardcode_shlibpath_var=no
8718 ;;
8719
8720 *)
8721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8724 else
8725 ld_shlibs=no
8726 fi
8727 ;;
8728 esac
8729
8730 if test "$ld_shlibs" = no; then
8731 runpath_var=
8732 hardcode_libdir_flag_spec=
8733 export_dynamic_flag_spec=
8734 whole_archive_flag_spec=
8735 fi
8736 else
8737 # PORTME fill in a description of your system's linker (not GNU ld)
8738 case $host_os in
8739 aix3*)
8740 allow_undefined_flag=unsupported
8741 always_export_symbols=yes
8742 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'
8743 # Note: this linker hardcodes the directories in LIBPATH if there
8744 # are no directories specified by -L.
8745 hardcode_minus_L=yes
8746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8747 # Neither direct hardcoding nor static linking is supported with a
8748 # broken collect2.
8749 hardcode_direct=unsupported
8750 fi
8751 ;;
8752
8753 aix[4-9]*)
8754 if test "$host_cpu" = ia64; then
8755 # On IA64, the linker does run time linking by default, so we don't
8756 # have to do anything special.
8757 aix_use_runtimelinking=no
8758 exp_sym_flag='-Bexport'
8759 no_entry_flag=""
8760 else
8761 # If we're using GNU nm, then we don't want the "-C" option.
8762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8763 # Also, AIX nm treats weak defined symbols like other global
8764 # defined symbols, whereas GNU nm marks them as "W".
8765 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8766 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'
8767 else
8768 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8769 fi
8770 aix_use_runtimelinking=no
8771
8772 # Test if we are trying to use run time linking or normal
8773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8774 # need to do runtime linking.
8775 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8776 for ld_flag in $LDFLAGS; do
8777 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8778 aix_use_runtimelinking=yes
8779 break
8780 fi
8781 done
8782 ;;
8783 esac
8784
8785 exp_sym_flag='-bexport'
8786 no_entry_flag='-bnoentry'
8787 fi
8788
8789 # When large executables or shared objects are built, AIX ld can
8790 # have problems creating the table of contents. If linking a library
8791 # or program results in "error TOC overflow" add -mminimal-toc to
8792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8794
8795 archive_cmds=''
8796 hardcode_direct=yes
8797 hardcode_direct_absolute=yes
8798 hardcode_libdir_separator=':'
8799 link_all_deplibs=yes
8800 file_list_spec='${wl}-f,'
8801
8802 if test "$GCC" = yes; then
8803 case $host_os in aix4.[012]|aix4.[012].*)
8804 # We only want to do this on AIX 4.2 and lower, the check
8805 # below for broken collect2 doesn't work under 4.3+
8806 collect2name=`${CC} -print-prog-name=collect2`
8807 if test -f "$collect2name" &&
8808 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8809 then
8810 # We have reworked collect2
8811 :
8812 else
8813 # We have old collect2
8814 hardcode_direct=unsupported
8815 # It fails to find uninstalled libraries when the uninstalled
8816 # path is not listed in the libpath. Setting hardcode_minus_L
8817 # to unsupported forces relinking
8818 hardcode_minus_L=yes
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_libdir_separator=
8821 fi
8822 ;;
8823 esac
8824 shared_flag='-shared'
8825 if test "$aix_use_runtimelinking" = yes; then
8826 shared_flag="$shared_flag "'${wl}-G'
8827 fi
8828 else
8829 # not using gcc
8830 if test "$host_cpu" = ia64; then
8831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8832 # chokes on -Wl,-G. The following line is correct:
8833 shared_flag='-G'
8834 else
8835 if test "$aix_use_runtimelinking" = yes; then
8836 shared_flag='${wl}-G'
8837 else
8838 shared_flag='${wl}-bM:SRE'
8839 fi
8840 fi
8841 fi
8842
8843 export_dynamic_flag_spec='${wl}-bexpall'
8844 # It seems that -bexpall does not export symbols beginning with
8845 # underscore (_), so it is better to generate a list of symbols to export.
8846 always_export_symbols=yes
8847 if test "$aix_use_runtimelinking" = yes; then
8848 # Warning - without using the other runtime loading flags (-brtl),
8849 # -berok will link without error, but may produce a broken library.
8850 allow_undefined_flag='-berok'
8851 # Determine the default libpath from the value encoded in an
8852 # empty executable.
8853 if test x$gcc_no_link = xyes; then
8854 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8855 fi
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858
8859 int
8860 main ()
8861 {
8862
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_link "$LINENO"; then :
8868
8869 lt_aix_libpath_sed='
8870 /Import File Strings/,/^$/ {
8871 /^0/ {
8872 s/^0 *\(.*\)$/\1/
8873 p
8874 }
8875 }'
8876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8877 # Check for a 64-bit object if we didn't find anything.
8878 if test -z "$aix_libpath"; then
8879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8880 fi
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8885
8886 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8887 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"
8888 else
8889 if test "$host_cpu" = ia64; then
8890 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8891 allow_undefined_flag="-z nodefs"
8892 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"
8893 else
8894 # Determine the default libpath from the value encoded in an
8895 # empty executable.
8896 if test x$gcc_no_link = xyes; then
8897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8898 fi
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901
8902 int
8903 main ()
8904 {
8905
8906 ;
8907 return 0;
8908 }
8909 _ACEOF
8910 if ac_fn_c_try_link "$LINENO"; then :
8911
8912 lt_aix_libpath_sed='
8913 /Import File Strings/,/^$/ {
8914 /^0/ {
8915 s/^0 *\(.*\)$/\1/
8916 p
8917 }
8918 }'
8919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920 # Check for a 64-bit object if we didn't find anything.
8921 if test -z "$aix_libpath"; then
8922 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8923 fi
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8928
8929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8930 # Warning - without using the other run time loading flags,
8931 # -berok will link without error, but may produce a broken library.
8932 no_undefined_flag=' ${wl}-bernotok'
8933 allow_undefined_flag=' ${wl}-berok'
8934 if test "$with_gnu_ld" = yes; then
8935 # We only use this code for GNU lds that support --whole-archive.
8936 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8937 else
8938 # Exported symbols can be pulled into shared objects from archives
8939 whole_archive_flag_spec='$convenience'
8940 fi
8941 archive_cmds_need_lc=yes
8942 # This is similar to how AIX traditionally builds its shared libraries.
8943 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'
8944 fi
8945 fi
8946 ;;
8947
8948 amigaos*)
8949 case $host_cpu in
8950 powerpc)
8951 # see comment about AmigaOS4 .so support
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds=''
8954 ;;
8955 m68k)
8956 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)'
8957 hardcode_libdir_flag_spec='-L$libdir'
8958 hardcode_minus_L=yes
8959 ;;
8960 esac
8961 ;;
8962
8963 bsdi[45]*)
8964 export_dynamic_flag_spec=-rdynamic
8965 ;;
8966
8967 cygwin* | mingw* | pw32* | cegcc*)
8968 # When not using gcc, we currently assume that we are using
8969 # Microsoft Visual C++.
8970 # hardcode_libdir_flag_spec is actually meaningless, as there is
8971 # no search path for DLLs.
8972 hardcode_libdir_flag_spec=' '
8973 allow_undefined_flag=unsupported
8974 # Tell ltmain to make .lib files, not .a files.
8975 libext=lib
8976 # Tell ltmain to make .dll files, not .so files.
8977 shrext_cmds=".dll"
8978 # FIXME: Setting linknames here is a bad hack.
8979 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8980 # The linker will automatically build a .lib file if we build a DLL.
8981 old_archive_from_new_cmds='true'
8982 # FIXME: Should let the user specify the lib program.
8983 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8984 fix_srcfile_path='`cygpath -w "$srcfile"`'
8985 enable_shared_with_static_runtimes=yes
8986 ;;
8987
8988 darwin* | rhapsody*)
8989
8990
8991 archive_cmds_need_lc=no
8992 hardcode_direct=no
8993 hardcode_automatic=yes
8994 hardcode_shlibpath_var=unsupported
8995 if test "$lt_cv_ld_force_load" = "yes"; then
8996 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\"`'
8997 else
8998 whole_archive_flag_spec=''
8999 fi
9000 link_all_deplibs=yes
9001 allow_undefined_flag="$_lt_dar_allow_undefined"
9002 case $cc_basename in
9003 ifort*) _lt_dar_can_shared=yes ;;
9004 *) _lt_dar_can_shared=$GCC ;;
9005 esac
9006 if test "$_lt_dar_can_shared" = "yes"; then
9007 output_verbose_link_cmd=func_echo_all
9008 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9009 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9010 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}"
9011 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}"
9012
9013 else
9014 ld_shlibs=no
9015 fi
9016
9017 ;;
9018
9019 dgux*)
9020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 hardcode_shlibpath_var=no
9023 ;;
9024
9025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9026 # support. Future versions do this automatically, but an explicit c++rt0.o
9027 # does not break anything, and helps significantly (at the cost of a little
9028 # extra space).
9029 freebsd2.2*)
9030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9031 hardcode_libdir_flag_spec='-R$libdir'
9032 hardcode_direct=yes
9033 hardcode_shlibpath_var=no
9034 ;;
9035
9036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9037 freebsd2.*)
9038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9039 hardcode_direct=yes
9040 hardcode_minus_L=yes
9041 hardcode_shlibpath_var=no
9042 ;;
9043
9044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9045 freebsd* | dragonfly*)
9046 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9047 hardcode_libdir_flag_spec='-R$libdir'
9048 hardcode_direct=yes
9049 hardcode_shlibpath_var=no
9050 ;;
9051
9052 hpux9*)
9053 if test "$GCC" = yes; then
9054 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9055 else
9056 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'
9057 fi
9058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9059 hardcode_libdir_separator=:
9060 hardcode_direct=yes
9061
9062 # hardcode_minus_L: Not really in the search PATH,
9063 # but as the default location of the library.
9064 hardcode_minus_L=yes
9065 export_dynamic_flag_spec='${wl}-E'
9066 ;;
9067
9068 hpux10*)
9069 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9071 else
9072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9073 fi
9074 if test "$with_gnu_ld" = no; then
9075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9076 hardcode_libdir_flag_spec_ld='+b $libdir'
9077 hardcode_libdir_separator=:
9078 hardcode_direct=yes
9079 hardcode_direct_absolute=yes
9080 export_dynamic_flag_spec='${wl}-E'
9081 # hardcode_minus_L: Not really in the search PATH,
9082 # but as the default location of the library.
9083 hardcode_minus_L=yes
9084 fi
9085 ;;
9086
9087 hpux11*)
9088 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9089 case $host_cpu in
9090 hppa*64*)
9091 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9092 ;;
9093 ia64*)
9094 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9095 ;;
9096 *)
9097 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9098 ;;
9099 esac
9100 else
9101 case $host_cpu in
9102 hppa*64*)
9103 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9104 ;;
9105 ia64*)
9106 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9107 ;;
9108 *)
9109
9110 # Older versions of the 11.00 compiler do not understand -b yet
9111 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9113 $as_echo_n "checking if $CC understands -b... " >&6; }
9114 if ${lt_cv_prog_compiler__b+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 lt_cv_prog_compiler__b=no
9118 save_LDFLAGS="$LDFLAGS"
9119 LDFLAGS="$LDFLAGS -b"
9120 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9121 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9122 # The linker can only warn and ignore the option if not recognized
9123 # So say no if there are warnings
9124 if test -s conftest.err; then
9125 # Append any errors to the config.log.
9126 cat conftest.err 1>&5
9127 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9129 if diff conftest.exp conftest.er2 >/dev/null; then
9130 lt_cv_prog_compiler__b=yes
9131 fi
9132 else
9133 lt_cv_prog_compiler__b=yes
9134 fi
9135 fi
9136 $RM -r conftest*
9137 LDFLAGS="$save_LDFLAGS"
9138
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9141 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9142
9143 if test x"$lt_cv_prog_compiler__b" = xyes; then
9144 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9145 else
9146 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9147 fi
9148
9149 ;;
9150 esac
9151 fi
9152 if test "$with_gnu_ld" = no; then
9153 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9154 hardcode_libdir_separator=:
9155
9156 case $host_cpu in
9157 hppa*64*|ia64*)
9158 hardcode_direct=no
9159 hardcode_shlibpath_var=no
9160 ;;
9161 *)
9162 hardcode_direct=yes
9163 hardcode_direct_absolute=yes
9164 export_dynamic_flag_spec='${wl}-E'
9165
9166 # hardcode_minus_L: Not really in the search PATH,
9167 # but as the default location of the library.
9168 hardcode_minus_L=yes
9169 ;;
9170 esac
9171 fi
9172 ;;
9173
9174 irix5* | irix6* | nonstopux*)
9175 if test "$GCC" = yes; then
9176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9177 # Try to use the -exported_symbol ld option, if it does not
9178 # work, assume that -exports_file does not work either and
9179 # implicitly export all symbols.
9180 save_LDFLAGS="$LDFLAGS"
9181 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9182 if test x$gcc_no_link = xyes; then
9183 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9184 fi
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 int foo(void) {}
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9191
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext \
9194 conftest$ac_exeext conftest.$ac_ext
9195 LDFLAGS="$save_LDFLAGS"
9196 else
9197 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'
9198 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'
9199 fi
9200 archive_cmds_need_lc='no'
9201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202 hardcode_libdir_separator=:
9203 inherit_rpath=yes
9204 link_all_deplibs=yes
9205 ;;
9206
9207 netbsd*)
9208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9210 else
9211 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9212 fi
9213 hardcode_libdir_flag_spec='-R$libdir'
9214 hardcode_direct=yes
9215 hardcode_shlibpath_var=no
9216 ;;
9217
9218 newsos6)
9219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9220 hardcode_direct=yes
9221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9222 hardcode_libdir_separator=:
9223 hardcode_shlibpath_var=no
9224 ;;
9225
9226 *nto* | *qnx*)
9227 ;;
9228
9229 openbsd*)
9230 if test -f /usr/libexec/ld.so; then
9231 hardcode_direct=yes
9232 hardcode_shlibpath_var=no
9233 hardcode_direct_absolute=yes
9234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9236 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9238 export_dynamic_flag_spec='${wl}-E'
9239 else
9240 case $host_os in
9241 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9243 hardcode_libdir_flag_spec='-R$libdir'
9244 ;;
9245 *)
9246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9248 ;;
9249 esac
9250 fi
9251 else
9252 ld_shlibs=no
9253 fi
9254 ;;
9255
9256 os2*)
9257 hardcode_libdir_flag_spec='-L$libdir'
9258 hardcode_minus_L=yes
9259 allow_undefined_flag=unsupported
9260 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'
9261 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9262 ;;
9263
9264 osf3*)
9265 if test "$GCC" = yes; then
9266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9267 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'
9268 else
9269 allow_undefined_flag=' -expect_unresolved \*'
9270 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'
9271 fi
9272 archive_cmds_need_lc='no'
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 hardcode_libdir_separator=:
9275 ;;
9276
9277 osf4* | osf5*) # as osf3* with the addition of -msym flag
9278 if test "$GCC" = yes; then
9279 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9280 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282 else
9283 allow_undefined_flag=' -expect_unresolved \*'
9284 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'
9285 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~
9286 $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'
9287
9288 # Both c and cxx compiler support -rpath directly
9289 hardcode_libdir_flag_spec='-rpath $libdir'
9290 fi
9291 archive_cmds_need_lc='no'
9292 hardcode_libdir_separator=:
9293 ;;
9294
9295 solaris*)
9296 no_undefined_flag=' -z defs'
9297 if test "$GCC" = yes; then
9298 wlarc='${wl}'
9299 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9301 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9302 else
9303 case `$CC -V 2>&1` in
9304 *"Compilers 5.0"*)
9305 wlarc=''
9306 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9309 ;;
9310 *)
9311 wlarc='${wl}'
9312 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9314 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9315 ;;
9316 esac
9317 fi
9318 hardcode_libdir_flag_spec='-R$libdir'
9319 hardcode_shlibpath_var=no
9320 case $host_os in
9321 solaris2.[0-5] | solaris2.[0-5].*) ;;
9322 *)
9323 # The compiler driver will combine and reorder linker options,
9324 # but understands `-z linker_flag'. GCC discards it without `$wl',
9325 # but is careful enough not to reorder.
9326 # Supported since Solaris 2.6 (maybe 2.5.1?)
9327 if test "$GCC" = yes; then
9328 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9329 else
9330 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9331 fi
9332 ;;
9333 esac
9334 link_all_deplibs=yes
9335 ;;
9336
9337 sunos4*)
9338 if test "x$host_vendor" = xsequent; then
9339 # Use $CC to link under sequent, because it throws in some extra .o
9340 # files that make .init and .fini sections work.
9341 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9342 else
9343 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9344 fi
9345 hardcode_libdir_flag_spec='-L$libdir'
9346 hardcode_direct=yes
9347 hardcode_minus_L=yes
9348 hardcode_shlibpath_var=no
9349 ;;
9350
9351 sysv4)
9352 case $host_vendor in
9353 sni)
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_direct=yes # is this really true???
9356 ;;
9357 siemens)
9358 ## LD is ld it makes a PLAMLIB
9359 ## CC just makes a GrossModule.
9360 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9361 reload_cmds='$CC -r -o $output$reload_objs'
9362 hardcode_direct=no
9363 ;;
9364 motorola)
9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9367 ;;
9368 esac
9369 runpath_var='LD_RUN_PATH'
9370 hardcode_shlibpath_var=no
9371 ;;
9372
9373 sysv4.3*)
9374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_shlibpath_var=no
9376 export_dynamic_flag_spec='-Bexport'
9377 ;;
9378
9379 sysv4*MP*)
9380 if test -d /usr/nec; then
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_shlibpath_var=no
9383 runpath_var=LD_RUN_PATH
9384 hardcode_runpath_var=yes
9385 ld_shlibs=yes
9386 fi
9387 ;;
9388
9389 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9390 no_undefined_flag='${wl}-z,text'
9391 archive_cmds_need_lc=no
9392 hardcode_shlibpath_var=no
9393 runpath_var='LD_RUN_PATH'
9394
9395 if test "$GCC" = yes; then
9396 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 else
9399 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9401 fi
9402 ;;
9403
9404 sysv5* | sco3.2v5* | sco5v6*)
9405 # Note: We can NOT use -z defs as we might desire, because we do not
9406 # link with -lc, and that would cause any symbols used from libc to
9407 # always be unresolved, which means just about no library would
9408 # ever link correctly. If we're not using GNU ld we use -z text
9409 # though, which does catch some bad symbols but isn't as heavy-handed
9410 # as -z defs.
9411 no_undefined_flag='${wl}-z,text'
9412 allow_undefined_flag='${wl}-z,nodefs'
9413 archive_cmds_need_lc=no
9414 hardcode_shlibpath_var=no
9415 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9416 hardcode_libdir_separator=':'
9417 link_all_deplibs=yes
9418 export_dynamic_flag_spec='${wl}-Bexport'
9419 runpath_var='LD_RUN_PATH'
9420
9421 if test "$GCC" = yes; then
9422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 else
9425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427 fi
9428 ;;
9429
9430 uts4*)
9431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_shlibpath_var=no
9434 ;;
9435
9436 *)
9437 ld_shlibs=no
9438 ;;
9439 esac
9440
9441 if test x$host_vendor = xsni; then
9442 case $host in
9443 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9444 export_dynamic_flag_spec='${wl}-Blargedynsym'
9445 ;;
9446 esac
9447 fi
9448 fi
9449
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9451 $as_echo "$ld_shlibs" >&6; }
9452 test "$ld_shlibs" = no && can_build_shared=no
9453
9454 with_gnu_ld=$with_gnu_ld
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470 #
9471 # Do we need to explicitly link libc?
9472 #
9473 case "x$archive_cmds_need_lc" in
9474 x|xyes)
9475 # Assume -lc should be added
9476 archive_cmds_need_lc=yes
9477
9478 if test "$enable_shared" = yes && test "$GCC" = yes; then
9479 case $archive_cmds in
9480 *'~'*)
9481 # FIXME: we may have to deal with multi-command sequences.
9482 ;;
9483 '$CC '*)
9484 # Test whether the compiler implicitly links with -lc since on some
9485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9486 # to ld, don't add -lc before -lgcc.
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9488 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9489 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 $RM conftest*
9493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9494
9495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9496 (eval $ac_compile) 2>&5
9497 ac_status=$?
9498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9499 test $ac_status = 0; } 2>conftest.err; then
9500 soname=conftest
9501 lib=conftest
9502 libobjs=conftest.$ac_objext
9503 deplibs=
9504 wl=$lt_prog_compiler_wl
9505 pic_flag=$lt_prog_compiler_pic
9506 compiler_flags=-v
9507 linker_flags=-v
9508 verstring=
9509 output_objdir=.
9510 libname=conftest
9511 lt_save_allow_undefined_flag=$allow_undefined_flag
9512 allow_undefined_flag=
9513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9514 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9515 ac_status=$?
9516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9517 test $ac_status = 0; }
9518 then
9519 lt_cv_archive_cmds_need_lc=no
9520 else
9521 lt_cv_archive_cmds_need_lc=yes
9522 fi
9523 allow_undefined_flag=$lt_save_allow_undefined_flag
9524 else
9525 cat conftest.err 1>&5
9526 fi
9527 $RM conftest*
9528
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9531 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9532 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9533 ;;
9534 esac
9535 fi
9536 ;;
9537 esac
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9697
9698 if test "$GCC" = yes; then
9699 case $host_os in
9700 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9701 *) lt_awk_arg="/^libraries:/" ;;
9702 esac
9703 case $host_os in
9704 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9705 *) lt_sed_strip_eq="s,=/,/,g" ;;
9706 esac
9707 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9708 case $lt_search_path_spec in
9709 *\;*)
9710 # if the path contains ";" then we assume it to be the separator
9711 # otherwise default to the standard path separator (i.e. ":") - it is
9712 # assumed that no part of a normal pathname contains ";" but that should
9713 # okay in the real world where ";" in dirpaths is itself problematic.
9714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9715 ;;
9716 *)
9717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9718 ;;
9719 esac
9720 # Ok, now we have the path, separated by spaces, we can step through it
9721 # and add multilib dir if necessary.
9722 lt_tmp_lt_search_path_spec=
9723 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9724 for lt_sys_path in $lt_search_path_spec; do
9725 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9727 else
9728 test -d "$lt_sys_path" && \
9729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9730 fi
9731 done
9732 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9733 BEGIN {RS=" "; FS="/|\n";} {
9734 lt_foo="";
9735 lt_count=0;
9736 for (lt_i = NF; lt_i > 0; lt_i--) {
9737 if ($lt_i != "" && $lt_i != ".") {
9738 if ($lt_i == "..") {
9739 lt_count++;
9740 } else {
9741 if (lt_count == 0) {
9742 lt_foo="/" $lt_i lt_foo;
9743 } else {
9744 lt_count--;
9745 }
9746 }
9747 }
9748 }
9749 if (lt_foo != "") { lt_freq[lt_foo]++; }
9750 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9751 }'`
9752 # AWK program above erroneously prepends '/' to C:/dos/paths
9753 # for these hosts.
9754 case $host_os in
9755 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9756 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9757 esac
9758 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9759 else
9760 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9761 fi
9762 library_names_spec=
9763 libname_spec='lib$name'
9764 soname_spec=
9765 shrext_cmds=".so"
9766 postinstall_cmds=
9767 postuninstall_cmds=
9768 finish_cmds=
9769 finish_eval=
9770 shlibpath_var=
9771 shlibpath_overrides_runpath=unknown
9772 version_type=none
9773 dynamic_linker="$host_os ld.so"
9774 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9775 need_lib_prefix=unknown
9776 hardcode_into_libs=no
9777
9778 # when you set need_version to no, make sure it does not cause -set_version
9779 # flags to be left without arguments
9780 need_version=unknown
9781
9782 case $host_os in
9783 aix3*)
9784 version_type=linux
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9786 shlibpath_var=LIBPATH
9787
9788 # AIX 3 has no versioning support, so we append a major version to the name.
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 ;;
9791
9792 aix[4-9]*)
9793 version_type=linux
9794 need_lib_prefix=no
9795 need_version=no
9796 hardcode_into_libs=yes
9797 if test "$host_cpu" = ia64; then
9798 # AIX 5 supports IA64
9799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9800 shlibpath_var=LD_LIBRARY_PATH
9801 else
9802 # With GCC up to 2.95.x, collect2 would create an import file
9803 # for dependence libraries. The import file would start with
9804 # the line `#! .'. This would cause the generated library to
9805 # depend on `.', always an invalid library. This was fixed in
9806 # development snapshots of GCC prior to 3.0.
9807 case $host_os in
9808 aix4 | aix4.[01] | aix4.[01].*)
9809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9810 echo ' yes '
9811 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9812 :
9813 else
9814 can_build_shared=no
9815 fi
9816 ;;
9817 esac
9818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9819 # soname into executable. Probably we can add versioning support to
9820 # collect2, so additional links can be useful in future.
9821 if test "$aix_use_runtimelinking" = yes; then
9822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9823 # instead of lib<name>.a to let people know that these are not
9824 # typical AIX shared libraries.
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 else
9827 # We preserve .a as extension for shared libraries through AIX4.2
9828 # and later when we are not doing run time linking.
9829 library_names_spec='${libname}${release}.a $libname.a'
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 fi
9832 shlibpath_var=LIBPATH
9833 fi
9834 ;;
9835
9836 amigaos*)
9837 case $host_cpu in
9838 powerpc)
9839 # Since July 2007 AmigaOS4 officially supports .so libraries.
9840 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 ;;
9843 m68k)
9844 library_names_spec='$libname.ixlibrary $libname.a'
9845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9846 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'
9847 ;;
9848 esac
9849 ;;
9850
9851 beos*)
9852 library_names_spec='${libname}${shared_ext}'
9853 dynamic_linker="$host_os ld.so"
9854 shlibpath_var=LIBRARY_PATH
9855 ;;
9856
9857 bsdi[45]*)
9858 version_type=linux
9859 need_version=no
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9865 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9866 # the default ld.so.conf also contains /usr/contrib/lib and
9867 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9868 # libtool to hard-code these into programs
9869 ;;
9870
9871 cygwin* | mingw* | pw32* | cegcc*)
9872 version_type=windows
9873 shrext_cmds=".dll"
9874 need_version=no
9875 need_lib_prefix=no
9876
9877 case $GCC,$host_os in
9878 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9879 library_names_spec='$libname.dll.a'
9880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9881 postinstall_cmds='base_file=`basename \${file}`~
9882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9883 dldir=$destdir/`dirname \$dlpath`~
9884 test -d \$dldir || mkdir -p \$dldir~
9885 $install_prog $dir/$dlname \$dldir/$dlname~
9886 chmod a+x \$dldir/$dlname~
9887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9889 fi'
9890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9891 dlpath=$dir/\$dldll~
9892 $RM \$dlpath'
9893 shlibpath_overrides_runpath=yes
9894
9895 case $host_os in
9896 cygwin*)
9897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9898 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9899
9900 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9901 ;;
9902 mingw* | cegcc*)
9903 # MinGW DLLs use traditional 'lib' prefix
9904 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9905 ;;
9906 pw32*)
9907 # pw32 DLLs use 'pw' prefix rather than 'lib'
9908 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9909 ;;
9910 esac
9911 ;;
9912
9913 *)
9914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9915 ;;
9916 esac
9917 dynamic_linker='Win32 ld.exe'
9918 # FIXME: first we should search . and the directory the executable is in
9919 shlibpath_var=PATH
9920 ;;
9921
9922 darwin* | rhapsody*)
9923 dynamic_linker="$host_os dyld"
9924 version_type=darwin
9925 need_lib_prefix=no
9926 need_version=no
9927 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9928 soname_spec='${libname}${release}${major}$shared_ext'
9929 shlibpath_overrides_runpath=yes
9930 shlibpath_var=DYLD_LIBRARY_PATH
9931 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9932
9933 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9935 ;;
9936
9937 dgux*)
9938 version_type=linux
9939 need_lib_prefix=no
9940 need_version=no
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 ;;
9945
9946 freebsd* | dragonfly*)
9947 # DragonFly does not have aout. When/if they implement a new
9948 # versioning mechanism, adjust this.
9949 if test -x /usr/bin/objformat; then
9950 objformat=`/usr/bin/objformat`
9951 else
9952 case $host_os in
9953 freebsd[23].*) objformat=aout ;;
9954 *) objformat=elf ;;
9955 esac
9956 fi
9957 version_type=freebsd-$objformat
9958 case $version_type in
9959 freebsd-elf*)
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9961 need_version=no
9962 need_lib_prefix=no
9963 ;;
9964 freebsd-*)
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9966 need_version=yes
9967 ;;
9968 esac
9969 shlibpath_var=LD_LIBRARY_PATH
9970 case $host_os in
9971 freebsd2.*)
9972 shlibpath_overrides_runpath=yes
9973 ;;
9974 freebsd3.[01]* | freebsdelf3.[01]*)
9975 shlibpath_overrides_runpath=yes
9976 hardcode_into_libs=yes
9977 ;;
9978 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9979 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9980 shlibpath_overrides_runpath=no
9981 hardcode_into_libs=yes
9982 ;;
9983 *) # from 4.6 on, and DragonFly
9984 shlibpath_overrides_runpath=yes
9985 hardcode_into_libs=yes
9986 ;;
9987 esac
9988 ;;
9989
9990 haiku*)
9991 version_type=linux
9992 need_lib_prefix=no
9993 need_version=no
9994 dynamic_linker="$host_os runtime_loader"
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 shlibpath_var=LIBRARY_PATH
9998 shlibpath_overrides_runpath=yes
9999 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10000 hardcode_into_libs=yes
10001 ;;
10002
10003 hpux9* | hpux10* | hpux11*)
10004 # Give a soname corresponding to the major version so that dld.sl refuses to
10005 # link against other versions.
10006 version_type=sunos
10007 need_lib_prefix=no
10008 need_version=no
10009 case $host_cpu in
10010 ia64*)
10011 shrext_cmds='.so'
10012 hardcode_into_libs=yes
10013 dynamic_linker="$host_os dld.so"
10014 shlibpath_var=LD_LIBRARY_PATH
10015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 if test "X$HPUX_IA64_MODE" = X32; then
10019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10020 else
10021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10022 fi
10023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10024 ;;
10025 hppa*64*)
10026 shrext_cmds='.sl'
10027 hardcode_into_libs=yes
10028 dynamic_linker="$host_os dld.sl"
10029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10035 ;;
10036 *)
10037 shrext_cmds='.sl'
10038 dynamic_linker="$host_os dld.sl"
10039 shlibpath_var=SHLIB_PATH
10040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 ;;
10044 esac
10045 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10046 postinstall_cmds='chmod 555 $lib'
10047 # or fails outright, so override atomically:
10048 install_override_mode=555
10049 ;;
10050
10051 interix[3-9]*)
10052 version_type=linux
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10061 ;;
10062
10063 irix5* | irix6* | nonstopux*)
10064 case $host_os in
10065 nonstopux*) version_type=nonstopux ;;
10066 *)
10067 if test "$lt_cv_prog_gnu_ld" = yes; then
10068 version_type=linux
10069 else
10070 version_type=irix
10071 fi ;;
10072 esac
10073 need_lib_prefix=no
10074 need_version=no
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10077 case $host_os in
10078 irix5* | nonstopux*)
10079 libsuff= shlibsuff=
10080 ;;
10081 *)
10082 case $LD in # libtool.m4 will add one of these switches to LD
10083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10084 libsuff= shlibsuff= libmagic=32-bit;;
10085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10086 libsuff=32 shlibsuff=N32 libmagic=N32;;
10087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10089 *) libsuff= shlibsuff= libmagic=never-match;;
10090 esac
10091 ;;
10092 esac
10093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10094 shlibpath_overrides_runpath=no
10095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10097 hardcode_into_libs=yes
10098 ;;
10099
10100 # No shared lib support for Linux oldld, aout, or coff.
10101 linux*oldld* | linux*aout* | linux*coff*)
10102 dynamic_linker=no
10103 ;;
10104
10105 # This must be Linux ELF.
10106
10107 # uclinux* changes (here and below) have been submitted to the libtool
10108 # project, but have not yet been accepted: they are GCC-local changes
10109 # for the time being. (See
10110 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10111 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10112 version_type=linux
10113 need_lib_prefix=no
10114 need_version=no
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10118 shlibpath_var=LD_LIBRARY_PATH
10119 shlibpath_overrides_runpath=no
10120
10121 # Some binutils ld are patched to set DT_RUNPATH
10122 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 lt_cv_shlibpath_overrides_runpath=no
10126 save_LDFLAGS=$LDFLAGS
10127 save_libdir=$libdir
10128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10130 if test x$gcc_no_link = xyes; then
10131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10132 fi
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135
10136 int
10137 main ()
10138 {
10139
10140 ;
10141 return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10145 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10146 lt_cv_shlibpath_overrides_runpath=yes
10147 fi
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LDFLAGS=$save_LDFLAGS
10152 libdir=$save_libdir
10153
10154 fi
10155
10156 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10157
10158 # This implies no fast_install, which is unacceptable.
10159 # Some rework will be needed to allow for fast_install
10160 # before this can be enabled.
10161 hardcode_into_libs=yes
10162
10163 # Append ld.so.conf contents to the search path
10164 if test -f /etc/ld.so.conf; then
10165 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' ' '`
10166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10167 fi
10168
10169 # We used to test for /lib/ld.so.1 and disable shared libraries on
10170 # powerpc, because MkLinux only supported shared libraries with the
10171 # GNU dynamic linker. Since this was broken with cross compilers,
10172 # most powerpc-linux boxes support dynamic linking these days and
10173 # people can always --disable-shared, the test was removed, and we
10174 # assume the GNU/Linux dynamic linker is in use.
10175 dynamic_linker='GNU/Linux ld.so'
10176 ;;
10177
10178 netbsd*)
10179 version_type=sunos
10180 need_lib_prefix=no
10181 need_version=no
10182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10185 dynamic_linker='NetBSD (a.out) ld.so'
10186 else
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 dynamic_linker='NetBSD ld.elf_so'
10190 fi
10191 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes
10193 hardcode_into_libs=yes
10194 ;;
10195
10196 newsos6)
10197 version_type=linux
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 shlibpath_overrides_runpath=yes
10201 ;;
10202
10203 *nto* | *qnx*)
10204 version_type=qnx
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=no
10211 hardcode_into_libs=yes
10212 dynamic_linker='ldqnx.so'
10213 ;;
10214
10215 openbsd*)
10216 version_type=sunos
10217 sys_lib_dlsearch_path_spec="/usr/lib"
10218 need_lib_prefix=no
10219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10220 case $host_os in
10221 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10222 *) need_version=no ;;
10223 esac
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10228 case $host_os in
10229 openbsd2.[89] | openbsd2.[89].*)
10230 shlibpath_overrides_runpath=no
10231 ;;
10232 *)
10233 shlibpath_overrides_runpath=yes
10234 ;;
10235 esac
10236 else
10237 shlibpath_overrides_runpath=yes
10238 fi
10239 ;;
10240
10241 os2*)
10242 libname_spec='$name'
10243 shrext_cmds=".dll"
10244 need_lib_prefix=no
10245 library_names_spec='$libname${shared_ext} $libname.a'
10246 dynamic_linker='OS/2 ld.exe'
10247 shlibpath_var=LIBPATH
10248 ;;
10249
10250 osf3* | osf4* | osf5*)
10251 version_type=osf
10252 need_lib_prefix=no
10253 need_version=no
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10259 ;;
10260
10261 rdos*)
10262 dynamic_linker=no
10263 ;;
10264
10265 solaris*)
10266 version_type=linux
10267 need_lib_prefix=no
10268 need_version=no
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10274 # ldd complains unless libraries are executable
10275 postinstall_cmds='chmod +x $lib'
10276 ;;
10277
10278 sunos4*)
10279 version_type=sunos
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 shlibpath_overrides_runpath=yes
10284 if test "$with_gnu_ld" = yes; then
10285 need_lib_prefix=no
10286 fi
10287 need_version=yes
10288 ;;
10289
10290 sysv4 | sysv4.3*)
10291 version_type=linux
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 case $host_vendor in
10296 sni)
10297 shlibpath_overrides_runpath=no
10298 need_lib_prefix=no
10299 runpath_var=LD_RUN_PATH
10300 ;;
10301 siemens)
10302 need_lib_prefix=no
10303 ;;
10304 motorola)
10305 need_lib_prefix=no
10306 need_version=no
10307 shlibpath_overrides_runpath=no
10308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10309 ;;
10310 esac
10311 ;;
10312
10313 sysv4*MP*)
10314 if test -d /usr/nec ;then
10315 version_type=linux
10316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10317 soname_spec='$libname${shared_ext}.$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 fi
10320 ;;
10321
10322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10323 version_type=freebsd-elf
10324 need_lib_prefix=no
10325 need_version=no
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes
10330 hardcode_into_libs=yes
10331 if test "$with_gnu_ld" = yes; then
10332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10333 else
10334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10335 case $host_os in
10336 sco3.2v5*)
10337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10338 ;;
10339 esac
10340 fi
10341 sys_lib_dlsearch_path_spec='/usr/lib'
10342 ;;
10343
10344 tpf*)
10345 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10346 version_type=linux
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=no
10352 hardcode_into_libs=yes
10353 ;;
10354
10355 uts4*)
10356 version_type=linux
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 ;;
10361
10362 # Shared libraries for VwWorks, >= 7 only at this stage
10363 # and (fpic) still incompatible with "large" code models
10364 # in a few configurations. Only for RTP mode in any case,
10365 # and upon explicit request at configure time.
10366 vxworks7*)
10367 dynamic_linker=no
10368 case ${with_multisubdir}-${enable_shared} in
10369 *large*)
10370 ;;
10371 *mrtp*-yes)
10372 version_type=linux
10373 need_lib_prefix=no
10374 need_version=no
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 dynamic_linker="$host_os module_loader"
10378 ;;
10379 esac
10380 ;;
10381 *)
10382 dynamic_linker=no
10383 ;;
10384 esac
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10386 $as_echo "$dynamic_linker" >&6; }
10387 test "$dynamic_linker" = no && can_build_shared=no
10388
10389 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10390 if test "$GCC" = yes; then
10391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10392 fi
10393
10394 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10395 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10396 fi
10397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10398 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10399 fi
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10493 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10494 hardcode_action=
10495 if test -n "$hardcode_libdir_flag_spec" ||
10496 test -n "$runpath_var" ||
10497 test "X$hardcode_automatic" = "Xyes" ; then
10498
10499 # We can hardcode non-existent directories.
10500 if test "$hardcode_direct" != no &&
10501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10502 # have to relink, otherwise we might link with an installed library
10503 # when we should be linking with a yet-to-be-installed one
10504 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10505 test "$hardcode_minus_L" != no; then
10506 # Linking always hardcodes the temporary library directory.
10507 hardcode_action=relink
10508 else
10509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10510 hardcode_action=immediate
10511 fi
10512 else
10513 # We cannot hardcode anything, or else we can only hardcode existing
10514 # directories.
10515 hardcode_action=unsupported
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10518 $as_echo "$hardcode_action" >&6; }
10519
10520 if test "$hardcode_action" = relink ||
10521 test "$inherit_rpath" = yes; then
10522 # Fast installation is not supported
10523 enable_fast_install=no
10524 elif test "$shlibpath_overrides_runpath" = yes ||
10525 test "$enable_shared" = no; then
10526 # Fast installation is not necessary
10527 enable_fast_install=needless
10528 fi
10529
10530
10531
10532
10533
10534
10535 if test "x$enable_dlopen" != xyes; then
10536 enable_dlopen=unknown
10537 enable_dlopen_self=unknown
10538 enable_dlopen_self_static=unknown
10539 else
10540 lt_cv_dlopen=no
10541 lt_cv_dlopen_libs=
10542
10543 case $host_os in
10544 beos*)
10545 lt_cv_dlopen="load_add_on"
10546 lt_cv_dlopen_libs=
10547 lt_cv_dlopen_self=yes
10548 ;;
10549
10550 mingw* | pw32* | cegcc*)
10551 lt_cv_dlopen="LoadLibrary"
10552 lt_cv_dlopen_libs=
10553 ;;
10554
10555 cygwin*)
10556 lt_cv_dlopen="dlopen"
10557 lt_cv_dlopen_libs=
10558 ;;
10559
10560 darwin*)
10561 # if libdl is installed we need to link against it
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10564 if ${ac_cv_lib_dl_dlopen+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 ac_check_lib_save_LIBS=$LIBS
10568 LIBS="-ldl $LIBS"
10569 if test x$gcc_no_link = xyes; then
10570 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10571 fi
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10574
10575 /* Override any GCC internal prototype to avoid an error.
10576 Use char because int might match the return type of a GCC
10577 builtin and then its argument prototype would still apply. */
10578 #ifdef __cplusplus
10579 extern "C"
10580 #endif
10581 char dlopen ();
10582 int
10583 main ()
10584 {
10585 return dlopen ();
10586 ;
10587 return 0;
10588 }
10589 _ACEOF
10590 if ac_fn_c_try_link "$LINENO"; then :
10591 ac_cv_lib_dl_dlopen=yes
10592 else
10593 ac_cv_lib_dl_dlopen=no
10594 fi
10595 rm -f core conftest.err conftest.$ac_objext \
10596 conftest$ac_exeext conftest.$ac_ext
10597 LIBS=$ac_check_lib_save_LIBS
10598 fi
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10600 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10601 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10603 else
10604
10605 lt_cv_dlopen="dyld"
10606 lt_cv_dlopen_libs=
10607 lt_cv_dlopen_self=yes
10608
10609 fi
10610
10611 ;;
10612
10613 *)
10614 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10615 if test "x$ac_cv_func_shl_load" = xyes; then :
10616 lt_cv_dlopen="shl_load"
10617 else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10619 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10620 if ${ac_cv_lib_dld_shl_load+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-ldld $LIBS"
10625 if test x$gcc_no_link = xyes; then
10626 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10627 fi
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630
10631 /* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char shl_load ();
10638 int
10639 main ()
10640 {
10641 return shl_load ();
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647 ac_cv_lib_dld_shl_load=yes
10648 else
10649 ac_cv_lib_dld_shl_load=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext \
10652 conftest$ac_exeext conftest.$ac_ext
10653 LIBS=$ac_check_lib_save_LIBS
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10656 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10657 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10659 else
10660 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10661 if test "x$ac_cv_func_dlopen" = xyes; then :
10662 lt_cv_dlopen="dlopen"
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10666 if ${ac_cv_lib_dl_dlopen+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-ldl $LIBS"
10671 if test x$gcc_no_link = xyes; then
10672 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10673 fi
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10680 #ifdef __cplusplus
10681 extern "C"
10682 #endif
10683 char dlopen ();
10684 int
10685 main ()
10686 {
10687 return dlopen ();
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 ac_cv_lib_dl_dlopen=yes
10694 else
10695 ac_cv_lib_dl_dlopen=no
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10703 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10707 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10708 if ${ac_cv_lib_svld_dlopen+:} false; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 ac_check_lib_save_LIBS=$LIBS
10712 LIBS="-lsvld $LIBS"
10713 if test x$gcc_no_link = xyes; then
10714 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10715 fi
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char dlopen ();
10726 int
10727 main ()
10728 {
10729 return dlopen ();
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735 ac_cv_lib_svld_dlopen=yes
10736 else
10737 ac_cv_lib_svld_dlopen=no
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10742 fi
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10744 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10745 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10749 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10750 if ${ac_cv_lib_dld_dld_link+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-ldld $LIBS"
10755 if test x$gcc_no_link = xyes; then
10756 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10757 fi
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760
10761 /* Override any GCC internal prototype to avoid an error.
10762 Use char because int might match the return type of a GCC
10763 builtin and then its argument prototype would still apply. */
10764 #ifdef __cplusplus
10765 extern "C"
10766 #endif
10767 char dld_link ();
10768 int
10769 main ()
10770 {
10771 return dld_link ();
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 ac_cv_lib_dld_dld_link=yes
10778 else
10779 ac_cv_lib_dld_dld_link=no
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10786 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10787 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10788 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10789 fi
10790
10791
10792 fi
10793
10794
10795 fi
10796
10797
10798 fi
10799
10800
10801 fi
10802
10803
10804 fi
10805
10806 ;;
10807 esac
10808
10809 if test "x$lt_cv_dlopen" != xno; then
10810 enable_dlopen=yes
10811 else
10812 enable_dlopen=no
10813 fi
10814
10815 case $lt_cv_dlopen in
10816 dlopen)
10817 save_CPPFLAGS="$CPPFLAGS"
10818 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10819
10820 save_LDFLAGS="$LDFLAGS"
10821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10822
10823 save_LIBS="$LIBS"
10824 LIBS="$lt_cv_dlopen_libs $LIBS"
10825
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10827 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10828 if ${lt_cv_dlopen_self+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 if test "$cross_compiling" = yes; then :
10832 lt_cv_dlopen_self=cross
10833 else
10834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10835 lt_status=$lt_dlunknown
10836 cat > conftest.$ac_ext <<_LT_EOF
10837 #line 10837 "configure"
10838 #include "confdefs.h"
10839
10840 #if HAVE_DLFCN_H
10841 #include <dlfcn.h>
10842 #endif
10843
10844 #include <stdio.h>
10845
10846 #ifdef RTLD_GLOBAL
10847 # define LT_DLGLOBAL RTLD_GLOBAL
10848 #else
10849 # ifdef DL_GLOBAL
10850 # define LT_DLGLOBAL DL_GLOBAL
10851 # else
10852 # define LT_DLGLOBAL 0
10853 # endif
10854 #endif
10855
10856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10857 find out it does not work in some platform. */
10858 #ifndef LT_DLLAZY_OR_NOW
10859 # ifdef RTLD_LAZY
10860 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10861 # else
10862 # ifdef DL_LAZY
10863 # define LT_DLLAZY_OR_NOW DL_LAZY
10864 # else
10865 # ifdef RTLD_NOW
10866 # define LT_DLLAZY_OR_NOW RTLD_NOW
10867 # else
10868 # ifdef DL_NOW
10869 # define LT_DLLAZY_OR_NOW DL_NOW
10870 # else
10871 # define LT_DLLAZY_OR_NOW 0
10872 # endif
10873 # endif
10874 # endif
10875 # endif
10876 #endif
10877
10878 /* When -fvisbility=hidden is used, assume the code has been annotated
10879 correspondingly for the symbols needed. */
10880 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10881 void fnord () __attribute__((visibility("default")));
10882 #endif
10883
10884 void fnord () { int i=42; }
10885 int main ()
10886 {
10887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10888 int status = $lt_dlunknown;
10889
10890 if (self)
10891 {
10892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10893 else
10894 {
10895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10896 else puts (dlerror ());
10897 }
10898 /* dlclose (self); */
10899 }
10900 else
10901 puts (dlerror ());
10902
10903 return status;
10904 }
10905 _LT_EOF
10906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10907 (eval $ac_link) 2>&5
10908 ac_status=$?
10909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10911 (./conftest; exit; ) >&5 2>/dev/null
10912 lt_status=$?
10913 case x$lt_status in
10914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10916 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10917 esac
10918 else :
10919 # compilation failed
10920 lt_cv_dlopen_self=no
10921 fi
10922 fi
10923 rm -fr conftest*
10924
10925
10926 fi
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10928 $as_echo "$lt_cv_dlopen_self" >&6; }
10929
10930 if test "x$lt_cv_dlopen_self" = xyes; then
10931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10933 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10934 if ${lt_cv_dlopen_self_static+:} false; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 if test "$cross_compiling" = yes; then :
10938 lt_cv_dlopen_self_static=cross
10939 else
10940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10941 lt_status=$lt_dlunknown
10942 cat > conftest.$ac_ext <<_LT_EOF
10943 #line 10943 "configure"
10944 #include "confdefs.h"
10945
10946 #if HAVE_DLFCN_H
10947 #include <dlfcn.h>
10948 #endif
10949
10950 #include <stdio.h>
10951
10952 #ifdef RTLD_GLOBAL
10953 # define LT_DLGLOBAL RTLD_GLOBAL
10954 #else
10955 # ifdef DL_GLOBAL
10956 # define LT_DLGLOBAL DL_GLOBAL
10957 # else
10958 # define LT_DLGLOBAL 0
10959 # endif
10960 #endif
10961
10962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10963 find out it does not work in some platform. */
10964 #ifndef LT_DLLAZY_OR_NOW
10965 # ifdef RTLD_LAZY
10966 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10967 # else
10968 # ifdef DL_LAZY
10969 # define LT_DLLAZY_OR_NOW DL_LAZY
10970 # else
10971 # ifdef RTLD_NOW
10972 # define LT_DLLAZY_OR_NOW RTLD_NOW
10973 # else
10974 # ifdef DL_NOW
10975 # define LT_DLLAZY_OR_NOW DL_NOW
10976 # else
10977 # define LT_DLLAZY_OR_NOW 0
10978 # endif
10979 # endif
10980 # endif
10981 # endif
10982 #endif
10983
10984 /* When -fvisbility=hidden is used, assume the code has been annotated
10985 correspondingly for the symbols needed. */
10986 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10987 void fnord () __attribute__((visibility("default")));
10988 #endif
10989
10990 void fnord () { int i=42; }
10991 int main ()
10992 {
10993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10994 int status = $lt_dlunknown;
10995
10996 if (self)
10997 {
10998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10999 else
11000 {
11001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11002 else puts (dlerror ());
11003 }
11004 /* dlclose (self); */
11005 }
11006 else
11007 puts (dlerror ());
11008
11009 return status;
11010 }
11011 _LT_EOF
11012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11013 (eval $ac_link) 2>&5
11014 ac_status=$?
11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11017 (./conftest; exit; ) >&5 2>/dev/null
11018 lt_status=$?
11019 case x$lt_status in
11020 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11021 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11022 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11023 esac
11024 else :
11025 # compilation failed
11026 lt_cv_dlopen_self_static=no
11027 fi
11028 fi
11029 rm -fr conftest*
11030
11031
11032 fi
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11034 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11035 fi
11036
11037 CPPFLAGS="$save_CPPFLAGS"
11038 LDFLAGS="$save_LDFLAGS"
11039 LIBS="$save_LIBS"
11040 ;;
11041 esac
11042
11043 case $lt_cv_dlopen_self in
11044 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11045 *) enable_dlopen_self=unknown ;;
11046 esac
11047
11048 case $lt_cv_dlopen_self_static in
11049 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11050 *) enable_dlopen_self_static=unknown ;;
11051 esac
11052 fi
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070 striplib=
11071 old_striplib=
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11073 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11074 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11075 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11076 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11078 $as_echo "yes" >&6; }
11079 else
11080 # FIXME - insert some real tests, host_os isn't really good enough
11081 case $host_os in
11082 darwin*)
11083 if test -n "$STRIP" ; then
11084 striplib="$STRIP -x"
11085 old_striplib="$STRIP -S"
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11087 $as_echo "yes" >&6; }
11088 else
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11091 fi
11092 ;;
11093 *)
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11096 ;;
11097 esac
11098 fi
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111 # Report which library types will actually be built
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11113 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11115 $as_echo "$can_build_shared" >&6; }
11116
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11118 $as_echo_n "checking whether to build shared libraries... " >&6; }
11119 test "$can_build_shared" = "no" && enable_shared=no
11120
11121 # On AIX, shared libraries and static libraries use the same namespace, and
11122 # are all built from PIC.
11123 case $host_os in
11124 aix3*)
11125 test "$enable_shared" = yes && enable_static=no
11126 if test -n "$RANLIB"; then
11127 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11128 postinstall_cmds='$RANLIB $lib'
11129 fi
11130 ;;
11131
11132 aix[4-9]*)
11133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11134 test "$enable_shared" = yes && enable_static=no
11135 fi
11136 ;;
11137 esac
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11139 $as_echo "$enable_shared" >&6; }
11140
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11142 $as_echo_n "checking whether to build static libraries... " >&6; }
11143 # Make sure either enable_shared or enable_static is yes.
11144 test "$enable_shared" = yes || enable_static=yes
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11146 $as_echo "$enable_static" >&6; }
11147
11148
11149
11150
11151 fi
11152 ac_ext=c
11153 ac_cpp='$CPP $CPPFLAGS'
11154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11157
11158 CC="$lt_save_CC"
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172 ac_config_commands="$ac_config_commands libtool"
11173
11174
11175
11176
11177 # Only expand once:
11178
11179
11180
11181
11182
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11184 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11185 set x ${MAKE-make}
11186 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11187 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 cat >conftest.make <<\_ACEOF
11191 SHELL = /bin/sh
11192 all:
11193 @echo '@@@%%%=$(MAKE)=@@@%%%'
11194 _ACEOF
11195 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11196 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11197 *@@@%%%=?*=@@@%%%*)
11198 eval ac_cv_prog_make_${ac_make}_set=yes;;
11199 *)
11200 eval ac_cv_prog_make_${ac_make}_set=no;;
11201 esac
11202 rm -f conftest.make
11203 fi
11204 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11206 $as_echo "yes" >&6; }
11207 SET_MAKE=
11208 else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 SET_MAKE="MAKE=${MAKE-make}"
11212 fi
11213
11214
11215 # -------
11216 # Headers
11217 # -------
11218
11219 # Sanity check for the cross-compilation case:
11220 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11221 if test "x$ac_cv_header_stdio_h" = xyes; then :
11222 :
11223 else
11224 as_fn_error $? "Can't find stdio.h.
11225 You must have a usable C system for the target already installed, at least
11226 including headers and, preferably, the library, before you can configure
11227 the Objective C runtime system. If necessary, install gcc now with
11228 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
11229 fi
11230
11231
11232
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11234 $as_echo_n "checking for ANSI C header files... " >&6; }
11235 if ${ac_cv_header_stdc+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240 #include <stdlib.h>
11241 #include <stdarg.h>
11242 #include <string.h>
11243 #include <float.h>
11244
11245 int
11246 main ()
11247 {
11248
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_compile "$LINENO"; then :
11254 ac_cv_header_stdc=yes
11255 else
11256 ac_cv_header_stdc=no
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259
11260 if test $ac_cv_header_stdc = yes; then
11261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11264 #include <string.h>
11265
11266 _ACEOF
11267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11268 $EGREP "memchr" >/dev/null 2>&1; then :
11269
11270 else
11271 ac_cv_header_stdc=no
11272 fi
11273 rm -f conftest*
11274
11275 fi
11276
11277 if test $ac_cv_header_stdc = yes; then
11278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #include <stdlib.h>
11282
11283 _ACEOF
11284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11285 $EGREP "free" >/dev/null 2>&1; then :
11286
11287 else
11288 ac_cv_header_stdc=no
11289 fi
11290 rm -f conftest*
11291
11292 fi
11293
11294 if test $ac_cv_header_stdc = yes; then
11295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11296 if test "$cross_compiling" = yes; then :
11297 :
11298 else
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301 #include <ctype.h>
11302 #include <stdlib.h>
11303 #if ((' ' & 0x0FF) == 0x020)
11304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11306 #else
11307 # define ISLOWER(c) \
11308 (('a' <= (c) && (c) <= 'i') \
11309 || ('j' <= (c) && (c) <= 'r') \
11310 || ('s' <= (c) && (c) <= 'z'))
11311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11312 #endif
11313
11314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11315 int
11316 main ()
11317 {
11318 int i;
11319 for (i = 0; i < 256; i++)
11320 if (XOR (islower (i), ISLOWER (i))
11321 || toupper (i) != TOUPPER (i))
11322 return 2;
11323 return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_run "$LINENO"; then :
11327
11328 else
11329 ac_cv_header_stdc=no
11330 fi
11331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11332 conftest.$ac_objext conftest.beam conftest.$ac_ext
11333 fi
11334
11335 fi
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11338 $as_echo "$ac_cv_header_stdc" >&6; }
11339 if test $ac_cv_header_stdc = yes; then
11340
11341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11342
11343 fi
11344
11345
11346 for ac_header in sched.h
11347 do :
11348 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11349 if test "x$ac_cv_header_sched_h" = xyes; then :
11350 cat >>confdefs.h <<_ACEOF
11351 #define HAVE_SCHED_H 1
11352 _ACEOF
11353
11354 fi
11355
11356 done
11357
11358
11359 # -----------
11360 # Miscellanea
11361 # -----------
11362
11363 # Check if we have thread-local storage
11364
11365
11366 # Check whether --enable-tls was given.
11367 if test "${enable_tls+set}" = set; then :
11368 enableval=$enable_tls;
11369 case "$enableval" in
11370 yes|no) ;;
11371 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11372 esac
11373
11374 else
11375 enable_tls=yes
11376 fi
11377
11378
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11380 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11381 if ${gcc_cv_have_tls+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384
11385 if test "$cross_compiling" = yes; then :
11386 if test x$gcc_no_link = xyes; then
11387 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11388 fi
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11391 __thread int a; int b; int main() { return a = b; }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 chktls_save_LDFLAGS="$LDFLAGS"
11395 case $host in
11396 *-*-linux* | -*-uclinuxfdpic*)
11397 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11398 ;;
11399 esac
11400 chktls_save_CFLAGS="$CFLAGS"
11401 CFLAGS="-fPIC $CFLAGS"
11402 if test x$gcc_no_link = xyes; then
11403 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11404 fi
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11407 int f() { return 0; }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 if test x$gcc_no_link = xyes; then
11411 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11412 fi
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415 __thread int a; int b; int f() { return a = b; }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 gcc_cv_have_tls=yes
11419 else
11420 gcc_cv_have_tls=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 else
11425 gcc_cv_have_tls=yes
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 CFLAGS="$chktls_save_CFLAGS"
11430 LDFLAGS="$chktls_save_LDFLAGS"
11431 else
11432 gcc_cv_have_tls=no
11433 fi
11434 rm -f core conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436
11437
11438 else
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441 __thread int a; int b; int main() { return a = b; }
11442 _ACEOF
11443 if ac_fn_c_try_run "$LINENO"; then :
11444 chktls_save_LDFLAGS="$LDFLAGS"
11445 LDFLAGS="-static $LDFLAGS"
11446 if test x$gcc_no_link = xyes; then
11447 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11448 fi
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11451 int main() { return 0; }
11452 _ACEOF
11453 if ac_fn_c_try_link "$LINENO"; then :
11454 if test "$cross_compiling" = yes; then :
11455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11457 as_fn_error $? "cannot run test program while cross compiling
11458 See \`config.log' for more details" "$LINENO" 5; }
11459 else
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 __thread int a; int b; int main() { return a = b; }
11463 _ACEOF
11464 if ac_fn_c_try_run "$LINENO"; then :
11465 gcc_cv_have_tls=yes
11466 else
11467 gcc_cv_have_tls=no
11468 fi
11469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11470 conftest.$ac_objext conftest.beam conftest.$ac_ext
11471 fi
11472
11473 else
11474 gcc_cv_have_tls=yes
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LDFLAGS="$chktls_save_LDFLAGS"
11479 if test $gcc_cv_have_tls = yes; then
11480 chktls_save_CFLAGS="$CFLAGS"
11481 thread_CFLAGS=failed
11482 for flag in '' '-pthread' '-lpthread'; do
11483 CFLAGS="$flag $chktls_save_CFLAGS"
11484 if test x$gcc_no_link = xyes; then
11485 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11486 fi
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489 #include <pthread.h>
11490 void *g(void *d) { return NULL; }
11491 int
11492 main ()
11493 {
11494 pthread_t t; pthread_create(&t,NULL,g,NULL);
11495 ;
11496 return 0;
11497 }
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 thread_CFLAGS="$flag"
11501 fi
11502 rm -f core conftest.err conftest.$ac_objext \
11503 conftest$ac_exeext conftest.$ac_ext
11504 if test "X$thread_CFLAGS" != Xfailed; then
11505 break
11506 fi
11507 done
11508 CFLAGS="$chktls_save_CFLAGS"
11509 if test "X$thread_CFLAGS" != Xfailed; then
11510 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11511 if test "$cross_compiling" = yes; then :
11512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11514 as_fn_error $? "cannot run test program while cross compiling
11515 See \`config.log' for more details" "$LINENO" 5; }
11516 else
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <pthread.h>
11520 __thread int a;
11521 static int *volatile a_in_other_thread;
11522 static void *
11523 thread_func (void *arg)
11524 {
11525 a_in_other_thread = &a;
11526 return (void *)0;
11527 }
11528 int
11529 main ()
11530 {
11531 pthread_t thread;
11532 void *thread_retval;
11533 int *volatile a_in_main_thread;
11534 a_in_main_thread = &a;
11535 if (pthread_create (&thread, (pthread_attr_t *)0,
11536 thread_func, (void *)0))
11537 return 0;
11538 if (pthread_join (thread, &thread_retval))
11539 return 0;
11540 return (a_in_other_thread == a_in_main_thread);
11541 ;
11542 return 0;
11543 }
11544 _ACEOF
11545 if ac_fn_c_try_run "$LINENO"; then :
11546 gcc_cv_have_tls=yes
11547 else
11548 gcc_cv_have_tls=no
11549 fi
11550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11551 conftest.$ac_objext conftest.beam conftest.$ac_ext
11552 fi
11553
11554 CFLAGS="$chktls_save_CFLAGS"
11555 fi
11556 fi
11557 else
11558 gcc_cv_have_tls=no
11559 fi
11560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11561 conftest.$ac_objext conftest.beam conftest.$ac_ext
11562 fi
11563
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11566 $as_echo "$gcc_cv_have_tls" >&6; }
11567 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11568
11569 $as_echo "#define HAVE_TLS 1" >>confdefs.h
11570
11571 fi
11572
11573
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
11575 $as_echo_n "checking if the type of bitfields matters... " >&6; }
11576 if ${gt_cv_bitfield_type_matters+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582 struct foo1 { char x; char y:1; char z; };
11583 struct foo2 { char x; long long int y:1; char z; };
11584 int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ];
11585 int
11586 main ()
11587 {
11588
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_compile "$LINENO"; then :
11594 gt_cv_bitfield_type_matters=yes
11595 else
11596 gt_cv_bitfield_type_matters=no
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5
11602 $as_echo "$gt_cv_bitfield_type_matters" >&6; }
11603 if test $gt_cv_bitfield_type_matters = yes; then
11604
11605 $as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h
11606
11607 fi
11608
11609
11610 # -----------
11611 # boehm-gc
11612 # -----------
11613
11614 # Check whether --enable-objc-gc was given.
11615 if test "${enable_objc_gc+set}" = set; then :
11616 enableval=$enable_objc_gc;
11617 else
11618 enable_objc_gc=no
11619 fi
11620
11621
11622 # Check whether --with-target-bdw-gc was given.
11623 if test "${with_target_bdw_gc+set}" = set; then :
11624 withval=$with_target_bdw_gc;
11625 fi
11626
11627
11628 # Check whether --with-target-bdw-gc-include was given.
11629 if test "${with_target_bdw_gc_include+set}" = set; then :
11630 withval=$with_target_bdw_gc_include;
11631 fi
11632
11633
11634 # Check whether --with-target-bdw-gc-lib was given.
11635 if test "${with_target_bdw_gc_lib+set}" = set; then :
11636 withval=$with_target_bdw_gc_lib;
11637 fi
11638
11639
11640 case "$enable_objc_gc" in
11641 no)
11642 use_bdw_gc=no
11643 ;;
11644 *)
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
11646 $as_echo_n "checking for bdw garbage collector... " >&6; }
11647 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
11648 BDW_GC_CFLAGS=
11649 BDW_GC_LIBS="-lgc"
11650 else
11651 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
11652 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
11653 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
11654 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
11657 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
11658 fi
11659 mldir=`${CC-gcc} --print-multi-directory 2>/dev/null`
11660 bdw_val=
11661 if test "x$with_target_bdw_gc" != x; then
11662 for i in `echo $with_target_bdw_gc | tr ',' ' '`; do
11663 case "$i" in
11664 *=*) sd=${i%%=*}; d=${i#*=} ;;
11665 *) sd=.; d=$i ;;
11666 esac
11667 if test "$mldir" = "$sd"; then
11668 bdw_val=$d
11669 fi
11670 done
11671 if test "x$bdw_val" = x; then
11672 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc" "$LINENO" 5
11673 fi
11674 bdw_inc_dir="$bdw_val/include"
11675 bdw_lib_dir="$bdw_val/lib"
11676 fi
11677 bdw_val=
11678 if test "x$with_target_bdw_gc_include" != x; then
11679 for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do
11680 case "$i" in
11681 *=*) sd=${i%%=*}; d=${i#*=} ;;
11682 *) sd=.; d=$i; fallback=$i ;;
11683 esac
11684 if test "$mldir" = "$sd"; then
11685 bdw_val=$d
11686 fi
11687 done
11688 if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then
11689 bdw_inc_dir="$fallback"
11690 elif test "x$bdw_val" = x; then
11691 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11692 else
11693 bdw_inc_dir="$bdw_val"
11694 fi
11695 fi
11696 bdw_val=
11697 if test "x$with_target_bdw_gc_lib" != x; then
11698 for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do
11699 case "$i" in
11700 *=*) sd=${i%%=*}; d=${i#*=} ;;
11701 *) sd=.; d=$i ;;
11702 esac
11703 if test "$mldir" = "$sd"; then
11704 bdw_val=$d
11705 fi
11706 done
11707 if test "x$bdw_val" = x; then
11708 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11709 fi
11710 bdw_lib_dir="$bdw_val"
11711 fi
11712 if test "x$bdw_inc_dir" = x; then
11713 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11714 fi
11715 if test "x$bdw_lib_dir" = x; then
11716 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11717 fi
11718 BDW_GC_CFLAGS="-I$bdw_inc_dir"
11719 if test -f $bdw_lib_dir/libgc.la; then
11720 BDW_GC_LIBS="$bdw_lib_dir/libgc.la"
11721 else
11722 BDW_GC_LIBS="-L$bdw_lib_dir -lgc"
11723 fi
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11725 $as_echo "found" >&6; }
11726 fi
11727
11728 case "$BDW_GC_LIBS" in
11729 *libgc.la)
11730 use_bdw_gc=yes
11731 ;;
11732 *)
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system boehm-gc" >&5
11734 $as_echo_n "checking for system boehm-gc... " >&6; }
11735 save_CFLAGS=$CFLAGS
11736 save_LIBS=$LIBS
11737 CFLAGS="$CFLAGS $BDW_GC_CFLAGS"
11738 LIBS="$LIBS $BDW_GC_LIBS"
11739 if test x$gcc_no_link = xyes; then
11740 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11741 fi
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744 #include <gc/gc.h>
11745 int
11746 main ()
11747 {
11748 GC_init()
11749 ;
11750 return 0;
11751 }
11752 _ACEOF
11753 if ac_fn_c_try_link "$LINENO"; then :
11754
11755 if test "$cross_compiling" = yes; then :
11756 system_bdw_gc_found=no
11757
11758 else
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11761
11762 #include <gc/gc.h>
11763 int main() {
11764 GC_init();
11765 return 0;
11766 }
11767
11768 _ACEOF
11769 if ac_fn_c_try_run "$LINENO"; then :
11770 system_bdw_gc_found=yes
11771 else
11772 system_bdw_gc_found=no
11773 fi
11774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11775 conftest.$ac_objext conftest.beam conftest.$ac_ext
11776 fi
11777
11778
11779 else
11780 system_bdw_gc_found=no
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11784 CFLAGS=$save_CFLAGS
11785 LIBS=$save_LIBS
11786 if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system bdw-gc not found, not building libobjc_gc" >&5
11788 $as_echo "$as_me: WARNING: system bdw-gc not found, not building libobjc_gc" >&2;}
11789 use_bdw_gc=no
11790 elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then
11791 as_fn_error $? "system bdw-gc required but not found" "$LINENO" 5
11792 else
11793 use_bdw_gc=yes
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11795 $as_echo "found" >&6; }
11796 fi
11797 esac
11798 esac
11799
11800 if test "$use_bdw_gc" = no; then
11801 OBJC_GCFLAGS=''
11802 OBJC_BOEHM_GC=''
11803 OBJC_BOEHM_GC_INCLUDES=''
11804 OBJC_BOEHM_GC_LIBS=''
11805 else
11806 OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
11807 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
11808 OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS
11809 OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS
11810 fi
11811
11812
11813
11814
11815
11816 # Determine what GCC version number to use in filesystem paths.
11817
11818 get_gcc_base_ver="cat"
11819
11820 # Check whether --with-gcc-major-version-only was given.
11821 if test "${with_gcc_major_version_only+set}" = set; then :
11822 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11823 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11824 fi
11825
11826 fi
11827
11828
11829
11830
11831 # ------
11832 # Output
11833 # ------
11834
11835 if test ${multilib} = yes; then
11836 multilib_arg="--enable-multilib"
11837 else
11838 multilib_arg=
11839 fi
11840
11841 ac_config_files="$ac_config_files Makefile"
11842
11843 cat >confcache <<\_ACEOF
11844 # This file is a shell script that caches the results of configure
11845 # tests run on this system so they can be shared between configure
11846 # scripts and configure runs, see configure's option --config-cache.
11847 # It is not useful on other systems. If it contains results you don't
11848 # want to keep, you may remove or edit it.
11849 #
11850 # config.status only pays attention to the cache file if you give it
11851 # the --recheck option to rerun configure.
11852 #
11853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11855 # following values.
11856
11857 _ACEOF
11858
11859 # The following way of writing the cache mishandles newlines in values,
11860 # but we know of no workaround that is simple, portable, and efficient.
11861 # So, we kill variables containing newlines.
11862 # Ultrix sh set writes to stderr and can't be redirected directly,
11863 # and sets the high bit in the cache file unless we assign to the vars.
11864 (
11865 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11866 eval ac_val=\$$ac_var
11867 case $ac_val in #(
11868 *${as_nl}*)
11869 case $ac_var in #(
11870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11872 esac
11873 case $ac_var in #(
11874 _ | IFS | as_nl) ;; #(
11875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11876 *) { eval $ac_var=; unset $ac_var;} ;;
11877 esac ;;
11878 esac
11879 done
11880
11881 (set) 2>&1 |
11882 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11883 *${as_nl}ac_space=\ *)
11884 # `set' does not quote correctly, so add quotes: double-quote
11885 # substitution turns \\\\ into \\, and sed turns \\ into \.
11886 sed -n \
11887 "s/'/'\\\\''/g;
11888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11889 ;; #(
11890 *)
11891 # `set' quotes correctly as required by POSIX, so do not add quotes.
11892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11893 ;;
11894 esac |
11895 sort
11896 ) |
11897 sed '
11898 /^ac_cv_env_/b end
11899 t clear
11900 :clear
11901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11902 t end
11903 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11904 :end' >>confcache
11905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11906 if test -w "$cache_file"; then
11907 if test "x$cache_file" != "x/dev/null"; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11909 $as_echo "$as_me: updating cache $cache_file" >&6;}
11910 if test ! -f "$cache_file" || test -h "$cache_file"; then
11911 cat confcache >"$cache_file"
11912 else
11913 case $cache_file in #(
11914 */* | ?:*)
11915 mv -f confcache "$cache_file"$$ &&
11916 mv -f "$cache_file"$$ "$cache_file" ;; #(
11917 *)
11918 mv -f confcache "$cache_file" ;;
11919 esac
11920 fi
11921 fi
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11925 fi
11926 fi
11927 rm -f confcache
11928
11929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11930 # Let make expand exec_prefix.
11931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11932
11933 DEFS=-DHAVE_CONFIG_H
11934
11935 ac_libobjs=
11936 ac_ltlibobjs=
11937 U=
11938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11939 # 1. Remove the extension, and $U if already installed.
11940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11943 # will be set to the directory where LIBOBJS objects are built.
11944 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11945 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11946 done
11947 LIBOBJS=$ac_libobjs
11948
11949 LTLIBOBJS=$ac_ltlibobjs
11950
11951
11952 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11953 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11955 fi
11956
11957 : "${CONFIG_STATUS=./config.status}"
11958 ac_write_fail=0
11959 ac_clean_files_save=$ac_clean_files
11960 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11962 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11963 as_write_fail=0
11964 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11965 #! $SHELL
11966 # Generated by $as_me.
11967 # Run this file to recreate the current configuration.
11968 # Compiler output produced by configure, useful for debugging
11969 # configure, is in config.log if it exists.
11970
11971 debug=false
11972 ac_cs_recheck=false
11973 ac_cs_silent=false
11974
11975 SHELL=\${CONFIG_SHELL-$SHELL}
11976 export SHELL
11977 _ASEOF
11978 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11979 ## -------------------- ##
11980 ## M4sh Initialization. ##
11981 ## -------------------- ##
11982
11983 # Be more Bourne compatible
11984 DUALCASE=1; export DUALCASE # for MKS sh
11985 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11986 emulate sh
11987 NULLCMD=:
11988 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11989 # is contrary to our usage. Disable this feature.
11990 alias -g '${1+"$@"}'='"$@"'
11991 setopt NO_GLOB_SUBST
11992 else
11993 case `(set -o) 2>/dev/null` in #(
11994 *posix*) :
11995 set -o posix ;; #(
11996 *) :
11997 ;;
11998 esac
11999 fi
12000
12001
12002 as_nl='
12003 '
12004 export as_nl
12005 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12006 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12007 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12009 # Prefer a ksh shell builtin over an external printf program on Solaris,
12010 # but without wasting forks for bash or zsh.
12011 if test -z "$BASH_VERSION$ZSH_VERSION" \
12012 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12013 as_echo='print -r --'
12014 as_echo_n='print -rn --'
12015 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12016 as_echo='printf %s\n'
12017 as_echo_n='printf %s'
12018 else
12019 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12020 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12021 as_echo_n='/usr/ucb/echo -n'
12022 else
12023 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12024 as_echo_n_body='eval
12025 arg=$1;
12026 case $arg in #(
12027 *"$as_nl"*)
12028 expr "X$arg" : "X\\(.*\\)$as_nl";
12029 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12030 esac;
12031 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12032 '
12033 export as_echo_n_body
12034 as_echo_n='sh -c $as_echo_n_body as_echo'
12035 fi
12036 export as_echo_body
12037 as_echo='sh -c $as_echo_body as_echo'
12038 fi
12039
12040 # The user is always right.
12041 if test "${PATH_SEPARATOR+set}" != set; then
12042 PATH_SEPARATOR=:
12043 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12044 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12045 PATH_SEPARATOR=';'
12046 }
12047 fi
12048
12049
12050 # IFS
12051 # We need space, tab and new line, in precisely that order. Quoting is
12052 # there to prevent editors from complaining about space-tab.
12053 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12054 # splitting by setting IFS to empty value.)
12055 IFS=" "" $as_nl"
12056
12057 # Find who we are. Look in the path if we contain no directory separator.
12058 as_myself=
12059 case $0 in #((
12060 *[\\/]* ) as_myself=$0 ;;
12061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12067 done
12068 IFS=$as_save_IFS
12069
12070 ;;
12071 esac
12072 # We did not find ourselves, most probably we were run as `sh COMMAND'
12073 # in which case we are not to be found in the path.
12074 if test "x$as_myself" = x; then
12075 as_myself=$0
12076 fi
12077 if test ! -f "$as_myself"; then
12078 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12079 exit 1
12080 fi
12081
12082 # Unset variables that we do not need and which cause bugs (e.g. in
12083 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12084 # suppresses any "Segmentation fault" message there. '((' could
12085 # trigger a bug in pdksh 5.2.14.
12086 for as_var in BASH_ENV ENV MAIL MAILPATH
12087 do eval test x\${$as_var+set} = xset \
12088 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12089 done
12090 PS1='$ '
12091 PS2='> '
12092 PS4='+ '
12093
12094 # NLS nuisances.
12095 LC_ALL=C
12096 export LC_ALL
12097 LANGUAGE=C
12098 export LANGUAGE
12099
12100 # CDPATH.
12101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12102
12103
12104 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12105 # ----------------------------------------
12106 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12107 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12108 # script with STATUS, using 1 if that was 0.
12109 as_fn_error ()
12110 {
12111 as_status=$1; test $as_status -eq 0 && as_status=1
12112 if test "$4"; then
12113 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12114 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12115 fi
12116 $as_echo "$as_me: error: $2" >&2
12117 as_fn_exit $as_status
12118 } # as_fn_error
12119
12120
12121 # as_fn_set_status STATUS
12122 # -----------------------
12123 # Set $? to STATUS, without forking.
12124 as_fn_set_status ()
12125 {
12126 return $1
12127 } # as_fn_set_status
12128
12129 # as_fn_exit STATUS
12130 # -----------------
12131 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12132 as_fn_exit ()
12133 {
12134 set +e
12135 as_fn_set_status $1
12136 exit $1
12137 } # as_fn_exit
12138
12139 # as_fn_unset VAR
12140 # ---------------
12141 # Portably unset VAR.
12142 as_fn_unset ()
12143 {
12144 { eval $1=; unset $1;}
12145 }
12146 as_unset=as_fn_unset
12147 # as_fn_append VAR VALUE
12148 # ----------------------
12149 # Append the text in VALUE to the end of the definition contained in VAR. Take
12150 # advantage of any shell optimizations that allow amortized linear growth over
12151 # repeated appends, instead of the typical quadratic growth present in naive
12152 # implementations.
12153 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12154 eval 'as_fn_append ()
12155 {
12156 eval $1+=\$2
12157 }'
12158 else
12159 as_fn_append ()
12160 {
12161 eval $1=\$$1\$2
12162 }
12163 fi # as_fn_append
12164
12165 # as_fn_arith ARG...
12166 # ------------------
12167 # Perform arithmetic evaluation on the ARGs, and store the result in the
12168 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12169 # must be portable across $(()) and expr.
12170 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12171 eval 'as_fn_arith ()
12172 {
12173 as_val=$(( $* ))
12174 }'
12175 else
12176 as_fn_arith ()
12177 {
12178 as_val=`expr "$@" || test $? -eq 1`
12179 }
12180 fi # as_fn_arith
12181
12182
12183 if expr a : '\(a\)' >/dev/null 2>&1 &&
12184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12185 as_expr=expr
12186 else
12187 as_expr=false
12188 fi
12189
12190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12191 as_basename=basename
12192 else
12193 as_basename=false
12194 fi
12195
12196 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12197 as_dirname=dirname
12198 else
12199 as_dirname=false
12200 fi
12201
12202 as_me=`$as_basename -- "$0" ||
12203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12204 X"$0" : 'X\(//\)$' \| \
12205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12206 $as_echo X/"$0" |
12207 sed '/^.*\/\([^/][^/]*\)\/*$/{
12208 s//\1/
12209 q
12210 }
12211 /^X\/\(\/\/\)$/{
12212 s//\1/
12213 q
12214 }
12215 /^X\/\(\/\).*/{
12216 s//\1/
12217 q
12218 }
12219 s/.*/./; q'`
12220
12221 # Avoid depending upon Character Ranges.
12222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12225 as_cr_digits='0123456789'
12226 as_cr_alnum=$as_cr_Letters$as_cr_digits
12227
12228 ECHO_C= ECHO_N= ECHO_T=
12229 case `echo -n x` in #(((((
12230 -n*)
12231 case `echo 'xy\c'` in
12232 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12233 xy) ECHO_C='\c';;
12234 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12235 ECHO_T=' ';;
12236 esac;;
12237 *)
12238 ECHO_N='-n';;
12239 esac
12240
12241 rm -f conf$$ conf$$.exe conf$$.file
12242 if test -d conf$$.dir; then
12243 rm -f conf$$.dir/conf$$.file
12244 else
12245 rm -f conf$$.dir
12246 mkdir conf$$.dir 2>/dev/null
12247 fi
12248 if (echo >conf$$.file) 2>/dev/null; then
12249 if ln -s conf$$.file conf$$ 2>/dev/null; then
12250 as_ln_s='ln -s'
12251 # ... but there are two gotchas:
12252 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12253 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12254 # In both cases, we have to default to `cp -pR'.
12255 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12256 as_ln_s='cp -pR'
12257 elif ln conf$$.file conf$$ 2>/dev/null; then
12258 as_ln_s=ln
12259 else
12260 as_ln_s='cp -pR'
12261 fi
12262 else
12263 as_ln_s='cp -pR'
12264 fi
12265 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12266 rmdir conf$$.dir 2>/dev/null
12267
12268
12269 # as_fn_mkdir_p
12270 # -------------
12271 # Create "$as_dir" as a directory, including parents if necessary.
12272 as_fn_mkdir_p ()
12273 {
12274
12275 case $as_dir in #(
12276 -*) as_dir=./$as_dir;;
12277 esac
12278 test -d "$as_dir" || eval $as_mkdir_p || {
12279 as_dirs=
12280 while :; do
12281 case $as_dir in #(
12282 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12283 *) as_qdir=$as_dir;;
12284 esac
12285 as_dirs="'$as_qdir' $as_dirs"
12286 as_dir=`$as_dirname -- "$as_dir" ||
12287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12288 X"$as_dir" : 'X\(//\)[^/]' \| \
12289 X"$as_dir" : 'X\(//\)$' \| \
12290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12291 $as_echo X"$as_dir" |
12292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12293 s//\1/
12294 q
12295 }
12296 /^X\(\/\/\)[^/].*/{
12297 s//\1/
12298 q
12299 }
12300 /^X\(\/\/\)$/{
12301 s//\1/
12302 q
12303 }
12304 /^X\(\/\).*/{
12305 s//\1/
12306 q
12307 }
12308 s/.*/./; q'`
12309 test -d "$as_dir" && break
12310 done
12311 test -z "$as_dirs" || eval "mkdir $as_dirs"
12312 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12313
12314
12315 } # as_fn_mkdir_p
12316 if mkdir -p . 2>/dev/null; then
12317 as_mkdir_p='mkdir -p "$as_dir"'
12318 else
12319 test -d ./-p && rmdir ./-p
12320 as_mkdir_p=false
12321 fi
12322
12323
12324 # as_fn_executable_p FILE
12325 # -----------------------
12326 # Test if FILE is an executable regular file.
12327 as_fn_executable_p ()
12328 {
12329 test -f "$1" && test -x "$1"
12330 } # as_fn_executable_p
12331 as_test_x='test -x'
12332 as_executable_p=as_fn_executable_p
12333
12334 # Sed expression to map a string onto a valid CPP name.
12335 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12336
12337 # Sed expression to map a string onto a valid variable name.
12338 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12339
12340
12341 exec 6>&1
12342 ## ----------------------------------- ##
12343 ## Main body of $CONFIG_STATUS script. ##
12344 ## ----------------------------------- ##
12345 _ASEOF
12346 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12347
12348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12349 # Save the log message, to keep $0 and so on meaningful, and to
12350 # report actual input values of CONFIG_FILES etc. instead of their
12351 # values after options handling.
12352 ac_log="
12353 This file was extended by package-unused $as_me version-unused, which was
12354 generated by GNU Autoconf 2.69. Invocation command line was
12355
12356 CONFIG_FILES = $CONFIG_FILES
12357 CONFIG_HEADERS = $CONFIG_HEADERS
12358 CONFIG_LINKS = $CONFIG_LINKS
12359 CONFIG_COMMANDS = $CONFIG_COMMANDS
12360 $ $0 $@
12361
12362 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12363 "
12364
12365 _ACEOF
12366
12367 case $ac_config_files in *"
12368 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12369 esac
12370
12371 case $ac_config_headers in *"
12372 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12373 esac
12374
12375
12376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12377 # Files that config.status was made for.
12378 config_files="$ac_config_files"
12379 config_headers="$ac_config_headers"
12380 config_commands="$ac_config_commands"
12381
12382 _ACEOF
12383
12384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385 ac_cs_usage="\
12386 \`$as_me' instantiates files and other configuration actions
12387 from templates according to the current configuration. Unless the files
12388 and actions are specified as TAGs, all are instantiated by default.
12389
12390 Usage: $0 [OPTION]... [TAG]...
12391
12392 -h, --help print this help, then exit
12393 -V, --version print version number and configuration settings, then exit
12394 --config print configuration, then exit
12395 -q, --quiet, --silent
12396 do not print progress messages
12397 -d, --debug don't remove temporary files
12398 --recheck update $as_me by reconfiguring in the same conditions
12399 --file=FILE[:TEMPLATE]
12400 instantiate the configuration file FILE
12401 --header=FILE[:TEMPLATE]
12402 instantiate the configuration header FILE
12403
12404 Configuration files:
12405 $config_files
12406
12407 Configuration headers:
12408 $config_headers
12409
12410 Configuration commands:
12411 $config_commands
12412
12413 Report bugs to the package provider."
12414
12415 _ACEOF
12416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12417 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12418 ac_cs_version="\\
12419 package-unused config.status version-unused
12420 configured by $0, generated by GNU Autoconf 2.69,
12421 with options \\"\$ac_cs_config\\"
12422
12423 Copyright (C) 2012 Free Software Foundation, Inc.
12424 This config.status script is free software; the Free Software Foundation
12425 gives unlimited permission to copy, distribute and modify it."
12426
12427 ac_pwd='$ac_pwd'
12428 srcdir='$srcdir'
12429 INSTALL='$INSTALL'
12430 AWK='$AWK'
12431 test -n "\$AWK" || AWK=awk
12432 _ACEOF
12433
12434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12435 # The default lists apply if the user does not specify any file.
12436 ac_need_defaults=:
12437 while test $# != 0
12438 do
12439 case $1 in
12440 --*=?*)
12441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12442 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12443 ac_shift=:
12444 ;;
12445 --*=)
12446 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12447 ac_optarg=
12448 ac_shift=:
12449 ;;
12450 *)
12451 ac_option=$1
12452 ac_optarg=$2
12453 ac_shift=shift
12454 ;;
12455 esac
12456
12457 case $ac_option in
12458 # Handling of the options.
12459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12460 ac_cs_recheck=: ;;
12461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12462 $as_echo "$ac_cs_version"; exit ;;
12463 --config | --confi | --conf | --con | --co | --c )
12464 $as_echo "$ac_cs_config"; exit ;;
12465 --debug | --debu | --deb | --de | --d | -d )
12466 debug=: ;;
12467 --file | --fil | --fi | --f )
12468 $ac_shift
12469 case $ac_optarg in
12470 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12471 '') as_fn_error $? "missing file argument" ;;
12472 esac
12473 as_fn_append CONFIG_FILES " '$ac_optarg'"
12474 ac_need_defaults=false;;
12475 --header | --heade | --head | --hea )
12476 $ac_shift
12477 case $ac_optarg in
12478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12479 esac
12480 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12481 ac_need_defaults=false;;
12482 --he | --h)
12483 # Conflict between --help and --header
12484 as_fn_error $? "ambiguous option: \`$1'
12485 Try \`$0 --help' for more information.";;
12486 --help | --hel | -h )
12487 $as_echo "$ac_cs_usage"; exit ;;
12488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12489 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12490 ac_cs_silent=: ;;
12491
12492 # This is an error.
12493 -*) as_fn_error $? "unrecognized option: \`$1'
12494 Try \`$0 --help' for more information." ;;
12495
12496 *) as_fn_append ac_config_targets " $1"
12497 ac_need_defaults=false ;;
12498
12499 esac
12500 shift
12501 done
12502
12503 ac_configure_extra_args=
12504
12505 if $ac_cs_silent; then
12506 exec 6>/dev/null
12507 ac_configure_extra_args="$ac_configure_extra_args --silent"
12508 fi
12509
12510 _ACEOF
12511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12512 if \$ac_cs_recheck; then
12513 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12514 shift
12515 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12516 CONFIG_SHELL='$SHELL'
12517 export CONFIG_SHELL
12518 exec "\$@"
12519 fi
12520
12521 _ACEOF
12522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12523 exec 5>>config.log
12524 {
12525 echo
12526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12527 ## Running $as_me. ##
12528 _ASBOX
12529 $as_echo "$ac_log"
12530 } >&5
12531
12532 _ACEOF
12533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12534 #
12535 # INIT-COMMANDS
12536 #
12537
12538 srcdir="$srcdir"
12539 host="$host"
12540 target="$target"
12541 with_multisubdir="$with_multisubdir"
12542 with_multisrctop="$with_multisrctop"
12543 with_target_subdir="$with_target_subdir"
12544 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12545 multi_basedir="$multi_basedir"
12546 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12547 CC="$CC"
12548 CXX="$CXX"
12549 GFORTRAN="$GFORTRAN"
12550 GDC="$GDC"
12551
12552
12553 # The HP-UX ksh and POSIX shell print the target directory to stdout
12554 # if CDPATH is set.
12555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12556
12557 sed_quote_subst='$sed_quote_subst'
12558 double_quote_subst='$double_quote_subst'
12559 delay_variable_subst='$delay_variable_subst'
12560 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12561 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12562 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12563 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12564 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12565 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12566 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12567 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12568 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12569 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12570 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12571 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12572 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12573 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12574 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12575 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12576 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12577 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12578 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12579 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12580 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12581 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12582 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12583 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12584 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12585 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12586 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12587 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12588 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12589 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12590 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12591 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12592 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12593 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12594 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12595 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12596 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12597 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12598 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12599 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12600 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12601 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12602 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12603 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12604 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12605 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12606 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12607 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12608 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12609 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12610 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"`'
12611 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12612 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12613 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12614 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12615 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12616 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12617 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12618 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12619 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12620 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12621 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12622 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12623 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12624 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12625 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12626 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12627 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12628 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12629 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12630 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12631 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12632 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12633 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12634 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12635 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12636 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12637 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12638 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12639 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12640 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12641 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12642 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12643 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12644 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12645 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12646 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12647 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12648 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12649 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12650 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12651 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12652 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12653 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12654 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12655 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12656 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12657 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12658 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12659 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12660 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12661 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12662 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12663 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12664 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12665 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12666 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12667 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12668 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12669 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12670 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12671 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12672 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12673 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12674 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12675 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12676 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12677 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12678 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12679 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12680 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12681 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12682
12683 LTCC='$LTCC'
12684 LTCFLAGS='$LTCFLAGS'
12685 compiler='$compiler_DEFAULT'
12686
12687 # A function that is used when there is no print builtin or printf.
12688 func_fallback_echo ()
12689 {
12690 eval 'cat <<_LTECHO_EOF
12691 \$1
12692 _LTECHO_EOF'
12693 }
12694
12695 # Quote evaled strings.
12696 for var in AS \
12697 DLLTOOL \
12698 OBJDUMP \
12699 SHELL \
12700 ECHO \
12701 SED \
12702 GREP \
12703 EGREP \
12704 FGREP \
12705 LD \
12706 NM \
12707 LN_S \
12708 lt_SP2NL \
12709 lt_NL2SP \
12710 reload_flag \
12711 deplibs_check_method \
12712 file_magic_cmd \
12713 AR \
12714 AR_FLAGS \
12715 STRIP \
12716 RANLIB \
12717 CC \
12718 CFLAGS \
12719 compiler \
12720 lt_cv_sys_global_symbol_pipe \
12721 lt_cv_sys_global_symbol_to_cdecl \
12722 lt_cv_sys_global_symbol_to_c_name_address \
12723 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12724 lt_prog_compiler_no_builtin_flag \
12725 lt_prog_compiler_wl \
12726 lt_prog_compiler_pic \
12727 lt_prog_compiler_static \
12728 lt_cv_prog_compiler_c_o \
12729 need_locks \
12730 DSYMUTIL \
12731 NMEDIT \
12732 LIPO \
12733 OTOOL \
12734 OTOOL64 \
12735 shrext_cmds \
12736 export_dynamic_flag_spec \
12737 whole_archive_flag_spec \
12738 compiler_needs_object \
12739 with_gnu_ld \
12740 allow_undefined_flag \
12741 no_undefined_flag \
12742 hardcode_libdir_flag_spec \
12743 hardcode_libdir_flag_spec_ld \
12744 hardcode_libdir_separator \
12745 fix_srcfile_path \
12746 exclude_expsyms \
12747 include_expsyms \
12748 file_list_spec \
12749 variables_saved_for_relink \
12750 libname_spec \
12751 library_names_spec \
12752 soname_spec \
12753 install_override_mode \
12754 finish_eval \
12755 old_striplib \
12756 striplib; do
12757 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12758 *[\\\\\\\`\\"\\\$]*)
12759 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12760 ;;
12761 *)
12762 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12763 ;;
12764 esac
12765 done
12766
12767 # Double-quote double-evaled strings.
12768 for var in reload_cmds \
12769 old_postinstall_cmds \
12770 old_postuninstall_cmds \
12771 old_archive_cmds \
12772 extract_expsyms_cmds \
12773 old_archive_from_new_cmds \
12774 old_archive_from_expsyms_cmds \
12775 archive_cmds \
12776 archive_expsym_cmds \
12777 module_cmds \
12778 module_expsym_cmds \
12779 export_symbols_cmds \
12780 prelink_cmds \
12781 postinstall_cmds \
12782 postuninstall_cmds \
12783 finish_cmds \
12784 sys_lib_search_path_spec \
12785 sys_lib_dlsearch_path_spec; do
12786 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12787 *[\\\\\\\`\\"\\\$]*)
12788 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12789 ;;
12790 *)
12791 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12792 ;;
12793 esac
12794 done
12795
12796 ac_aux_dir='$ac_aux_dir'
12797 xsi_shell='$xsi_shell'
12798 lt_shell_append='$lt_shell_append'
12799
12800 # See if we are running on zsh, and set the options which allow our
12801 # commands through without removal of \ escapes INIT.
12802 if test -n "\${ZSH_VERSION+set}" ; then
12803 setopt NO_GLOB_SUBST
12804 fi
12805
12806
12807 PACKAGE='$PACKAGE'
12808 VERSION='$VERSION'
12809 TIMESTAMP='$TIMESTAMP'
12810 RM='$RM'
12811 ofile='$ofile'
12812
12813
12814
12815
12816 _ACEOF
12817
12818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12819
12820 # Handling of arguments.
12821 for ac_config_target in $ac_config_targets
12822 do
12823 case $ac_config_target in
12824 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12825 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12826 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12828
12829 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12830 esac
12831 done
12832
12833
12834 # If the user did not use the arguments to specify the items to instantiate,
12835 # then the envvar interface is used. Set only those that are not.
12836 # We use the long form for the default assignment because of an extremely
12837 # bizarre bug on SunOS 4.1.3.
12838 if $ac_need_defaults; then
12839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12840 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12841 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12842 fi
12843
12844 # Have a temporary directory for convenience. Make it in the build tree
12845 # simply because there is no reason against having it here, and in addition,
12846 # creating and moving files from /tmp can sometimes cause problems.
12847 # Hook for its removal unless debugging.
12848 # Note that there is a small window in which the directory will not be cleaned:
12849 # after its creation but before its name has been assigned to `$tmp'.
12850 $debug ||
12851 {
12852 tmp= ac_tmp=
12853 trap 'exit_status=$?
12854 : "${ac_tmp:=$tmp}"
12855 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12856 ' 0
12857 trap 'as_fn_exit 1' 1 2 13 15
12858 }
12859 # Create a (secure) tmp directory for tmp files.
12860
12861 {
12862 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12863 test -d "$tmp"
12864 } ||
12865 {
12866 tmp=./conf$$-$RANDOM
12867 (umask 077 && mkdir "$tmp")
12868 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12869 ac_tmp=$tmp
12870
12871 # Set up the scripts for CONFIG_FILES section.
12872 # No need to generate them if there are no CONFIG_FILES.
12873 # This happens for instance with `./config.status config.h'.
12874 if test -n "$CONFIG_FILES"; then
12875
12876
12877 ac_cr=`echo X | tr X '\015'`
12878 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12879 # But we know of no other shell where ac_cr would be empty at this
12880 # point, so we can use a bashism as a fallback.
12881 if test "x$ac_cr" = x; then
12882 eval ac_cr=\$\'\\r\'
12883 fi
12884 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12885 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12886 ac_cs_awk_cr='\\r'
12887 else
12888 ac_cs_awk_cr=$ac_cr
12889 fi
12890
12891 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12892 _ACEOF
12893
12894
12895 {
12896 echo "cat >conf$$subs.awk <<_ACEOF" &&
12897 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12898 echo "_ACEOF"
12899 } >conf$$subs.sh ||
12900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12901 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12902 ac_delim='%!_!# '
12903 for ac_last_try in false false false false false :; do
12904 . ./conf$$subs.sh ||
12905 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12906
12907 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12908 if test $ac_delim_n = $ac_delim_num; then
12909 break
12910 elif $ac_last_try; then
12911 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12912 else
12913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12914 fi
12915 done
12916 rm -f conf$$subs.sh
12917
12918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12919 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12920 _ACEOF
12921 sed -n '
12922 h
12923 s/^/S["/; s/!.*/"]=/
12924 p
12925 g
12926 s/^[^!]*!//
12927 :repl
12928 t repl
12929 s/'"$ac_delim"'$//
12930 t delim
12931 :nl
12932 h
12933 s/\(.\{148\}\)..*/\1/
12934 t more1
12935 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12936 p
12937 n
12938 b repl
12939 :more1
12940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12941 p
12942 g
12943 s/.\{148\}//
12944 t nl
12945 :delim
12946 h
12947 s/\(.\{148\}\)..*/\1/
12948 t more2
12949 s/["\\]/\\&/g; s/^/"/; s/$/"/
12950 p
12951 b
12952 :more2
12953 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12954 p
12955 g
12956 s/.\{148\}//
12957 t delim
12958 ' <conf$$subs.awk | sed '
12959 /^[^""]/{
12960 N
12961 s/\n//
12962 }
12963 ' >>$CONFIG_STATUS || ac_write_fail=1
12964 rm -f conf$$subs.awk
12965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12966 _ACAWK
12967 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12968 for (key in S) S_is_set[key] = 1
12969 FS = "\a"
12970
12971 }
12972 {
12973 line = $ 0
12974 nfields = split(line, field, "@")
12975 substed = 0
12976 len = length(field[1])
12977 for (i = 2; i < nfields; i++) {
12978 key = field[i]
12979 keylen = length(key)
12980 if (S_is_set[key]) {
12981 value = S[key]
12982 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12983 len += length(value) + length(field[++i])
12984 substed = 1
12985 } else
12986 len += 1 + keylen
12987 }
12988
12989 print line
12990 }
12991
12992 _ACAWK
12993 _ACEOF
12994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12995 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12996 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12997 else
12998 cat
12999 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13000 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13001 _ACEOF
13002
13003 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13004 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13005 # trailing colons and then remove the whole line if VPATH becomes empty
13006 # (actually we leave an empty line to preserve line numbers).
13007 if test "x$srcdir" = x.; then
13008 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13009 h
13010 s///
13011 s/^/:/
13012 s/[ ]*$/:/
13013 s/:\$(srcdir):/:/g
13014 s/:\${srcdir}:/:/g
13015 s/:@srcdir@:/:/g
13016 s/^:*//
13017 s/:*$//
13018 x
13019 s/\(=[ ]*\).*/\1/
13020 G
13021 s/\n//
13022 s/^[^=]*=[ ]*$//
13023 }'
13024 fi
13025
13026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13027 fi # test -n "$CONFIG_FILES"
13028
13029 # Set up the scripts for CONFIG_HEADERS section.
13030 # No need to generate them if there are no CONFIG_HEADERS.
13031 # This happens for instance with `./config.status Makefile'.
13032 if test -n "$CONFIG_HEADERS"; then
13033 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13034 BEGIN {
13035 _ACEOF
13036
13037 # Transform confdefs.h into an awk script `defines.awk', embedded as
13038 # here-document in config.status, that substitutes the proper values into
13039 # config.h.in to produce config.h.
13040
13041 # Create a delimiter string that does not exist in confdefs.h, to ease
13042 # handling of long lines.
13043 ac_delim='%!_!# '
13044 for ac_last_try in false false :; do
13045 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13046 if test -z "$ac_tt"; then
13047 break
13048 elif $ac_last_try; then
13049 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13050 else
13051 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13052 fi
13053 done
13054
13055 # For the awk script, D is an array of macro values keyed by name,
13056 # likewise P contains macro parameters if any. Preserve backslash
13057 # newline sequences.
13058
13059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13060 sed -n '
13061 s/.\{148\}/&'"$ac_delim"'/g
13062 t rset
13063 :rset
13064 s/^[ ]*#[ ]*define[ ][ ]*/ /
13065 t def
13066 d
13067 :def
13068 s/\\$//
13069 t bsnl
13070 s/["\\]/\\&/g
13071 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13072 D["\1"]=" \3"/p
13073 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13074 d
13075 :bsnl
13076 s/["\\]/\\&/g
13077 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13078 D["\1"]=" \3\\\\\\n"\\/p
13079 t cont
13080 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13081 t cont
13082 d
13083 :cont
13084 n
13085 s/.\{148\}/&'"$ac_delim"'/g
13086 t clear
13087 :clear
13088 s/\\$//
13089 t bsnlc
13090 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13091 d
13092 :bsnlc
13093 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13094 b cont
13095 ' <confdefs.h | sed '
13096 s/'"$ac_delim"'/"\\\
13097 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13098
13099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13100 for (key in D) D_is_set[key] = 1
13101 FS = "\a"
13102 }
13103 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13104 line = \$ 0
13105 split(line, arg, " ")
13106 if (arg[1] == "#") {
13107 defundef = arg[2]
13108 mac1 = arg[3]
13109 } else {
13110 defundef = substr(arg[1], 2)
13111 mac1 = arg[2]
13112 }
13113 split(mac1, mac2, "(") #)
13114 macro = mac2[1]
13115 prefix = substr(line, 1, index(line, defundef) - 1)
13116 if (D_is_set[macro]) {
13117 # Preserve the white space surrounding the "#".
13118 print prefix "define", macro P[macro] D[macro]
13119 next
13120 } else {
13121 # Replace #undef with comments. This is necessary, for example,
13122 # in the case of _POSIX_SOURCE, which is predefined and required
13123 # on some systems where configure will not decide to define it.
13124 if (defundef == "undef") {
13125 print "/*", prefix defundef, macro, "*/"
13126 next
13127 }
13128 }
13129 }
13130 { print }
13131 _ACAWK
13132 _ACEOF
13133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13134 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13135 fi # test -n "$CONFIG_HEADERS"
13136
13137
13138 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13139 shift
13140 for ac_tag
13141 do
13142 case $ac_tag in
13143 :[FHLC]) ac_mode=$ac_tag; continue;;
13144 esac
13145 case $ac_mode$ac_tag in
13146 :[FHL]*:*);;
13147 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13148 :[FH]-) ac_tag=-:-;;
13149 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13150 esac
13151 ac_save_IFS=$IFS
13152 IFS=:
13153 set x $ac_tag
13154 IFS=$ac_save_IFS
13155 shift
13156 ac_file=$1
13157 shift
13158
13159 case $ac_mode in
13160 :L) ac_source=$1;;
13161 :[FH])
13162 ac_file_inputs=
13163 for ac_f
13164 do
13165 case $ac_f in
13166 -) ac_f="$ac_tmp/stdin";;
13167 *) # Look for the file first in the build tree, then in the source tree
13168 # (if the path is not absolute). The absolute path cannot be DOS-style,
13169 # because $ac_f cannot contain `:'.
13170 test -f "$ac_f" ||
13171 case $ac_f in
13172 [\\/$]*) false;;
13173 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13174 esac ||
13175 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13176 esac
13177 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13178 as_fn_append ac_file_inputs " '$ac_f'"
13179 done
13180
13181 # Let's still pretend it is `configure' which instantiates (i.e., don't
13182 # use $as_me), people would be surprised to read:
13183 # /* config.h. Generated by config.status. */
13184 configure_input='Generated from '`
13185 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13186 `' by configure.'
13187 if test x"$ac_file" != x-; then
13188 configure_input="$ac_file. $configure_input"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13190 $as_echo "$as_me: creating $ac_file" >&6;}
13191 fi
13192 # Neutralize special characters interpreted by sed in replacement strings.
13193 case $configure_input in #(
13194 *\&* | *\|* | *\\* )
13195 ac_sed_conf_input=`$as_echo "$configure_input" |
13196 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13197 *) ac_sed_conf_input=$configure_input;;
13198 esac
13199
13200 case $ac_tag in
13201 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13203 esac
13204 ;;
13205 esac
13206
13207 ac_dir=`$as_dirname -- "$ac_file" ||
13208 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13209 X"$ac_file" : 'X\(//\)[^/]' \| \
13210 X"$ac_file" : 'X\(//\)$' \| \
13211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13212 $as_echo X"$ac_file" |
13213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13214 s//\1/
13215 q
13216 }
13217 /^X\(\/\/\)[^/].*/{
13218 s//\1/
13219 q
13220 }
13221 /^X\(\/\/\)$/{
13222 s//\1/
13223 q
13224 }
13225 /^X\(\/\).*/{
13226 s//\1/
13227 q
13228 }
13229 s/.*/./; q'`
13230 as_dir="$ac_dir"; as_fn_mkdir_p
13231 ac_builddir=.
13232
13233 case "$ac_dir" in
13234 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13235 *)
13236 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13237 # A ".." for each directory in $ac_dir_suffix.
13238 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13239 case $ac_top_builddir_sub in
13240 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13241 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13242 esac ;;
13243 esac
13244 ac_abs_top_builddir=$ac_pwd
13245 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13246 # for backward compatibility:
13247 ac_top_builddir=$ac_top_build_prefix
13248
13249 case $srcdir in
13250 .) # We are building in place.
13251 ac_srcdir=.
13252 ac_top_srcdir=$ac_top_builddir_sub
13253 ac_abs_top_srcdir=$ac_pwd ;;
13254 [\\/]* | ?:[\\/]* ) # Absolute name.
13255 ac_srcdir=$srcdir$ac_dir_suffix;
13256 ac_top_srcdir=$srcdir
13257 ac_abs_top_srcdir=$srcdir ;;
13258 *) # Relative name.
13259 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13260 ac_top_srcdir=$ac_top_build_prefix$srcdir
13261 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13262 esac
13263 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13264
13265
13266 case $ac_mode in
13267 :F)
13268 #
13269 # CONFIG_FILE
13270 #
13271
13272 case $INSTALL in
13273 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13274 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13275 esac
13276 _ACEOF
13277
13278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13279 # If the template does not know about datarootdir, expand it.
13280 # FIXME: This hack should be removed a few years after 2.60.
13281 ac_datarootdir_hack=; ac_datarootdir_seen=
13282 ac_sed_dataroot='
13283 /datarootdir/ {
13284 p
13285 q
13286 }
13287 /@datadir@/p
13288 /@docdir@/p
13289 /@infodir@/p
13290 /@localedir@/p
13291 /@mandir@/p'
13292 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13293 *datarootdir*) ac_datarootdir_seen=yes;;
13294 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13296 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13297 _ACEOF
13298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13299 ac_datarootdir_hack='
13300 s&@datadir@&$datadir&g
13301 s&@docdir@&$docdir&g
13302 s&@infodir@&$infodir&g
13303 s&@localedir@&$localedir&g
13304 s&@mandir@&$mandir&g
13305 s&\\\${datarootdir}&$datarootdir&g' ;;
13306 esac
13307 _ACEOF
13308
13309 # Neutralize VPATH when `$srcdir' = `.'.
13310 # Shell code in configure.ac might set extrasub.
13311 # FIXME: do we really want to maintain this feature?
13312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13313 ac_sed_extra="$ac_vpsub
13314 $extrasub
13315 _ACEOF
13316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13317 :t
13318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13319 s|@configure_input@|$ac_sed_conf_input|;t t
13320 s&@top_builddir@&$ac_top_builddir_sub&;t t
13321 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13322 s&@srcdir@&$ac_srcdir&;t t
13323 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13324 s&@top_srcdir@&$ac_top_srcdir&;t t
13325 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13326 s&@builddir@&$ac_builddir&;t t
13327 s&@abs_builddir@&$ac_abs_builddir&;t t
13328 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13329 s&@INSTALL@&$ac_INSTALL&;t t
13330 $ac_datarootdir_hack
13331 "
13332 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13333 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13334
13335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13336 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13338 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13340 which seems to be undefined. Please make sure it is defined" >&5
13341 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13342 which seems to be undefined. Please make sure it is defined" >&2;}
13343
13344 rm -f "$ac_tmp/stdin"
13345 case $ac_file in
13346 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13347 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13348 esac \
13349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13350 ;;
13351 :H)
13352 #
13353 # CONFIG_HEADER
13354 #
13355 if test x"$ac_file" != x-; then
13356 {
13357 $as_echo "/* $configure_input */" \
13358 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13359 } >"$ac_tmp/config.h" \
13360 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13361 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13363 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13364 else
13365 rm -f "$ac_file"
13366 mv "$ac_tmp/config.h" "$ac_file" \
13367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13368 fi
13369 else
13370 $as_echo "/* $configure_input */" \
13371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13372 || as_fn_error $? "could not create -" "$LINENO" 5
13373 fi
13374 ;;
13375
13376 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13377 $as_echo "$as_me: executing $ac_file commands" >&6;}
13378 ;;
13379 esac
13380
13381
13382 case $ac_file$ac_mode in
13383 "default-1":C)
13384 # Only add multilib support code if we just rebuilt the top-level
13385 # Makefile.
13386 case " $CONFIG_FILES " in
13387 *" Makefile "*)
13388 ac_file=Makefile . ${multi_basedir}/config-ml.in
13389 ;;
13390 esac ;;
13391 "libtool":C)
13392
13393 # See if we are running on zsh, and set the options which allow our
13394 # commands through without removal of \ escapes.
13395 if test -n "${ZSH_VERSION+set}" ; then
13396 setopt NO_GLOB_SUBST
13397 fi
13398
13399 cfgfile="${ofile}T"
13400 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13401 $RM "$cfgfile"
13402
13403 cat <<_LT_EOF >> "$cfgfile"
13404 #! $SHELL
13405
13406 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13407 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13410 #
13411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13412 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13413 # Written by Gordon Matzigkeit, 1996
13414 #
13415 # This file is part of GNU Libtool.
13416 #
13417 # GNU Libtool is free software; you can redistribute it and/or
13418 # modify it under the terms of the GNU General Public License as
13419 # published by the Free Software Foundation; either version 2 of
13420 # the License, or (at your option) any later version.
13421 #
13422 # As a special exception to the GNU General Public License,
13423 # if you distribute this file as part of a program or library that
13424 # is built using GNU Libtool, you may include this file under the
13425 # same distribution terms that you use for the rest of that program.
13426 #
13427 # GNU Libtool is distributed in the hope that it will be useful,
13428 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13429 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13430 # GNU General Public License for more details.
13431 #
13432 # You should have received a copy of the GNU General Public License
13433 # along with GNU Libtool; see the file COPYING. If not, a copy
13434 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13435 # obtained by writing to the Free Software Foundation, Inc.,
13436 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13437
13438
13439 # The names of the tagged configurations supported by this script.
13440 available_tags=""
13441
13442 # ### BEGIN LIBTOOL CONFIG
13443
13444 # Assembler program.
13445 AS=$lt_AS
13446
13447 # DLL creation program.
13448 DLLTOOL=$lt_DLLTOOL
13449
13450 # Object dumper program.
13451 OBJDUMP=$lt_OBJDUMP
13452
13453 # Which release of libtool.m4 was used?
13454 macro_version=$macro_version
13455 macro_revision=$macro_revision
13456
13457 # Whether or not to build shared libraries.
13458 build_libtool_libs=$enable_shared
13459
13460 # Whether or not to build static libraries.
13461 build_old_libs=$enable_static
13462
13463 # What type of objects to build.
13464 pic_mode=$pic_mode
13465
13466 # Whether or not to optimize for fast installation.
13467 fast_install=$enable_fast_install
13468
13469 # Shell to use when invoking shell scripts.
13470 SHELL=$lt_SHELL
13471
13472 # An echo program that protects backslashes.
13473 ECHO=$lt_ECHO
13474
13475 # The host system.
13476 host_alias=$host_alias
13477 host=$host
13478 host_os=$host_os
13479
13480 # The build system.
13481 build_alias=$build_alias
13482 build=$build
13483 build_os=$build_os
13484
13485 # A sed program that does not truncate output.
13486 SED=$lt_SED
13487
13488 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13489 Xsed="\$SED -e 1s/^X//"
13490
13491 # A grep program that handles long lines.
13492 GREP=$lt_GREP
13493
13494 # An ERE matcher.
13495 EGREP=$lt_EGREP
13496
13497 # A literal string matcher.
13498 FGREP=$lt_FGREP
13499
13500 # A BSD- or MS-compatible name lister.
13501 NM=$lt_NM
13502
13503 # Whether we need soft or hard links.
13504 LN_S=$lt_LN_S
13505
13506 # What is the maximum length of a command?
13507 max_cmd_len=$max_cmd_len
13508
13509 # Object file suffix (normally "o").
13510 objext=$ac_objext
13511
13512 # Executable file suffix (normally "").
13513 exeext=$exeext
13514
13515 # whether the shell understands "unset".
13516 lt_unset=$lt_unset
13517
13518 # turn spaces into newlines.
13519 SP2NL=$lt_lt_SP2NL
13520
13521 # turn newlines into spaces.
13522 NL2SP=$lt_lt_NL2SP
13523
13524 # Method to check whether dependent libraries are shared objects.
13525 deplibs_check_method=$lt_deplibs_check_method
13526
13527 # Command to use when deplibs_check_method == "file_magic".
13528 file_magic_cmd=$lt_file_magic_cmd
13529
13530 # The archiver.
13531 AR=$lt_AR
13532 AR_FLAGS=$lt_AR_FLAGS
13533
13534 # A symbol stripping program.
13535 STRIP=$lt_STRIP
13536
13537 # Commands used to install an old-style archive.
13538 RANLIB=$lt_RANLIB
13539 old_postinstall_cmds=$lt_old_postinstall_cmds
13540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13541
13542 # Whether to use a lock for old archive extraction.
13543 lock_old_archive_extraction=$lock_old_archive_extraction
13544
13545 # A C compiler.
13546 LTCC=$lt_CC
13547
13548 # LTCC compiler flags.
13549 LTCFLAGS=$lt_CFLAGS
13550
13551 # Take the output of nm and produce a listing of raw symbols and C names.
13552 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13553
13554 # Transform the output of nm in a proper C declaration.
13555 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13556
13557 # Transform the output of nm in a C name address pair.
13558 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13559
13560 # Transform the output of nm in a C name address pair when lib prefix is needed.
13561 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13562
13563 # The name of the directory that contains temporary libtool files.
13564 objdir=$objdir
13565
13566 # Used to examine libraries when file_magic_cmd begins with "file".
13567 MAGIC_CMD=$MAGIC_CMD
13568
13569 # Must we lock files when doing compilation?
13570 need_locks=$lt_need_locks
13571
13572 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13573 DSYMUTIL=$lt_DSYMUTIL
13574
13575 # Tool to change global to local symbols on Mac OS X.
13576 NMEDIT=$lt_NMEDIT
13577
13578 # Tool to manipulate fat objects and archives on Mac OS X.
13579 LIPO=$lt_LIPO
13580
13581 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13582 OTOOL=$lt_OTOOL
13583
13584 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13585 OTOOL64=$lt_OTOOL64
13586
13587 # Old archive suffix (normally "a").
13588 libext=$libext
13589
13590 # Shared library suffix (normally ".so").
13591 shrext_cmds=$lt_shrext_cmds
13592
13593 # The commands to extract the exported symbol list from a shared archive.
13594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13595
13596 # Variables whose values should be saved in libtool wrapper scripts and
13597 # restored at link time.
13598 variables_saved_for_relink=$lt_variables_saved_for_relink
13599
13600 # Do we need the "lib" prefix for modules?
13601 need_lib_prefix=$need_lib_prefix
13602
13603 # Do we need a version for libraries?
13604 need_version=$need_version
13605
13606 # Library versioning type.
13607 version_type=$version_type
13608
13609 # Shared library runtime path variable.
13610 runpath_var=$runpath_var
13611
13612 # Shared library path variable.
13613 shlibpath_var=$shlibpath_var
13614
13615 # Is shlibpath searched before the hard-coded library search path?
13616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13617
13618 # Format of library name prefix.
13619 libname_spec=$lt_libname_spec
13620
13621 # List of archive names. First name is the real one, the rest are links.
13622 # The last name is the one that the linker finds with -lNAME
13623 library_names_spec=$lt_library_names_spec
13624
13625 # The coded name of the library, if different from the real name.
13626 soname_spec=$lt_soname_spec
13627
13628 # Permission mode override for installation of shared libraries.
13629 install_override_mode=$lt_install_override_mode
13630
13631 # Command to use after installation of a shared archive.
13632 postinstall_cmds=$lt_postinstall_cmds
13633
13634 # Command to use after uninstallation of a shared archive.
13635 postuninstall_cmds=$lt_postuninstall_cmds
13636
13637 # Commands used to finish a libtool library installation in a directory.
13638 finish_cmds=$lt_finish_cmds
13639
13640 # As "finish_cmds", except a single script fragment to be evaled but
13641 # not shown.
13642 finish_eval=$lt_finish_eval
13643
13644 # Whether we should hardcode library paths into libraries.
13645 hardcode_into_libs=$hardcode_into_libs
13646
13647 # Compile-time system search path for libraries.
13648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13649
13650 # Run-time system search path for libraries.
13651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13652
13653 # Whether dlopen is supported.
13654 dlopen_support=$enable_dlopen
13655
13656 # Whether dlopen of programs is supported.
13657 dlopen_self=$enable_dlopen_self
13658
13659 # Whether dlopen of statically linked programs is supported.
13660 dlopen_self_static=$enable_dlopen_self_static
13661
13662 # Commands to strip libraries.
13663 old_striplib=$lt_old_striplib
13664 striplib=$lt_striplib
13665
13666
13667 # The linker used to build libraries.
13668 LD=$lt_LD
13669
13670 # How to create reloadable object files.
13671 reload_flag=$lt_reload_flag
13672 reload_cmds=$lt_reload_cmds
13673
13674 # Commands used to build an old-style archive.
13675 old_archive_cmds=$lt_old_archive_cmds
13676
13677 # A language specific compiler.
13678 CC=$lt_compiler
13679
13680 # Is the compiler the GNU compiler?
13681 with_gcc=$GCC
13682
13683 # Compiler flag to turn off builtin functions.
13684 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13685
13686 # How to pass a linker flag through the compiler.
13687 wl=$lt_lt_prog_compiler_wl
13688
13689 # Additional compiler flags for building library objects.
13690 pic_flag=$lt_lt_prog_compiler_pic
13691
13692 # Compiler flag to prevent dynamic linking.
13693 link_static_flag=$lt_lt_prog_compiler_static
13694
13695 # Does compiler simultaneously support -c and -o options?
13696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13697
13698 # Whether or not to add -lc for building shared libraries.
13699 build_libtool_need_lc=$archive_cmds_need_lc
13700
13701 # Whether or not to disallow shared libs when runtime libs are static.
13702 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13703
13704 # Compiler flag to allow reflexive dlopens.
13705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13706
13707 # Compiler flag to generate shared objects directly from archives.
13708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13709
13710 # Whether the compiler copes with passing no objects directly.
13711 compiler_needs_object=$lt_compiler_needs_object
13712
13713 # Create an old-style archive from a shared archive.
13714 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13715
13716 # Create a temporary old-style archive to link instead of a shared archive.
13717 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13718
13719 # Commands used to build a shared archive.
13720 archive_cmds=$lt_archive_cmds
13721 archive_expsym_cmds=$lt_archive_expsym_cmds
13722
13723 # Commands used to build a loadable module if different from building
13724 # a shared archive.
13725 module_cmds=$lt_module_cmds
13726 module_expsym_cmds=$lt_module_expsym_cmds
13727
13728 # Whether we are building with GNU ld or not.
13729 with_gnu_ld=$lt_with_gnu_ld
13730
13731 # Flag that allows shared libraries with undefined symbols to be built.
13732 allow_undefined_flag=$lt_allow_undefined_flag
13733
13734 # Flag that enforces no undefined symbols.
13735 no_undefined_flag=$lt_no_undefined_flag
13736
13737 # Flag to hardcode \$libdir into a binary during linking.
13738 # This must work even if \$libdir does not exist
13739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13740
13741 # If ld is used when linking, flag to hardcode \$libdir into a binary
13742 # during linking. This must work even if \$libdir does not exist.
13743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13744
13745 # Whether we need a single "-rpath" flag with a separated argument.
13746 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13747
13748 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13749 # DIR into the resulting binary.
13750 hardcode_direct=$hardcode_direct
13751
13752 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13753 # DIR into the resulting binary and the resulting library dependency is
13754 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13755 # library is relocated.
13756 hardcode_direct_absolute=$hardcode_direct_absolute
13757
13758 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13759 # into the resulting binary.
13760 hardcode_minus_L=$hardcode_minus_L
13761
13762 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13763 # into the resulting binary.
13764 hardcode_shlibpath_var=$hardcode_shlibpath_var
13765
13766 # Set to "yes" if building a shared library automatically hardcodes DIR
13767 # into the library and all subsequent libraries and executables linked
13768 # against it.
13769 hardcode_automatic=$hardcode_automatic
13770
13771 # Set to yes if linker adds runtime paths of dependent libraries
13772 # to runtime path list.
13773 inherit_rpath=$inherit_rpath
13774
13775 # Whether libtool must link a program against all its dependency libraries.
13776 link_all_deplibs=$link_all_deplibs
13777
13778 # Fix the shell variable \$srcfile for the compiler.
13779 fix_srcfile_path=$lt_fix_srcfile_path
13780
13781 # Set to "yes" if exported symbols are required.
13782 always_export_symbols=$always_export_symbols
13783
13784 # The commands to list exported symbols.
13785 export_symbols_cmds=$lt_export_symbols_cmds
13786
13787 # Symbols that should not be listed in the preloaded symbols.
13788 exclude_expsyms=$lt_exclude_expsyms
13789
13790 # Symbols that must always be exported.
13791 include_expsyms=$lt_include_expsyms
13792
13793 # Commands necessary for linking programs (against libraries) with templates.
13794 prelink_cmds=$lt_prelink_cmds
13795
13796 # Specify filename containing input files.
13797 file_list_spec=$lt_file_list_spec
13798
13799 # How to hardcode a shared library path into an executable.
13800 hardcode_action=$hardcode_action
13801
13802 # ### END LIBTOOL CONFIG
13803
13804 _LT_EOF
13805
13806 case $host_os in
13807 aix3*)
13808 cat <<\_LT_EOF >> "$cfgfile"
13809 # AIX sometimes has problems with the GCC collect2 program. For some
13810 # reason, if we set the COLLECT_NAMES environment variable, the problems
13811 # vanish in a puff of smoke.
13812 if test "X${COLLECT_NAMES+set}" != Xset; then
13813 COLLECT_NAMES=
13814 export COLLECT_NAMES
13815 fi
13816 _LT_EOF
13817 ;;
13818 esac
13819
13820
13821 ltmain="$ac_aux_dir/ltmain.sh"
13822
13823
13824 # We use sed instead of cat because bash on DJGPP gets confused if
13825 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13826 # text mode, it properly converts lines to CR/LF. This bash problem
13827 # is reportedly fixed, but why not run on old versions too?
13828 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13829 || (rm -f "$cfgfile"; exit 1)
13830
13831 case $xsi_shell in
13832 yes)
13833 cat << \_LT_EOF >> "$cfgfile"
13834
13835 # func_dirname file append nondir_replacement
13836 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13837 # otherwise set result to NONDIR_REPLACEMENT.
13838 func_dirname ()
13839 {
13840 case ${1} in
13841 */*) func_dirname_result="${1%/*}${2}" ;;
13842 * ) func_dirname_result="${3}" ;;
13843 esac
13844 }
13845
13846 # func_basename file
13847 func_basename ()
13848 {
13849 func_basename_result="${1##*/}"
13850 }
13851
13852 # func_dirname_and_basename file append nondir_replacement
13853 # perform func_basename and func_dirname in a single function
13854 # call:
13855 # dirname: Compute the dirname of FILE. If nonempty,
13856 # add APPEND to the result, otherwise set result
13857 # to NONDIR_REPLACEMENT.
13858 # value returned in "$func_dirname_result"
13859 # basename: Compute filename of FILE.
13860 # value retuned in "$func_basename_result"
13861 # Implementation must be kept synchronized with func_dirname
13862 # and func_basename. For efficiency, we do not delegate to
13863 # those functions but instead duplicate the functionality here.
13864 func_dirname_and_basename ()
13865 {
13866 case ${1} in
13867 */*) func_dirname_result="${1%/*}${2}" ;;
13868 * ) func_dirname_result="${3}" ;;
13869 esac
13870 func_basename_result="${1##*/}"
13871 }
13872
13873 # func_stripname prefix suffix name
13874 # strip PREFIX and SUFFIX off of NAME.
13875 # PREFIX and SUFFIX must not contain globbing or regex special
13876 # characters, hashes, percent signs, but SUFFIX may contain a leading
13877 # dot (in which case that matches only a dot).
13878 func_stripname ()
13879 {
13880 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13881 # positional parameters, so assign one to ordinary parameter first.
13882 func_stripname_result=${3}
13883 func_stripname_result=${func_stripname_result#"${1}"}
13884 func_stripname_result=${func_stripname_result%"${2}"}
13885 }
13886
13887 # func_opt_split
13888 func_opt_split ()
13889 {
13890 func_opt_split_opt=${1%%=*}
13891 func_opt_split_arg=${1#*=}
13892 }
13893
13894 # func_lo2o object
13895 func_lo2o ()
13896 {
13897 case ${1} in
13898 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13899 *) func_lo2o_result=${1} ;;
13900 esac
13901 }
13902
13903 # func_xform libobj-or-source
13904 func_xform ()
13905 {
13906 func_xform_result=${1%.*}.lo
13907 }
13908
13909 # func_arith arithmetic-term...
13910 func_arith ()
13911 {
13912 func_arith_result=$(( $* ))
13913 }
13914
13915 # func_len string
13916 # STRING may not start with a hyphen.
13917 func_len ()
13918 {
13919 func_len_result=${#1}
13920 }
13921
13922 _LT_EOF
13923 ;;
13924 *) # Bourne compatible functions.
13925 cat << \_LT_EOF >> "$cfgfile"
13926
13927 # func_dirname file append nondir_replacement
13928 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13929 # otherwise set result to NONDIR_REPLACEMENT.
13930 func_dirname ()
13931 {
13932 # Extract subdirectory from the argument.
13933 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13934 if test "X$func_dirname_result" = "X${1}"; then
13935 func_dirname_result="${3}"
13936 else
13937 func_dirname_result="$func_dirname_result${2}"
13938 fi
13939 }
13940
13941 # func_basename file
13942 func_basename ()
13943 {
13944 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13945 }
13946
13947
13948 # func_stripname prefix suffix name
13949 # strip PREFIX and SUFFIX off of NAME.
13950 # PREFIX and SUFFIX must not contain globbing or regex special
13951 # characters, hashes, percent signs, but SUFFIX may contain a leading
13952 # dot (in which case that matches only a dot).
13953 # func_strip_suffix prefix name
13954 func_stripname ()
13955 {
13956 case ${2} in
13957 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13958 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13959 esac
13960 }
13961
13962 # sed scripts:
13963 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13964 my_sed_long_arg='1s/^-[^=]*=//'
13965
13966 # func_opt_split
13967 func_opt_split ()
13968 {
13969 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13970 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13971 }
13972
13973 # func_lo2o object
13974 func_lo2o ()
13975 {
13976 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13977 }
13978
13979 # func_xform libobj-or-source
13980 func_xform ()
13981 {
13982 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13983 }
13984
13985 # func_arith arithmetic-term...
13986 func_arith ()
13987 {
13988 func_arith_result=`expr "$@"`
13989 }
13990
13991 # func_len string
13992 # STRING may not start with a hyphen.
13993 func_len ()
13994 {
13995 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13996 }
13997
13998 _LT_EOF
13999 esac
14000
14001 case $lt_shell_append in
14002 yes)
14003 cat << \_LT_EOF >> "$cfgfile"
14004
14005 # func_append var value
14006 # Append VALUE to the end of shell variable VAR.
14007 func_append ()
14008 {
14009 eval "$1+=\$2"
14010 }
14011 _LT_EOF
14012 ;;
14013 *)
14014 cat << \_LT_EOF >> "$cfgfile"
14015
14016 # func_append var value
14017 # Append VALUE to the end of shell variable VAR.
14018 func_append ()
14019 {
14020 eval "$1=\$$1\$2"
14021 }
14022
14023 _LT_EOF
14024 ;;
14025 esac
14026
14027
14028 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14029 || (rm -f "$cfgfile"; exit 1)
14030
14031 mv -f "$cfgfile" "$ofile" ||
14032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14033 chmod +x "$ofile"
14034
14035 ;;
14036
14037 esac
14038 done # for ac_tag
14039
14040
14041 as_fn_exit 0
14042 _ACEOF
14043 ac_clean_files=$ac_clean_files_save
14044
14045 test $ac_write_fail = 0 ||
14046 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14047
14048
14049 # configure is writing to config.log, and then calls config.status.
14050 # config.status does its own redirection, appending to config.log.
14051 # Unfortunately, on DOS this fails, as config.log is still kept open
14052 # by configure, so config.status won't be able to write to it; its
14053 # output is simply discarded. So we exec the FD to /dev/null,
14054 # effectively closing config.log, so it can be properly (re)opened and
14055 # appended to by config.status. When coming back to configure, we
14056 # need to make the FD available again.
14057 if test "$no_create" != yes; then
14058 ac_cs_success=:
14059 ac_config_status_args=
14060 test "$silent" = yes &&
14061 ac_config_status_args="$ac_config_status_args --quiet"
14062 exec 5>/dev/null
14063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14064 exec 5>>config.log
14065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14066 # would make configure fail if this is the last instruction.
14067 $ac_cs_success || as_fn_exit 1
14068 fi
14069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14072 fi
14073