]> gcc.gnu.org Git - gcc.git/blob - lto-plugin/configure
Config,Darwin: Allow for configuring Darwin to use embedded runpath.
[gcc.git] / lto-plugin / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='LTO plugin for ld'
589 PACKAGE_TARNAME='lto-plugin'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='LTO plugin for ld 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 target_noncanonical
636 lt_host_flags
637 ENABLE_DARWIN_AT_RPATH_FALSE
638 ENABLE_DARWIN_AT_RPATH_TRUE
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 RANLIB
645 AR
646 OBJDUMP
647 LN_S
648 NM
649 ac_ct_DUMPBIN
650 DUMPBIN
651 LD
652 FGREP
653 SED
654 LIBTOOL
655 ac_lto_plugin_extra_ldflags
656 LTO_PLUGIN_USE_SYMVER_SUN_FALSE
657 LTO_PLUGIN_USE_SYMVER_SUN_TRUE
658 LTO_PLUGIN_USE_SYMVER_GNU_FALSE
659 LTO_PLUGIN_USE_SYMVER_GNU_TRUE
660 LTO_PLUGIN_USE_SYMVER_FALSE
661 LTO_PLUGIN_USE_SYMVER_TRUE
662 get_gcc_base_ver
663 real_target_noncanonical
664 accel_dir_suffix
665 gcc_build_dir
666 CET_HOST_FLAGS
667 ac_lto_plugin_ldflags
668 enable_host_bind_now
669 ac_lto_plugin_warn_cflags
670 EGREP
671 GREP
672 CPP
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
689 CC
690 with_libiberty
691 MAINT
692 MAINTAINER_MODE_FALSE
693 MAINTAINER_MODE_TRUE
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_subdir
722 host_subdir
723 build_subdir
724 build_libsubdir
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 with_build_libsubdir
779 enable_silent_rules
780 enable_maintainer_mode
781 with_libiberty
782 enable_dependency_tracking
783 enable_largefile
784 enable_host_bind_now
785 enable_cet
786 with_gcc_major_version_only
787 enable_shared
788 enable_static
789 with_pic
790 enable_fast_install
791 with_gnu_ld
792 enable_libtool_lock
793 enable_darwin_at_rpath
794 '
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CPP'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
870
871 # Accept the important Cygnus configure options, so we can diagnose typos.
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1154
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 ;;
1210
1211 esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1232 do
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309 else
1310 ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1398
1399 cat <<\_ACEOF
1400
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 --target=TARGET configure for building compilers for TARGET [HOST]
1410 _ACEOF
1411 fi
1412
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1416 esac
1417 cat <<\_ACEOF
1418
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-silent-rules less verbose build output (undo: "make V=1")
1424 --disable-silent-rules verbose build output (undo: "make V=0")
1425 --enable-maintainer-mode
1426 enable make rules and dependencies not useful (and
1427 sometimes confusing) to the casual installer
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --disable-largefile omit support for large files
1433 --enable-host-bind-now link host code as BIND_NOW
1434 --enable-cet enable Intel CET in host libraries [default=auto]
1435 --enable-shared[=PKGS] build shared libraries [default=yes]
1436 --enable-static[=PKGS] build static libraries [default=yes]
1437 --enable-fast-install[=PKGS]
1438 optimize for fast installation [default=yes]
1439 --disable-libtool-lock avoid locking (might break parallel builds)
1440 --enable-darwin-at-rpath
1441 install libraries with @rpath/library-name, requires
1442 rpaths to be added to executables
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-build-libsubdir=DIR Directory where to find libraries for build system
1448 --with-libiberty=PATH specify the directory where to find libiberty
1449 [../libiberty]
1450 --with-gcc-major-version-only
1451 use only GCC major number in filesystem paths
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to the package provider.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
1480 ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1522 else
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1526 done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531 cat <<\_ACEOF
1532 LTO plugin for ld configure 0.1
1533 generated by GNU Autoconf 2.69
1534
1535 Copyright (C) 2012 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538 _ACEOF
1539 exit
1540 fi
1541
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1545
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1572 ac_retval=0
1573 else
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_c_try_cpp LINENO
1585 # ----------------------
1586 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_cpp ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if { { ac_try="$ac_cpp conftest.$ac_ext"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } > conftest.i && {
1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 }; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_cpp
1620
1621 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1624 # the include files in INCLUDES and setting the cache variable VAR
1625 # accordingly.
1626 ac_fn_c_check_header_mongrel ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 if eval \${$3+:} false; then :
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if eval \${$3+:} false; then :
1633 $as_echo_n "(cached) " >&6
1634 fi
1635 eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 else
1639 # Is the header compilable?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1641 $as_echo_n "checking $2 usability... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 $4
1645 #include <$2>
1646 _ACEOF
1647 if ac_fn_c_try_compile "$LINENO"; then :
1648 ac_header_compiler=yes
1649 else
1650 ac_header_compiler=no
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1654 $as_echo "$ac_header_compiler" >&6; }
1655
1656 # Is the header present?
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1658 $as_echo_n "checking $2 presence... " >&6; }
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1661 #include <$2>
1662 _ACEOF
1663 if ac_fn_c_try_cpp "$LINENO"; then :
1664 ac_header_preproc=yes
1665 else
1666 ac_header_preproc=no
1667 fi
1668 rm -f conftest.err conftest.i conftest.$ac_ext
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1670 $as_echo "$ac_header_preproc" >&6; }
1671
1672 # So? What about this header?
1673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1674 yes:no: )
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1676 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1678 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679 ;;
1680 no:yes:* )
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1682 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1684 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1686 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1688 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691 ;;
1692 esac
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1698 eval "$3=\$ac_header_compiler"
1699 fi
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 fi
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
1706 } # ac_fn_c_check_header_mongrel
1707
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=$ac_status
1743 fi
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_run
1749
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 $4
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 fi
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779 } # ac_fn_c_check_header_compile
1780
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_link ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext conftest$ac_exeext
1788 if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest$ac_exeext && {
1807 test "$cross_compiling" = yes ||
1808 test -x conftest$ac_exeext
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816 fi
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_link
1826
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1843
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1848
1849 #ifdef __STDC__
1850 # include <limits.h>
1851 #else
1852 # include <assert.h>
1853 #endif
1854
1855 #undef $2
1856
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1860 #ifdef __cplusplus
1861 extern "C"
1862 #endif
1863 char $2 ();
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1868 choke me
1869 #endif
1870
1871 int
1872 main ()
1873 {
1874 return $2 ();
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_link "$LINENO"; then :
1880 eval "$3=yes"
1881 else
1882 eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_check_func
1893
1894 # ac_fn_c_find_intX_t LINENO BITS VAR
1895 # -----------------------------------
1896 # Finds a signed integer type with width BITS, setting cache variable VAR
1897 # accordingly.
1898 ac_fn_c_find_intX_t ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1902 $as_echo_n "checking for int$2_t... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1905 else
1906 eval "$3=no"
1907 # Order is important - never check a type that is potentially smaller
1908 # than half of the expected target width.
1909 for ac_type in int$2_t 'int' 'long int' \
1910 'long long int' 'short int' 'signed char'; do
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $ac_includes_default
1914 enum { N = $2 / 2 - 1 };
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1919 test_array [0] = 0;
1920 return test_array [0];
1921
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 $ac_includes_default
1930 enum { N = $2 / 2 - 1 };
1931 int
1932 main ()
1933 {
1934 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1935 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1936 test_array [0] = 0;
1937 return test_array [0];
1938
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944
1945 else
1946 case $ac_type in #(
1947 int$2_t) :
1948 eval "$3=yes" ;; #(
1949 *) :
1950 eval "$3=\$ac_type" ;;
1951 esac
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 if eval test \"x\$"$3"\" = x"no"; then :
1957
1958 else
1959 break
1960 fi
1961 done
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967
1968 } # ac_fn_c_find_intX_t
1969
1970 # ac_fn_c_find_uintX_t LINENO BITS VAR
1971 # ------------------------------------
1972 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1973 # accordingly.
1974 ac_fn_c_find_uintX_t ()
1975 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1978 $as_echo_n "checking for uint$2_t... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 eval "$3=no"
1983 # Order is important - never check a type that is potentially smaller
1984 # than half of the expected target width.
1985 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1986 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $ac_includes_default
1990 int
1991 main ()
1992 {
1993 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1994 test_array [0] = 0;
1995 return test_array [0];
1996
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 case $ac_type in #(
2003 uint$2_t) :
2004 eval "$3=yes" ;; #(
2005 *) :
2006 eval "$3=\$ac_type" ;;
2007 esac
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 if eval test \"x\$"$3"\" = x"no"; then :
2011
2012 else
2013 break
2014 fi
2015 done
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022 } # ac_fn_c_find_uintX_t
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2026
2027 It was created by LTO plugin for ld $as_me 0.1, which was
2028 generated by GNU Autoconf 2.69. Invocation command line was
2029
2030 $ $0 $@
2031
2032 _ACEOF
2033 exec 5>>config.log
2034 {
2035 cat <<_ASUNAME
2036 ## --------- ##
2037 ## Platform. ##
2038 ## --------- ##
2039
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2048
2049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2056
2057 _ASUNAME
2058
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 $as_echo "PATH: $as_dir"
2065 done
2066 IFS=$as_save_IFS
2067
2068 } >&5
2069
2070 cat >&5 <<_ACEOF
2071
2072
2073 ## ----------- ##
2074 ## Core tests. ##
2075 ## ----------- ##
2076
2077 _ACEOF
2078
2079
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2085 ac_configure_args=
2086 ac_configure_args0=
2087 ac_configure_args1=
2088 ac_must_keep_next=false
2089 for ac_pass in 1 2
2090 do
2091 for ac_arg
2092 do
2093 case $ac_arg in
2094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096 | -silent | --silent | --silen | --sile | --sil)
2097 continue ;;
2098 *\'*)
2099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2100 esac
2101 case $ac_pass in
2102 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103 2)
2104 as_fn_append ac_configure_args1 " '$ac_arg'"
2105 if test $ac_must_keep_next = true; then
2106 ac_must_keep_next=false # Got value, back to normal.
2107 else
2108 case $ac_arg in
2109 *=* | --config-cache | -C | -disable-* | --disable-* \
2110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112 | -with-* | --with-* | -without-* | --without-* | --x)
2113 case "$ac_configure_args0 " in
2114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2115 esac
2116 ;;
2117 -* ) ac_must_keep_next=true ;;
2118 esac
2119 fi
2120 as_fn_append ac_configure_args " '$ac_arg'"
2121 ;;
2122 esac
2123 done
2124 done
2125 { ac_configure_args0=; unset ac_configure_args0;}
2126 { ac_configure_args1=; unset ac_configure_args1;}
2127
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log. We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134 # Save into config.log some information that might help in debugging.
2135 {
2136 echo
2137
2138 $as_echo "## ---------------- ##
2139 ## Cache variables. ##
2140 ## ---------------- ##"
2141 echo
2142 # The following way of writing the cache mishandles newlines in values,
2143 (
2144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in #(
2147 *${as_nl}*)
2148 case $ac_var in #(
2149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2151 esac
2152 case $ac_var in #(
2153 _ | IFS | as_nl) ;; #(
2154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2155 *) { eval $ac_var=; unset $ac_var;} ;;
2156 esac ;;
2157 esac
2158 done
2159 (set) 2>&1 |
2160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2161 *${as_nl}ac_space=\ *)
2162 sed -n \
2163 "s/'\''/'\''\\\\'\'''\''/g;
2164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2165 ;; #(
2166 *)
2167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 ;;
2169 esac |
2170 sort
2171 )
2172 echo
2173
2174 $as_echo "## ----------------- ##
2175 ## Output variables. ##
2176 ## ----------------- ##"
2177 echo
2178 for ac_var in $ac_subst_vars
2179 do
2180 eval ac_val=\$$ac_var
2181 case $ac_val in
2182 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183 esac
2184 $as_echo "$ac_var='\''$ac_val'\''"
2185 done | sort
2186 echo
2187
2188 if test -n "$ac_subst_files"; then
2189 $as_echo "## ------------------- ##
2190 ## File substitutions. ##
2191 ## ------------------- ##"
2192 echo
2193 for ac_var in $ac_subst_files
2194 do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in
2197 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198 esac
2199 $as_echo "$ac_var='\''$ac_val'\''"
2200 done | sort
2201 echo
2202 fi
2203
2204 if test -s confdefs.h; then
2205 $as_echo "## ----------- ##
2206 ## confdefs.h. ##
2207 ## ----------- ##"
2208 echo
2209 cat confdefs.h
2210 echo
2211 fi
2212 test "$ac_signal" != 0 &&
2213 $as_echo "$as_me: caught signal $ac_signal"
2214 $as_echo "$as_me: exit $exit_status"
2215 } >&5
2216 rm -f core *.core core.conftest.* &&
2217 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2218 exit $exit_status
2219 ' 0
2220 for ac_signal in 1 2 13 15; do
2221 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222 done
2223 ac_signal=0
2224
2225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2226 rm -f -r conftest* confdefs.h
2227
2228 $as_echo "/* confdefs.h */" > confdefs.h
2229
2230 # Predefined preprocessor variables.
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_NAME "$PACKAGE_NAME"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_STRING "$PACKAGE_STRING"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_URL "$PACKAGE_URL"
2254 _ACEOF
2255
2256
2257 # Let the site file select an alternate cache file if it wants to.
2258 # Prefer an explicitly selected file to automatically selected ones.
2259 ac_site_file1=NONE
2260 ac_site_file2=NONE
2261 if test -n "$CONFIG_SITE"; then
2262 # We do not want a PATH search for config.site.
2263 case $CONFIG_SITE in #((
2264 -*) ac_site_file1=./$CONFIG_SITE;;
2265 */*) ac_site_file1=$CONFIG_SITE;;
2266 *) ac_site_file1=./$CONFIG_SITE;;
2267 esac
2268 elif test "x$prefix" != xNONE; then
2269 ac_site_file1=$prefix/share/config.site
2270 ac_site_file2=$prefix/etc/config.site
2271 else
2272 ac_site_file1=$ac_default_prefix/share/config.site
2273 ac_site_file2=$ac_default_prefix/etc/config.site
2274 fi
2275 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276 do
2277 test "x$ac_site_file" = xNONE && continue
2278 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2281 sed 's/^/| /' "$ac_site_file" >&5
2282 . "$ac_site_file" \
2283 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285 as_fn_error $? "failed to load site script $ac_site_file
2286 See \`config.log' for more details" "$LINENO" 5; }
2287 fi
2288 done
2289
2290 if test -r "$cache_file"; then
2291 # Some versions of bash will fail to source /dev/null (special files
2292 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2293 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295 $as_echo "$as_me: loading cache $cache_file" >&6;}
2296 case $cache_file in
2297 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298 *) . "./$cache_file";;
2299 esac
2300 fi
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303 $as_echo "$as_me: creating cache $cache_file" >&6;}
2304 >$cache_file
2305 fi
2306
2307 # Check that the precious variables saved in the cache have kept the same
2308 # value.
2309 ac_cache_corrupted=false
2310 for ac_var in $ac_precious_vars; do
2311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312 eval ac_new_set=\$ac_env_${ac_var}_set
2313 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314 eval ac_new_val=\$ac_env_${ac_var}_value
2315 case $ac_old_set,$ac_new_set in
2316 set,)
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319 ac_cache_corrupted=: ;;
2320 ,set)
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323 ac_cache_corrupted=: ;;
2324 ,);;
2325 *)
2326 if test "x$ac_old_val" != "x$ac_new_val"; then
2327 # differences in whitespace do not lead to failure.
2328 ac_old_val_w=`echo x $ac_old_val`
2329 ac_new_val_w=`echo x $ac_new_val`
2330 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333 ac_cache_corrupted=:
2334 else
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337 eval $ac_var=\$ac_old_val
2338 fi
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2340 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2342 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2343 fi;;
2344 esac
2345 # Pass precious variables to config.status.
2346 if test "$ac_new_set" = set; then
2347 case $ac_new_val in
2348 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 *) ac_arg=$ac_var=$ac_new_val ;;
2350 esac
2351 case " $ac_configure_args " in
2352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2353 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354 esac
2355 fi
2356 done
2357 if $ac_cache_corrupted; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363 fi
2364 ## -------------------- ##
2365 ## Main body of script. ##
2366 ## -------------------- ##
2367
2368 ac_ext=c
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
2376
2377
2378 ac_aux_dir=
2379 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2380 if test -f "$ac_dir/install-sh"; then
2381 ac_aux_dir=$ac_dir
2382 ac_install_sh="$ac_aux_dir/install-sh -c"
2383 break
2384 elif test -f "$ac_dir/install.sh"; then
2385 ac_aux_dir=$ac_dir
2386 ac_install_sh="$ac_aux_dir/install.sh -c"
2387 break
2388 elif test -f "$ac_dir/shtool"; then
2389 ac_aux_dir=$ac_dir
2390 ac_install_sh="$ac_aux_dir/shtool install -c"
2391 break
2392 fi
2393 done
2394 if test -z "$ac_aux_dir"; then
2395 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2396 fi
2397
2398 # These three variables are undocumented and unsupported,
2399 # and are intended to be withdrawn in a future Autoconf release.
2400 # They can cause serious problems if a builder's source tree is in a directory
2401 # whose full name contains unusual characters.
2402 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2403 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2404 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2405
2406
2407 # Make sure we can run config.sub.
2408 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2409 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2410
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2412 $as_echo_n "checking build system type... " >&6; }
2413 if ${ac_cv_build+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 ac_build_alias=$build_alias
2417 test "x$ac_build_alias" = x &&
2418 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2419 test "x$ac_build_alias" = x &&
2420 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2421 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2423
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2426 $as_echo "$ac_cv_build" >&6; }
2427 case $ac_cv_build in
2428 *-*-*) ;;
2429 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2430 esac
2431 build=$ac_cv_build
2432 ac_save_IFS=$IFS; IFS='-'
2433 set x $ac_cv_build
2434 shift
2435 build_cpu=$1
2436 build_vendor=$2
2437 shift; shift
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2440 build_os=$*
2441 IFS=$ac_save_IFS
2442 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2443
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2446 $as_echo_n "checking host system type... " >&6; }
2447 if ${ac_cv_host+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 if test "x$host_alias" = x; then
2451 ac_cv_host=$ac_cv_build
2452 else
2453 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2454 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2455 fi
2456
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2459 $as_echo "$ac_cv_host" >&6; }
2460 case $ac_cv_host in
2461 *-*-*) ;;
2462 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2463 esac
2464 host=$ac_cv_host
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_host
2467 shift
2468 host_cpu=$1
2469 host_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 host_os=$*
2474 IFS=$ac_save_IFS
2475 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2476
2477
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2479 $as_echo_n "checking target system type... " >&6; }
2480 if ${ac_cv_target+:} false; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 if test "x$target_alias" = x; then
2484 ac_cv_target=$ac_cv_host
2485 else
2486 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2488 fi
2489
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2492 $as_echo "$ac_cv_target" >&6; }
2493 case $ac_cv_target in
2494 *-*-*) ;;
2495 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2496 esac
2497 target=$ac_cv_target
2498 ac_save_IFS=$IFS; IFS='-'
2499 set x $ac_cv_target
2500 shift
2501 target_cpu=$1
2502 target_vendor=$2
2503 shift; shift
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2506 target_os=$*
2507 IFS=$ac_save_IFS
2508 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2509
2510
2511 # The aliases save the names the user supplied, while $host etc.
2512 # will get canonicalized.
2513 test -n "$target_alias" &&
2514 test "$program_prefix$program_suffix$program_transform_name" = \
2515 NONENONEs,x,x, &&
2516 program_prefix=${target_alias}-
2517
2518 case ${build_alias} in
2519 "") build_noncanonical=${build} ;;
2520 *) build_noncanonical=${build_alias} ;;
2521 esac
2522
2523 case ${host_alias} in
2524 "") host_noncanonical=${build_noncanonical} ;;
2525 *) host_noncanonical=${host_alias} ;;
2526 esac
2527
2528 case ${target_alias} in
2529 "") target_noncanonical=${host_noncanonical} ;;
2530 *) target_noncanonical=${target_alias} ;;
2531 esac
2532
2533
2534 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2535 # have matching libraries, they should use host libraries: Makefile.tpl
2536 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2537 # However, they still use the build modules, because the corresponding
2538 # host modules (e.g. bison) are only built for the host when bootstrap
2539 # finishes. So:
2540 # - build_subdir is where we find build modules, and never changes.
2541 # - build_libsubdir is where we find build libraries, and can be overridden.
2542
2543 # Prefix 'build-' so this never conflicts with target_subdir.
2544 build_subdir="build-${build_noncanonical}"
2545
2546 # Check whether --with-build-libsubdir was given.
2547 if test "${with_build_libsubdir+set}" = set; then :
2548 withval=$with_build_libsubdir; build_libsubdir="$withval"
2549 else
2550 build_libsubdir="$build_subdir"
2551 fi
2552
2553 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2554 if ( test $srcdir = . && test -d gcc ) \
2555 || test -d $srcdir/../host-${host_noncanonical}; then
2556 host_subdir="host-${host_noncanonical}"
2557 else
2558 host_subdir=.
2559 fi
2560 # No prefix.
2561 target_subdir=${target_noncanonical}
2562
2563 am__api_version='1.15'
2564
2565 # Find a good install program. We prefer a C program (faster),
2566 # so one script is as good as another. But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2571 # AIX /bin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if ${ac_cv_path_install+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2595 /usr/ucb/* ) ;;
2596 *)
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2599 # by default.
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2606 :
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2610 :
2611 else
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2615 mkdir conftest.dir
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2620 then
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2622 break 3
2623 fi
2624 fi
2625 fi
2626 done
2627 done
2628 ;;
2629 esac
2630
2631 done
2632 IFS=$as_save_IFS
2633
2634 rm -rf conftest.one conftest.two conftest.dir
2635
2636 fi
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2645 fi
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2649
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2653
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2655
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name. Accept space and tab only in the latter.
2662 am_lf='
2663 '
2664 case `pwd` in
2665 *[\\\"\#\$\&\'\`$am_lf]*)
2666 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2667 esac
2668 case $srcdir in
2669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2671 esac
2672
2673 # Do 'set' in a subshell so we don't clobber the current shell's
2674 # arguments. Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2677 # directory).
2678 if (
2679 am_has_slept=no
2680 for am_try in 1 2; do
2681 echo "timestamp, slept: $am_has_slept" > conftest.file
2682 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2683 if test "$*" = "X"; then
2684 # -L didn't work.
2685 set X `ls -t "$srcdir/configure" conftest.file`
2686 fi
2687 if test "$*" != "X $srcdir/configure conftest.file" \
2688 && test "$*" != "X conftest.file $srcdir/configure"; then
2689
2690 # If neither matched, then we have a broken ls. This can happen
2691 # if, for instance, CONFIG_SHELL is bash and it inherits a
2692 # broken ls alias from the environment. This has actually
2693 # happened. Such a system could not be considered "sane".
2694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2695 alias in your environment" "$LINENO" 5
2696 fi
2697 if test "$2" = conftest.file || test $am_try -eq 2; then
2698 break
2699 fi
2700 # Just in case.
2701 sleep 1
2702 am_has_slept=yes
2703 done
2704 test "$2" = conftest.file
2705 )
2706 then
2707 # Ok.
2708 :
2709 else
2710 as_fn_error $? "newly created file is older than distributed files!
2711 Check your system clock" "$LINENO" 5
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2715 # If we didn't sleep, we still need to ensure time stamps of config.status and
2716 # generated files are strictly newer.
2717 am_sleep_pid=
2718 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2719 ( sleep 1 ) &
2720 am_sleep_pid=$!
2721 fi
2722
2723 rm -f conftest.file
2724
2725 test "$program_prefix" != NONE &&
2726 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2727 # Use a double $ so make ignores it.
2728 test "$program_suffix" != NONE &&
2729 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2730 # Double any \ or $.
2731 # By default was `s,x,x', remove it if useless.
2732 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2733 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2734
2735 # Expand $ac_aux_dir to an absolute path.
2736 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2737
2738 if test x"${MISSING+set}" != xset; then
2739 case $am_aux_dir in
2740 *\ * | *\ *)
2741 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2742 *)
2743 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2744 esac
2745 fi
2746 # Use eval to expand $SHELL
2747 if eval "$MISSING --is-lightweight"; then
2748 am_missing_run="$MISSING "
2749 else
2750 am_missing_run=
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2752 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2753 fi
2754
2755 if test x"${install_sh+set}" != xset; then
2756 case $am_aux_dir in
2757 *\ * | *\ *)
2758 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2759 *)
2760 install_sh="\${SHELL} $am_aux_dir/install-sh"
2761 esac
2762 fi
2763
2764 # Installed binaries are usually stripped using 'strip' when the user
2765 # run "make install-strip". However 'strip' might not be the right
2766 # tool to use in cross-compilation environments, therefore Automake
2767 # will honor the 'STRIP' environment variable to overrule this program.
2768 if test "$cross_compiling" != no; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}strip; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_STRIP+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$STRIP"; then
2778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 STRIP=$ac_cv_prog_STRIP
2798 if test -n "$STRIP"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2800 $as_echo "$STRIP" >&6; }
2801 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807 fi
2808 if test -z "$ac_cv_prog_STRIP"; then
2809 ac_ct_STRIP=$STRIP
2810 # Extract the first word of "strip", so it can be a program name with args.
2811 set dummy strip; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$ac_ct_STRIP"; then
2818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_ac_ct_STRIP="strip"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2838 if test -n "$ac_ct_STRIP"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2840 $as_echo "$ac_ct_STRIP" >&6; }
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846 if test "x$ac_ct_STRIP" = x; then
2847 STRIP=":"
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855 STRIP=$ac_ct_STRIP
2856 fi
2857 else
2858 STRIP="$ac_cv_prog_STRIP"
2859 fi
2860
2861 fi
2862 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2865 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2866 if test -z "$MKDIR_P"; then
2867 if ${ac_cv_path_mkdir+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_prog in mkdir gmkdir; do
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2878 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2879 'mkdir (GNU coreutils) '* | \
2880 'mkdir (coreutils) '* | \
2881 'mkdir (fileutils) '4.1*)
2882 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2883 break 3;;
2884 esac
2885 done
2886 done
2887 done
2888 IFS=$as_save_IFS
2889
2890 fi
2891
2892 test -d ./--version && rmdir ./--version
2893 if test "${ac_cv_path_mkdir+set}" = set; then
2894 MKDIR_P="$ac_cv_path_mkdir -p"
2895 else
2896 # As a last resort, use the slow shell script. Don't cache a
2897 # value for MKDIR_P within a source directory, because that will
2898 # break other packages using the cache if that directory is
2899 # removed, or if the value is a relative name.
2900 MKDIR_P="$ac_install_sh -d"
2901 fi
2902 fi
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2904 $as_echo "$MKDIR_P" >&6; }
2905
2906 for ac_prog in gawk mawk nawk awk
2907 do
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_AWK+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$AWK"; then
2916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_AWK="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 AWK=$ac_cv_prog_AWK
2936 if test -n "$AWK"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938 $as_echo "$AWK" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 test -n "$AWK" && break
2946 done
2947
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950 set x ${MAKE-make}
2951 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 cat >conftest.make <<\_ACEOF
2956 SHELL = /bin/sh
2957 all:
2958 @echo '@@@%%%=$(MAKE)=@@@%%%'
2959 _ACEOF
2960 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2962 *@@@%%%=?*=@@@%%%*)
2963 eval ac_cv_prog_make_${ac_make}_set=yes;;
2964 *)
2965 eval ac_cv_prog_make_${ac_make}_set=no;;
2966 esac
2967 rm -f conftest.make
2968 fi
2969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972 SET_MAKE=
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 SET_MAKE="MAKE=${MAKE-make}"
2977 fi
2978
2979 rm -rf .tst 2>/dev/null
2980 mkdir .tst 2>/dev/null
2981 if test -d .tst; then
2982 am__leading_dot=.
2983 else
2984 am__leading_dot=_
2985 fi
2986 rmdir .tst 2>/dev/null
2987
2988 # Check whether --enable-silent-rules was given.
2989 if test "${enable_silent_rules+set}" = set; then :
2990 enableval=$enable_silent_rules;
2991 fi
2992
2993 case $enable_silent_rules in # (((
2994 yes) AM_DEFAULT_VERBOSITY=0;;
2995 no) AM_DEFAULT_VERBOSITY=1;;
2996 *) AM_DEFAULT_VERBOSITY=1;;
2997 esac
2998 am_make=${MAKE-make}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3000 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3001 if ${am_cv_make_support_nested_variables+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if $as_echo 'TRUE=$(BAR$(V))
3005 BAR0=false
3006 BAR1=true
3007 V=1
3008 am__doit:
3009 @$(TRUE)
3010 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3011 am_cv_make_support_nested_variables=yes
3012 else
3013 am_cv_make_support_nested_variables=no
3014 fi
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3017 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3018 if test $am_cv_make_support_nested_variables = yes; then
3019 AM_V='$(V)'
3020 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3021 else
3022 AM_V=$AM_DEFAULT_VERBOSITY
3023 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3024 fi
3025 AM_BACKSLASH='\'
3026
3027 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029 # is not polluted with repeated "-I."
3030 am__isrc=' -I$(srcdir)'
3031 # test to see if srcdir already configured
3032 if test -f $srcdir/config.status; then
3033 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034 fi
3035 fi
3036
3037 # test whether we have cygpath
3038 if test -z "$CYGPATH_W"; then
3039 if (cygpath --version) >/dev/null 2>/dev/null; then
3040 CYGPATH_W='cygpath -w'
3041 else
3042 CYGPATH_W=echo
3043 fi
3044 fi
3045
3046
3047 # Define the identity of the package.
3048 PACKAGE='lto-plugin'
3049 VERSION='0.1'
3050
3051
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE "$PACKAGE"
3054 _ACEOF
3055
3056
3057 cat >>confdefs.h <<_ACEOF
3058 #define VERSION "$VERSION"
3059 _ACEOF
3060
3061 # Some tools Automake needs.
3062
3063 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3064
3065
3066 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3067
3068
3069 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3070
3071
3072 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3073
3074
3075 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3076
3077 # For better backward compatibility. To be removed once Automake 1.9.x
3078 # dies out for good. For more background, see:
3079 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3080 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3081 mkdir_p='$(MKDIR_P)'
3082
3083 # We need awk for the "check" target (and possibly the TAP driver). The
3084 # system "awk" is bad on some platforms.
3085 # Always define AMTAR for backward compatibility. Yes, it's still used
3086 # in the wild :-( We should find a proper way to deprecate it ...
3087 AMTAR='$${TAR-tar}'
3088
3089
3090 # We'll loop over all known methods to create a tar archive until one works.
3091 _am_tools='gnutar pax cpio none'
3092
3093 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3094
3095
3096
3097
3098
3099
3100 # POSIX will say in a future version that running "rm -f" with no argument
3101 # is OK; and we want to be able to make that assumption in our Makefile
3102 # recipes. So use an aggressive probe to check that the usage we want is
3103 # actually supported "in the wild" to an acceptable degree.
3104 # See automake bug#10828.
3105 # To make any issue more visible, cause the running configure to be aborted
3106 # by default if the 'rm' program in use doesn't match our expectations; the
3107 # user can still override this though.
3108 if rm -f && rm -fr && rm -rf; then : OK; else
3109 cat >&2 <<'END'
3110 Oops!
3111
3112 Your 'rm' program seems unable to run without file operands specified
3113 on the command line, even when the '-f' option is present. This is contrary
3114 to the behaviour of most rm programs out there, and not conforming with
3115 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3116
3117 Please tell bug-automake@gnu.org about your system, including the value
3118 of your $PATH and any error possibly output before this message. This
3119 can help us improve future automake versions.
3120
3121 END
3122 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3123 echo 'Configuration will proceed anyway, since you have set the' >&2
3124 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3125 echo >&2
3126 else
3127 cat >&2 <<'END'
3128 Aborting the configuration process, to ensure you take notice of the issue.
3129
3130 You can download and install GNU coreutils to get an 'rm' implementation
3131 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3132
3133 If you want to complete the configuration process using your problematic
3134 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3135 to "yes", and re-run configure.
3136
3137 END
3138 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3139 fi
3140 fi
3141
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3144 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3145 # Check whether --enable-maintainer-mode was given.
3146 if test "${enable_maintainer_mode+set}" = set; then :
3147 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3148 else
3149 USE_MAINTAINER_MODE=no
3150 fi
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3153 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3154 if test $USE_MAINTAINER_MODE = yes; then
3155 MAINTAINER_MODE_TRUE=
3156 MAINTAINER_MODE_FALSE='#'
3157 else
3158 MAINTAINER_MODE_TRUE='#'
3159 MAINTAINER_MODE_FALSE=
3160 fi
3161
3162 MAINT=$MAINTAINER_MODE_TRUE
3163
3164
3165
3166 # Check whether --with-libiberty was given.
3167 if test "${with_libiberty+set}" = set; then :
3168 withval=$with_libiberty;
3169 else
3170 with_libiberty=../libiberty
3171 fi
3172
3173
3174 DEPDIR="${am__leading_dot}deps"
3175
3176 ac_config_commands="$ac_config_commands depfiles"
3177
3178
3179 am_make=${MAKE-make}
3180 cat > confinc << 'END'
3181 am__doit:
3182 @echo this is the am__doit target
3183 .PHONY: am__doit
3184 END
3185 # If we don't find an include directive, just comment out the code.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3187 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3188 am__include="#"
3189 am__quote=
3190 _am_result=none
3191 # First try GNU make style include.
3192 echo "include confinc" > confmf
3193 # Ignore all kinds of additional output from 'make'.
3194 case `$am_make -s -f confmf 2> /dev/null` in #(
3195 *the\ am__doit\ target*)
3196 am__include=include
3197 am__quote=
3198 _am_result=GNU
3199 ;;
3200 esac
3201 # Now try BSD make style include.
3202 if test "$am__include" = "#"; then
3203 echo '.include "confinc"' > confmf
3204 case `$am_make -s -f confmf 2> /dev/null` in #(
3205 *the\ am__doit\ target*)
3206 am__include=.include
3207 am__quote="\""
3208 _am_result=BSD
3209 ;;
3210 esac
3211 fi
3212
3213
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3215 $as_echo "$_am_result" >&6; }
3216 rm -f confinc confmf
3217
3218 # Check whether --enable-dependency-tracking was given.
3219 if test "${enable_dependency_tracking+set}" = set; then :
3220 enableval=$enable_dependency_tracking;
3221 fi
3222
3223 if test "x$enable_dependency_tracking" != xno; then
3224 am_depcomp="$ac_aux_dir/depcomp"
3225 AMDEPBACKSLASH='\'
3226 am__nodep='_no'
3227 fi
3228 if test "x$enable_dependency_tracking" != xno; then
3229 AMDEP_TRUE=
3230 AMDEP_FALSE='#'
3231 else
3232 AMDEP_TRUE='#'
3233 AMDEP_FALSE=
3234 fi
3235
3236
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if ${ac_cv_prog_CC+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 fi
3281 if test -z "$ac_cv_prog_CC"; then
3282 ac_ct_CC=$CC
3283 # Extract the first word of "gcc", so it can be a program name with args.
3284 set dummy gcc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 if test -n "$ac_ct_CC"; then
3291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_ac_ct_CC="gcc"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3311 if test -n "$ac_ct_CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3313 $as_echo "$ac_ct_CC" >&6; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319 if test "x$ac_ct_CC" = x; then
3320 CC=""
3321 else
3322 case $cross_compiling:$ac_tool_warned in
3323 yes:)
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3326 ac_tool_warned=yes ;;
3327 esac
3328 CC=$ac_ct_CC
3329 fi
3330 else
3331 CC="$ac_cv_prog_CC"
3332 fi
3333
3334 if test -z "$CC"; then
3335 if test -n "$ac_tool_prefix"; then
3336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}cc; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_CC+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_CC="${ac_tool_prefix}cc"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3356 fi
3357 done
3358 done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373 fi
3374 fi
3375 if test -z "$CC"; then
3376 # Extract the first word of "cc", so it can be a program name with args.
3377 set dummy cc; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386 ac_prog_rejected=no
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3395 ac_prog_rejected=yes
3396 continue
3397 fi
3398 ac_cv_prog_CC="cc"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3401 fi
3402 done
3403 done
3404 IFS=$as_save_IFS
3405
3406 if test $ac_prog_rejected = yes; then
3407 # We found a bogon in the path, so make sure we never use it.
3408 set dummy $ac_cv_prog_CC
3409 shift
3410 if test $# != 0; then
3411 # We chose a different compiler from the bogus one.
3412 # However, it has the same basename, so the bogon will be chosen
3413 # first if we set CC to just the basename; use the full file name.
3414 shift
3415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3416 fi
3417 fi
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430 fi
3431 if test -z "$CC"; then
3432 if test -n "$ac_tool_prefix"; then
3433 for ac_prog in cl.exe
3434 do
3435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461 fi
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471
3472 test -n "$CC" && break
3473 done
3474 fi
3475 if test -z "$CC"; then
3476 ac_ct_CC=$CC
3477 for ac_prog in cl.exe
3478 do
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_prog_ac_ct_CC="$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3499 fi
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509 $as_echo "$ac_ct_CC" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516 test -n "$ac_ct_CC" && break
3517 done
3518
3519 if test "x$ac_ct_CC" = x; then
3520 CC=""
3521 else
3522 case $cross_compiling:$ac_tool_warned in
3523 yes:)
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526 ac_tool_warned=yes ;;
3527 esac
3528 CC=$ac_ct_CC
3529 fi
3530 fi
3531
3532 fi
3533
3534
3535 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "no acceptable C compiler found in \$PATH
3538 See \`config.log' for more details" "$LINENO" 5; }
3539
3540 # Provide some information about the compiler.
3541 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3542 set X $ac_compile
3543 ac_compiler=$2
3544 for ac_option in --version -v -V -qversion; do
3545 { { ac_try="$ac_compiler $ac_option >&5"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3553 ac_status=$?
3554 if test -s conftest.err; then
3555 sed '10a\
3556 ... rest of stderr output deleted ...
3557 10q' conftest.err >conftest.er1
3558 cat conftest.er1 >&5
3559 fi
3560 rm -f conftest.er1 conftest.err
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }
3563 done
3564
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 ac_clean_files_save=$ac_clean_files
3577 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3578 # Try to create an executable without -o first, disregard a.out.
3579 # It will help us diagnose broken compilers, and finding out an intuition
3580 # of exeext.
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3582 $as_echo_n "checking whether the C compiler works... " >&6; }
3583 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3584
3585 # The possible output files:
3586 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3587
3588 ac_rmfiles=
3589 for ac_file in $ac_files
3590 do
3591 case $ac_file in
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3594 esac
3595 done
3596 rm -f $ac_rmfiles
3597
3598 if { { ac_try="$ac_link_default"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_link_default") 2>&5
3606 ac_status=$?
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; then :
3609 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3610 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3611 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3612 # so that the user can short-circuit this test for compilers unknown to
3613 # Autoconf.
3614 for ac_file in $ac_files ''
3615 do
3616 test -f "$ac_file" || continue
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3619 ;;
3620 [ab].out )
3621 # We found the default executable, but exeext='' is most
3622 # certainly right.
3623 break;;
3624 *.* )
3625 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3626 then :; else
3627 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628 fi
3629 # We set ac_cv_exeext here because the later test for it is not
3630 # safe: cross compilers may not add the suffix if given an `-o'
3631 # argument, so we may need to know it at that point already.
3632 # Even if this section looks crufty: it has the advantage of
3633 # actually working.
3634 break;;
3635 * )
3636 break;;
3637 esac
3638 done
3639 test "$ac_cv_exeext" = no && ac_cv_exeext=
3640
3641 else
3642 ac_file=''
3643 fi
3644 if test -z "$ac_file"; then :
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3649
3650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error 77 "C compiler cannot create executables
3653 See \`config.log' for more details" "$LINENO" 5; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3656 $as_echo "yes" >&6; }
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3659 $as_echo_n "checking for C compiler default output file name... " >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3661 $as_echo "$ac_file" >&6; }
3662 ac_exeext=$ac_cv_exeext
3663
3664 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3665 ac_clean_files=$ac_clean_files_save
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3667 $as_echo_n "checking for suffix of executables... " >&6; }
3668 if { { ac_try="$ac_link"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_link") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; then :
3679 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3680 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3681 # work properly (i.e., refer to `conftest.exe'), while it won't with
3682 # `rm'.
3683 for ac_file in conftest.exe conftest conftest.*; do
3684 test -f "$ac_file" || continue
3685 case $ac_file in
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3687 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3688 break;;
3689 * ) break;;
3690 esac
3691 done
3692 else
3693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3696 See \`config.log' for more details" "$LINENO" 5; }
3697 fi
3698 rm -f conftest conftest$ac_cv_exeext
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3700 $as_echo "$ac_cv_exeext" >&6; }
3701
3702 rm -f conftest.$ac_ext
3703 EXEEXT=$ac_cv_exeext
3704 ac_exeext=$EXEEXT
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707 #include <stdio.h>
3708 int
3709 main ()
3710 {
3711 FILE *f = fopen ("conftest.out", "w");
3712 return ferror (f) || fclose (f) != 0;
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 ac_clean_files="$ac_clean_files conftest.out"
3719 # Check that the compiler produces executables we can run. If not, either
3720 # the compiler is broken, or we cross compile.
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3722 $as_echo_n "checking whether we are cross compiling... " >&6; }
3723 if test "$cross_compiling" != yes; then
3724 { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }
3735 if { ac_try='./conftest$ac_cv_exeext'
3736 { { case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_try") 2>&5
3743 ac_status=$?
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; }; then
3746 cross_compiling=no
3747 else
3748 if test "$cross_compiling" = maybe; then
3749 cross_compiling=yes
3750 else
3751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "cannot run C compiled programs.
3754 If you meant to cross compile, use \`--host'.
3755 See \`config.log' for more details" "$LINENO" 5; }
3756 fi
3757 fi
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3760 $as_echo "$cross_compiling" >&6; }
3761
3762 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3763 ac_clean_files=$ac_clean_files_save
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3765 $as_echo_n "checking for suffix of object files... " >&6; }
3766 if ${ac_cv_objext+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 int
3773 main ()
3774 {
3775
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 rm -f conftest.o conftest.obj
3781 if { { ac_try="$ac_compile"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_compile") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; then :
3792 for ac_file in conftest.o conftest.obj conftest.*; do
3793 test -f "$ac_file" || continue;
3794 case $ac_file in
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3797 break;;
3798 esac
3799 done
3800 else
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error $? "cannot compute suffix of object files: cannot compile
3807 See \`config.log' for more details" "$LINENO" 5; }
3808 fi
3809 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3812 $as_echo "$ac_cv_objext" >&6; }
3813 OBJEXT=$ac_cv_objext
3814 ac_objext=$OBJEXT
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3816 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3817 if ${ac_cv_c_compiler_gnu+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822
3823 int
3824 main ()
3825 {
3826 #ifndef __GNUC__
3827 choke me
3828 #endif
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 if ac_fn_c_try_compile "$LINENO"; then :
3835 ac_compiler_gnu=yes
3836 else
3837 ac_compiler_gnu=no
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3841
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3844 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3845 if test $ac_compiler_gnu = yes; then
3846 GCC=yes
3847 else
3848 GCC=
3849 fi
3850 ac_test_CFLAGS=${CFLAGS+set}
3851 ac_save_CFLAGS=$CFLAGS
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3853 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3854 if ${ac_cv_prog_cc_g+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 ac_save_c_werror_flag=$ac_c_werror_flag
3858 ac_c_werror_flag=yes
3859 ac_cv_prog_cc_g=no
3860 CFLAGS="-g"
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863
3864 int
3865 main ()
3866 {
3867
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 if ac_fn_c_try_compile "$LINENO"; then :
3873 ac_cv_prog_cc_g=yes
3874 else
3875 CFLAGS=""
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878
3879 int
3880 main ()
3881 {
3882
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888
3889 else
3890 ac_c_werror_flag=$ac_save_c_werror_flag
3891 CFLAGS="-g"
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894
3895 int
3896 main ()
3897 {
3898
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_prog_cc_g=yes
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 fi
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 ac_c_werror_flag=$ac_save_c_werror_flag
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3914 $as_echo "$ac_cv_prog_cc_g" >&6; }
3915 if test "$ac_test_CFLAGS" = set; then
3916 CFLAGS=$ac_save_CFLAGS
3917 elif test $ac_cv_prog_cc_g = yes; then
3918 if test "$GCC" = yes; then
3919 CFLAGS="-g -O2"
3920 else
3921 CFLAGS="-g"
3922 fi
3923 else
3924 if test "$GCC" = yes; then
3925 CFLAGS="-O2"
3926 else
3927 CFLAGS=
3928 fi
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3931 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3932 if ${ac_cv_prog_cc_c89+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 ac_cv_prog_cc_c89=no
3936 ac_save_CC=$CC
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939 #include <stdarg.h>
3940 #include <stdio.h>
3941 struct stat;
3942 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3943 struct buf { int x; };
3944 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3945 static char *e (p, i)
3946 char **p;
3947 int i;
3948 {
3949 return p[i];
3950 }
3951 static char *f (char * (*g) (char **, int), char **p, ...)
3952 {
3953 char *s;
3954 va_list v;
3955 va_start (v,p);
3956 s = g (p, va_arg (v,int));
3957 va_end (v);
3958 return s;
3959 }
3960
3961 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3962 function prototypes and stuff, but not '\xHH' hex character constants.
3963 These don't provoke an error unfortunately, instead are silently treated
3964 as 'x'. The following induces an error, until -std is added to get
3965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3966 array size at least. It's necessary to write '\x00'==0 to get something
3967 that's true only with -std. */
3968 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3969
3970 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3971 inside strings and character constants. */
3972 #define FOO(x) 'x'
3973 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3974
3975 int test (int i, double x);
3976 struct s1 {int (*f) (int a);};
3977 struct s2 {int (*f) (double a);};
3978 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3979 int argc;
3980 char **argv;
3981 int
3982 main ()
3983 {
3984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3990 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3991 do
3992 CC="$ac_save_CC $ac_arg"
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_prog_cc_c89=$ac_arg
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext
3997 test "x$ac_cv_prog_cc_c89" != "xno" && break
3998 done
3999 rm -f conftest.$ac_ext
4000 CC=$ac_save_CC
4001
4002 fi
4003 # AC_CACHE_VAL
4004 case "x$ac_cv_prog_cc_c89" in
4005 x)
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4007 $as_echo "none needed" >&6; } ;;
4008 xno)
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4010 $as_echo "unsupported" >&6; } ;;
4011 *)
4012 CC="$CC $ac_cv_prog_cc_c89"
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4014 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4015 esac
4016 if test "x$ac_cv_prog_cc_c89" != xno; then :
4017
4018 fi
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025
4026 ac_ext=c
4027 ac_cpp='$CPP $CPPFLAGS'
4028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4032 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4033 if ${am_cv_prog_cc_c_o+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038
4039 int
4040 main ()
4041 {
4042
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 # Make sure it works both with $CC and with simple cc.
4048 # Following AC_PROG_CC_C_O, we do the test twice because some
4049 # compilers refuse to overwrite an existing .o file with -o,
4050 # though they will create one.
4051 am_cv_prog_cc_c_o=yes
4052 for am_i in 1 2; do
4053 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4054 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } \
4058 && test -f conftest2.$ac_objext; then
4059 : OK
4060 else
4061 am_cv_prog_cc_c_o=no
4062 break
4063 fi
4064 done
4065 rm -f core conftest*
4066 unset am_i
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4069 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4070 if test "$am_cv_prog_cc_c_o" != yes; then
4071 # Losing compiler, so override with the script.
4072 # FIXME: It is wrong to rewrite CC.
4073 # But if we don't then we get into trouble of one sort or another.
4074 # A longer-term fix would be to have automake use am__CC in this case,
4075 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4076 CC="$am_aux_dir/compile $CC"
4077 fi
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
4084
4085 depcc="$CC" am_compiler_list=
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4088 $as_echo_n "checking dependency style of $depcc... " >&6; }
4089 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4093 # We make a subdir and do the tests there. Otherwise we can end up
4094 # making bogus files that we don't know about and never remove. For
4095 # instance it was reported that on HP-UX the gcc test will end up
4096 # making a dummy file named 'D' -- because '-MD' means "put the output
4097 # in D".
4098 rm -rf conftest.dir
4099 mkdir conftest.dir
4100 # Copy depcomp to subdir because otherwise we won't find it if we're
4101 # using a relative directory.
4102 cp "$am_depcomp" conftest.dir
4103 cd conftest.dir
4104 # We will build objects and dependencies in a subdirectory because
4105 # it helps to detect inapplicable dependency modes. For instance
4106 # both Tru64's cc and ICC support -MD to output dependencies as a
4107 # side effect of compilation, but ICC will put the dependencies in
4108 # the current directory while Tru64 will put them in the object
4109 # directory.
4110 mkdir sub
4111
4112 am_cv_CC_dependencies_compiler_type=none
4113 if test "$am_compiler_list" = ""; then
4114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4115 fi
4116 am__universal=false
4117 case " $depcc " in #(
4118 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4119 esac
4120
4121 for depmode in $am_compiler_list; do
4122 # Setup a source with many dependencies, because some compilers
4123 # like to wrap large dependency lists on column 80 (with \), and
4124 # we should not choose a depcomp mode which is confused by this.
4125 #
4126 # We need to recreate these files for each test, as the compiler may
4127 # overwrite some of them when testing with obscure command lines.
4128 # This happens at least with the AIX C compiler.
4129 : > sub/conftest.c
4130 for i in 1 2 3 4 5 6; do
4131 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4132 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4133 # Solaris 10 /bin/sh.
4134 echo '/* dummy */' > sub/conftst$i.h
4135 done
4136 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4137
4138 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4139 # mode. It turns out that the SunPro C++ compiler does not properly
4140 # handle '-M -o', and we need to detect this. Also, some Intel
4141 # versions had trouble with output in subdirs.
4142 am__obj=sub/conftest.${OBJEXT-o}
4143 am__minus_obj="-o $am__obj"
4144 case $depmode in
4145 gcc)
4146 # This depmode causes a compiler race in universal mode.
4147 test "$am__universal" = false || continue
4148 ;;
4149 nosideeffect)
4150 # After this tag, mechanisms are not by side-effect, so they'll
4151 # only be used when explicitly requested.
4152 if test "x$enable_dependency_tracking" = xyes; then
4153 continue
4154 else
4155 break
4156 fi
4157 ;;
4158 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4159 # This compiler won't grok '-c -o', but also, the minuso test has
4160 # not run yet. These depmodes are late enough in the game, and
4161 # so weak that their functioning should not be impacted.
4162 am__obj=conftest.${OBJEXT-o}
4163 am__minus_obj=
4164 ;;
4165 none) break ;;
4166 esac
4167 if depmode=$depmode \
4168 source=sub/conftest.c object=$am__obj \
4169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4170 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4171 >/dev/null 2>conftest.err &&
4172 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4173 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4174 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4175 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4176 # icc doesn't choke on unknown options, it will just issue warnings
4177 # or remarks (even with -Werror). So we grep stderr for any message
4178 # that says an option was ignored or not supported.
4179 # When given -MP, icc 7.0 and 7.1 complain thusly:
4180 # icc: Command line warning: ignoring option '-M'; no argument required
4181 # The diagnosis changed in icc 8.0:
4182 # icc: Command line remark: option '-MP' not supported
4183 if (grep 'ignoring option' conftest.err ||
4184 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4185 am_cv_CC_dependencies_compiler_type=$depmode
4186 break
4187 fi
4188 fi
4189 done
4190
4191 cd ..
4192 rm -rf conftest.dir
4193 else
4194 am_cv_CC_dependencies_compiler_type=none
4195 fi
4196
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4199 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4200 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4201
4202 if
4203 test "x$enable_dependency_tracking" != xno \
4204 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4205 am__fastdepCC_TRUE=
4206 am__fastdepCC_FALSE='#'
4207 else
4208 am__fastdepCC_TRUE='#'
4209 am__fastdepCC_FALSE=
4210 fi
4211
4212
4213
4214 ac_ext=c
4215 ac_cpp='$CPP $CPPFLAGS'
4216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4220 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4221 # On Suns, sometimes $CPP names a directory.
4222 if test -n "$CPP" && test -d "$CPP"; then
4223 CPP=
4224 fi
4225 if test -z "$CPP"; then
4226 if ${ac_cv_prog_CPP+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 # Double quotes because CPP needs to be expanded
4230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4231 do
4232 ac_preproc_ok=false
4233 for ac_c_preproc_warn_flag in '' yes
4234 do
4235 # Use a header file that comes with gcc, so configuring glibc
4236 # with a fresh cross-compiler works.
4237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4238 # <limits.h> exists even on freestanding compilers.
4239 # On the NeXT, cc -E runs the code through the compiler's parser,
4240 # not just through cpp. "Syntax error" is here to catch this case.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #ifdef __STDC__
4244 # include <limits.h>
4245 #else
4246 # include <assert.h>
4247 #endif
4248 Syntax error
4249 _ACEOF
4250 if ac_fn_c_try_cpp "$LINENO"; then :
4251
4252 else
4253 # Broken: fails on valid input.
4254 continue
4255 fi
4256 rm -f conftest.err conftest.i conftest.$ac_ext
4257
4258 # OK, works on sane cases. Now check whether nonexistent headers
4259 # can be detected and how.
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262 #include <ac_nonexistent.h>
4263 _ACEOF
4264 if ac_fn_c_try_cpp "$LINENO"; then :
4265 # Broken: success on invalid input.
4266 continue
4267 else
4268 # Passes both tests.
4269 ac_preproc_ok=:
4270 break
4271 fi
4272 rm -f conftest.err conftest.i conftest.$ac_ext
4273
4274 done
4275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4276 rm -f conftest.i conftest.err conftest.$ac_ext
4277 if $ac_preproc_ok; then :
4278 break
4279 fi
4280
4281 done
4282 ac_cv_prog_CPP=$CPP
4283
4284 fi
4285 CPP=$ac_cv_prog_CPP
4286 else
4287 ac_cv_prog_CPP=$CPP
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4290 $as_echo "$CPP" >&6; }
4291 ac_preproc_ok=false
4292 for ac_c_preproc_warn_flag in '' yes
4293 do
4294 # Use a header file that comes with gcc, so configuring glibc
4295 # with a fresh cross-compiler works.
4296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4297 # <limits.h> exists even on freestanding compilers.
4298 # On the NeXT, cc -E runs the code through the compiler's parser,
4299 # not just through cpp. "Syntax error" is here to catch this case.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #ifdef __STDC__
4303 # include <limits.h>
4304 #else
4305 # include <assert.h>
4306 #endif
4307 Syntax error
4308 _ACEOF
4309 if ac_fn_c_try_cpp "$LINENO"; then :
4310
4311 else
4312 # Broken: fails on valid input.
4313 continue
4314 fi
4315 rm -f conftest.err conftest.i conftest.$ac_ext
4316
4317 # OK, works on sane cases. Now check whether nonexistent headers
4318 # can be detected and how.
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321 #include <ac_nonexistent.h>
4322 _ACEOF
4323 if ac_fn_c_try_cpp "$LINENO"; then :
4324 # Broken: success on invalid input.
4325 continue
4326 else
4327 # Passes both tests.
4328 ac_preproc_ok=:
4329 break
4330 fi
4331 rm -f conftest.err conftest.i conftest.$ac_ext
4332
4333 done
4334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4335 rm -f conftest.i conftest.err conftest.$ac_ext
4336 if $ac_preproc_ok; then :
4337
4338 else
4339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4341 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4342 See \`config.log' for more details" "$LINENO" 5; }
4343 fi
4344
4345 ac_ext=c
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
4351
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4353 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4354 if ${ac_cv_path_GREP+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -z "$GREP"; then
4358 ac_path_GREP_found=false
4359 # Loop through the user's path and test for each of PROGNAME-LIST
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4362 do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_prog in grep ggrep; do
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4368 as_fn_executable_p "$ac_path_GREP" || continue
4369 # Check for GNU ac_path_GREP and select it if it is found.
4370 # Check for GNU $ac_path_GREP
4371 case `"$ac_path_GREP" --version 2>&1` in
4372 *GNU*)
4373 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4374 *)
4375 ac_count=0
4376 $as_echo_n 0123456789 >"conftest.in"
4377 while :
4378 do
4379 cat "conftest.in" "conftest.in" >"conftest.tmp"
4380 mv "conftest.tmp" "conftest.in"
4381 cp "conftest.in" "conftest.nl"
4382 $as_echo 'GREP' >> "conftest.nl"
4383 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4385 as_fn_arith $ac_count + 1 && ac_count=$as_val
4386 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4387 # Best one so far, save it but keep looking for a better one
4388 ac_cv_path_GREP="$ac_path_GREP"
4389 ac_path_GREP_max=$ac_count
4390 fi
4391 # 10*(2^10) chars as input seems more than enough
4392 test $ac_count -gt 10 && break
4393 done
4394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4395 esac
4396
4397 $ac_path_GREP_found && break 3
4398 done
4399 done
4400 done
4401 IFS=$as_save_IFS
4402 if test -z "$ac_cv_path_GREP"; then
4403 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4404 fi
4405 else
4406 ac_cv_path_GREP=$GREP
4407 fi
4408
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4411 $as_echo "$ac_cv_path_GREP" >&6; }
4412 GREP="$ac_cv_path_GREP"
4413
4414
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4416 $as_echo_n "checking for egrep... " >&6; }
4417 if ${ac_cv_path_EGREP+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4421 then ac_cv_path_EGREP="$GREP -E"
4422 else
4423 if test -z "$EGREP"; then
4424 ac_path_EGREP_found=false
4425 # Loop through the user's path and test for each of PROGNAME-LIST
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_prog in egrep; do
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4434 as_fn_executable_p "$ac_path_EGREP" || continue
4435 # Check for GNU ac_path_EGREP and select it if it is found.
4436 # Check for GNU $ac_path_EGREP
4437 case `"$ac_path_EGREP" --version 2>&1` in
4438 *GNU*)
4439 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4440 *)
4441 ac_count=0
4442 $as_echo_n 0123456789 >"conftest.in"
4443 while :
4444 do
4445 cat "conftest.in" "conftest.in" >"conftest.tmp"
4446 mv "conftest.tmp" "conftest.in"
4447 cp "conftest.in" "conftest.nl"
4448 $as_echo 'EGREP' >> "conftest.nl"
4449 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4451 as_fn_arith $ac_count + 1 && ac_count=$as_val
4452 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4453 # Best one so far, save it but keep looking for a better one
4454 ac_cv_path_EGREP="$ac_path_EGREP"
4455 ac_path_EGREP_max=$ac_count
4456 fi
4457 # 10*(2^10) chars as input seems more than enough
4458 test $ac_count -gt 10 && break
4459 done
4460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4461 esac
4462
4463 $ac_path_EGREP_found && break 3
4464 done
4465 done
4466 done
4467 IFS=$as_save_IFS
4468 if test -z "$ac_cv_path_EGREP"; then
4469 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4470 fi
4471 else
4472 ac_cv_path_EGREP=$EGREP
4473 fi
4474
4475 fi
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4478 $as_echo "$ac_cv_path_EGREP" >&6; }
4479 EGREP="$ac_cv_path_EGREP"
4480
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4483 $as_echo_n "checking for ANSI C header files... " >&6; }
4484 if ${ac_cv_header_stdc+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 #include <stdlib.h>
4490 #include <stdarg.h>
4491 #include <string.h>
4492 #include <float.h>
4493
4494 int
4495 main ()
4496 {
4497
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 ac_cv_header_stdc=yes
4504 else
4505 ac_cv_header_stdc=no
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508
4509 if test $ac_cv_header_stdc = yes; then
4510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4513 #include <string.h>
4514
4515 _ACEOF
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 $EGREP "memchr" >/dev/null 2>&1; then :
4518
4519 else
4520 ac_cv_header_stdc=no
4521 fi
4522 rm -f conftest*
4523
4524 fi
4525
4526 if test $ac_cv_header_stdc = yes; then
4527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 #include <stdlib.h>
4531
4532 _ACEOF
4533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4534 $EGREP "free" >/dev/null 2>&1; then :
4535
4536 else
4537 ac_cv_header_stdc=no
4538 fi
4539 rm -f conftest*
4540
4541 fi
4542
4543 if test $ac_cv_header_stdc = yes; then
4544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4545 if test "$cross_compiling" = yes; then :
4546 :
4547 else
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <ctype.h>
4551 #include <stdlib.h>
4552 #if ((' ' & 0x0FF) == 0x020)
4553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4555 #else
4556 # define ISLOWER(c) \
4557 (('a' <= (c) && (c) <= 'i') \
4558 || ('j' <= (c) && (c) <= 'r') \
4559 || ('s' <= (c) && (c) <= 'z'))
4560 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4561 #endif
4562
4563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4564 int
4565 main ()
4566 {
4567 int i;
4568 for (i = 0; i < 256; i++)
4569 if (XOR (islower (i), ISLOWER (i))
4570 || toupper (i) != TOUPPER (i))
4571 return 2;
4572 return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_c_try_run "$LINENO"; then :
4576
4577 else
4578 ac_cv_header_stdc=no
4579 fi
4580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4581 conftest.$ac_objext conftest.beam conftest.$ac_ext
4582 fi
4583
4584 fi
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4587 $as_echo "$ac_cv_header_stdc" >&6; }
4588 if test $ac_cv_header_stdc = yes; then
4589
4590 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4591
4592 fi
4593
4594 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4595 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4596 inttypes.h stdint.h unistd.h
4597 do :
4598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4599 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4600 "
4601 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4602 cat >>confdefs.h <<_ACEOF
4603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4604 _ACEOF
4605
4606 fi
4607
4608 done
4609
4610
4611
4612 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4613 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4614 MINIX=yes
4615 else
4616 MINIX=
4617 fi
4618
4619
4620 if test "$MINIX" = yes; then
4621
4622 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4623
4624
4625 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4626
4627
4628 $as_echo "#define _MINIX 1" >>confdefs.h
4629
4630 fi
4631
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4634 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4635 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640
4641 # define __EXTENSIONS__ 1
4642 $ac_includes_default
4643 int
4644 main ()
4645 {
4646
4647 ;
4648 return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652 ac_cv_safe_to_define___extensions__=yes
4653 else
4654 ac_cv_safe_to_define___extensions__=no
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4659 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4660 test $ac_cv_safe_to_define___extensions__ = yes &&
4661 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4662
4663 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4664
4665 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4666
4667 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4668
4669 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4670
4671
4672 ac_ext=c
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677 if test -n "$ac_tool_prefix"; then
4678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if ${ac_cv_prog_CC+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if test -n "$CC"; then
4686 ac_cv_prog_CC="$CC" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4698 fi
4699 done
4700 done
4701 IFS=$as_save_IFS
4702
4703 fi
4704 fi
4705 CC=$ac_cv_prog_CC
4706 if test -n "$CC"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4708 $as_echo "$CC" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 fi
4713
4714
4715 fi
4716 if test -z "$ac_cv_prog_CC"; then
4717 ac_ct_CC=$CC
4718 # Extract the first word of "gcc", so it can be a program name with args.
4719 set dummy gcc; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$ac_ct_CC"; then
4726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_ac_ct_CC="gcc"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739 done
4740 done
4741 IFS=$as_save_IFS
4742
4743 fi
4744 fi
4745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4746 if test -n "$ac_ct_CC"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4748 $as_echo "$ac_ct_CC" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753
4754 if test "x$ac_ct_CC" = x; then
4755 CC=""
4756 else
4757 case $cross_compiling:$ac_tool_warned in
4758 yes:)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761 ac_tool_warned=yes ;;
4762 esac
4763 CC=$ac_ct_CC
4764 fi
4765 else
4766 CC="$ac_cv_prog_CC"
4767 fi
4768
4769 if test -z "$CC"; then
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4772 set dummy ${ac_tool_prefix}cc; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_CC+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$CC"; then
4779 ac_cv_prog_CC="$CC" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_prog_CC="${ac_tool_prefix}cc"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 CC=$ac_cv_prog_CC
4799 if test -n "$CC"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4801 $as_echo "$CC" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806
4807
4808 fi
4809 fi
4810 if test -z "$CC"; then
4811 # Extract the first word of "cc", so it can be a program name with args.
4812 set dummy cc; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_prog_CC+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC="$CC" # Let the user override the test.
4820 else
4821 ac_prog_rejected=no
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4830 ac_prog_rejected=yes
4831 continue
4832 fi
4833 ac_cv_prog_CC="cc"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 if test $ac_prog_rejected = yes; then
4842 # We found a bogon in the path, so make sure we never use it.
4843 set dummy $ac_cv_prog_CC
4844 shift
4845 if test $# != 0; then
4846 # We chose a different compiler from the bogus one.
4847 # However, it has the same basename, so the bogon will be chosen
4848 # first if we set CC to just the basename; use the full file name.
4849 shift
4850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4851 fi
4852 fi
4853 fi
4854 fi
4855 CC=$ac_cv_prog_CC
4856 if test -n "$CC"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4858 $as_echo "$CC" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863
4864
4865 fi
4866 if test -z "$CC"; then
4867 if test -n "$ac_tool_prefix"; then
4868 for ac_prog in cl.exe
4869 do
4870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_CC+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$CC"; then
4878 ac_cv_prog_CC="$CC" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 CC=$ac_cv_prog_CC
4898 if test -n "$CC"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4900 $as_echo "$CC" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4904 fi
4905
4906
4907 test -n "$CC" && break
4908 done
4909 fi
4910 if test -z "$CC"; then
4911 ac_ct_CC=$CC
4912 for ac_prog in cl.exe
4913 do
4914 # Extract the first word of "$ac_prog", so it can be a program name with args.
4915 set dummy $ac_prog; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$ac_ct_CC"; then
4922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_ac_ct_CC="$ac_prog"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935 done
4936 done
4937 IFS=$as_save_IFS
4938
4939 fi
4940 fi
4941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4942 if test -n "$ac_ct_CC"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4944 $as_echo "$ac_ct_CC" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 test -n "$ac_ct_CC" && break
4952 done
4953
4954 if test "x$ac_ct_CC" = x; then
4955 CC=""
4956 else
4957 case $cross_compiling:$ac_tool_warned in
4958 yes:)
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961 ac_tool_warned=yes ;;
4962 esac
4963 CC=$ac_ct_CC
4964 fi
4965 fi
4966
4967 fi
4968
4969
4970 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error $? "no acceptable C compiler found in \$PATH
4973 See \`config.log' for more details" "$LINENO" 5; }
4974
4975 # Provide some information about the compiler.
4976 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4977 set X $ac_compile
4978 ac_compiler=$2
4979 for ac_option in --version -v -V -qversion; do
4980 { { ac_try="$ac_compiler $ac_option >&5"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4986 $as_echo "$ac_try_echo"; } >&5
4987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4988 ac_status=$?
4989 if test -s conftest.err; then
4990 sed '10a\
4991 ... rest of stderr output deleted ...
4992 10q' conftest.err >conftest.er1
4993 cat conftest.er1 >&5
4994 fi
4995 rm -f conftest.er1 conftest.err
4996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4997 test $ac_status = 0; }
4998 done
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5001 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5002 if ${ac_cv_c_compiler_gnu+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007
5008 int
5009 main ()
5010 {
5011 #ifndef __GNUC__
5012 choke me
5013 #endif
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_compiler_gnu=yes
5021 else
5022 ac_compiler_gnu=no
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5026
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5029 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5030 if test $ac_compiler_gnu = yes; then
5031 GCC=yes
5032 else
5033 GCC=
5034 fi
5035 ac_test_CFLAGS=${CFLAGS+set}
5036 ac_save_CFLAGS=$CFLAGS
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5038 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5039 if ${ac_cv_prog_cc_g+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 ac_save_c_werror_flag=$ac_c_werror_flag
5043 ac_c_werror_flag=yes
5044 ac_cv_prog_cc_g=no
5045 CFLAGS="-g"
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048
5049 int
5050 main ()
5051 {
5052
5053 ;
5054 return 0;
5055 }
5056 _ACEOF
5057 if ac_fn_c_try_compile "$LINENO"; then :
5058 ac_cv_prog_cc_g=yes
5059 else
5060 CFLAGS=""
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063
5064 int
5065 main ()
5066 {
5067
5068 ;
5069 return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073
5074 else
5075 ac_c_werror_flag=$ac_save_c_werror_flag
5076 CFLAGS="-g"
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_prog_cc_g=yes
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 fi
5095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5096 ac_c_werror_flag=$ac_save_c_werror_flag
5097 fi
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5099 $as_echo "$ac_cv_prog_cc_g" >&6; }
5100 if test "$ac_test_CFLAGS" = set; then
5101 CFLAGS=$ac_save_CFLAGS
5102 elif test $ac_cv_prog_cc_g = yes; then
5103 if test "$GCC" = yes; then
5104 CFLAGS="-g -O2"
5105 else
5106 CFLAGS="-g"
5107 fi
5108 else
5109 if test "$GCC" = yes; then
5110 CFLAGS="-O2"
5111 else
5112 CFLAGS=
5113 fi
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5116 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5117 if ${ac_cv_prog_cc_c89+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 ac_cv_prog_cc_c89=no
5121 ac_save_CC=$CC
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <stdarg.h>
5125 #include <stdio.h>
5126 struct stat;
5127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5128 struct buf { int x; };
5129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5130 static char *e (p, i)
5131 char **p;
5132 int i;
5133 {
5134 return p[i];
5135 }
5136 static char *f (char * (*g) (char **, int), char **p, ...)
5137 {
5138 char *s;
5139 va_list v;
5140 va_start (v,p);
5141 s = g (p, va_arg (v,int));
5142 va_end (v);
5143 return s;
5144 }
5145
5146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5147 function prototypes and stuff, but not '\xHH' hex character constants.
5148 These don't provoke an error unfortunately, instead are silently treated
5149 as 'x'. The following induces an error, until -std is added to get
5150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5151 array size at least. It's necessary to write '\x00'==0 to get something
5152 that's true only with -std. */
5153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5154
5155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5156 inside strings and character constants. */
5157 #define FOO(x) 'x'
5158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5159
5160 int test (int i, double x);
5161 struct s1 {int (*f) (int a);};
5162 struct s2 {int (*f) (double a);};
5163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5164 int argc;
5165 char **argv;
5166 int
5167 main ()
5168 {
5169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5176 do
5177 CC="$ac_save_CC $ac_arg"
5178 if ac_fn_c_try_compile "$LINENO"; then :
5179 ac_cv_prog_cc_c89=$ac_arg
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext
5182 test "x$ac_cv_prog_cc_c89" != "xno" && break
5183 done
5184 rm -f conftest.$ac_ext
5185 CC=$ac_save_CC
5186
5187 fi
5188 # AC_CACHE_VAL
5189 case "x$ac_cv_prog_cc_c89" in
5190 x)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5192 $as_echo "none needed" >&6; } ;;
5193 xno)
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5195 $as_echo "unsupported" >&6; } ;;
5196 *)
5197 CC="$CC $ac_cv_prog_cc_c89"
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5200 esac
5201 if test "x$ac_cv_prog_cc_c89" != xno; then :
5202
5203 fi
5204
5205 ac_ext=c
5206 ac_cpp='$CPP $CPPFLAGS'
5207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210
5211 ac_ext=c
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5217 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5218 if ${am_cv_prog_cc_c_o+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 # Make sure it works both with $CC and with simple cc.
5233 # Following AC_PROG_CC_C_O, we do the test twice because some
5234 # compilers refuse to overwrite an existing .o file with -o,
5235 # though they will create one.
5236 am_cv_prog_cc_c_o=yes
5237 for am_i in 1 2; do
5238 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5239 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } \
5243 && test -f conftest2.$ac_objext; then
5244 : OK
5245 else
5246 am_cv_prog_cc_c_o=no
5247 break
5248 fi
5249 done
5250 rm -f core conftest*
5251 unset am_i
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5254 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5255 if test "$am_cv_prog_cc_c_o" != yes; then
5256 # Losing compiler, so override with the script.
5257 # FIXME: It is wrong to rewrite CC.
5258 # But if we don't then we get into trouble of one sort or another.
5259 # A longer-term fix would be to have automake use am__CC in this case,
5260 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5261 CC="$am_aux_dir/compile $CC"
5262 fi
5263 ac_ext=c
5264 ac_cpp='$CPP $CPPFLAGS'
5265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268
5269
5270 depcc="$CC" am_compiler_list=
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5273 $as_echo_n "checking dependency style of $depcc... " >&6; }
5274 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5278 # We make a subdir and do the tests there. Otherwise we can end up
5279 # making bogus files that we don't know about and never remove. For
5280 # instance it was reported that on HP-UX the gcc test will end up
5281 # making a dummy file named 'D' -- because '-MD' means "put the output
5282 # in D".
5283 rm -rf conftest.dir
5284 mkdir conftest.dir
5285 # Copy depcomp to subdir because otherwise we won't find it if we're
5286 # using a relative directory.
5287 cp "$am_depcomp" conftest.dir
5288 cd conftest.dir
5289 # We will build objects and dependencies in a subdirectory because
5290 # it helps to detect inapplicable dependency modes. For instance
5291 # both Tru64's cc and ICC support -MD to output dependencies as a
5292 # side effect of compilation, but ICC will put the dependencies in
5293 # the current directory while Tru64 will put them in the object
5294 # directory.
5295 mkdir sub
5296
5297 am_cv_CC_dependencies_compiler_type=none
5298 if test "$am_compiler_list" = ""; then
5299 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5300 fi
5301 am__universal=false
5302 case " $depcc " in #(
5303 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5304 esac
5305
5306 for depmode in $am_compiler_list; do
5307 # Setup a source with many dependencies, because some compilers
5308 # like to wrap large dependency lists on column 80 (with \), and
5309 # we should not choose a depcomp mode which is confused by this.
5310 #
5311 # We need to recreate these files for each test, as the compiler may
5312 # overwrite some of them when testing with obscure command lines.
5313 # This happens at least with the AIX C compiler.
5314 : > sub/conftest.c
5315 for i in 1 2 3 4 5 6; do
5316 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5317 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5318 # Solaris 10 /bin/sh.
5319 echo '/* dummy */' > sub/conftst$i.h
5320 done
5321 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5322
5323 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5324 # mode. It turns out that the SunPro C++ compiler does not properly
5325 # handle '-M -o', and we need to detect this. Also, some Intel
5326 # versions had trouble with output in subdirs.
5327 am__obj=sub/conftest.${OBJEXT-o}
5328 am__minus_obj="-o $am__obj"
5329 case $depmode in
5330 gcc)
5331 # This depmode causes a compiler race in universal mode.
5332 test "$am__universal" = false || continue
5333 ;;
5334 nosideeffect)
5335 # After this tag, mechanisms are not by side-effect, so they'll
5336 # only be used when explicitly requested.
5337 if test "x$enable_dependency_tracking" = xyes; then
5338 continue
5339 else
5340 break
5341 fi
5342 ;;
5343 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5344 # This compiler won't grok '-c -o', but also, the minuso test has
5345 # not run yet. These depmodes are late enough in the game, and
5346 # so weak that their functioning should not be impacted.
5347 am__obj=conftest.${OBJEXT-o}
5348 am__minus_obj=
5349 ;;
5350 none) break ;;
5351 esac
5352 if depmode=$depmode \
5353 source=sub/conftest.c object=$am__obj \
5354 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5355 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5356 >/dev/null 2>conftest.err &&
5357 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5358 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5359 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5360 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5361 # icc doesn't choke on unknown options, it will just issue warnings
5362 # or remarks (even with -Werror). So we grep stderr for any message
5363 # that says an option was ignored or not supported.
5364 # When given -MP, icc 7.0 and 7.1 complain thusly:
5365 # icc: Command line warning: ignoring option '-M'; no argument required
5366 # The diagnosis changed in icc 8.0:
5367 # icc: Command line remark: option '-MP' not supported
5368 if (grep 'ignoring option' conftest.err ||
5369 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5370 am_cv_CC_dependencies_compiler_type=$depmode
5371 break
5372 fi
5373 fi
5374 done
5375
5376 cd ..
5377 rm -rf conftest.dir
5378 else
5379 am_cv_CC_dependencies_compiler_type=none
5380 fi
5381
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5384 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5385 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5386
5387 if
5388 test "x$enable_dependency_tracking" != xno \
5389 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5390 am__fastdepCC_TRUE=
5391 am__fastdepCC_FALSE='#'
5392 else
5393 am__fastdepCC_TRUE='#'
5394 am__fastdepCC_FALSE=
5395 fi
5396
5397
5398 # Check whether --enable-largefile was given.
5399 if test "${enable_largefile+set}" = set; then :
5400 enableval=$enable_largefile;
5401 fi
5402
5403 if test "$enable_largefile" != no; then
5404
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5406 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5407 if ${ac_cv_sys_largefile_CC+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 ac_cv_sys_largefile_CC=no
5411 if test "$GCC" != yes; then
5412 ac_save_CC=$CC
5413 while :; do
5414 # IRIX 6.2 and later do not support large files by default,
5415 # so use the C compiler's -n32 option if that helps.
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #include <sys/types.h>
5419 /* Check that off_t can represent 2**63 - 1 correctly.
5420 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5421 since some C++ compilers masquerading as C compilers
5422 incorrectly reject 9223372036854775807. */
5423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5424 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5425 && LARGE_OFF_T % 2147483647 == 1)
5426 ? 1 : -1];
5427 int
5428 main ()
5429 {
5430
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 if ac_fn_c_try_compile "$LINENO"; then :
5436 break
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext
5439 CC="$CC -n32"
5440 if ac_fn_c_try_compile "$LINENO"; then :
5441 ac_cv_sys_largefile_CC=' -n32'; break
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext
5444 break
5445 done
5446 CC=$ac_save_CC
5447 rm -f conftest.$ac_ext
5448 fi
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5451 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5452 if test "$ac_cv_sys_largefile_CC" != no; then
5453 CC=$CC$ac_cv_sys_largefile_CC
5454 fi
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5457 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5458 if ${ac_cv_sys_file_offset_bits+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 while :; do
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #include <sys/types.h>
5465 /* Check that off_t can represent 2**63 - 1 correctly.
5466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5467 since some C++ compilers masquerading as C compilers
5468 incorrectly reject 9223372036854775807. */
5469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5471 && LARGE_OFF_T % 2147483647 == 1)
5472 ? 1 : -1];
5473 int
5474 main ()
5475 {
5476
5477 ;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_sys_file_offset_bits=no; break
5483 fi
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #define _FILE_OFFSET_BITS 64
5488 #include <sys/types.h>
5489 /* Check that off_t can represent 2**63 - 1 correctly.
5490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5491 since some C++ compilers masquerading as C compilers
5492 incorrectly reject 9223372036854775807. */
5493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5495 && LARGE_OFF_T % 2147483647 == 1)
5496 ? 1 : -1];
5497 int
5498 main ()
5499 {
5500
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_sys_file_offset_bits=64; break
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 ac_cv_sys_file_offset_bits=unknown
5510 break
5511 done
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5514 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5515 case $ac_cv_sys_file_offset_bits in #(
5516 no | unknown) ;;
5517 *)
5518 cat >>confdefs.h <<_ACEOF
5519 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5520 _ACEOF
5521 ;;
5522 esac
5523 rm -rf conftest*
5524 if test $ac_cv_sys_file_offset_bits = unknown; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5526 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5527 if ${ac_cv_sys_large_files+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 while :; do
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <sys/types.h>
5534 /* Check that off_t can represent 2**63 - 1 correctly.
5535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5536 since some C++ compilers masquerading as C compilers
5537 incorrectly reject 9223372036854775807. */
5538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5540 && LARGE_OFF_T % 2147483647 == 1)
5541 ? 1 : -1];
5542 int
5543 main ()
5544 {
5545
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 ac_cv_sys_large_files=no; break
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #define _LARGE_FILES 1
5557 #include <sys/types.h>
5558 /* Check that off_t can represent 2**63 - 1 correctly.
5559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5560 since some C++ compilers masquerading as C compilers
5561 incorrectly reject 9223372036854775807. */
5562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5564 && LARGE_OFF_T % 2147483647 == 1)
5565 ? 1 : -1];
5566 int
5567 main ()
5568 {
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_sys_large_files=1; break
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ac_cv_sys_large_files=unknown
5579 break
5580 done
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5583 $as_echo "$ac_cv_sys_large_files" >&6; }
5584 case $ac_cv_sys_large_files in #(
5585 no | unknown) ;;
5586 *)
5587 cat >>confdefs.h <<_ACEOF
5588 #define _LARGE_FILES $ac_cv_sys_large_files
5589 _ACEOF
5590 ;;
5591 esac
5592 rm -rf conftest*
5593 fi
5594
5595
5596 fi
5597
5598 ac_ext=c
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603
5604 ac_lto_plugin_warn_cflags=
5605 save_CFLAGS="$CFLAGS"
5606 for real_option in -Wall; do
5607 # Do the check with the no- prefix removed since gcc silently
5608 # accepts any -Wno-* option on purpose
5609 case $real_option in
5610 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5611 *) option=$real_option ;;
5612 esac
5613 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5616 $as_echo_n "checking whether $CC supports $option... " >&6; }
5617 if eval \${$as_acx_Woption+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 CFLAGS="$option"
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623
5624 int
5625 main ()
5626 {
5627
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 eval "$as_acx_Woption=yes"
5634 else
5635 eval "$as_acx_Woption=no"
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638
5639 fi
5640 eval ac_res=\$$as_acx_Woption
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5642 $as_echo "$ac_res" >&6; }
5643 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5644 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5645 fi
5646 done
5647 CFLAGS="$save_CFLAGS"
5648 ac_ext=c
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653
5654
5655
5656 # Check whether -static-libgcc is supported.
5657 saved_LDFLAGS="$LDFLAGS"
5658 LDFLAGS="$LDFLAGS -static-libgcc"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5660 $as_echo_n "checking for -static-libgcc... " >&6; }
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663
5664 int main() {}
5665 _ACEOF
5666 if ac_fn_c_try_link "$LINENO"; then :
5667 have_static_libgcc=yes
5668 else
5669 have_static_libgcc=no
5670 fi
5671 rm -f core conftest.err conftest.$ac_objext \
5672 conftest$ac_exeext conftest.$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5674 $as_echo "$have_static_libgcc" >&6; };
5675 LDFLAGS="$saved_LDFLAGS"
5676 # Need -Wc to get it through libtool.
5677 if test "x$have_static_libgcc" = xyes; then
5678 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5679 fi
5680
5681 # Enable --enable-host-bind-now
5682 # Check whether --enable-host-bind-now was given.
5683 if test "${enable_host_bind_now+set}" = set; then :
5684 enableval=$enable_host_bind_now;
5685 fi
5686
5687
5688
5689 if test x$enable_host_bind_now = xyes; then
5690 ac_lto_plugin_ldflags="$ac_lto_plugin_ldflags -Wl,-z,now"
5691 fi
5692
5693
5694
5695 # Check whether --enable-cet was given.
5696 if test "${enable_cet+set}" = set; then :
5697 enableval=$enable_cet;
5698 case "$enableval" in
5699 yes|no|auto) ;;
5700 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5701 esac
5702
5703 else
5704 enable_cet=auto
5705 fi
5706
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5709 $as_echo_n "checking for CET support... " >&6; }
5710
5711 case "$host" in
5712 i[34567]86-*-linux* | x86_64-*-linux*)
5713 may_have_cet=yes
5714 cet_save_CFLAGS="$CFLAGS"
5715 CFLAGS="$CFLAGS -fcf-protection"
5716 case "$enable_cet" in
5717 auto)
5718 # Check if target supports multi-byte NOPs
5719 # and if compiler and assembler support CET.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722
5723 int
5724 main ()
5725 {
5726
5727 #if !defined(__SSE2__)
5728 #error target does not support multi-byte NOPs
5729 #else
5730 asm ("setssbsy");
5731 #endif
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 enable_cet=yes
5739 else
5740 enable_cet=no
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 ;;
5744 yes)
5745 # Check if compiler and assembler support CET.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748
5749 int
5750 main ()
5751 {
5752 asm ("setssbsy");
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 if ac_fn_c_try_compile "$LINENO"; then :
5758 support_cet=yes
5759 else
5760 support_cet=no
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 if test $support_cet = "no"; then
5764 if test x$enable_bootstrap != xno \
5765 && test -z "${with_build_subdir}" \
5766 && (test ! -f ../stage_current \
5767 || test `cat ../stage_current` != "stage1"); then
5768 # Require CET support only for the final GCC build.
5769 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5770 else
5771 # Don't enable CET without CET support for non-bootstrap
5772 # build, in stage1 nor for build support.
5773 enable_cet=no
5774 fi
5775 fi
5776 ;;
5777 esac
5778 CFLAGS="$cet_save_CFLAGS"
5779 ;;
5780 *)
5781 may_have_cet=no
5782 enable_cet=no
5783 ;;
5784 esac
5785
5786 cet_save_CFLAGS="$CFLAGS"
5787 CFLAGS="$CFLAGS -fcf-protection=none"
5788 cet_save_LDFLAGS="$LDFLAGS"
5789 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5790 if test x$may_have_cet = xyes; then
5791 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794
5795 int
5796 main ()
5797 {
5798 return 0;
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_c_try_link "$LINENO"; then :
5804 may_have_cet=yes
5805 else
5806 may_have_cet=no
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810 fi
5811
5812 if test x$may_have_cet = xyes; then
5813 if test x$cross_compiling = xno; then
5814 if test "$cross_compiling" = yes; then :
5815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 as_fn_error $? "cannot run test program while cross compiling
5818 See \`config.log' for more details" "$LINENO" 5; }
5819 else
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822
5823 int
5824 main ()
5825 {
5826 asm ("endbr32");
5827 return 0;
5828 }
5829
5830 _ACEOF
5831 if ac_fn_c_try_run "$LINENO"; then :
5832 have_multi_byte_nop=yes
5833 else
5834 have_multi_byte_nop=no
5835 fi
5836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5837 conftest.$ac_objext conftest.beam conftest.$ac_ext
5838 fi
5839
5840 have_cet=no
5841 if test x$have_multi_byte_nop = xyes; then
5842 if test "$cross_compiling" = yes; then :
5843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5845 as_fn_error $? "cannot run test program while cross compiling
5846 See \`config.log' for more details" "$LINENO" 5; }
5847 else
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850
5851 static void
5852 foo (void)
5853 {
5854 }
5855
5856 static void
5857 __attribute__ ((noinline, noclone))
5858 xxx (void (*f) (void))
5859 {
5860 f ();
5861 }
5862
5863 static void
5864 __attribute__ ((noinline, noclone))
5865 bar (void)
5866 {
5867 xxx (foo);
5868 }
5869
5870 int
5871 main ()
5872 {
5873 bar ();
5874 return 0;
5875 }
5876
5877 _ACEOF
5878 if ac_fn_c_try_run "$LINENO"; then :
5879 have_cet=no
5880 else
5881 have_cet=yes
5882 fi
5883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5884 conftest.$ac_objext conftest.beam conftest.$ac_ext
5885 fi
5886
5887 fi
5888 if test x$enable_cet = xno -a x$have_cet = xyes; then
5889 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5890 fi
5891 fi
5892 else
5893 # Enable CET in cross compiler if possible so that it will run on both
5894 # CET and non-CET hosts.
5895 have_cet=yes
5896 fi
5897 if test x$enable_cet = xyes; then
5898 CET_HOST_FLAGS="-fcf-protection"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5900 $as_echo "yes" >&6; }
5901 else
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5904 fi
5905 CFLAGS="$cet_save_CFLAGS"
5906 LDFLAGS="$cet_save_LDFLAGS"
5907
5908
5909
5910 if test x"$host_subdir" = x.; then
5911 gcc_build_dir=../gcc
5912 else
5913 gcc_build_dir=../../$host_subdir/gcc
5914 fi
5915
5916
5917 # Used for constructing correct paths for offload compilers.
5918 accel_dir_suffix=
5919 real_target_noncanonical=${target_noncanonical}
5920 if test x"$enable_as_accelerator_for" != x; then
5921 accel_dir_suffix=/accel/${target_noncanonical}
5922 real_target_noncanonical=${enable_as_accelerator_for}
5923 fi
5924
5925
5926
5927 # Determine what GCC version number to use in filesystem paths.
5928
5929 get_gcc_base_ver="cat"
5930
5931 # Check whether --with-gcc-major-version-only was given.
5932 if test "${with_gcc_major_version_only+set}" = set; then :
5933 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5934 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5935 fi
5936
5937 fi
5938
5939
5940
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5943 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5944 lto_plugin_use_symver=no
5945 if test x$gcc_no_link = xyes; then
5946 # If we cannot link, we cannot build shared libraries, so do not use
5947 # symbol versioning.
5948 lto_plugin_use_symver=no
5949 else
5950 save_LDFLAGS="$LDFLAGS"
5951 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5952 cat > conftest.map <<EOF
5953 {
5954 global: *foo*; bar; local: *;
5955 };
5956 EOF
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 int foo;
5960 int
5961 main ()
5962 {
5963
5964 ;
5965 return 0;
5966 }
5967 _ACEOF
5968 if ac_fn_c_try_link "$LINENO"; then :
5969 lto_plugin_use_symver=gnu
5970 else
5971 lto_plugin_use_symver=no
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 if test x$lto_plugin_use_symver = xno; then
5976 case "$target_os" in
5977 solaris2*)
5978 LDFLAGS="$save_LDFLAGS"
5979 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5980 # Sun ld cannot handle wildcards and treats all entries as undefined.
5981 cat > conftest.map <<EOF
5982 {
5983 global: foo; local: *;
5984 };
5985 EOF
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 int foo;
5989 int
5990 main ()
5991 {
5992
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_link "$LINENO"; then :
5998 lto_plugin_use_symver=sun
5999 else
6000 lto_plugin_use_symver=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6004 ;;
6005 esac
6006 fi
6007 LDFLAGS="$save_LDFLAGS"
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lto_plugin_use_symver" >&5
6010 $as_echo "$lto_plugin_use_symver" >&6; }
6011 if test "x$lto_plugin_use_symver" != xno; then
6012 LTO_PLUGIN_USE_SYMVER_TRUE=
6013 LTO_PLUGIN_USE_SYMVER_FALSE='#'
6014 else
6015 LTO_PLUGIN_USE_SYMVER_TRUE='#'
6016 LTO_PLUGIN_USE_SYMVER_FALSE=
6017 fi
6018
6019 if test "x$lto_plugin_use_symver" = xgnu; then
6020 LTO_PLUGIN_USE_SYMVER_GNU_TRUE=
6021 LTO_PLUGIN_USE_SYMVER_GNU_FALSE='#'
6022 else
6023 LTO_PLUGIN_USE_SYMVER_GNU_TRUE='#'
6024 LTO_PLUGIN_USE_SYMVER_GNU_FALSE=
6025 fi
6026
6027 if test "x$lto_plugin_use_symver" = xsun; then
6028 LTO_PLUGIN_USE_SYMVER_SUN_TRUE=
6029 LTO_PLUGIN_USE_SYMVER_SUN_FALSE='#'
6030 else
6031 LTO_PLUGIN_USE_SYMVER_SUN_TRUE='#'
6032 LTO_PLUGIN_USE_SYMVER_SUN_FALSE=
6033 fi
6034
6035
6036 # Check for thread headers.
6037 use_locking=no
6038 ac_lto_plugin_extra_ldflags=
6039
6040 case $host in
6041 riscv*)
6042 # do not use locking as pthread depends on libatomic
6043 ;;
6044 *-linux*)
6045 use_locking=yes
6046 ;;
6047 esac
6048
6049 if test x$use_locking = xyes; then
6050 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6051 if test "x$ac_cv_header_pthread_h" = xyes; then :
6052
6053 $as_echo "#define HAVE_PTHREAD_LOCKING 1" >>confdefs.h
6054
6055 fi
6056
6057
6058
6059 ac_lto_plugin_extra_ldflags="-pthread"
6060 fi
6061
6062
6063
6064 case `pwd` in
6065 *\ * | *\ *)
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6067 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6068 esac
6069
6070
6071
6072 macro_version='2.2.7a'
6073 macro_revision='1.3134'
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 ltmain="$ac_aux_dir/ltmain.sh"
6088
6089 # Backslashify metacharacters that are still active within
6090 # double-quoted strings.
6091 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6092
6093 # Same as above, but do not quote variable references.
6094 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6095
6096 # Sed substitution to delay expansion of an escaped shell variable in a
6097 # double_quote_subst'ed string.
6098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6099
6100 # Sed substitution to delay expansion of an escaped single quote.
6101 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6102
6103 # Sed substitution to avoid accidental globbing in evaled expressions
6104 no_glob_subst='s/\*/\\\*/g'
6105
6106 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6108 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6109
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6111 $as_echo_n "checking how to print strings... " >&6; }
6112 # Test print first, because it will be a builtin if present.
6113 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6114 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6115 ECHO='print -r --'
6116 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6117 ECHO='printf %s\n'
6118 else
6119 # Use this function as a fallback that always works.
6120 func_fallback_echo ()
6121 {
6122 eval 'cat <<_LTECHO_EOF
6123 $1
6124 _LTECHO_EOF'
6125 }
6126 ECHO='func_fallback_echo'
6127 fi
6128
6129 # func_echo_all arg...
6130 # Invoke $ECHO with all args, space-separated.
6131 func_echo_all ()
6132 {
6133 $ECHO ""
6134 }
6135
6136 case "$ECHO" in
6137 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6138 $as_echo "printf" >&6; } ;;
6139 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6140 $as_echo "print -r" >&6; } ;;
6141 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6142 $as_echo "cat" >&6; } ;;
6143 esac
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6159 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6160 if ${ac_cv_path_SED+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6164 for ac_i in 1 2 3 4 5 6 7; do
6165 ac_script="$ac_script$as_nl$ac_script"
6166 done
6167 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6168 { ac_script=; unset ac_script;}
6169 if test -z "$SED"; then
6170 ac_path_SED_found=false
6171 # Loop through the user's path and test for each of PROGNAME-LIST
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_prog in sed gsed; do
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6180 as_fn_executable_p "$ac_path_SED" || continue
6181 # Check for GNU ac_path_SED and select it if it is found.
6182 # Check for GNU $ac_path_SED
6183 case `"$ac_path_SED" --version 2>&1` in
6184 *GNU*)
6185 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6186 *)
6187 ac_count=0
6188 $as_echo_n 0123456789 >"conftest.in"
6189 while :
6190 do
6191 cat "conftest.in" "conftest.in" >"conftest.tmp"
6192 mv "conftest.tmp" "conftest.in"
6193 cp "conftest.in" "conftest.nl"
6194 $as_echo '' >> "conftest.nl"
6195 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6197 as_fn_arith $ac_count + 1 && ac_count=$as_val
6198 if test $ac_count -gt ${ac_path_SED_max-0}; then
6199 # Best one so far, save it but keep looking for a better one
6200 ac_cv_path_SED="$ac_path_SED"
6201 ac_path_SED_max=$ac_count
6202 fi
6203 # 10*(2^10) chars as input seems more than enough
6204 test $ac_count -gt 10 && break
6205 done
6206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6207 esac
6208
6209 $ac_path_SED_found && break 3
6210 done
6211 done
6212 done
6213 IFS=$as_save_IFS
6214 if test -z "$ac_cv_path_SED"; then
6215 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6216 fi
6217 else
6218 ac_cv_path_SED=$SED
6219 fi
6220
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6223 $as_echo "$ac_cv_path_SED" >&6; }
6224 SED="$ac_cv_path_SED"
6225 rm -f conftest.sed
6226
6227 test -z "$SED" && SED=sed
6228 Xsed="$SED -e 1s/^X//"
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6241 $as_echo_n "checking for fgrep... " >&6; }
6242 if ${ac_cv_path_FGREP+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6246 then ac_cv_path_FGREP="$GREP -F"
6247 else
6248 if test -z "$FGREP"; then
6249 ac_path_FGREP_found=false
6250 # Loop through the user's path and test for each of PROGNAME-LIST
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6253 do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_prog in fgrep; do
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6259 as_fn_executable_p "$ac_path_FGREP" || continue
6260 # Check for GNU ac_path_FGREP and select it if it is found.
6261 # Check for GNU $ac_path_FGREP
6262 case `"$ac_path_FGREP" --version 2>&1` in
6263 *GNU*)
6264 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6265 *)
6266 ac_count=0
6267 $as_echo_n 0123456789 >"conftest.in"
6268 while :
6269 do
6270 cat "conftest.in" "conftest.in" >"conftest.tmp"
6271 mv "conftest.tmp" "conftest.in"
6272 cp "conftest.in" "conftest.nl"
6273 $as_echo 'FGREP' >> "conftest.nl"
6274 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6276 as_fn_arith $ac_count + 1 && ac_count=$as_val
6277 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6278 # Best one so far, save it but keep looking for a better one
6279 ac_cv_path_FGREP="$ac_path_FGREP"
6280 ac_path_FGREP_max=$ac_count
6281 fi
6282 # 10*(2^10) chars as input seems more than enough
6283 test $ac_count -gt 10 && break
6284 done
6285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6286 esac
6287
6288 $ac_path_FGREP_found && break 3
6289 done
6290 done
6291 done
6292 IFS=$as_save_IFS
6293 if test -z "$ac_cv_path_FGREP"; then
6294 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6295 fi
6296 else
6297 ac_cv_path_FGREP=$FGREP
6298 fi
6299
6300 fi
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6303 $as_echo "$ac_cv_path_FGREP" >&6; }
6304 FGREP="$ac_cv_path_FGREP"
6305
6306
6307 test -z "$GREP" && GREP=grep
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 # Check whether --with-gnu-ld was given.
6328 if test "${with_gnu_ld+set}" = set; then :
6329 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6330 else
6331 with_gnu_ld=no
6332 fi
6333
6334 ac_prog=ld
6335 if test "$GCC" = yes; then
6336 # Check if gcc -print-prog-name=ld gives a path.
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6338 $as_echo_n "checking for ld used by $CC... " >&6; }
6339 case $host in
6340 *-*-mingw*)
6341 # gcc leaves a trailing carriage return which upsets mingw
6342 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6343 *)
6344 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6345 esac
6346 case $ac_prog in
6347 # Accept absolute paths.
6348 [\\/]* | ?:[\\/]*)
6349 re_direlt='/[^/][^/]*/\.\./'
6350 # Canonicalize the pathname of ld
6351 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6352 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6353 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6354 done
6355 test -z "$LD" && LD="$ac_prog"
6356 ;;
6357 "")
6358 # If it fails, then pretend we aren't using GCC.
6359 ac_prog=ld
6360 ;;
6361 *)
6362 # If it is relative, then search for the first ld in PATH.
6363 with_gnu_ld=unknown
6364 ;;
6365 esac
6366 elif test "$with_gnu_ld" = yes; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6368 $as_echo_n "checking for GNU ld... " >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6371 $as_echo_n "checking for non-GNU ld... " >&6; }
6372 fi
6373 if ${lt_cv_path_LD+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 if test -z "$LD"; then
6377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6378 for ac_dir in $PATH; do
6379 IFS="$lt_save_ifs"
6380 test -z "$ac_dir" && ac_dir=.
6381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6382 lt_cv_path_LD="$ac_dir/$ac_prog"
6383 # Check to see if the program is GNU ld. I'd rather use --version,
6384 # but apparently some variants of GNU ld only accept -v.
6385 # Break only if it was the GNU/non-GNU ld that we prefer.
6386 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6387 *GNU* | *'with BFD'*)
6388 test "$with_gnu_ld" != no && break
6389 ;;
6390 *)
6391 test "$with_gnu_ld" != yes && break
6392 ;;
6393 esac
6394 fi
6395 done
6396 IFS="$lt_save_ifs"
6397 else
6398 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6399 fi
6400 fi
6401
6402 LD="$lt_cv_path_LD"
6403 if test -n "$LD"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6405 $as_echo "$LD" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6412 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6413 if ${lt_cv_prog_gnu_ld+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6417 case `$LD -v 2>&1 </dev/null` in
6418 *GNU* | *'with BFD'*)
6419 lt_cv_prog_gnu_ld=yes
6420 ;;
6421 *)
6422 lt_cv_prog_gnu_ld=no
6423 ;;
6424 esac
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6427 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6428 with_gnu_ld=$lt_cv_prog_gnu_ld
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6439 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6440 if ${lt_cv_path_NM+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$NM"; then
6444 # Let the user override the nm to test.
6445 lt_nm_to_check="$NM"
6446 else
6447 lt_nm_to_check="${ac_tool_prefix}nm"
6448 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6449 lt_nm_to_check="$lt_nm_to_check nm"
6450 fi
6451 fi
6452 for lt_tmp_nm in "$lt_nm_to_check"; do
6453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6455 IFS="$lt_save_ifs"
6456 test -z "$ac_dir" && ac_dir=.
6457 # Strip out any user-provided options from the nm to test twice,
6458 # the first time to test to see if nm (rather than its options) has
6459 # an explicit path, the second time to yield a file which can be
6460 # nm'ed itself.
6461 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6462 case "$tmp_nm_path" in
6463 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6464 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6465 esac
6466 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6467 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6468 # Check to see if the nm accepts a BSD-compat flag.
6469 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6470 # nm: unknown option "B" ignored
6471 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6472 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6473 break
6474 ;;
6475 *)
6476 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6477 *$tmp_nm*)
6478 lt_cv_path_NM="$tmp_nm -p"
6479 break
6480 ;;
6481 *)
6482 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6483 continue # so that we can try to find one that supports BSD flags
6484 ;;
6485 esac
6486 ;;
6487 esac
6488 fi
6489 done
6490 IFS="$lt_save_ifs"
6491 done
6492 : ${lt_cv_path_NM=no}
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6495 $as_echo "$lt_cv_path_NM" >&6; }
6496 if test "$lt_cv_path_NM" != "no"; then
6497 NM="$lt_cv_path_NM"
6498 else
6499 # Didn't find any BSD compatible name lister, look for dumpbin.
6500 if test -n "$DUMPBIN"; then :
6501 # Let the user override the test.
6502 else
6503 if test -n "$ac_tool_prefix"; then
6504 for ac_prog in dumpbin "link -dump"
6505 do
6506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if ${ac_cv_prog_DUMPBIN+:} false; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 if test -n "$DUMPBIN"; then
6514 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6523 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531 fi
6532 fi
6533 DUMPBIN=$ac_cv_prog_DUMPBIN
6534 if test -n "$DUMPBIN"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6536 $as_echo "$DUMPBIN" >&6; }
6537 else
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6540 fi
6541
6542
6543 test -n "$DUMPBIN" && break
6544 done
6545 fi
6546 if test -z "$DUMPBIN"; then
6547 ac_ct_DUMPBIN=$DUMPBIN
6548 for ac_prog in dumpbin "link -dump"
6549 do
6550 # Extract the first word of "$ac_prog", so it can be a program name with args.
6551 set dummy $ac_prog; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if test -n "$ac_ct_DUMPBIN"; then
6558 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6578 if test -n "$ac_ct_DUMPBIN"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6580 $as_echo "$ac_ct_DUMPBIN" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587 test -n "$ac_ct_DUMPBIN" && break
6588 done
6589
6590 if test "x$ac_ct_DUMPBIN" = x; then
6591 DUMPBIN=":"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 DUMPBIN=$ac_ct_DUMPBIN
6600 fi
6601 fi
6602
6603 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6604 *COFF*)
6605 DUMPBIN="$DUMPBIN -symbols"
6606 ;;
6607 *)
6608 DUMPBIN=:
6609 ;;
6610 esac
6611 fi
6612
6613 if test "$DUMPBIN" != ":"; then
6614 NM="$DUMPBIN"
6615 fi
6616 fi
6617 test -z "$NM" && NM=nm
6618
6619
6620
6621
6622
6623
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6625 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6626 if ${lt_cv_nm_interface+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 lt_cv_nm_interface="BSD nm"
6630 echo "int some_variable = 0;" > conftest.$ac_ext
6631 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6632 (eval "$ac_compile" 2>conftest.err)
6633 cat conftest.err >&5
6634 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6635 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6636 cat conftest.err >&5
6637 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6638 cat conftest.out >&5
6639 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6640 lt_cv_nm_interface="MS dumpbin"
6641 fi
6642 rm -f conftest*
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6645 $as_echo "$lt_cv_nm_interface" >&6; }
6646
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6648 $as_echo_n "checking whether ln -s works... " >&6; }
6649 LN_S=$as_ln_s
6650 if test "$LN_S" = "ln -s"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6652 $as_echo "yes" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6655 $as_echo "no, using $LN_S" >&6; }
6656 fi
6657
6658 # find the maximum length of command line arguments
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6660 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6661 if ${lt_cv_sys_max_cmd_len+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 i=0
6665 teststring="ABCD"
6666
6667 case $build_os in
6668 msdosdjgpp*)
6669 # On DJGPP, this test can blow up pretty badly due to problems in libc
6670 # (any single argument exceeding 2000 bytes causes a buffer overrun
6671 # during glob expansion). Even if it were fixed, the result of this
6672 # check would be larger than it should be.
6673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6674 ;;
6675
6676 gnu*)
6677 # Under GNU Hurd, this test is not required because there is
6678 # no limit to the length of command line arguments.
6679 # Libtool will interpret -1 as no limit whatsoever
6680 lt_cv_sys_max_cmd_len=-1;
6681 ;;
6682
6683 cygwin* | mingw* | cegcc*)
6684 # On Win9x/ME, this test blows up -- it succeeds, but takes
6685 # about 5 minutes as the teststring grows exponentially.
6686 # Worse, since 9x/ME are not pre-emptively multitasking,
6687 # you end up with a "frozen" computer, even though with patience
6688 # the test eventually succeeds (with a max line length of 256k).
6689 # Instead, let's just punt: use the minimum linelength reported by
6690 # all of the supported platforms: 8192 (on NT/2K/XP).
6691 lt_cv_sys_max_cmd_len=8192;
6692 ;;
6693
6694 mint*)
6695 # On MiNT this can take a long time and run out of memory.
6696 lt_cv_sys_max_cmd_len=8192;
6697 ;;
6698
6699 amigaos*)
6700 # On AmigaOS with pdksh, this test takes hours, literally.
6701 # So we just punt and use a minimum line length of 8192.
6702 lt_cv_sys_max_cmd_len=8192;
6703 ;;
6704
6705 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6706 # This has been around since 386BSD, at least. Likely further.
6707 if test -x /sbin/sysctl; then
6708 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6709 elif test -x /usr/sbin/sysctl; then
6710 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6711 else
6712 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6713 fi
6714 # And add a safety zone
6715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6717 ;;
6718
6719 interix*)
6720 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6721 lt_cv_sys_max_cmd_len=196608
6722 ;;
6723
6724 osf*)
6725 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6726 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6727 # nice to cause kernel panics so lets avoid the loop below.
6728 # First set a reasonable default.
6729 lt_cv_sys_max_cmd_len=16384
6730 #
6731 if test -x /sbin/sysconfig; then
6732 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6733 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6734 esac
6735 fi
6736 ;;
6737 sco3.2v5*)
6738 lt_cv_sys_max_cmd_len=102400
6739 ;;
6740 sysv5* | sco5v6* | sysv4.2uw2*)
6741 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6742 if test -n "$kargmax"; then
6743 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6744 else
6745 lt_cv_sys_max_cmd_len=32768
6746 fi
6747 ;;
6748 *)
6749 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6750 if test -n "$lt_cv_sys_max_cmd_len"; then
6751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6753 else
6754 # Make teststring a little bigger before we do anything with it.
6755 # a 1K string should be a reasonable start.
6756 for i in 1 2 3 4 5 6 7 8 ; do
6757 teststring=$teststring$teststring
6758 done
6759 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6760 # If test is not a shell built-in, we'll probably end up computing a
6761 # maximum length that is only half of the actual maximum length, but
6762 # we can't tell.
6763 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6764 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6765 test $i != 17 # 1/2 MB should be enough
6766 do
6767 i=`expr $i + 1`
6768 teststring=$teststring$teststring
6769 done
6770 # Only check the string length outside the loop.
6771 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6772 teststring=
6773 # Add a significant safety factor because C++ compilers can tack on
6774 # massive amounts of additional arguments before passing them to the
6775 # linker. It appears as though 1/2 is a usable value.
6776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6777 fi
6778 ;;
6779 esac
6780
6781 fi
6782
6783 if test -n $lt_cv_sys_max_cmd_len ; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6785 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6788 $as_echo "none" >&6; }
6789 fi
6790 max_cmd_len=$lt_cv_sys_max_cmd_len
6791
6792
6793
6794
6795
6796
6797 : ${CP="cp -f"}
6798 : ${MV="mv -f"}
6799 : ${RM="rm -f"}
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6802 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6803 # Try some XSI features
6804 xsi_shell=no
6805 ( _lt_dummy="a/b/c"
6806 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6807 = c,a/b,, \
6808 && eval 'test $(( 1 + 1 )) -eq 2 \
6809 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6810 && xsi_shell=yes
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6812 $as_echo "$xsi_shell" >&6; }
6813
6814
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6816 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6817 lt_shell_append=no
6818 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6819 >/dev/null 2>&1 \
6820 && lt_shell_append=yes
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6822 $as_echo "$lt_shell_append" >&6; }
6823
6824
6825 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6826 lt_unset=unset
6827 else
6828 lt_unset=false
6829 fi
6830
6831
6832
6833
6834
6835 # test EBCDIC or ASCII
6836 case `echo X|tr X '\101'` in
6837 A) # ASCII based system
6838 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6839 lt_SP2NL='tr \040 \012'
6840 lt_NL2SP='tr \015\012 \040\040'
6841 ;;
6842 *) # EBCDIC based system
6843 lt_SP2NL='tr \100 \n'
6844 lt_NL2SP='tr \r\n \100\100'
6845 ;;
6846 esac
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6857 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6858 if ${lt_cv_ld_reload_flag+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 lt_cv_ld_reload_flag='-r'
6862 fi
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6864 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6865 reload_flag=$lt_cv_ld_reload_flag
6866 case $reload_flag in
6867 "" | " "*) ;;
6868 *) reload_flag=" $reload_flag" ;;
6869 esac
6870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6871 case $host_os in
6872 darwin*)
6873 if test "$GCC" = yes; then
6874 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6875 else
6876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6877 fi
6878 ;;
6879 esac
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_OBJDUMP+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$OBJDUMP"; then
6898 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 OBJDUMP=$ac_cv_prog_OBJDUMP
6918 if test -n "$OBJDUMP"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6920 $as_echo "$OBJDUMP" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926
6927 fi
6928 if test -z "$ac_cv_prog_OBJDUMP"; then
6929 ac_ct_OBJDUMP=$OBJDUMP
6930 # Extract the first word of "objdump", so it can be a program name with args.
6931 set dummy objdump; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$ac_ct_OBJDUMP"; then
6938 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951 done
6952 done
6953 IFS=$as_save_IFS
6954
6955 fi
6956 fi
6957 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6958 if test -n "$ac_ct_OBJDUMP"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6960 $as_echo "$ac_ct_OBJDUMP" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966 if test "x$ac_ct_OBJDUMP" = x; then
6967 OBJDUMP="false"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 OBJDUMP=$ac_ct_OBJDUMP
6976 fi
6977 else
6978 OBJDUMP="$ac_cv_prog_OBJDUMP"
6979 fi
6980
6981 test -z "$OBJDUMP" && OBJDUMP=objdump
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6992 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6993 if ${lt_cv_deplibs_check_method+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 lt_cv_file_magic_cmd='$MAGIC_CMD'
6997 lt_cv_file_magic_test_file=
6998 lt_cv_deplibs_check_method='unknown'
6999 # Need to set the preceding variable on all platforms that support
7000 # interlibrary dependencies.
7001 # 'none' -- dependencies not supported.
7002 # `unknown' -- same as none, but documents that we really don't know.
7003 # 'pass_all' -- all dependencies passed with no checks.
7004 # 'test_compile' -- check by making test program.
7005 # 'file_magic [[regex]]' -- check by looking for files in library path
7006 # which responds to the $file_magic_cmd with a given extended regex.
7007 # If you have `file' or equivalent on your system and you're not sure
7008 # whether `pass_all' will *always* work, you probably want this one.
7009
7010 case $host_os in
7011 aix[4-9]*)
7012 lt_cv_deplibs_check_method=pass_all
7013 ;;
7014
7015 beos*)
7016 lt_cv_deplibs_check_method=pass_all
7017 ;;
7018
7019 bsdi[45]*)
7020 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7021 lt_cv_file_magic_cmd='/usr/bin/file -L'
7022 lt_cv_file_magic_test_file=/shlib/libc.so
7023 ;;
7024
7025 cygwin*)
7026 # func_win32_libid is a shell function defined in ltmain.sh
7027 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7028 lt_cv_file_magic_cmd='func_win32_libid'
7029 ;;
7030
7031 mingw* | pw32*)
7032 # Base MSYS/MinGW do not provide the 'file' command needed by
7033 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7034 # unless we find 'file', for example because we are cross-compiling.
7035 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7036 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7037 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7038 lt_cv_file_magic_cmd='func_win32_libid'
7039 else
7040 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7041 lt_cv_file_magic_cmd='$OBJDUMP -f'
7042 fi
7043 ;;
7044
7045 cegcc*)
7046 # use the weaker test based on 'objdump'. See mingw*.
7047 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7048 lt_cv_file_magic_cmd='$OBJDUMP -f'
7049 ;;
7050
7051 darwin* | rhapsody*)
7052 lt_cv_deplibs_check_method=pass_all
7053 ;;
7054
7055 freebsd* | dragonfly*)
7056 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7057 case $host_cpu in
7058 i*86 )
7059 # Not sure whether the presence of OpenBSD here was a mistake.
7060 # Let's accept both of them until this is cleared up.
7061 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7062 lt_cv_file_magic_cmd=/usr/bin/file
7063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7064 ;;
7065 esac
7066 else
7067 lt_cv_deplibs_check_method=pass_all
7068 fi
7069 ;;
7070
7071 gnu*)
7072 lt_cv_deplibs_check_method=pass_all
7073 ;;
7074
7075 haiku*)
7076 lt_cv_deplibs_check_method=pass_all
7077 ;;
7078
7079 hpux10.20* | hpux11*)
7080 lt_cv_file_magic_cmd=/usr/bin/file
7081 case $host_cpu in
7082 ia64*)
7083 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7084 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7085 ;;
7086 hppa*64*)
7087 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]'
7088 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7089 ;;
7090 *)
7091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7092 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7093 ;;
7094 esac
7095 ;;
7096
7097 interix[3-9]*)
7098 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7100 ;;
7101
7102 irix5* | irix6* | nonstopux*)
7103 case $LD in
7104 *-32|*"-32 ") libmagic=32-bit;;
7105 *-n32|*"-n32 ") libmagic=N32;;
7106 *-64|*"-64 ") libmagic=64-bit;;
7107 *) libmagic=never-match;;
7108 esac
7109 lt_cv_deplibs_check_method=pass_all
7110 ;;
7111
7112 # This must be Linux ELF.
7113 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7114 lt_cv_deplibs_check_method=pass_all
7115 ;;
7116
7117 netbsd*)
7118 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7120 else
7121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7122 fi
7123 ;;
7124
7125 newos6*)
7126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7127 lt_cv_file_magic_cmd=/usr/bin/file
7128 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7129 ;;
7130
7131 *nto* | *qnx*)
7132 lt_cv_deplibs_check_method=pass_all
7133 ;;
7134
7135 openbsd*)
7136 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7138 else
7139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7140 fi
7141 ;;
7142
7143 osf3* | osf4* | osf5*)
7144 lt_cv_deplibs_check_method=pass_all
7145 ;;
7146
7147 rdos*)
7148 lt_cv_deplibs_check_method=pass_all
7149 ;;
7150
7151 solaris*)
7152 lt_cv_deplibs_check_method=pass_all
7153 ;;
7154
7155 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7156 lt_cv_deplibs_check_method=pass_all
7157 ;;
7158
7159 sysv4 | sysv4.3*)
7160 case $host_vendor in
7161 motorola)
7162 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]'
7163 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7164 ;;
7165 ncr)
7166 lt_cv_deplibs_check_method=pass_all
7167 ;;
7168 sequent)
7169 lt_cv_file_magic_cmd='/bin/file'
7170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7171 ;;
7172 sni)
7173 lt_cv_file_magic_cmd='/bin/file'
7174 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7175 lt_cv_file_magic_test_file=/lib/libc.so
7176 ;;
7177 siemens)
7178 lt_cv_deplibs_check_method=pass_all
7179 ;;
7180 pc)
7181 lt_cv_deplibs_check_method=pass_all
7182 ;;
7183 esac
7184 ;;
7185
7186 tpf*)
7187 lt_cv_deplibs_check_method=pass_all
7188 ;;
7189 vxworks*)
7190 # Assume VxWorks cross toolchains are built on Linux, possibly
7191 # as canadian for Windows hosts.
7192 lt_cv_deplibs_check_method=pass_all
7193 ;;
7194 esac
7195
7196 fi
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7198 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7199 file_magic_cmd=$lt_cv_file_magic_cmd
7200 deplibs_check_method=$lt_cv_deplibs_check_method
7201 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 plugin_option=
7215 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7216 for plugin in $plugin_names; do
7217 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7218 if test x$plugin_so = x$plugin; then
7219 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7220 fi
7221 if test x$plugin_so != x$plugin; then
7222 plugin_option="--plugin $plugin_so"
7223 break
7224 fi
7225 done
7226
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}ar; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_AR+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$AR"; then
7236 ac_cv_prog_AR="$AR" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_AR="${ac_tool_prefix}ar"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 AR=$ac_cv_prog_AR
7256 if test -n "$AR"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7258 $as_echo "$AR" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_AR"; then
7267 ac_ct_AR=$AR
7268 # Extract the first word of "ar", so it can be a program name with args.
7269 set dummy ar; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$ac_ct_AR"; then
7276 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_ac_ct_AR="ar"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7296 if test -n "$ac_ct_AR"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7298 $as_echo "$ac_ct_AR" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304 if test "x$ac_ct_AR" = x; then
7305 AR="false"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313 AR=$ac_ct_AR
7314 fi
7315 else
7316 AR="$ac_cv_prog_AR"
7317 fi
7318
7319 test -z "$AR" && AR=ar
7320 if test -n "$plugin_option"; then
7321 if $AR --help 2>&1 | grep -q "\--plugin"; then
7322 touch conftest.c
7323 $AR $plugin_option rc conftest.a conftest.c
7324 if test "$?" != 0; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7326 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7327 else
7328 AR="$AR $plugin_option"
7329 fi
7330 rm -f conftest.*
7331 fi
7332 fi
7333 test -z "$AR_FLAGS" && AR_FLAGS=cru
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}strip; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_STRIP+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 if test -n "$STRIP"; then
7354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367 done
7368 done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 STRIP=$ac_cv_prog_STRIP
7374 if test -n "$STRIP"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7376 $as_echo "$STRIP" >&6; }
7377 else
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382
7383 fi
7384 if test -z "$ac_cv_prog_STRIP"; then
7385 ac_ct_STRIP=$STRIP
7386 # Extract the first word of "strip", so it can be a program name with args.
7387 set dummy strip; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 if test -n "$ac_ct_STRIP"; then
7394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_ac_ct_STRIP="strip"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7414 if test -n "$ac_ct_STRIP"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7416 $as_echo "$ac_ct_STRIP" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422 if test "x$ac_ct_STRIP" = x; then
7423 STRIP=":"
7424 else
7425 case $cross_compiling:$ac_tool_warned in
7426 yes:)
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7430 esac
7431 STRIP=$ac_ct_STRIP
7432 fi
7433 else
7434 STRIP="$ac_cv_prog_STRIP"
7435 fi
7436
7437 test -z "$STRIP" && STRIP=:
7438
7439
7440
7441
7442
7443
7444 if test -n "$ac_tool_prefix"; then
7445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_RANLIB+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test -n "$RANLIB"; then
7453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466 done
7467 done
7468 IFS=$as_save_IFS
7469
7470 fi
7471 fi
7472 RANLIB=$ac_cv_prog_RANLIB
7473 if test -n "$RANLIB"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7475 $as_echo "$RANLIB" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7480
7481
7482 fi
7483 if test -z "$ac_cv_prog_RANLIB"; then
7484 ac_ct_RANLIB=$RANLIB
7485 # Extract the first word of "ranlib", so it can be a program name with args.
7486 set dummy ranlib; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 if test -n "$ac_ct_RANLIB"; then
7493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_ac_ct_RANLIB="ranlib"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7513 if test -n "$ac_ct_RANLIB"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7515 $as_echo "$ac_ct_RANLIB" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521 if test "x$ac_ct_RANLIB" = x; then
7522 RANLIB=":"
7523 else
7524 case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530 RANLIB=$ac_ct_RANLIB
7531 fi
7532 else
7533 RANLIB="$ac_cv_prog_RANLIB"
7534 fi
7535
7536 test -z "$RANLIB" && RANLIB=:
7537 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7538 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7539 RANLIB="$RANLIB $plugin_option"
7540 fi
7541 fi
7542
7543
7544
7545
7546
7547
7548 # Determine commands to create old-style static archives.
7549 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7550 old_postinstall_cmds='chmod 644 $oldlib'
7551 old_postuninstall_cmds=
7552
7553 if test -n "$RANLIB"; then
7554 case $host_os in
7555 openbsd*)
7556 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7557 ;;
7558 *)
7559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7560 ;;
7561 esac
7562 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7563 fi
7564
7565 case $host_os in
7566 darwin*)
7567 lock_old_archive_extraction=yes ;;
7568 *)
7569 lock_old_archive_extraction=no ;;
7570 esac
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610 # If no C compiler was specified, use CC.
7611 LTCC=${LTCC-"$CC"}
7612
7613 # If no C compiler flags were specified, use CFLAGS.
7614 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7615
7616 # Allow CC to be a program name with arguments.
7617 compiler=$CC
7618
7619
7620 # Check for command to grab the raw symbol name followed by C symbol from nm.
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7622 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7623 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626
7627 # These are sane defaults that work on at least a few old systems.
7628 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7629
7630 # Character class describing NM global symbol codes.
7631 symcode='[BCDEGRST]'
7632
7633 # Regexp to match symbols that can be accessed directly from C.
7634 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7635
7636 # Define system-specific variables.
7637 case $host_os in
7638 aix*)
7639 symcode='[BCDT]'
7640 ;;
7641 cygwin* | mingw* | pw32* | cegcc*)
7642 symcode='[ABCDGISTW]'
7643 ;;
7644 hpux*)
7645 if test "$host_cpu" = ia64; then
7646 symcode='[ABCDEGRST]'
7647 fi
7648 ;;
7649 irix* | nonstopux*)
7650 symcode='[BCDEGRST]'
7651 ;;
7652 osf*)
7653 symcode='[BCDEGQRST]'
7654 ;;
7655 solaris*)
7656 symcode='[BCDRT]'
7657 ;;
7658 sco3.2v5*)
7659 symcode='[DT]'
7660 ;;
7661 sysv4.2uw2*)
7662 symcode='[DT]'
7663 ;;
7664 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7665 symcode='[ABDT]'
7666 ;;
7667 sysv4)
7668 symcode='[DFNSTU]'
7669 ;;
7670 esac
7671
7672 # If we're using GNU nm, then use its standard symbol codes.
7673 case `$NM -V 2>&1` in
7674 *GNU* | *'with BFD'*)
7675 symcode='[ABCDGIRSTW]' ;;
7676 esac
7677
7678 # Transform an extracted symbol line into a proper C declaration.
7679 # Some systems (esp. on ia64) link data and code symbols differently,
7680 # so use this general approach.
7681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7682
7683 # Transform an extracted symbol line into symbol name and symbol address
7684 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7685 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'"
7686
7687 # Handle CRLF in mingw tool chain
7688 opt_cr=
7689 case $build_os in
7690 mingw*)
7691 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7692 ;;
7693 esac
7694
7695 # Try without a prefix underscore, then with it.
7696 for ac_symprfx in "" "_"; do
7697
7698 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7699 symxfrm="\\1 $ac_symprfx\\2 \\2"
7700
7701 # Write the raw and C identifiers.
7702 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7703 # Fake it for dumpbin and say T for any non-static function
7704 # and D for any global variable.
7705 # Also find C++ and __fastcall symbols from MSVC++,
7706 # which start with @ or ?.
7707 lt_cv_sys_global_symbol_pipe="$AWK '"\
7708 " {last_section=section; section=\$ 3};"\
7709 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7710 " \$ 0!~/External *\|/{next};"\
7711 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7712 " {if(hide[section]) next};"\
7713 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7714 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7715 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7716 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7717 " ' prfx=^$ac_symprfx"
7718 else
7719 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7720 fi
7721
7722 # Check to see that the pipe works correctly.
7723 pipe_works=no
7724
7725 rm -f conftest*
7726 cat > conftest.$ac_ext <<_LT_EOF
7727 #ifdef __cplusplus
7728 extern "C" {
7729 #endif
7730 char nm_test_var;
7731 void nm_test_func(void);
7732 void nm_test_func(void){}
7733 #ifdef __cplusplus
7734 }
7735 #endif
7736 int main(){nm_test_var='a';nm_test_func();return(0);}
7737 _LT_EOF
7738
7739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7740 (eval $ac_compile) 2>&5
7741 ac_status=$?
7742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7743 test $ac_status = 0; }; then
7744 # Now try to grab the symbols.
7745 nlist=conftest.nm
7746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7747 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7748 ac_status=$?
7749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7750 test $ac_status = 0; } && test -s "$nlist"; then
7751 # Try sorting and uniquifying the output.
7752 if sort "$nlist" | uniq > "$nlist"T; then
7753 mv -f "$nlist"T "$nlist"
7754 else
7755 rm -f "$nlist"T
7756 fi
7757
7758 # Make sure that we snagged all the symbols we need.
7759 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7760 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7761 cat <<_LT_EOF > conftest.$ac_ext
7762 #ifdef __cplusplus
7763 extern "C" {
7764 #endif
7765
7766 _LT_EOF
7767 # Now generate the symbol file.
7768 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7769
7770 cat <<_LT_EOF >> conftest.$ac_ext
7771
7772 /* The mapping between symbol names and symbols. */
7773 const struct {
7774 const char *name;
7775 void *address;
7776 }
7777 lt__PROGRAM__LTX_preloaded_symbols[] =
7778 {
7779 { "@PROGRAM@", (void *) 0 },
7780 _LT_EOF
7781 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7782 cat <<\_LT_EOF >> conftest.$ac_ext
7783 {0, (void *) 0}
7784 };
7785
7786 /* This works around a problem in FreeBSD linker */
7787 #ifdef FREEBSD_WORKAROUND
7788 static const void *lt_preloaded_setup() {
7789 return lt__PROGRAM__LTX_preloaded_symbols;
7790 }
7791 #endif
7792
7793 #ifdef __cplusplus
7794 }
7795 #endif
7796 _LT_EOF
7797 # Now try linking the two files.
7798 mv conftest.$ac_objext conftstm.$ac_objext
7799 lt_save_LIBS="$LIBS"
7800 lt_save_CFLAGS="$CFLAGS"
7801 LIBS="conftstm.$ac_objext"
7802 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7804 (eval $ac_link) 2>&5
7805 ac_status=$?
7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7807 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7808 pipe_works=yes
7809 fi
7810 LIBS="$lt_save_LIBS"
7811 CFLAGS="$lt_save_CFLAGS"
7812 else
7813 echo "cannot find nm_test_func in $nlist" >&5
7814 fi
7815 else
7816 echo "cannot find nm_test_var in $nlist" >&5
7817 fi
7818 else
7819 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7820 fi
7821 else
7822 echo "$progname: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7824 fi
7825 rm -rf conftest* conftst*
7826
7827 # Do not use the global_symbol_pipe unless it works.
7828 if test "$pipe_works" = yes; then
7829 break
7830 else
7831 lt_cv_sys_global_symbol_pipe=
7832 fi
7833 done
7834
7835 fi
7836
7837 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7838 lt_cv_sys_global_symbol_to_cdecl=
7839 fi
7840 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7842 $as_echo "failed" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7845 $as_echo "ok" >&6; }
7846 fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869 # Check whether --enable-libtool-lock was given.
7870 if test "${enable_libtool_lock+set}" = set; then :
7871 enableval=$enable_libtool_lock;
7872 fi
7873
7874 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7875
7876 # Some flags need to be propagated to the compiler or linker for good
7877 # libtool support.
7878 case $host in
7879 ia64-*-hpux*)
7880 # Find out which ABI we are using.
7881 echo 'int i;' > conftest.$ac_ext
7882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7883 (eval $ac_compile) 2>&5
7884 ac_status=$?
7885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886 test $ac_status = 0; }; then
7887 case `/usr/bin/file conftest.$ac_objext` in
7888 *ELF-32*)
7889 HPUX_IA64_MODE="32"
7890 ;;
7891 *ELF-64*)
7892 HPUX_IA64_MODE="64"
7893 ;;
7894 esac
7895 fi
7896 rm -rf conftest*
7897 ;;
7898 *-*-irix6*)
7899 # Find out which ABI we are using.
7900 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7902 (eval $ac_compile) 2>&5
7903 ac_status=$?
7904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905 test $ac_status = 0; }; then
7906 if test "$lt_cv_prog_gnu_ld" = yes; then
7907 case `/usr/bin/file conftest.$ac_objext` in
7908 *32-bit*)
7909 LD="${LD-ld} -melf32bsmip"
7910 ;;
7911 *N32*)
7912 LD="${LD-ld} -melf32bmipn32"
7913 ;;
7914 *64-bit*)
7915 LD="${LD-ld} -melf64bmip"
7916 ;;
7917 esac
7918 else
7919 case `/usr/bin/file conftest.$ac_objext` in
7920 *32-bit*)
7921 LD="${LD-ld} -32"
7922 ;;
7923 *N32*)
7924 LD="${LD-ld} -n32"
7925 ;;
7926 *64-bit*)
7927 LD="${LD-ld} -64"
7928 ;;
7929 esac
7930 fi
7931 fi
7932 rm -rf conftest*
7933 ;;
7934
7935 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7936 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7937 # Find out which ABI we are using.
7938 echo 'int i;' > conftest.$ac_ext
7939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7940 (eval $ac_compile) 2>&5
7941 ac_status=$?
7942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7943 test $ac_status = 0; }; then
7944 case `/usr/bin/file conftest.o` in
7945 *32-bit*)
7946 case $host in
7947 x86_64-*kfreebsd*-gnu)
7948 LD="${LD-ld} -m elf_i386_fbsd"
7949 ;;
7950 x86_64-*linux*)
7951 case `/usr/bin/file conftest.o` in
7952 *x86-64*)
7953 LD="${LD-ld} -m elf32_x86_64"
7954 ;;
7955 *)
7956 LD="${LD-ld} -m elf_i386"
7957 ;;
7958 esac
7959 ;;
7960 powerpc64le-*linux*)
7961 LD="${LD-ld} -m elf32lppclinux"
7962 ;;
7963 powerpc64-*linux*)
7964 LD="${LD-ld} -m elf32ppclinux"
7965 ;;
7966 s390x-*linux*)
7967 LD="${LD-ld} -m elf_s390"
7968 ;;
7969 sparc64-*linux*)
7970 LD="${LD-ld} -m elf32_sparc"
7971 ;;
7972 esac
7973 ;;
7974 *64-bit*)
7975 case $host in
7976 x86_64-*kfreebsd*-gnu)
7977 LD="${LD-ld} -m elf_x86_64_fbsd"
7978 ;;
7979 x86_64-*linux*)
7980 LD="${LD-ld} -m elf_x86_64"
7981 ;;
7982 powerpcle-*linux*)
7983 LD="${LD-ld} -m elf64lppc"
7984 ;;
7985 powerpc-*linux*)
7986 LD="${LD-ld} -m elf64ppc"
7987 ;;
7988 s390*-*linux*|s390*-*tpf*)
7989 LD="${LD-ld} -m elf64_s390"
7990 ;;
7991 sparc*-*linux*)
7992 LD="${LD-ld} -m elf64_sparc"
7993 ;;
7994 esac
7995 ;;
7996 esac
7997 fi
7998 rm -rf conftest*
7999 ;;
8000
8001 *-*-sco3.2v5*)
8002 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8003 SAVE_CFLAGS="$CFLAGS"
8004 CFLAGS="$CFLAGS -belf"
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8006 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8007 if ${lt_cv_cc_needs_belf+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 ac_ext=c
8011 ac_cpp='$CPP $CPPFLAGS'
8012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8015
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018
8019 int
8020 main ()
8021 {
8022
8023 ;
8024 return 0;
8025 }
8026 _ACEOF
8027 if ac_fn_c_try_link "$LINENO"; then :
8028 lt_cv_cc_needs_belf=yes
8029 else
8030 lt_cv_cc_needs_belf=no
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 ac_ext=c
8035 ac_cpp='$CPP $CPPFLAGS'
8036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039
8040 fi
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8042 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8043 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8044 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8045 CFLAGS="$SAVE_CFLAGS"
8046 fi
8047 ;;
8048 sparc*-*solaris*)
8049 # Find out which ABI we are using.
8050 echo 'int i;' > conftest.$ac_ext
8051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8052 (eval $ac_compile) 2>&5
8053 ac_status=$?
8054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8055 test $ac_status = 0; }; then
8056 case `/usr/bin/file conftest.o` in
8057 *64-bit*)
8058 case $lt_cv_prog_gnu_ld in
8059 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8060 *)
8061 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8062 LD="${LD-ld} -64"
8063 fi
8064 ;;
8065 esac
8066 ;;
8067 esac
8068 fi
8069 rm -rf conftest*
8070 ;;
8071 esac
8072
8073 need_locks="$enable_libtool_lock"
8074
8075
8076 case $host_os in
8077 rhapsody* | darwin*)
8078 if test -n "$ac_tool_prefix"; then
8079 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8080 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 if test -n "$DSYMUTIL"; then
8087 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8107 if test -n "$DSYMUTIL"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8109 $as_echo "$DSYMUTIL" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115
8116 fi
8117 if test -z "$ac_cv_prog_DSYMUTIL"; then
8118 ac_ct_DSYMUTIL=$DSYMUTIL
8119 # Extract the first word of "dsymutil", so it can be a program name with args.
8120 set dummy dsymutil; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 if test -n "$ac_ct_DSYMUTIL"; then
8127 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140 done
8141 done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8147 if test -n "$ac_ct_DSYMUTIL"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8149 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155 if test "x$ac_ct_DSYMUTIL" = x; then
8156 DSYMUTIL=":"
8157 else
8158 case $cross_compiling:$ac_tool_warned in
8159 yes:)
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162 ac_tool_warned=yes ;;
8163 esac
8164 DSYMUTIL=$ac_ct_DSYMUTIL
8165 fi
8166 else
8167 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8168 fi
8169
8170 if test -n "$ac_tool_prefix"; then
8171 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8172 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_prog_NMEDIT+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$NMEDIT"; then
8179 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 NMEDIT=$ac_cv_prog_NMEDIT
8199 if test -n "$NMEDIT"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8201 $as_echo "$NMEDIT" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207
8208 fi
8209 if test -z "$ac_cv_prog_NMEDIT"; then
8210 ac_ct_NMEDIT=$NMEDIT
8211 # Extract the first word of "nmedit", so it can be a program name with args.
8212 set dummy nmedit; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 if test -n "$ac_ct_NMEDIT"; then
8219 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232 done
8233 done
8234 IFS=$as_save_IFS
8235
8236 fi
8237 fi
8238 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8239 if test -n "$ac_ct_NMEDIT"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8241 $as_echo "$ac_ct_NMEDIT" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8246
8247 if test "x$ac_ct_NMEDIT" = x; then
8248 NMEDIT=":"
8249 else
8250 case $cross_compiling:$ac_tool_warned in
8251 yes:)
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8254 ac_tool_warned=yes ;;
8255 esac
8256 NMEDIT=$ac_ct_NMEDIT
8257 fi
8258 else
8259 NMEDIT="$ac_cv_prog_NMEDIT"
8260 fi
8261
8262 if test -n "$ac_tool_prefix"; then
8263 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8264 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if ${ac_cv_prog_LIPO+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$LIPO"; then
8271 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 LIPO=$ac_cv_prog_LIPO
8291 if test -n "$LIPO"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8293 $as_echo "$LIPO" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299
8300 fi
8301 if test -z "$ac_cv_prog_LIPO"; then
8302 ac_ct_LIPO=$LIPO
8303 # Extract the first word of "lipo", so it can be a program name with args.
8304 set dummy lipo; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 if test -n "$ac_ct_LIPO"; then
8311 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_ac_ct_LIPO="lipo"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328 fi
8329 fi
8330 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8331 if test -n "$ac_ct_LIPO"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8333 $as_echo "$ac_ct_LIPO" >&6; }
8334 else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338
8339 if test "x$ac_ct_LIPO" = x; then
8340 LIPO=":"
8341 else
8342 case $cross_compiling:$ac_tool_warned in
8343 yes:)
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8346 ac_tool_warned=yes ;;
8347 esac
8348 LIPO=$ac_ct_LIPO
8349 fi
8350 else
8351 LIPO="$ac_cv_prog_LIPO"
8352 fi
8353
8354 if test -n "$ac_tool_prefix"; then
8355 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8356 set dummy ${ac_tool_prefix}otool; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_prog_OTOOL+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$OTOOL"; then
8363 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376 done
8377 done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 OTOOL=$ac_cv_prog_OTOOL
8383 if test -n "$OTOOL"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8385 $as_echo "$OTOOL" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391
8392 fi
8393 if test -z "$ac_cv_prog_OTOOL"; then
8394 ac_ct_OTOOL=$OTOOL
8395 # Extract the first word of "otool", so it can be a program name with args.
8396 set dummy otool; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 if test -n "$ac_ct_OTOOL"; then
8403 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_ac_ct_OTOOL="otool"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8423 if test -n "$ac_ct_OTOOL"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8425 $as_echo "$ac_ct_OTOOL" >&6; }
8426 else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430
8431 if test "x$ac_ct_OTOOL" = x; then
8432 OTOOL=":"
8433 else
8434 case $cross_compiling:$ac_tool_warned in
8435 yes:)
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8438 ac_tool_warned=yes ;;
8439 esac
8440 OTOOL=$ac_ct_OTOOL
8441 fi
8442 else
8443 OTOOL="$ac_cv_prog_OTOOL"
8444 fi
8445
8446 if test -n "$ac_tool_prefix"; then
8447 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8448 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if ${ac_cv_prog_OTOOL64+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 if test -n "$OTOOL64"; then
8455 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8467 fi
8468 done
8469 done
8470 IFS=$as_save_IFS
8471
8472 fi
8473 fi
8474 OTOOL64=$ac_cv_prog_OTOOL64
8475 if test -n "$OTOOL64"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8477 $as_echo "$OTOOL64" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482
8483
8484 fi
8485 if test -z "$ac_cv_prog_OTOOL64"; then
8486 ac_ct_OTOOL64=$OTOOL64
8487 # Extract the first word of "otool64", so it can be a program name with args.
8488 set dummy otool64; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 if test -n "$ac_ct_OTOOL64"; then
8495 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8499 do
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_ac_ct_OTOOL64="otool64"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8507 fi
8508 done
8509 done
8510 IFS=$as_save_IFS
8511
8512 fi
8513 fi
8514 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8515 if test -n "$ac_ct_OTOOL64"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8517 $as_echo "$ac_ct_OTOOL64" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8521 fi
8522
8523 if test "x$ac_ct_OTOOL64" = x; then
8524 OTOOL64=":"
8525 else
8526 case $cross_compiling:$ac_tool_warned in
8527 yes:)
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8530 ac_tool_warned=yes ;;
8531 esac
8532 OTOOL64=$ac_ct_OTOOL64
8533 fi
8534 else
8535 OTOOL64="$ac_cv_prog_OTOOL64"
8536 fi
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8565 $as_echo_n "checking for -single_module linker flag... " >&6; }
8566 if ${lt_cv_apple_cc_single_mod+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 lt_cv_apple_cc_single_mod=no
8570 if test -z "${LT_MULTI_MODULE}"; then
8571 # By default we will add the -single_module flag. You can override
8572 # by either setting the environment variable LT_MULTI_MODULE
8573 # non-empty at configure time, or by adding -multi_module to the
8574 # link flags.
8575 rm -rf libconftest.dylib*
8576 echo "int foo(void){return 1;}" > conftest.c
8577 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8578 -dynamiclib -Wl,-single_module conftest.c" >&5
8579 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8580 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8581 _lt_result=$?
8582 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8583 lt_cv_apple_cc_single_mod=yes
8584 else
8585 cat conftest.err >&5
8586 fi
8587 rm -rf libconftest.dylib*
8588 rm -f conftest.*
8589 fi
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8592 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8594 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8595 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 lt_cv_ld_exported_symbols_list=no
8599 save_LDFLAGS=$LDFLAGS
8600 echo "_main" > conftest.sym
8601 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604
8605 int
8606 main ()
8607 {
8608
8609 ;
8610 return 0;
8611 }
8612 _ACEOF
8613 if ac_fn_c_try_link "$LINENO"; then :
8614 lt_cv_ld_exported_symbols_list=yes
8615 else
8616 lt_cv_ld_exported_symbols_list=no
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext \
8619 conftest$ac_exeext conftest.$ac_ext
8620 LDFLAGS="$save_LDFLAGS"
8621
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8624 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8626 $as_echo_n "checking for -force_load linker flag... " >&6; }
8627 if ${lt_cv_ld_force_load+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 lt_cv_ld_force_load=no
8631 cat > conftest.c << _LT_EOF
8632 int forced_loaded() { return 2;}
8633 _LT_EOF
8634 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8635 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8636 echo "$AR cru libconftest.a conftest.o" >&5
8637 $AR cru libconftest.a conftest.o 2>&5
8638 cat > conftest.c << _LT_EOF
8639 int main() { return 0;}
8640 _LT_EOF
8641 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8642 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8643 _lt_result=$?
8644 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8645 lt_cv_ld_force_load=yes
8646 else
8647 cat conftest.err >&5
8648 fi
8649 rm -f conftest.err libconftest.a conftest conftest.c
8650 rm -rf conftest.dSYM
8651
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8654 $as_echo "$lt_cv_ld_force_load" >&6; }
8655 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8656 # build without first building modern cctools / linker.
8657 case $host_cpu-$host_os in
8658 *-rhapsody* | *-darwin1.[012])
8659 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8660 *-darwin1.*)
8661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8662 *-darwin*)
8663 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8664 # deployment target is forced to an earlier version.
8665 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8666 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8667 ;;
8668 10.[012][,.]*)
8669 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8670 ;;
8671 *)
8672 ;;
8673 esac
8674 ;;
8675 esac
8676 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8677 _lt_dar_single_mod='$single_module'
8678 fi
8679 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8680 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8681 else
8682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8683 fi
8684 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8685 _lt_dsymutil='~$DSYMUTIL $lib || :'
8686 else
8687 _lt_dsymutil=
8688 fi
8689 ;;
8690 esac
8691
8692 for ac_header in dlfcn.h
8693 do :
8694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8695 "
8696 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8697 cat >>confdefs.h <<_ACEOF
8698 #define HAVE_DLFCN_H 1
8699 _ACEOF
8700
8701 fi
8702
8703 done
8704
8705
8706
8707
8708
8709 # Set options
8710
8711
8712
8713 enable_dlopen=no
8714
8715
8716 enable_win32_dll=no
8717
8718
8719 # Check whether --enable-shared was given.
8720 if test "${enable_shared+set}" = set; then :
8721 enableval=$enable_shared; p=${PACKAGE-default}
8722 case $enableval in
8723 yes) enable_shared=yes ;;
8724 no) enable_shared=no ;;
8725 *)
8726 enable_shared=no
8727 # Look at the argument we got. We use all the common list separators.
8728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8729 for pkg in $enableval; do
8730 IFS="$lt_save_ifs"
8731 if test "X$pkg" = "X$p"; then
8732 enable_shared=yes
8733 fi
8734 done
8735 IFS="$lt_save_ifs"
8736 ;;
8737 esac
8738 else
8739 enable_shared=yes
8740 fi
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 # Check whether --enable-static was given.
8751 if test "${enable_static+set}" = set; then :
8752 enableval=$enable_static; p=${PACKAGE-default}
8753 case $enableval in
8754 yes) enable_static=yes ;;
8755 no) enable_static=no ;;
8756 *)
8757 enable_static=no
8758 # Look at the argument we got. We use all the common list separators.
8759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8760 for pkg in $enableval; do
8761 IFS="$lt_save_ifs"
8762 if test "X$pkg" = "X$p"; then
8763 enable_static=yes
8764 fi
8765 done
8766 IFS="$lt_save_ifs"
8767 ;;
8768 esac
8769 else
8770 enable_static=yes
8771 fi
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782 # Check whether --with-pic was given.
8783 if test "${with_pic+set}" = set; then :
8784 withval=$with_pic; pic_mode="$withval"
8785 else
8786 pic_mode=default
8787 fi
8788
8789
8790 test -z "$pic_mode" && pic_mode=default
8791
8792
8793
8794
8795
8796
8797
8798 # Check whether --enable-fast-install was given.
8799 if test "${enable_fast_install+set}" = set; then :
8800 enableval=$enable_fast_install; p=${PACKAGE-default}
8801 case $enableval in
8802 yes) enable_fast_install=yes ;;
8803 no) enable_fast_install=no ;;
8804 *)
8805 enable_fast_install=no
8806 # Look at the argument we got. We use all the common list separators.
8807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8808 for pkg in $enableval; do
8809 IFS="$lt_save_ifs"
8810 if test "X$pkg" = "X$p"; then
8811 enable_fast_install=yes
8812 fi
8813 done
8814 IFS="$lt_save_ifs"
8815 ;;
8816 esac
8817 else
8818 enable_fast_install=yes
8819 fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831 # This can be used to rebuild libtool when needed
8832 LIBTOOL_DEPS="$ltmain"
8833
8834 # Always use our own libtool.
8835 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862 test -z "$LN_S" && LN_S="ln -s"
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877 if test -n "${ZSH_VERSION+set}" ; then
8878 setopt NO_GLOB_SUBST
8879 fi
8880
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8882 $as_echo_n "checking for objdir... " >&6; }
8883 if ${lt_cv_objdir+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 rm -f .libs 2>/dev/null
8887 mkdir .libs 2>/dev/null
8888 if test -d .libs; then
8889 lt_cv_objdir=.libs
8890 else
8891 # MS-DOS does not allow filenames that begin with a dot.
8892 lt_cv_objdir=_libs
8893 fi
8894 rmdir .libs 2>/dev/null
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8897 $as_echo "$lt_cv_objdir" >&6; }
8898 objdir=$lt_cv_objdir
8899
8900
8901
8902
8903
8904 cat >>confdefs.h <<_ACEOF
8905 #define LT_OBJDIR "$lt_cv_objdir/"
8906 _ACEOF
8907
8908
8909
8910
8911 case $host_os in
8912 aix3*)
8913 # AIX sometimes has problems with the GCC collect2 program. For some
8914 # reason, if we set the COLLECT_NAMES environment variable, the problems
8915 # vanish in a puff of smoke.
8916 if test "X${COLLECT_NAMES+set}" != Xset; then
8917 COLLECT_NAMES=
8918 export COLLECT_NAMES
8919 fi
8920 ;;
8921 esac
8922
8923 # Global variables:
8924 ofile=libtool
8925 can_build_shared=yes
8926
8927 # All known linkers require a `.a' archive for static linking (except MSVC,
8928 # which needs '.lib').
8929 libext=a
8930
8931 with_gnu_ld="$lt_cv_prog_gnu_ld"
8932
8933 old_CC="$CC"
8934 old_CFLAGS="$CFLAGS"
8935
8936 # Set sane defaults for various variables
8937 test -z "$CC" && CC=cc
8938 test -z "$LTCC" && LTCC=$CC
8939 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8940 test -z "$LD" && LD=ld
8941 test -z "$ac_objext" && ac_objext=o
8942
8943 for cc_temp in $compiler""; do
8944 case $cc_temp in
8945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8947 \-*) ;;
8948 *) break;;
8949 esac
8950 done
8951 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8952
8953
8954 # Only perform the check for file, if the check method requires it
8955 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8956 case $deplibs_check_method in
8957 file_magic*)
8958 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8960 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8961 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 case $MAGIC_CMD in
8965 [\\/*] | ?:[\\/]*)
8966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8967 ;;
8968 *)
8969 lt_save_MAGIC_CMD="$MAGIC_CMD"
8970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8972 for ac_dir in $ac_dummy; do
8973 IFS="$lt_save_ifs"
8974 test -z "$ac_dir" && ac_dir=.
8975 if test -f $ac_dir/${ac_tool_prefix}file; then
8976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8977 if test -n "$file_magic_test_file"; then
8978 case $deplibs_check_method in
8979 "file_magic "*)
8980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8983 $EGREP "$file_magic_regex" > /dev/null; then
8984 :
8985 else
8986 cat <<_LT_EOF 1>&2
8987
8988 *** Warning: the command libtool uses to detect shared libraries,
8989 *** $file_magic_cmd, produces output that libtool cannot recognize.
8990 *** The result is that libtool may fail to recognize shared libraries
8991 *** as such. This will affect the creation of libtool libraries that
8992 *** depend on shared libraries, but programs linked with such libtool
8993 *** libraries will work regardless of this problem. Nevertheless, you
8994 *** may want to report the problem to your system manager and/or to
8995 *** bug-libtool@gnu.org
8996
8997 _LT_EOF
8998 fi ;;
8999 esac
9000 fi
9001 break
9002 fi
9003 done
9004 IFS="$lt_save_ifs"
9005 MAGIC_CMD="$lt_save_MAGIC_CMD"
9006 ;;
9007 esac
9008 fi
9009
9010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9011 if test -n "$MAGIC_CMD"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9013 $as_echo "$MAGIC_CMD" >&6; }
9014 else
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9017 fi
9018
9019
9020
9021
9022
9023 if test -z "$lt_cv_path_MAGIC_CMD"; then
9024 if test -n "$ac_tool_prefix"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9026 $as_echo_n "checking for file... " >&6; }
9027 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 case $MAGIC_CMD in
9031 [\\/*] | ?:[\\/]*)
9032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9033 ;;
9034 *)
9035 lt_save_MAGIC_CMD="$MAGIC_CMD"
9036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9037 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9038 for ac_dir in $ac_dummy; do
9039 IFS="$lt_save_ifs"
9040 test -z "$ac_dir" && ac_dir=.
9041 if test -f $ac_dir/file; then
9042 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9043 if test -n "$file_magic_test_file"; then
9044 case $deplibs_check_method in
9045 "file_magic "*)
9046 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9049 $EGREP "$file_magic_regex" > /dev/null; then
9050 :
9051 else
9052 cat <<_LT_EOF 1>&2
9053
9054 *** Warning: the command libtool uses to detect shared libraries,
9055 *** $file_magic_cmd, produces output that libtool cannot recognize.
9056 *** The result is that libtool may fail to recognize shared libraries
9057 *** as such. This will affect the creation of libtool libraries that
9058 *** depend on shared libraries, but programs linked with such libtool
9059 *** libraries will work regardless of this problem. Nevertheless, you
9060 *** may want to report the problem to your system manager and/or to
9061 *** bug-libtool@gnu.org
9062
9063 _LT_EOF
9064 fi ;;
9065 esac
9066 fi
9067 break
9068 fi
9069 done
9070 IFS="$lt_save_ifs"
9071 MAGIC_CMD="$lt_save_MAGIC_CMD"
9072 ;;
9073 esac
9074 fi
9075
9076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9077 if test -n "$MAGIC_CMD"; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9079 $as_echo "$MAGIC_CMD" >&6; }
9080 else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }
9083 fi
9084
9085
9086 else
9087 MAGIC_CMD=:
9088 fi
9089 fi
9090
9091 fi
9092 ;;
9093 esac
9094
9095 # Use C for the default configuration in the libtool script
9096
9097 lt_save_CC="$CC"
9098 ac_ext=c
9099 ac_cpp='$CPP $CPPFLAGS'
9100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9103
9104
9105 # Source file extension for C test sources.
9106 ac_ext=c
9107
9108 # Object file extension for compiled C test sources.
9109 objext=o
9110 objext=$objext
9111
9112 # Code to be used in simple compile tests
9113 lt_simple_compile_test_code="int some_variable = 0;"
9114
9115 # Code to be used in simple link tests
9116 lt_simple_link_test_code='int main(){return(0);}'
9117
9118
9119
9120
9121
9122
9123
9124 # If no C compiler was specified, use CC.
9125 LTCC=${LTCC-"$CC"}
9126
9127 # If no C compiler flags were specified, use CFLAGS.
9128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9129
9130 # Allow CC to be a program name with arguments.
9131 compiler=$CC
9132
9133 # Save the default compiler, since it gets overwritten when the other
9134 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9135 compiler_DEFAULT=$CC
9136
9137 # save warnings/boilerplate of simple test code
9138 ac_outfile=conftest.$ac_objext
9139 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9140 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9141 _lt_compiler_boilerplate=`cat conftest.err`
9142 $RM conftest*
9143
9144 ac_outfile=conftest.$ac_objext
9145 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9146 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9147 _lt_linker_boilerplate=`cat conftest.err`
9148 $RM -r conftest*
9149
9150
9151 ## CAVEAT EMPTOR:
9152 ## There is no encapsulation within the following macros, do not change
9153 ## the running order or otherwise move them around unless you know exactly
9154 ## what you are doing...
9155 if test -n "$compiler"; then
9156
9157 lt_prog_compiler_no_builtin_flag=
9158
9159 if test "$GCC" = yes; then
9160 case $cc_basename in
9161 nvcc*)
9162 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9163 *)
9164 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9165 esac
9166
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9168 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9169 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 lt_cv_prog_compiler_rtti_exceptions=no
9173 ac_outfile=conftest.$ac_objext
9174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9175 lt_compiler_flag="-fno-rtti -fno-exceptions"
9176 # Insert the option either (1) after the last *FLAGS variable, or
9177 # (2) before a word containing "conftest.", or (3) at the end.
9178 # Note that $ac_compile itself does not contain backslashes and begins
9179 # with a dollar sign (not a hyphen), so the echo should work correctly.
9180 # The option is referenced via a variable to avoid confusing sed.
9181 lt_compile=`echo "$ac_compile" | $SED \
9182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9184 -e 's:$: $lt_compiler_flag:'`
9185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9186 (eval "$lt_compile" 2>conftest.err)
9187 ac_status=$?
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 if (exit $ac_status) && test -s "$ac_outfile"; then
9191 # The compiler can only warn and ignore the option if not recognized
9192 # So say no if there are warnings other than the usual output.
9193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9196 lt_cv_prog_compiler_rtti_exceptions=yes
9197 fi
9198 fi
9199 $RM conftest*
9200
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9203 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9204
9205 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9206 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9207 else
9208 :
9209 fi
9210
9211 fi
9212
9213
9214
9215
9216
9217
9218 lt_prog_compiler_wl=
9219 lt_prog_compiler_pic=
9220 lt_prog_compiler_static=
9221
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9223 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9224
9225 if test "$GCC" = yes; then
9226 lt_prog_compiler_wl='-Wl,'
9227 lt_prog_compiler_static='-static'
9228
9229 case $host_os in
9230 aix*)
9231 # All AIX code is PIC.
9232 if test "$host_cpu" = ia64; then
9233 # AIX 5 now supports IA64 processor
9234 lt_prog_compiler_static='-Bstatic'
9235 fi
9236 lt_prog_compiler_pic='-fPIC'
9237 ;;
9238
9239 amigaos*)
9240 case $host_cpu in
9241 powerpc)
9242 # see comment about AmigaOS4 .so support
9243 lt_prog_compiler_pic='-fPIC'
9244 ;;
9245 m68k)
9246 # FIXME: we need at least 68020 code to build shared libraries, but
9247 # adding the `-m68020' flag to GCC prevents building anything better,
9248 # like `-m68040'.
9249 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9250 ;;
9251 esac
9252 ;;
9253
9254 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9255 # PIC is the default for these OSes.
9256 ;;
9257
9258 mingw* | cygwin* | pw32* | os2* | cegcc*)
9259 # This hack is so that the source file can tell whether it is being
9260 # built for inclusion in a dll (and should export symbols for example).
9261 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9262 # (--disable-auto-import) libraries
9263 lt_prog_compiler_pic='-DDLL_EXPORT'
9264 ;;
9265
9266 darwin* | rhapsody*)
9267 # PIC is the default on this platform
9268 # Common symbols not allowed in MH_DYLIB files
9269 lt_prog_compiler_pic='-fno-common'
9270 ;;
9271
9272 haiku*)
9273 # PIC is the default for Haiku.
9274 # The "-static" flag exists, but is broken.
9275 lt_prog_compiler_static=
9276 ;;
9277
9278 hpux*)
9279 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9280 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9281 # sets the default TLS model and affects inlining.
9282 case $host_cpu in
9283 hppa*64*)
9284 # +Z the default
9285 ;;
9286 *)
9287 lt_prog_compiler_pic='-fPIC'
9288 ;;
9289 esac
9290 ;;
9291
9292 interix[3-9]*)
9293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9294 # Instead, we relocate shared libraries at runtime.
9295 ;;
9296
9297 msdosdjgpp*)
9298 # Just because we use GCC doesn't mean we suddenly get shared libraries
9299 # on systems that don't support them.
9300 lt_prog_compiler_can_build_shared=no
9301 enable_shared=no
9302 ;;
9303
9304 *nto* | *qnx*)
9305 # QNX uses GNU C++, but need to define -shared option too, otherwise
9306 # it will coredump.
9307 lt_prog_compiler_pic='-fPIC -shared'
9308 ;;
9309
9310 sysv4*MP*)
9311 if test -d /usr/nec; then
9312 lt_prog_compiler_pic=-Kconform_pic
9313 fi
9314 ;;
9315
9316 *)
9317 lt_prog_compiler_pic='-fPIC'
9318 ;;
9319 esac
9320
9321 case $cc_basename in
9322 nvcc*) # Cuda Compiler Driver 2.2
9323 lt_prog_compiler_wl='-Xlinker '
9324 lt_prog_compiler_pic='-Xcompiler -fPIC'
9325 ;;
9326 esac
9327 else
9328 # PORTME Check for flag to pass linker flags through the system compiler.
9329 case $host_os in
9330 aix*)
9331 lt_prog_compiler_wl='-Wl,'
9332 if test "$host_cpu" = ia64; then
9333 # AIX 5 now supports IA64 processor
9334 lt_prog_compiler_static='-Bstatic'
9335 else
9336 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9337 fi
9338 ;;
9339
9340 mingw* | cygwin* | pw32* | os2* | cegcc*)
9341 # This hack is so that the source file can tell whether it is being
9342 # built for inclusion in a dll (and should export symbols for example).
9343 lt_prog_compiler_pic='-DDLL_EXPORT'
9344 ;;
9345
9346 hpux9* | hpux10* | hpux11*)
9347 lt_prog_compiler_wl='-Wl,'
9348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9349 # not for PA HP-UX.
9350 case $host_cpu in
9351 hppa*64*|ia64*)
9352 # +Z the default
9353 ;;
9354 *)
9355 lt_prog_compiler_pic='+Z'
9356 ;;
9357 esac
9358 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9359 lt_prog_compiler_static='${wl}-a ${wl}archive'
9360 ;;
9361
9362 irix5* | irix6* | nonstopux*)
9363 lt_prog_compiler_wl='-Wl,'
9364 # PIC (with -KPIC) is the default.
9365 lt_prog_compiler_static='-non_shared'
9366 ;;
9367
9368 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9369 case $cc_basename in
9370 # old Intel for x86_64 which still supported -KPIC.
9371 ecc*)
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_pic='-KPIC'
9374 lt_prog_compiler_static='-static'
9375 ;;
9376 # icc used to be incompatible with GCC.
9377 # ICC 10 doesn't accept -KPIC any more.
9378 icc* | ifort*)
9379 lt_prog_compiler_wl='-Wl,'
9380 lt_prog_compiler_pic='-fPIC'
9381 lt_prog_compiler_static='-static'
9382 ;;
9383 # Lahey Fortran 8.1.
9384 lf95*)
9385 lt_prog_compiler_wl='-Wl,'
9386 lt_prog_compiler_pic='--shared'
9387 lt_prog_compiler_static='--static'
9388 ;;
9389 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9390 # Portland Group compilers (*not* the Pentium gcc compiler,
9391 # which looks to be a dead project)
9392 lt_prog_compiler_wl='-Wl,'
9393 lt_prog_compiler_pic='-fpic'
9394 lt_prog_compiler_static='-Bstatic'
9395 ;;
9396 ccc*)
9397 lt_prog_compiler_wl='-Wl,'
9398 # All Alpha code is PIC.
9399 lt_prog_compiler_static='-non_shared'
9400 ;;
9401 xl* | bgxl* | bgf* | mpixl*)
9402 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9403 lt_prog_compiler_wl='-Wl,'
9404 lt_prog_compiler_pic='-qpic'
9405 lt_prog_compiler_static='-qstaticlink'
9406 ;;
9407 *)
9408 case `$CC -V 2>&1 | sed 5q` in
9409 *Sun\ F* | *Sun*Fortran*)
9410 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9411 lt_prog_compiler_pic='-KPIC'
9412 lt_prog_compiler_static='-Bstatic'
9413 lt_prog_compiler_wl=''
9414 ;;
9415 *Sun\ C*)
9416 # Sun C 5.9
9417 lt_prog_compiler_pic='-KPIC'
9418 lt_prog_compiler_static='-Bstatic'
9419 lt_prog_compiler_wl='-Wl,'
9420 ;;
9421 esac
9422 ;;
9423 esac
9424 ;;
9425
9426 newsos6)
9427 lt_prog_compiler_pic='-KPIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 ;;
9430
9431 *nto* | *qnx*)
9432 # QNX uses GNU C++, but need to define -shared option too, otherwise
9433 # it will coredump.
9434 lt_prog_compiler_pic='-fPIC -shared'
9435 ;;
9436
9437 osf3* | osf4* | osf5*)
9438 lt_prog_compiler_wl='-Wl,'
9439 # All OSF/1 code is PIC.
9440 lt_prog_compiler_static='-non_shared'
9441 ;;
9442
9443 rdos*)
9444 lt_prog_compiler_static='-non_shared'
9445 ;;
9446
9447 solaris*)
9448 lt_prog_compiler_pic='-KPIC'
9449 lt_prog_compiler_static='-Bstatic'
9450 case $cc_basename in
9451 f77* | f90* | f95*)
9452 lt_prog_compiler_wl='-Qoption ld ';;
9453 *)
9454 lt_prog_compiler_wl='-Wl,';;
9455 esac
9456 ;;
9457
9458 sunos4*)
9459 lt_prog_compiler_wl='-Qoption ld '
9460 lt_prog_compiler_pic='-PIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 ;;
9463
9464 sysv4 | sysv4.2uw2* | sysv4.3*)
9465 lt_prog_compiler_wl='-Wl,'
9466 lt_prog_compiler_pic='-KPIC'
9467 lt_prog_compiler_static='-Bstatic'
9468 ;;
9469
9470 sysv4*MP*)
9471 if test -d /usr/nec ;then
9472 lt_prog_compiler_pic='-Kconform_pic'
9473 lt_prog_compiler_static='-Bstatic'
9474 fi
9475 ;;
9476
9477 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_pic='-KPIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 ;;
9482
9483 unicos*)
9484 lt_prog_compiler_wl='-Wl,'
9485 lt_prog_compiler_can_build_shared=no
9486 ;;
9487
9488 uts4*)
9489 lt_prog_compiler_pic='-pic'
9490 lt_prog_compiler_static='-Bstatic'
9491 ;;
9492
9493 *)
9494 lt_prog_compiler_can_build_shared=no
9495 ;;
9496 esac
9497 fi
9498
9499 case $host_os in
9500 # For platforms which do not support PIC, -DPIC is meaningless:
9501 *djgpp*)
9502 lt_prog_compiler_pic=
9503 ;;
9504 *)
9505 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9506 ;;
9507 esac
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9509 $as_echo "$lt_prog_compiler_pic" >&6; }
9510
9511
9512
9513
9514
9515
9516 #
9517 # Check to make sure the PIC flag actually works.
9518 #
9519 if test -n "$lt_prog_compiler_pic"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9521 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9522 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 lt_cv_prog_compiler_pic_works=no
9526 ac_outfile=conftest.$ac_objext
9527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9528 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9529 # Insert the option either (1) after the last *FLAGS variable, or
9530 # (2) before a word containing "conftest.", or (3) at the end.
9531 # Note that $ac_compile itself does not contain backslashes and begins
9532 # with a dollar sign (not a hyphen), so the echo should work correctly.
9533 # The option is referenced via a variable to avoid confusing sed.
9534 lt_compile=`echo "$ac_compile" | $SED \
9535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9537 -e 's:$: $lt_compiler_flag:'`
9538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9539 (eval "$lt_compile" 2>conftest.err)
9540 ac_status=$?
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 if (exit $ac_status) && test -s "$ac_outfile"; then
9544 # The compiler can only warn and ignore the option if not recognized
9545 # So say no if there are warnings other than the usual output.
9546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9549 lt_cv_prog_compiler_pic_works=yes
9550 fi
9551 fi
9552 $RM conftest*
9553
9554 fi
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9556 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9557
9558 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9559 case $lt_prog_compiler_pic in
9560 "" | " "*) ;;
9561 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9562 esac
9563 else
9564 lt_prog_compiler_pic=
9565 lt_prog_compiler_can_build_shared=no
9566 fi
9567
9568 fi
9569
9570
9571
9572
9573
9574
9575 #
9576 # Check to make sure the static flag actually works.
9577 #
9578 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9580 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9581 if ${lt_cv_prog_compiler_static_works+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 lt_cv_prog_compiler_static_works=no
9585 save_LDFLAGS="$LDFLAGS"
9586 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9587 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9588 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9589 # The linker can only warn and ignore the option if not recognized
9590 # So say no if there are warnings
9591 if test -s conftest.err; then
9592 # Append any errors to the config.log.
9593 cat conftest.err 1>&5
9594 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9596 if diff conftest.exp conftest.er2 >/dev/null; then
9597 lt_cv_prog_compiler_static_works=yes
9598 fi
9599 else
9600 lt_cv_prog_compiler_static_works=yes
9601 fi
9602 fi
9603 $RM -r conftest*
9604 LDFLAGS="$save_LDFLAGS"
9605
9606 fi
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9608 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9609
9610 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9611 :
9612 else
9613 lt_prog_compiler_static=
9614 fi
9615
9616
9617
9618
9619
9620
9621
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9624 if ${lt_cv_prog_compiler_c_o+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 lt_cv_prog_compiler_c_o=no
9628 $RM -r conftest 2>/dev/null
9629 mkdir conftest
9630 cd conftest
9631 mkdir out
9632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9633
9634 lt_compiler_flag="-o out/conftest2.$ac_objext"
9635 # Insert the option either (1) after the last *FLAGS variable, or
9636 # (2) before a word containing "conftest.", or (3) at the end.
9637 # Note that $ac_compile itself does not contain backslashes and begins
9638 # with a dollar sign (not a hyphen), so the echo should work correctly.
9639 lt_compile=`echo "$ac_compile" | $SED \
9640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9642 -e 's:$: $lt_compiler_flag:'`
9643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9644 (eval "$lt_compile" 2>out/conftest.err)
9645 ac_status=$?
9646 cat out/conftest.err >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9649 then
9650 # The compiler can only warn and ignore the option if not recognized
9651 # So say no if there are warnings
9652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9655 lt_cv_prog_compiler_c_o=yes
9656 fi
9657 fi
9658 chmod u+w . 2>&5
9659 $RM conftest*
9660 # SGI C++ compiler will create directory out/ii_files/ for
9661 # template instantiation
9662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9663 $RM out/* && rmdir out
9664 cd ..
9665 $RM -r conftest
9666 $RM conftest*
9667
9668 fi
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9670 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9671
9672
9673
9674
9675
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9679 if ${lt_cv_prog_compiler_c_o+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 lt_cv_prog_compiler_c_o=no
9683 $RM -r conftest 2>/dev/null
9684 mkdir conftest
9685 cd conftest
9686 mkdir out
9687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9688
9689 lt_compiler_flag="-o out/conftest2.$ac_objext"
9690 # Insert the option either (1) after the last *FLAGS variable, or
9691 # (2) before a word containing "conftest.", or (3) at the end.
9692 # Note that $ac_compile itself does not contain backslashes and begins
9693 # with a dollar sign (not a hyphen), so the echo should work correctly.
9694 lt_compile=`echo "$ac_compile" | $SED \
9695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9697 -e 's:$: $lt_compiler_flag:'`
9698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9699 (eval "$lt_compile" 2>out/conftest.err)
9700 ac_status=$?
9701 cat out/conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9704 then
9705 # The compiler can only warn and ignore the option if not recognized
9706 # So say no if there are warnings
9707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9710 lt_cv_prog_compiler_c_o=yes
9711 fi
9712 fi
9713 chmod u+w . 2>&5
9714 $RM conftest*
9715 # SGI C++ compiler will create directory out/ii_files/ for
9716 # template instantiation
9717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9718 $RM out/* && rmdir out
9719 cd ..
9720 $RM -r conftest
9721 $RM conftest*
9722
9723 fi
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9725 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9726
9727
9728
9729
9730 hard_links="nottested"
9731 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9732 # do not overwrite the value of need_locks provided by the user
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9734 $as_echo_n "checking if we can lock with hard links... " >&6; }
9735 hard_links=yes
9736 $RM conftest*
9737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9738 touch conftest.a
9739 ln conftest.a conftest.b 2>&5 || hard_links=no
9740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9742 $as_echo "$hard_links" >&6; }
9743 if test "$hard_links" = no; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9745 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9746 need_locks=warn
9747 fi
9748 else
9749 need_locks=no
9750 fi
9751
9752
9753
9754
9755
9756
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9758 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9759
9760 runpath_var=
9761 allow_undefined_flag=
9762 always_export_symbols=no
9763 archive_cmds=
9764 archive_expsym_cmds=
9765 compiler_needs_object=no
9766 enable_shared_with_static_runtimes=no
9767 export_dynamic_flag_spec=
9768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9769 hardcode_automatic=no
9770 hardcode_direct=no
9771 hardcode_direct_absolute=no
9772 hardcode_libdir_flag_spec=
9773 hardcode_libdir_flag_spec_ld=
9774 hardcode_libdir_separator=
9775 hardcode_minus_L=no
9776 hardcode_shlibpath_var=unsupported
9777 inherit_rpath=no
9778 link_all_deplibs=unknown
9779 module_cmds=
9780 module_expsym_cmds=
9781 old_archive_from_new_cmds=
9782 old_archive_from_expsyms_cmds=
9783 thread_safe_flag_spec=
9784 whole_archive_flag_spec=
9785 # include_expsyms should be a list of space-separated symbols to be *always*
9786 # included in the symbol list
9787 include_expsyms=
9788 # exclude_expsyms can be an extended regexp of symbols to exclude
9789 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9790 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9791 # as well as any symbol that contains `d'.
9792 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9793 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9794 # platforms (ab)use it in PIC code, but their linkers get confused if
9795 # the symbol is explicitly referenced. Since portable code cannot
9796 # rely on this symbol name, it's probably fine to never include it in
9797 # preloaded symbol tables.
9798 # Exclude shared library initialization/finalization symbols.
9799 extract_expsyms_cmds=
9800
9801 case $host_os in
9802 cygwin* | mingw* | pw32* | cegcc*)
9803 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9804 # When not using gcc, we currently assume that we are using
9805 # Microsoft Visual C++.
9806 if test "$GCC" != yes; then
9807 with_gnu_ld=no
9808 fi
9809 ;;
9810 interix*)
9811 # we just hope/assume this is gcc and not c89 (= MSVC++)
9812 with_gnu_ld=yes
9813 ;;
9814 openbsd*)
9815 with_gnu_ld=no
9816 ;;
9817 esac
9818
9819 ld_shlibs=yes
9820
9821 # On some targets, GNU ld is compatible enough with the native linker
9822 # that we're better off using the native interface for both.
9823 lt_use_gnu_ld_interface=no
9824 if test "$with_gnu_ld" = yes; then
9825 case $host_os in
9826 aix*)
9827 # The AIX port of GNU ld has always aspired to compatibility
9828 # with the native linker. However, as the warning in the GNU ld
9829 # block says, versions before 2.19.5* couldn't really create working
9830 # shared libraries, regardless of the interface used.
9831 case `$LD -v 2>&1` in
9832 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9833 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9834 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9835 *)
9836 lt_use_gnu_ld_interface=yes
9837 ;;
9838 esac
9839 ;;
9840 *)
9841 lt_use_gnu_ld_interface=yes
9842 ;;
9843 esac
9844 fi
9845
9846 if test "$lt_use_gnu_ld_interface" = yes; then
9847 # If archive_cmds runs LD, not CC, wlarc should be empty
9848 wlarc='${wl}'
9849
9850 # Set some defaults for GNU ld with shared library support. These
9851 # are reset later if shared libraries are not supported. Putting them
9852 # here allows them to be overridden if necessary.
9853 runpath_var=LD_RUN_PATH
9854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9855 export_dynamic_flag_spec='${wl}--export-dynamic'
9856 # ancient GNU ld didn't support --whole-archive et. al.
9857 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9858 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9859 else
9860 whole_archive_flag_spec=
9861 fi
9862 supports_anon_versioning=no
9863 case `$LD -v 2>&1` in
9864 *GNU\ gold*) supports_anon_versioning=yes ;;
9865 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9866 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9867 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9868 *\ 2.11.*) ;; # other 2.11 versions
9869 *) supports_anon_versioning=yes ;;
9870 esac
9871
9872 # See if GNU ld supports shared libraries.
9873 case $host_os in
9874 aix[3-9]*)
9875 # On AIX/PPC, the GNU linker is very broken
9876 if test "$host_cpu" != ia64; then
9877 ld_shlibs=no
9878 cat <<_LT_EOF 1>&2
9879
9880 *** Warning: the GNU linker, at least up to release 2.19, is reported
9881 *** to be unable to reliably create shared libraries on AIX.
9882 *** Therefore, libtool is disabling shared libraries support. If you
9883 *** really care for shared libraries, you may want to install binutils
9884 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9885 *** You will then need to restart the configuration process.
9886
9887 _LT_EOF
9888 fi
9889 ;;
9890
9891 amigaos*)
9892 case $host_cpu in
9893 powerpc)
9894 # see comment about AmigaOS4 .so support
9895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9896 archive_expsym_cmds=''
9897 ;;
9898 m68k)
9899 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)'
9900 hardcode_libdir_flag_spec='-L$libdir'
9901 hardcode_minus_L=yes
9902 ;;
9903 esac
9904 ;;
9905
9906 beos*)
9907 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9908 allow_undefined_flag=unsupported
9909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9910 # support --undefined. This deserves some investigation. FIXME
9911 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9912 else
9913 ld_shlibs=no
9914 fi
9915 ;;
9916
9917 cygwin* | mingw* | pw32* | cegcc*)
9918 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9919 # as there is no search path for DLLs.
9920 hardcode_libdir_flag_spec='-L$libdir'
9921 export_dynamic_flag_spec='${wl}--export-all-symbols'
9922 allow_undefined_flag=unsupported
9923 always_export_symbols=no
9924 enable_shared_with_static_runtimes=yes
9925 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9926
9927 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9929 # If the export-symbols file already is a .def file (1st line
9930 # is EXPORTS), use it as is; otherwise, prepend...
9931 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9932 cp $export_symbols $output_objdir/$soname.def;
9933 else
9934 echo EXPORTS > $output_objdir/$soname.def;
9935 cat $export_symbols >> $output_objdir/$soname.def;
9936 fi~
9937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9938 else
9939 ld_shlibs=no
9940 fi
9941 ;;
9942
9943 haiku*)
9944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9945 link_all_deplibs=yes
9946 ;;
9947
9948 interix[3-9]*)
9949 hardcode_direct=no
9950 hardcode_shlibpath_var=no
9951 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9952 export_dynamic_flag_spec='${wl}-E'
9953 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9954 # Instead, shared libraries are loaded at an image base (0x10000000 by
9955 # default) and relocated if they conflict, which is a slow very memory
9956 # consuming and fragmenting process. To avoid this, we pick a random,
9957 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9958 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9960 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'
9961 ;;
9962
9963 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9964 tmp_diet=no
9965 if test "$host_os" = linux-dietlibc; then
9966 case $cc_basename in
9967 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9968 esac
9969 fi
9970 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9971 && test "$tmp_diet" = no
9972 then
9973 tmp_addflag=' $pic_flag'
9974 tmp_sharedflag='-shared'
9975 case $cc_basename,$host_cpu in
9976 pgcc*) # Portland Group C compiler
9977 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'
9978 tmp_addflag=' $pic_flag'
9979 ;;
9980 pgf77* | pgf90* | pgf95* | pgfortran*)
9981 # Portland Group f77 and f90 compilers
9982 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'
9983 tmp_addflag=' $pic_flag -Mnomain' ;;
9984 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9985 tmp_addflag=' -i_dynamic' ;;
9986 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9987 tmp_addflag=' -i_dynamic -nofor_main' ;;
9988 ifc* | ifort*) # Intel Fortran compiler
9989 tmp_addflag=' -nofor_main' ;;
9990 lf95*) # Lahey Fortran 8.1
9991 whole_archive_flag_spec=
9992 tmp_sharedflag='--shared' ;;
9993 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9994 tmp_sharedflag='-qmkshrobj'
9995 tmp_addflag= ;;
9996 nvcc*) # Cuda Compiler Driver 2.2
9997 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'
9998 compiler_needs_object=yes
9999 ;;
10000 esac
10001 case `$CC -V 2>&1 | sed 5q` in
10002 *Sun\ C*) # Sun C 5.9
10003 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'
10004 compiler_needs_object=yes
10005 tmp_sharedflag='-G' ;;
10006 *Sun\ F*) # Sun Fortran 8.3
10007 tmp_sharedflag='-G' ;;
10008 esac
10009 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010
10011 if test "x$supports_anon_versioning" = xyes; then
10012 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10014 echo "local: *; };" >> $output_objdir/$libname.ver~
10015 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10016 fi
10017
10018 case $cc_basename in
10019 xlf* | bgf* | bgxlf* | mpixlf*)
10020 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10021 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10022 hardcode_libdir_flag_spec=
10023 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10024 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10025 if test "x$supports_anon_versioning" = xyes; then
10026 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10028 echo "local: *; };" >> $output_objdir/$libname.ver~
10029 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10030 fi
10031 ;;
10032 esac
10033 else
10034 ld_shlibs=no
10035 fi
10036 ;;
10037
10038 netbsd*)
10039 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10040 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10041 wlarc=
10042 else
10043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10045 fi
10046 ;;
10047
10048 solaris*)
10049 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10050 ld_shlibs=no
10051 cat <<_LT_EOF 1>&2
10052
10053 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10054 *** create shared libraries on Solaris systems. Therefore, libtool
10055 *** is disabling shared libraries support. We urge you to upgrade GNU
10056 *** binutils to release 2.9.1 or newer. Another option is to modify
10057 *** your PATH or compiler configuration so that the native linker is
10058 *** used, and then restart.
10059
10060 _LT_EOF
10061 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10064 else
10065 ld_shlibs=no
10066 fi
10067 ;;
10068
10069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10070 case `$LD -v 2>&1` in
10071 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10072 ld_shlibs=no
10073 cat <<_LT_EOF 1>&2
10074
10075 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10076 *** reliably create shared libraries on SCO systems. Therefore, libtool
10077 *** is disabling shared libraries support. We urge you to upgrade GNU
10078 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10079 *** your PATH or compiler configuration so that the native linker is
10080 *** used, and then restart.
10081
10082 _LT_EOF
10083 ;;
10084 *)
10085 # For security reasons, it is highly recommended that you always
10086 # use absolute paths for naming shared libraries, and exclude the
10087 # DT_RUNPATH tag from executables and libraries. But doing so
10088 # requires that you compile everything twice, which is a pain.
10089 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10093 else
10094 ld_shlibs=no
10095 fi
10096 ;;
10097 esac
10098 ;;
10099
10100 sunos4*)
10101 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10102 wlarc=
10103 hardcode_direct=yes
10104 hardcode_shlibpath_var=no
10105 ;;
10106
10107 *)
10108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10111 else
10112 ld_shlibs=no
10113 fi
10114 ;;
10115 esac
10116
10117 if test "$ld_shlibs" = no; then
10118 runpath_var=
10119 hardcode_libdir_flag_spec=
10120 export_dynamic_flag_spec=
10121 whole_archive_flag_spec=
10122 fi
10123 else
10124 # PORTME fill in a description of your system's linker (not GNU ld)
10125 case $host_os in
10126 aix3*)
10127 allow_undefined_flag=unsupported
10128 always_export_symbols=yes
10129 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'
10130 # Note: this linker hardcodes the directories in LIBPATH if there
10131 # are no directories specified by -L.
10132 hardcode_minus_L=yes
10133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10134 # Neither direct hardcoding nor static linking is supported with a
10135 # broken collect2.
10136 hardcode_direct=unsupported
10137 fi
10138 ;;
10139
10140 aix[4-9]*)
10141 if test "$host_cpu" = ia64; then
10142 # On IA64, the linker does run time linking by default, so we don't
10143 # have to do anything special.
10144 aix_use_runtimelinking=no
10145 exp_sym_flag='-Bexport'
10146 no_entry_flag=""
10147 else
10148 # If we're using GNU nm, then we don't want the "-C" option.
10149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10150 # Also, AIX nm treats weak defined symbols like other global
10151 # defined symbols, whereas GNU nm marks them as "W".
10152 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10153 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'
10154 else
10155 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'
10156 fi
10157 aix_use_runtimelinking=no
10158
10159 # Test if we are trying to use run time linking or normal
10160 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10161 # need to do runtime linking.
10162 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10163 for ld_flag in $LDFLAGS; do
10164 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10165 aix_use_runtimelinking=yes
10166 break
10167 fi
10168 done
10169 ;;
10170 esac
10171
10172 exp_sym_flag='-bexport'
10173 no_entry_flag='-bnoentry'
10174 fi
10175
10176 # When large executables or shared objects are built, AIX ld can
10177 # have problems creating the table of contents. If linking a library
10178 # or program results in "error TOC overflow" add -mminimal-toc to
10179 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10180 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10181
10182 archive_cmds=''
10183 hardcode_direct=yes
10184 hardcode_direct_absolute=yes
10185 hardcode_libdir_separator=':'
10186 link_all_deplibs=yes
10187 file_list_spec='${wl}-f,'
10188
10189 if test "$GCC" = yes; then
10190 case $host_os in aix4.[012]|aix4.[012].*)
10191 # We only want to do this on AIX 4.2 and lower, the check
10192 # below for broken collect2 doesn't work under 4.3+
10193 collect2name=`${CC} -print-prog-name=collect2`
10194 if test -f "$collect2name" &&
10195 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10196 then
10197 # We have reworked collect2
10198 :
10199 else
10200 # We have old collect2
10201 hardcode_direct=unsupported
10202 # It fails to find uninstalled libraries when the uninstalled
10203 # path is not listed in the libpath. Setting hardcode_minus_L
10204 # to unsupported forces relinking
10205 hardcode_minus_L=yes
10206 hardcode_libdir_flag_spec='-L$libdir'
10207 hardcode_libdir_separator=
10208 fi
10209 ;;
10210 esac
10211 shared_flag='-shared'
10212 if test "$aix_use_runtimelinking" = yes; then
10213 shared_flag="$shared_flag "'${wl}-G'
10214 fi
10215 else
10216 # not using gcc
10217 if test "$host_cpu" = ia64; then
10218 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10219 # chokes on -Wl,-G. The following line is correct:
10220 shared_flag='-G'
10221 else
10222 if test "$aix_use_runtimelinking" = yes; then
10223 shared_flag='${wl}-G'
10224 else
10225 shared_flag='${wl}-bM:SRE'
10226 fi
10227 fi
10228 fi
10229
10230 export_dynamic_flag_spec='${wl}-bexpall'
10231 # It seems that -bexpall does not export symbols beginning with
10232 # underscore (_), so it is better to generate a list of symbols to export.
10233 always_export_symbols=yes
10234 if test "$aix_use_runtimelinking" = yes; then
10235 # Warning - without using the other runtime loading flags (-brtl),
10236 # -berok will link without error, but may produce a broken library.
10237 allow_undefined_flag='-berok'
10238 # Determine the default libpath from the value encoded in an
10239 # empty executable.
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242
10243 int
10244 main ()
10245 {
10246
10247 ;
10248 return 0;
10249 }
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252
10253 lt_aix_libpath_sed='
10254 /Import File Strings/,/^$/ {
10255 /^0/ {
10256 s/^0 *\(.*\)$/\1/
10257 p
10258 }
10259 }'
10260 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10261 # Check for a 64-bit object if we didn't find anything.
10262 if test -z "$aix_libpath"; then
10263 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10264 fi
10265 fi
10266 rm -f core conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10269
10270 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10271 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"
10272 else
10273 if test "$host_cpu" = ia64; then
10274 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10275 allow_undefined_flag="-z nodefs"
10276 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"
10277 else
10278 # Determine the default libpath from the value encoded in an
10279 # empty executable.
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282
10283 int
10284 main ()
10285 {
10286
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"; then :
10292
10293 lt_aix_libpath_sed='
10294 /Import File Strings/,/^$/ {
10295 /^0/ {
10296 s/^0 *\(.*\)$/\1/
10297 p
10298 }
10299 }'
10300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10301 # Check for a 64-bit object if we didn't find anything.
10302 if test -z "$aix_libpath"; then
10303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10304 fi
10305 fi
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10309
10310 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10311 # Warning - without using the other run time loading flags,
10312 # -berok will link without error, but may produce a broken library.
10313 no_undefined_flag=' ${wl}-bernotok'
10314 allow_undefined_flag=' ${wl}-berok'
10315 if test "$with_gnu_ld" = yes; then
10316 # We only use this code for GNU lds that support --whole-archive.
10317 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10318 else
10319 # Exported symbols can be pulled into shared objects from archives
10320 whole_archive_flag_spec='$convenience'
10321 fi
10322 archive_cmds_need_lc=yes
10323 # This is similar to how AIX traditionally builds its shared libraries.
10324 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'
10325 fi
10326 fi
10327 ;;
10328
10329 amigaos*)
10330 case $host_cpu in
10331 powerpc)
10332 # see comment about AmigaOS4 .so support
10333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10334 archive_expsym_cmds=''
10335 ;;
10336 m68k)
10337 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)'
10338 hardcode_libdir_flag_spec='-L$libdir'
10339 hardcode_minus_L=yes
10340 ;;
10341 esac
10342 ;;
10343
10344 bsdi[45]*)
10345 export_dynamic_flag_spec=-rdynamic
10346 ;;
10347
10348 cygwin* | mingw* | pw32* | cegcc*)
10349 # When not using gcc, we currently assume that we are using
10350 # Microsoft Visual C++.
10351 # hardcode_libdir_flag_spec is actually meaningless, as there is
10352 # no search path for DLLs.
10353 hardcode_libdir_flag_spec=' '
10354 allow_undefined_flag=unsupported
10355 # Tell ltmain to make .lib files, not .a files.
10356 libext=lib
10357 # Tell ltmain to make .dll files, not .so files.
10358 shrext_cmds=".dll"
10359 # FIXME: Setting linknames here is a bad hack.
10360 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10361 # The linker will automatically build a .lib file if we build a DLL.
10362 old_archive_from_new_cmds='true'
10363 # FIXME: Should let the user specify the lib program.
10364 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10365 fix_srcfile_path='`cygpath -w "$srcfile"`'
10366 enable_shared_with_static_runtimes=yes
10367 ;;
10368
10369 darwin* | rhapsody*)
10370
10371
10372
10373 # Publish an arg to allow the user to select that Darwin host (and target)
10374 # libraries should be given install-names like @rpath/libfoo.dylib. This
10375 # requires that the user of the library then adds an 'rpath' to the DSO that
10376 # needs access.
10377 # NOTE: there are defaults below, for systems that support rpaths. The person
10378 # configuring can override the defaults for any system version that supports
10379 # them - they are, however, forced off for system versions without support.
10380 # Check whether --enable-darwin-at-rpath was given.
10381 if test "${enable_darwin_at_rpath+set}" = set; then :
10382 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10383 # This is not supported before macOS 10.5 / Darwin9.
10384 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10385 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10387 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10388 enable_darwin_at_rpath=no
10389 ;;
10390 esac
10391 fi
10392 else
10393 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10394 # As above, before 10.5 / Darwin9 this does not work.
10395 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10396 enable_darwin_at_rpath=no
10397 ;;
10398
10399 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10400 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10401 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10402 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10404 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10405 enable_darwin_at_rpath=yes
10406 ;;
10407 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10408 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10409
10410 esac
10411
10412 fi
10413
10414
10415 archive_cmds_need_lc=no
10416 hardcode_direct=no
10417 hardcode_automatic=yes
10418 hardcode_shlibpath_var=unsupported
10419 if test "$lt_cv_ld_force_load" = "yes"; then
10420 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\"`'
10421 else
10422 whole_archive_flag_spec=''
10423 fi
10424 link_all_deplibs=yes
10425 allow_undefined_flag="$_lt_dar_allow_undefined"
10426 case $cc_basename in
10427 ifort*) _lt_dar_can_shared=yes ;;
10428 *) _lt_dar_can_shared=$GCC ;;
10429 esac
10430 if test "$_lt_dar_can_shared" = "yes"; then
10431 output_verbose_link_cmd=func_echo_all
10432 _lt_install_name='\$rpath/\$soname'
10433 if test "x$enable_darwin_at_rpath" = "xyes"; then
10434 _lt_install_name='@rpath/\$soname'
10435 fi
10436 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10437 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10438 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10439 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}"
10440
10441 else
10442 ld_shlibs=no
10443 fi
10444
10445 ;;
10446
10447 dgux*)
10448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449 hardcode_libdir_flag_spec='-L$libdir'
10450 hardcode_shlibpath_var=no
10451 ;;
10452
10453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10454 # support. Future versions do this automatically, but an explicit c++rt0.o
10455 # does not break anything, and helps significantly (at the cost of a little
10456 # extra space).
10457 freebsd2.2*)
10458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10459 hardcode_libdir_flag_spec='-R$libdir'
10460 hardcode_direct=yes
10461 hardcode_shlibpath_var=no
10462 ;;
10463
10464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10465 freebsd2.*)
10466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_direct=yes
10468 hardcode_minus_L=yes
10469 hardcode_shlibpath_var=no
10470 ;;
10471
10472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10473 freebsd* | dragonfly*)
10474 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10475 hardcode_libdir_flag_spec='-R$libdir'
10476 hardcode_direct=yes
10477 hardcode_shlibpath_var=no
10478 ;;
10479
10480 hpux9*)
10481 if test "$GCC" = yes; then
10482 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'
10483 else
10484 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'
10485 fi
10486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10487 hardcode_libdir_separator=:
10488 hardcode_direct=yes
10489
10490 # hardcode_minus_L: Not really in the search PATH,
10491 # but as the default location of the library.
10492 hardcode_minus_L=yes
10493 export_dynamic_flag_spec='${wl}-E'
10494 ;;
10495
10496 hpux10*)
10497 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10498 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10499 else
10500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10501 fi
10502 if test "$with_gnu_ld" = no; then
10503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10504 hardcode_libdir_flag_spec_ld='+b $libdir'
10505 hardcode_libdir_separator=:
10506 hardcode_direct=yes
10507 hardcode_direct_absolute=yes
10508 export_dynamic_flag_spec='${wl}-E'
10509 # hardcode_minus_L: Not really in the search PATH,
10510 # but as the default location of the library.
10511 hardcode_minus_L=yes
10512 fi
10513 ;;
10514
10515 hpux11*)
10516 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10517 case $host_cpu in
10518 hppa*64*)
10519 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10520 ;;
10521 ia64*)
10522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10523 ;;
10524 *)
10525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10526 ;;
10527 esac
10528 else
10529 case $host_cpu in
10530 hppa*64*)
10531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10532 ;;
10533 ia64*)
10534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10535 ;;
10536 *)
10537
10538 # Older versions of the 11.00 compiler do not understand -b yet
10539 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10541 $as_echo_n "checking if $CC understands -b... " >&6; }
10542 if ${lt_cv_prog_compiler__b+:} false; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 lt_cv_prog_compiler__b=no
10546 save_LDFLAGS="$LDFLAGS"
10547 LDFLAGS="$LDFLAGS -b"
10548 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10550 # The linker can only warn and ignore the option if not recognized
10551 # So say no if there are warnings
10552 if test -s conftest.err; then
10553 # Append any errors to the config.log.
10554 cat conftest.err 1>&5
10555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10557 if diff conftest.exp conftest.er2 >/dev/null; then
10558 lt_cv_prog_compiler__b=yes
10559 fi
10560 else
10561 lt_cv_prog_compiler__b=yes
10562 fi
10563 fi
10564 $RM -r conftest*
10565 LDFLAGS="$save_LDFLAGS"
10566
10567 fi
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10569 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10570
10571 if test x"$lt_cv_prog_compiler__b" = xyes; then
10572 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10573 else
10574 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10575 fi
10576
10577 ;;
10578 esac
10579 fi
10580 if test "$with_gnu_ld" = no; then
10581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10582 hardcode_libdir_separator=:
10583
10584 case $host_cpu in
10585 hppa*64*|ia64*)
10586 hardcode_direct=no
10587 hardcode_shlibpath_var=no
10588 ;;
10589 *)
10590 hardcode_direct=yes
10591 hardcode_direct_absolute=yes
10592 export_dynamic_flag_spec='${wl}-E'
10593
10594 # hardcode_minus_L: Not really in the search PATH,
10595 # but as the default location of the library.
10596 hardcode_minus_L=yes
10597 ;;
10598 esac
10599 fi
10600 ;;
10601
10602 irix5* | irix6* | nonstopux*)
10603 if test "$GCC" = yes; then
10604 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'
10605 # Try to use the -exported_symbol ld option, if it does not
10606 # work, assume that -exports_file does not work either and
10607 # implicitly export all symbols.
10608 save_LDFLAGS="$LDFLAGS"
10609 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10612 int foo(void) {}
10613 _ACEOF
10614 if ac_fn_c_try_link "$LINENO"; then :
10615 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'
10616
10617 fi
10618 rm -f core conftest.err conftest.$ac_objext \
10619 conftest$ac_exeext conftest.$ac_ext
10620 LDFLAGS="$save_LDFLAGS"
10621 else
10622 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'
10623 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'
10624 fi
10625 archive_cmds_need_lc='no'
10626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10627 hardcode_libdir_separator=:
10628 inherit_rpath=yes
10629 link_all_deplibs=yes
10630 ;;
10631
10632 netbsd*)
10633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10635 else
10636 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10637 fi
10638 hardcode_libdir_flag_spec='-R$libdir'
10639 hardcode_direct=yes
10640 hardcode_shlibpath_var=no
10641 ;;
10642
10643 newsos6)
10644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10645 hardcode_direct=yes
10646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10647 hardcode_libdir_separator=:
10648 hardcode_shlibpath_var=no
10649 ;;
10650
10651 *nto* | *qnx*)
10652 ;;
10653
10654 openbsd*)
10655 if test -f /usr/libexec/ld.so; then
10656 hardcode_direct=yes
10657 hardcode_shlibpath_var=no
10658 hardcode_direct_absolute=yes
10659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10661 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10663 export_dynamic_flag_spec='${wl}-E'
10664 else
10665 case $host_os in
10666 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10668 hardcode_libdir_flag_spec='-R$libdir'
10669 ;;
10670 *)
10671 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10673 ;;
10674 esac
10675 fi
10676 else
10677 ld_shlibs=no
10678 fi
10679 ;;
10680
10681 os2*)
10682 hardcode_libdir_flag_spec='-L$libdir'
10683 hardcode_minus_L=yes
10684 allow_undefined_flag=unsupported
10685 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'
10686 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10687 ;;
10688
10689 osf3*)
10690 if test "$GCC" = yes; then
10691 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10692 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'
10693 else
10694 allow_undefined_flag=' -expect_unresolved \*'
10695 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'
10696 fi
10697 archive_cmds_need_lc='no'
10698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10699 hardcode_libdir_separator=:
10700 ;;
10701
10702 osf4* | osf5*) # as osf3* with the addition of -msym flag
10703 if test "$GCC" = yes; then
10704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10705 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'
10706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10707 else
10708 allow_undefined_flag=' -expect_unresolved \*'
10709 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'
10710 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~
10711 $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'
10712
10713 # Both c and cxx compiler support -rpath directly
10714 hardcode_libdir_flag_spec='-rpath $libdir'
10715 fi
10716 archive_cmds_need_lc='no'
10717 hardcode_libdir_separator=:
10718 ;;
10719
10720 solaris*)
10721 no_undefined_flag=' -z defs'
10722 if test "$GCC" = yes; then
10723 wlarc='${wl}'
10724 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10726 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10727 else
10728 case `$CC -V 2>&1` in
10729 *"Compilers 5.0"*)
10730 wlarc=''
10731 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10734 ;;
10735 *)
10736 wlarc='${wl}'
10737 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10739 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10740 ;;
10741 esac
10742 fi
10743 hardcode_libdir_flag_spec='-R$libdir'
10744 hardcode_shlibpath_var=no
10745 case $host_os in
10746 solaris2.[0-5] | solaris2.[0-5].*) ;;
10747 *)
10748 # The compiler driver will combine and reorder linker options,
10749 # but understands `-z linker_flag'. GCC discards it without `$wl',
10750 # but is careful enough not to reorder.
10751 # Supported since Solaris 2.6 (maybe 2.5.1?)
10752 if test "$GCC" = yes; then
10753 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10754 else
10755 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10756 fi
10757 ;;
10758 esac
10759 link_all_deplibs=yes
10760 ;;
10761
10762 sunos4*)
10763 if test "x$host_vendor" = xsequent; then
10764 # Use $CC to link under sequent, because it throws in some extra .o
10765 # files that make .init and .fini sections work.
10766 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10767 else
10768 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10769 fi
10770 hardcode_libdir_flag_spec='-L$libdir'
10771 hardcode_direct=yes
10772 hardcode_minus_L=yes
10773 hardcode_shlibpath_var=no
10774 ;;
10775
10776 sysv4)
10777 case $host_vendor in
10778 sni)
10779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10780 hardcode_direct=yes # is this really true???
10781 ;;
10782 siemens)
10783 ## LD is ld it makes a PLAMLIB
10784 ## CC just makes a GrossModule.
10785 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10786 reload_cmds='$CC -r -o $output$reload_objs'
10787 hardcode_direct=no
10788 ;;
10789 motorola)
10790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10792 ;;
10793 esac
10794 runpath_var='LD_RUN_PATH'
10795 hardcode_shlibpath_var=no
10796 ;;
10797
10798 sysv4.3*)
10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800 hardcode_shlibpath_var=no
10801 export_dynamic_flag_spec='-Bexport'
10802 ;;
10803
10804 sysv4*MP*)
10805 if test -d /usr/nec; then
10806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10807 hardcode_shlibpath_var=no
10808 runpath_var=LD_RUN_PATH
10809 hardcode_runpath_var=yes
10810 ld_shlibs=yes
10811 fi
10812 ;;
10813
10814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10815 no_undefined_flag='${wl}-z,text'
10816 archive_cmds_need_lc=no
10817 hardcode_shlibpath_var=no
10818 runpath_var='LD_RUN_PATH'
10819
10820 if test "$GCC" = yes; then
10821 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10822 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823 else
10824 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 fi
10827 ;;
10828
10829 sysv5* | sco3.2v5* | sco5v6*)
10830 # Note: We can NOT use -z defs as we might desire, because we do not
10831 # link with -lc, and that would cause any symbols used from libc to
10832 # always be unresolved, which means just about no library would
10833 # ever link correctly. If we're not using GNU ld we use -z text
10834 # though, which does catch some bad symbols but isn't as heavy-handed
10835 # as -z defs.
10836 no_undefined_flag='${wl}-z,text'
10837 allow_undefined_flag='${wl}-z,nodefs'
10838 archive_cmds_need_lc=no
10839 hardcode_shlibpath_var=no
10840 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10841 hardcode_libdir_separator=':'
10842 link_all_deplibs=yes
10843 export_dynamic_flag_spec='${wl}-Bexport'
10844 runpath_var='LD_RUN_PATH'
10845
10846 if test "$GCC" = yes; then
10847 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10849 else
10850 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10852 fi
10853 ;;
10854
10855 uts4*)
10856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857 hardcode_libdir_flag_spec='-L$libdir'
10858 hardcode_shlibpath_var=no
10859 ;;
10860
10861 *)
10862 ld_shlibs=no
10863 ;;
10864 esac
10865
10866 if test x$host_vendor = xsni; then
10867 case $host in
10868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10869 export_dynamic_flag_spec='${wl}-Blargedynsym'
10870 ;;
10871 esac
10872 fi
10873 fi
10874
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10876 $as_echo "$ld_shlibs" >&6; }
10877 test "$ld_shlibs" = no && can_build_shared=no
10878
10879 with_gnu_ld=$with_gnu_ld
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895 #
10896 # Do we need to explicitly link libc?
10897 #
10898 case "x$archive_cmds_need_lc" in
10899 x|xyes)
10900 # Assume -lc should be added
10901 archive_cmds_need_lc=yes
10902
10903 if test "$enable_shared" = yes && test "$GCC" = yes; then
10904 case $archive_cmds in
10905 *'~'*)
10906 # FIXME: we may have to deal with multi-command sequences.
10907 ;;
10908 '$CC '*)
10909 # Test whether the compiler implicitly links with -lc since on some
10910 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10911 # to ld, don't add -lc before -lgcc.
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10913 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10914 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10917 $RM conftest*
10918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10919
10920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10921 (eval $ac_compile) 2>&5
10922 ac_status=$?
10923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10924 test $ac_status = 0; } 2>conftest.err; then
10925 soname=conftest
10926 lib=conftest
10927 libobjs=conftest.$ac_objext
10928 deplibs=
10929 wl=$lt_prog_compiler_wl
10930 pic_flag=$lt_prog_compiler_pic
10931 compiler_flags=-v
10932 linker_flags=-v
10933 verstring=
10934 output_objdir=.
10935 libname=conftest
10936 lt_save_allow_undefined_flag=$allow_undefined_flag
10937 allow_undefined_flag=
10938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10939 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; }
10943 then
10944 lt_cv_archive_cmds_need_lc=no
10945 else
10946 lt_cv_archive_cmds_need_lc=yes
10947 fi
10948 allow_undefined_flag=$lt_save_allow_undefined_flag
10949 else
10950 cat conftest.err 1>&5
10951 fi
10952 $RM conftest*
10953
10954 fi
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10956 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10957 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10958 ;;
10959 esac
10960 fi
10961 ;;
10962 esac
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11121 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11122
11123 if test "$GCC" = yes; then
11124 case $host_os in
11125 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11126 *) lt_awk_arg="/^libraries:/" ;;
11127 esac
11128 case $host_os in
11129 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11130 *) lt_sed_strip_eq="s,=/,/,g" ;;
11131 esac
11132 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11133 case $lt_search_path_spec in
11134 *\;*)
11135 # if the path contains ";" then we assume it to be the separator
11136 # otherwise default to the standard path separator (i.e. ":") - it is
11137 # assumed that no part of a normal pathname contains ";" but that should
11138 # okay in the real world where ";" in dirpaths is itself problematic.
11139 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11140 ;;
11141 *)
11142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11143 ;;
11144 esac
11145 # Ok, now we have the path, separated by spaces, we can step through it
11146 # and add multilib dir if necessary.
11147 lt_tmp_lt_search_path_spec=
11148 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11149 for lt_sys_path in $lt_search_path_spec; do
11150 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11152 else
11153 test -d "$lt_sys_path" && \
11154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11155 fi
11156 done
11157 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11158 BEGIN {RS=" "; FS="/|\n";} {
11159 lt_foo="";
11160 lt_count=0;
11161 for (lt_i = NF; lt_i > 0; lt_i--) {
11162 if ($lt_i != "" && $lt_i != ".") {
11163 if ($lt_i == "..") {
11164 lt_count++;
11165 } else {
11166 if (lt_count == 0) {
11167 lt_foo="/" $lt_i lt_foo;
11168 } else {
11169 lt_count--;
11170 }
11171 }
11172 }
11173 }
11174 if (lt_foo != "") { lt_freq[lt_foo]++; }
11175 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11176 }'`
11177 # AWK program above erroneously prepends '/' to C:/dos/paths
11178 # for these hosts.
11179 case $host_os in
11180 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11181 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11182 esac
11183 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11184 else
11185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11186 fi
11187 library_names_spec=
11188 libname_spec='lib$name'
11189 soname_spec=
11190 shrext_cmds=".so"
11191 postinstall_cmds=
11192 postuninstall_cmds=
11193 finish_cmds=
11194 finish_eval=
11195 shlibpath_var=
11196 shlibpath_overrides_runpath=unknown
11197 version_type=none
11198 dynamic_linker="$host_os ld.so"
11199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11200 need_lib_prefix=unknown
11201 hardcode_into_libs=no
11202
11203 # when you set need_version to no, make sure it does not cause -set_version
11204 # flags to be left without arguments
11205 need_version=unknown
11206
11207 case $host_os in
11208 aix3*)
11209 version_type=linux
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11211 shlibpath_var=LIBPATH
11212
11213 # AIX 3 has no versioning support, so we append a major version to the name.
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 ;;
11216
11217 aix[4-9]*)
11218 version_type=linux
11219 need_lib_prefix=no
11220 need_version=no
11221 hardcode_into_libs=yes
11222 if test "$host_cpu" = ia64; then
11223 # AIX 5 supports IA64
11224 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 else
11227 # With GCC up to 2.95.x, collect2 would create an import file
11228 # for dependence libraries. The import file would start with
11229 # the line `#! .'. This would cause the generated library to
11230 # depend on `.', always an invalid library. This was fixed in
11231 # development snapshots of GCC prior to 3.0.
11232 case $host_os in
11233 aix4 | aix4.[01] | aix4.[01].*)
11234 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11235 echo ' yes '
11236 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11237 :
11238 else
11239 can_build_shared=no
11240 fi
11241 ;;
11242 esac
11243 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11244 # soname into executable. Probably we can add versioning support to
11245 # collect2, so additional links can be useful in future.
11246 if test "$aix_use_runtimelinking" = yes; then
11247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11248 # instead of lib<name>.a to let people know that these are not
11249 # typical AIX shared libraries.
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 else
11252 # We preserve .a as extension for shared libraries through AIX4.2
11253 # and later when we are not doing run time linking.
11254 library_names_spec='${libname}${release}.a $libname.a'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 fi
11257 shlibpath_var=LIBPATH
11258 fi
11259 ;;
11260
11261 amigaos*)
11262 case $host_cpu in
11263 powerpc)
11264 # Since July 2007 AmigaOS4 officially supports .so libraries.
11265 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 ;;
11268 m68k)
11269 library_names_spec='$libname.ixlibrary $libname.a'
11270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11271 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'
11272 ;;
11273 esac
11274 ;;
11275
11276 beos*)
11277 library_names_spec='${libname}${shared_ext}'
11278 dynamic_linker="$host_os ld.so"
11279 shlibpath_var=LIBRARY_PATH
11280 ;;
11281
11282 bsdi[45]*)
11283 version_type=linux
11284 need_version=no
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11291 # the default ld.so.conf also contains /usr/contrib/lib and
11292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11293 # libtool to hard-code these into programs
11294 ;;
11295
11296 cygwin* | mingw* | pw32* | cegcc*)
11297 version_type=windows
11298 shrext_cmds=".dll"
11299 need_version=no
11300 need_lib_prefix=no
11301
11302 case $GCC,$host_os in
11303 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11304 library_names_spec='$libname.dll.a'
11305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11306 postinstall_cmds='base_file=`basename \${file}`~
11307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11308 dldir=$destdir/`dirname \$dlpath`~
11309 test -d \$dldir || mkdir -p \$dldir~
11310 $install_prog $dir/$dlname \$dldir/$dlname~
11311 chmod a+x \$dldir/$dlname~
11312 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11313 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11314 fi'
11315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11316 dlpath=$dir/\$dldll~
11317 $RM \$dlpath'
11318 shlibpath_overrides_runpath=yes
11319
11320 case $host_os in
11321 cygwin*)
11322 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11323 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11324
11325 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11326 ;;
11327 mingw* | cegcc*)
11328 # MinGW DLLs use traditional 'lib' prefix
11329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11330 ;;
11331 pw32*)
11332 # pw32 DLLs use 'pw' prefix rather than 'lib'
11333 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11334 ;;
11335 esac
11336 ;;
11337
11338 *)
11339 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11340 ;;
11341 esac
11342 dynamic_linker='Win32 ld.exe'
11343 # FIXME: first we should search . and the directory the executable is in
11344 shlibpath_var=PATH
11345 ;;
11346
11347 darwin* | rhapsody*)
11348 dynamic_linker="$host_os dyld"
11349 version_type=darwin
11350 need_lib_prefix=no
11351 need_version=no
11352 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11353 soname_spec='${libname}${release}${major}$shared_ext'
11354 shlibpath_overrides_runpath=yes
11355 shlibpath_var=DYLD_LIBRARY_PATH
11356 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11357
11358 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11360 ;;
11361
11362 dgux*)
11363 version_type=linux
11364 need_lib_prefix=no
11365 need_version=no
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11367 soname_spec='${libname}${release}${shared_ext}$major'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 ;;
11370
11371 freebsd* | dragonfly*)
11372 # DragonFly does not have aout. When/if they implement a new
11373 # versioning mechanism, adjust this.
11374 if test -x /usr/bin/objformat; then
11375 objformat=`/usr/bin/objformat`
11376 else
11377 case $host_os in
11378 freebsd[23].*) objformat=aout ;;
11379 *) objformat=elf ;;
11380 esac
11381 fi
11382 version_type=freebsd-$objformat
11383 case $version_type in
11384 freebsd-elf*)
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11386 need_version=no
11387 need_lib_prefix=no
11388 ;;
11389 freebsd-*)
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11391 need_version=yes
11392 ;;
11393 esac
11394 shlibpath_var=LD_LIBRARY_PATH
11395 case $host_os in
11396 freebsd2.*)
11397 shlibpath_overrides_runpath=yes
11398 ;;
11399 freebsd3.[01]* | freebsdelf3.[01]*)
11400 shlibpath_overrides_runpath=yes
11401 hardcode_into_libs=yes
11402 ;;
11403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11405 shlibpath_overrides_runpath=no
11406 hardcode_into_libs=yes
11407 ;;
11408 *) # from 4.6 on, and DragonFly
11409 shlibpath_overrides_runpath=yes
11410 hardcode_into_libs=yes
11411 ;;
11412 esac
11413 ;;
11414
11415 haiku*)
11416 version_type=linux
11417 need_lib_prefix=no
11418 need_version=no
11419 dynamic_linker="$host_os runtime_loader"
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 shlibpath_var=LIBRARY_PATH
11423 shlibpath_overrides_runpath=yes
11424 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11425 hardcode_into_libs=yes
11426 ;;
11427
11428 hpux9* | hpux10* | hpux11*)
11429 # Give a soname corresponding to the major version so that dld.sl refuses to
11430 # link against other versions.
11431 version_type=sunos
11432 need_lib_prefix=no
11433 need_version=no
11434 case $host_cpu in
11435 ia64*)
11436 shrext_cmds='.so'
11437 hardcode_into_libs=yes
11438 dynamic_linker="$host_os dld.so"
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 if test "X$HPUX_IA64_MODE" = X32; then
11444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11445 else
11446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11447 fi
11448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11449 ;;
11450 hppa*64*)
11451 shrext_cmds='.sl'
11452 hardcode_into_libs=yes
11453 dynamic_linker="$host_os dld.sl"
11454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11460 ;;
11461 *)
11462 shrext_cmds='.sl'
11463 dynamic_linker="$host_os dld.sl"
11464 shlibpath_var=SHLIB_PATH
11465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 ;;
11469 esac
11470 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11471 postinstall_cmds='chmod 555 $lib'
11472 # or fails outright, so override atomically:
11473 install_override_mode=555
11474 ;;
11475
11476 interix[3-9]*)
11477 version_type=linux
11478 need_lib_prefix=no
11479 need_version=no
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=no
11485 hardcode_into_libs=yes
11486 ;;
11487
11488 irix5* | irix6* | nonstopux*)
11489 case $host_os in
11490 nonstopux*) version_type=nonstopux ;;
11491 *)
11492 if test "$lt_cv_prog_gnu_ld" = yes; then
11493 version_type=linux
11494 else
11495 version_type=irix
11496 fi ;;
11497 esac
11498 need_lib_prefix=no
11499 need_version=no
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11502 case $host_os in
11503 irix5* | nonstopux*)
11504 libsuff= shlibsuff=
11505 ;;
11506 *)
11507 case $LD in # libtool.m4 will add one of these switches to LD
11508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11509 libsuff= shlibsuff= libmagic=32-bit;;
11510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11511 libsuff=32 shlibsuff=N32 libmagic=N32;;
11512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11514 *) libsuff= shlibsuff= libmagic=never-match;;
11515 esac
11516 ;;
11517 esac
11518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11519 shlibpath_overrides_runpath=no
11520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11522 hardcode_into_libs=yes
11523 ;;
11524
11525 # No shared lib support for Linux oldld, aout, or coff.
11526 linux*oldld* | linux*aout* | linux*coff*)
11527 dynamic_linker=no
11528 ;;
11529
11530 # This must be Linux ELF.
11531
11532 # uclinux* changes (here and below) have been submitted to the libtool
11533 # project, but have not yet been accepted: they are GCC-local changes
11534 # for the time being. (See
11535 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11536 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11537 version_type=linux
11538 need_lib_prefix=no
11539 need_version=no
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11543 shlibpath_var=LD_LIBRARY_PATH
11544 shlibpath_overrides_runpath=no
11545
11546 # Some binutils ld are patched to set DT_RUNPATH
11547 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 lt_cv_shlibpath_overrides_runpath=no
11551 save_LDFLAGS=$LDFLAGS
11552 save_libdir=$libdir
11553 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11554 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11557
11558 int
11559 main ()
11560 {
11561
11562 ;
11563 return 0;
11564 }
11565 _ACEOF
11566 if ac_fn_c_try_link "$LINENO"; then :
11567 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11568 lt_cv_shlibpath_overrides_runpath=yes
11569 fi
11570 fi
11571 rm -f core conftest.err conftest.$ac_objext \
11572 conftest$ac_exeext conftest.$ac_ext
11573 LDFLAGS=$save_LDFLAGS
11574 libdir=$save_libdir
11575
11576 fi
11577
11578 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11579
11580 # This implies no fast_install, which is unacceptable.
11581 # Some rework will be needed to allow for fast_install
11582 # before this can be enabled.
11583 hardcode_into_libs=yes
11584
11585 # Append ld.so.conf contents to the search path
11586 if test -f /etc/ld.so.conf; then
11587 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' ' '`
11588 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11589 fi
11590
11591 # We used to test for /lib/ld.so.1 and disable shared libraries on
11592 # powerpc, because MkLinux only supported shared libraries with the
11593 # GNU dynamic linker. Since this was broken with cross compilers,
11594 # most powerpc-linux boxes support dynamic linking these days and
11595 # people can always --disable-shared, the test was removed, and we
11596 # assume the GNU/Linux dynamic linker is in use.
11597 dynamic_linker='GNU/Linux ld.so'
11598 ;;
11599
11600 netbsd*)
11601 version_type=sunos
11602 need_lib_prefix=no
11603 need_version=no
11604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11607 dynamic_linker='NetBSD (a.out) ld.so'
11608 else
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11610 soname_spec='${libname}${release}${shared_ext}$major'
11611 dynamic_linker='NetBSD ld.elf_so'
11612 fi
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes
11615 hardcode_into_libs=yes
11616 ;;
11617
11618 newsos6)
11619 version_type=linux
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=yes
11623 ;;
11624
11625 *nto* | *qnx*)
11626 version_type=qnx
11627 need_lib_prefix=no
11628 need_version=no
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=no
11633 hardcode_into_libs=yes
11634 dynamic_linker='ldqnx.so'
11635 ;;
11636
11637 openbsd*)
11638 version_type=sunos
11639 sys_lib_dlsearch_path_spec="/usr/lib"
11640 need_lib_prefix=no
11641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11642 case $host_os in
11643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11644 *) need_version=no ;;
11645 esac
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11650 case $host_os in
11651 openbsd2.[89] | openbsd2.[89].*)
11652 shlibpath_overrides_runpath=no
11653 ;;
11654 *)
11655 shlibpath_overrides_runpath=yes
11656 ;;
11657 esac
11658 else
11659 shlibpath_overrides_runpath=yes
11660 fi
11661 ;;
11662
11663 os2*)
11664 libname_spec='$name'
11665 shrext_cmds=".dll"
11666 need_lib_prefix=no
11667 library_names_spec='$libname${shared_ext} $libname.a'
11668 dynamic_linker='OS/2 ld.exe'
11669 shlibpath_var=LIBPATH
11670 ;;
11671
11672 osf3* | osf4* | osf5*)
11673 version_type=osf
11674 need_lib_prefix=no
11675 need_version=no
11676 soname_spec='${libname}${release}${shared_ext}$major'
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11681 ;;
11682
11683 rdos*)
11684 dynamic_linker=no
11685 ;;
11686
11687 solaris*)
11688 version_type=linux
11689 need_lib_prefix=no
11690 need_version=no
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692 soname_spec='${libname}${release}${shared_ext}$major'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes
11695 hardcode_into_libs=yes
11696 # ldd complains unless libraries are executable
11697 postinstall_cmds='chmod +x $lib'
11698 ;;
11699
11700 sunos4*)
11701 version_type=sunos
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 shlibpath_overrides_runpath=yes
11706 if test "$with_gnu_ld" = yes; then
11707 need_lib_prefix=no
11708 fi
11709 need_version=yes
11710 ;;
11711
11712 sysv4 | sysv4.3*)
11713 version_type=linux
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715 soname_spec='${libname}${release}${shared_ext}$major'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 case $host_vendor in
11718 sni)
11719 shlibpath_overrides_runpath=no
11720 need_lib_prefix=no
11721 runpath_var=LD_RUN_PATH
11722 ;;
11723 siemens)
11724 need_lib_prefix=no
11725 ;;
11726 motorola)
11727 need_lib_prefix=no
11728 need_version=no
11729 shlibpath_overrides_runpath=no
11730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11731 ;;
11732 esac
11733 ;;
11734
11735 sysv4*MP*)
11736 if test -d /usr/nec ;then
11737 version_type=linux
11738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11739 soname_spec='$libname${shared_ext}.$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 fi
11742 ;;
11743
11744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11745 version_type=freebsd-elf
11746 need_lib_prefix=no
11747 need_version=no
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 shlibpath_overrides_runpath=yes
11752 hardcode_into_libs=yes
11753 if test "$with_gnu_ld" = yes; then
11754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11755 else
11756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11757 case $host_os in
11758 sco3.2v5*)
11759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11760 ;;
11761 esac
11762 fi
11763 sys_lib_dlsearch_path_spec='/usr/lib'
11764 ;;
11765
11766 tpf*)
11767 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11768 version_type=linux
11769 need_lib_prefix=no
11770 need_version=no
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=no
11774 hardcode_into_libs=yes
11775 ;;
11776
11777 uts4*)
11778 version_type=linux
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 soname_spec='${libname}${release}${shared_ext}$major'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 ;;
11783
11784 # Shared libraries for VwWorks, >= 7 only at this stage
11785 # and (fpic) still incompatible with "large" code models
11786 # in a few configurations. Only for RTP mode in any case,
11787 # and upon explicit request at configure time.
11788 vxworks7*)
11789 dynamic_linker=no
11790 case ${with_multisubdir}-${enable_shared} in
11791 *large*)
11792 ;;
11793 *mrtp*-yes)
11794 version_type=linux
11795 need_lib_prefix=no
11796 need_version=no
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798 soname_spec='${libname}${release}${shared_ext}$major'
11799 dynamic_linker="$host_os module_loader"
11800 ;;
11801 esac
11802 ;;
11803 *)
11804 dynamic_linker=no
11805 ;;
11806 esac
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11808 $as_echo "$dynamic_linker" >&6; }
11809 test "$dynamic_linker" = no && can_build_shared=no
11810
11811 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11812 if test "$GCC" = yes; then
11813 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11814 fi
11815
11816 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11817 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11818 fi
11819 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11820 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11821 fi
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11915 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11916 hardcode_action=
11917 if test -n "$hardcode_libdir_flag_spec" ||
11918 test -n "$runpath_var" ||
11919 test "X$hardcode_automatic" = "Xyes" ; then
11920
11921 # We can hardcode non-existent directories.
11922 if test "$hardcode_direct" != no &&
11923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11924 # have to relink, otherwise we might link with an installed library
11925 # when we should be linking with a yet-to-be-installed one
11926 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11927 test "$hardcode_minus_L" != no; then
11928 # Linking always hardcodes the temporary library directory.
11929 hardcode_action=relink
11930 else
11931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11932 hardcode_action=immediate
11933 fi
11934 else
11935 # We cannot hardcode anything, or else we can only hardcode existing
11936 # directories.
11937 hardcode_action=unsupported
11938 fi
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11940 $as_echo "$hardcode_action" >&6; }
11941
11942 if test "$hardcode_action" = relink ||
11943 test "$inherit_rpath" = yes; then
11944 # Fast installation is not supported
11945 enable_fast_install=no
11946 elif test "$shlibpath_overrides_runpath" = yes ||
11947 test "$enable_shared" = no; then
11948 # Fast installation is not necessary
11949 enable_fast_install=needless
11950 fi
11951
11952
11953
11954
11955
11956
11957 if test "x$enable_dlopen" != xyes; then
11958 enable_dlopen=unknown
11959 enable_dlopen_self=unknown
11960 enable_dlopen_self_static=unknown
11961 else
11962 lt_cv_dlopen=no
11963 lt_cv_dlopen_libs=
11964
11965 case $host_os in
11966 beos*)
11967 lt_cv_dlopen="load_add_on"
11968 lt_cv_dlopen_libs=
11969 lt_cv_dlopen_self=yes
11970 ;;
11971
11972 mingw* | pw32* | cegcc*)
11973 lt_cv_dlopen="LoadLibrary"
11974 lt_cv_dlopen_libs=
11975 ;;
11976
11977 cygwin*)
11978 lt_cv_dlopen="dlopen"
11979 lt_cv_dlopen_libs=
11980 ;;
11981
11982 darwin*)
11983 # if libdl is installed we need to link against it
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11985 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11986 if ${ac_cv_lib_dl_dlopen+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 ac_check_lib_save_LIBS=$LIBS
11990 LIBS="-ldl $LIBS"
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993
11994 /* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 char dlopen ();
12001 int
12002 main ()
12003 {
12004 return dlopen ();
12005 ;
12006 return 0;
12007 }
12008 _ACEOF
12009 if ac_fn_c_try_link "$LINENO"; then :
12010 ac_cv_lib_dl_dlopen=yes
12011 else
12012 ac_cv_lib_dl_dlopen=no
12013 fi
12014 rm -f core conftest.err conftest.$ac_objext \
12015 conftest$ac_exeext conftest.$ac_ext
12016 LIBS=$ac_check_lib_save_LIBS
12017 fi
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12020 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12022 else
12023
12024 lt_cv_dlopen="dyld"
12025 lt_cv_dlopen_libs=
12026 lt_cv_dlopen_self=yes
12027
12028 fi
12029
12030 ;;
12031
12032 *)
12033 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12034 if test "x$ac_cv_func_shl_load" = xyes; then :
12035 lt_cv_dlopen="shl_load"
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12038 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12039 if ${ac_cv_lib_dld_shl_load+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-ldld $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char shl_load ();
12054 int
12055 main ()
12056 {
12057 return shl_load ();
12058 ;
12059 return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_dld_shl_load=yes
12064 else
12065 ac_cv_lib_dld_shl_load=no
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12072 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12073 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12074 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12075 else
12076 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12077 if test "x$ac_cv_func_dlopen" = xyes; then :
12078 lt_cv_dlopen="dlopen"
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12081 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12082 if ${ac_cv_lib_dl_dlopen+:} false; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 ac_check_lib_save_LIBS=$LIBS
12086 LIBS="-ldl $LIBS"
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089
12090 /* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 char dlopen ();
12097 int
12098 main ()
12099 {
12100 return dlopen ();
12101 ;
12102 return 0;
12103 }
12104 _ACEOF
12105 if ac_fn_c_try_link "$LINENO"; then :
12106 ac_cv_lib_dl_dlopen=yes
12107 else
12108 ac_cv_lib_dl_dlopen=no
12109 fi
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112 LIBS=$ac_check_lib_save_LIBS
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12115 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12116 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12118 else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12120 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12121 if ${ac_cv_lib_svld_dlopen+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 ac_check_lib_save_LIBS=$LIBS
12125 LIBS="-lsvld $LIBS"
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128
12129 /* Override any GCC internal prototype to avoid an error.
12130 Use char because int might match the return type of a GCC
12131 builtin and then its argument prototype would still apply. */
12132 #ifdef __cplusplus
12133 extern "C"
12134 #endif
12135 char dlopen ();
12136 int
12137 main ()
12138 {
12139 return dlopen ();
12140 ;
12141 return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"; then :
12145 ac_cv_lib_svld_dlopen=yes
12146 else
12147 ac_cv_lib_svld_dlopen=no
12148 fi
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12152 fi
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12154 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12155 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12159 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12160 if ${ac_cv_lib_dld_dld_link+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 ac_check_lib_save_LIBS=$LIBS
12164 LIBS="-ldld $LIBS"
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 char dld_link ();
12175 int
12176 main ()
12177 {
12178 return dld_link ();
12179 ;
12180 return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184 ac_cv_lib_dld_dld_link=yes
12185 else
12186 ac_cv_lib_dld_dld_link=no
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12193 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12194 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12195 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12196 fi
12197
12198
12199 fi
12200
12201
12202 fi
12203
12204
12205 fi
12206
12207
12208 fi
12209
12210
12211 fi
12212
12213 ;;
12214 esac
12215
12216 if test "x$lt_cv_dlopen" != xno; then
12217 enable_dlopen=yes
12218 else
12219 enable_dlopen=no
12220 fi
12221
12222 case $lt_cv_dlopen in
12223 dlopen)
12224 save_CPPFLAGS="$CPPFLAGS"
12225 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12226
12227 save_LDFLAGS="$LDFLAGS"
12228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12229
12230 save_LIBS="$LIBS"
12231 LIBS="$lt_cv_dlopen_libs $LIBS"
12232
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12234 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12235 if ${lt_cv_dlopen_self+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 if test "$cross_compiling" = yes; then :
12239 lt_cv_dlopen_self=cross
12240 else
12241 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12242 lt_status=$lt_dlunknown
12243 cat > conftest.$ac_ext <<_LT_EOF
12244 #line 12244 "configure"
12245 #include "confdefs.h"
12246
12247 #if HAVE_DLFCN_H
12248 #include <dlfcn.h>
12249 #endif
12250
12251 #include <stdio.h>
12252
12253 #ifdef RTLD_GLOBAL
12254 # define LT_DLGLOBAL RTLD_GLOBAL
12255 #else
12256 # ifdef DL_GLOBAL
12257 # define LT_DLGLOBAL DL_GLOBAL
12258 # else
12259 # define LT_DLGLOBAL 0
12260 # endif
12261 #endif
12262
12263 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12264 find out it does not work in some platform. */
12265 #ifndef LT_DLLAZY_OR_NOW
12266 # ifdef RTLD_LAZY
12267 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12268 # else
12269 # ifdef DL_LAZY
12270 # define LT_DLLAZY_OR_NOW DL_LAZY
12271 # else
12272 # ifdef RTLD_NOW
12273 # define LT_DLLAZY_OR_NOW RTLD_NOW
12274 # else
12275 # ifdef DL_NOW
12276 # define LT_DLLAZY_OR_NOW DL_NOW
12277 # else
12278 # define LT_DLLAZY_OR_NOW 0
12279 # endif
12280 # endif
12281 # endif
12282 # endif
12283 #endif
12284
12285 /* When -fvisbility=hidden is used, assume the code has been annotated
12286 correspondingly for the symbols needed. */
12287 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12288 void fnord () __attribute__((visibility("default")));
12289 #endif
12290
12291 void fnord () { int i=42; }
12292 int main ()
12293 {
12294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12295 int status = $lt_dlunknown;
12296
12297 if (self)
12298 {
12299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12300 else
12301 {
12302 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12303 else puts (dlerror ());
12304 }
12305 /* dlclose (self); */
12306 }
12307 else
12308 puts (dlerror ());
12309
12310 return status;
12311 }
12312 _LT_EOF
12313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12314 (eval $ac_link) 2>&5
12315 ac_status=$?
12316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12317 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12318 (./conftest; exit; ) >&5 2>/dev/null
12319 lt_status=$?
12320 case x$lt_status in
12321 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12322 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12323 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12324 esac
12325 else :
12326 # compilation failed
12327 lt_cv_dlopen_self=no
12328 fi
12329 fi
12330 rm -fr conftest*
12331
12332
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12335 $as_echo "$lt_cv_dlopen_self" >&6; }
12336
12337 if test "x$lt_cv_dlopen_self" = xyes; then
12338 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12340 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12341 if ${lt_cv_dlopen_self_static+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if test "$cross_compiling" = yes; then :
12345 lt_cv_dlopen_self_static=cross
12346 else
12347 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12348 lt_status=$lt_dlunknown
12349 cat > conftest.$ac_ext <<_LT_EOF
12350 #line 12350 "configure"
12351 #include "confdefs.h"
12352
12353 #if HAVE_DLFCN_H
12354 #include <dlfcn.h>
12355 #endif
12356
12357 #include <stdio.h>
12358
12359 #ifdef RTLD_GLOBAL
12360 # define LT_DLGLOBAL RTLD_GLOBAL
12361 #else
12362 # ifdef DL_GLOBAL
12363 # define LT_DLGLOBAL DL_GLOBAL
12364 # else
12365 # define LT_DLGLOBAL 0
12366 # endif
12367 #endif
12368
12369 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12370 find out it does not work in some platform. */
12371 #ifndef LT_DLLAZY_OR_NOW
12372 # ifdef RTLD_LAZY
12373 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12374 # else
12375 # ifdef DL_LAZY
12376 # define LT_DLLAZY_OR_NOW DL_LAZY
12377 # else
12378 # ifdef RTLD_NOW
12379 # define LT_DLLAZY_OR_NOW RTLD_NOW
12380 # else
12381 # ifdef DL_NOW
12382 # define LT_DLLAZY_OR_NOW DL_NOW
12383 # else
12384 # define LT_DLLAZY_OR_NOW 0
12385 # endif
12386 # endif
12387 # endif
12388 # endif
12389 #endif
12390
12391 /* When -fvisbility=hidden is used, assume the code has been annotated
12392 correspondingly for the symbols needed. */
12393 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12394 void fnord () __attribute__((visibility("default")));
12395 #endif
12396
12397 void fnord () { int i=42; }
12398 int main ()
12399 {
12400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12401 int status = $lt_dlunknown;
12402
12403 if (self)
12404 {
12405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12406 else
12407 {
12408 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12409 else puts (dlerror ());
12410 }
12411 /* dlclose (self); */
12412 }
12413 else
12414 puts (dlerror ());
12415
12416 return status;
12417 }
12418 _LT_EOF
12419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12420 (eval $ac_link) 2>&5
12421 ac_status=$?
12422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12423 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12424 (./conftest; exit; ) >&5 2>/dev/null
12425 lt_status=$?
12426 case x$lt_status in
12427 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12428 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12429 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12430 esac
12431 else :
12432 # compilation failed
12433 lt_cv_dlopen_self_static=no
12434 fi
12435 fi
12436 rm -fr conftest*
12437
12438
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12441 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12442 fi
12443
12444 CPPFLAGS="$save_CPPFLAGS"
12445 LDFLAGS="$save_LDFLAGS"
12446 LIBS="$save_LIBS"
12447 ;;
12448 esac
12449
12450 case $lt_cv_dlopen_self in
12451 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12452 *) enable_dlopen_self=unknown ;;
12453 esac
12454
12455 case $lt_cv_dlopen_self_static in
12456 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12457 *) enable_dlopen_self_static=unknown ;;
12458 esac
12459 fi
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477 striplib=
12478 old_striplib=
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12480 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12481 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12482 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12483 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12485 $as_echo "yes" >&6; }
12486 else
12487 # FIXME - insert some real tests, host_os isn't really good enough
12488 case $host_os in
12489 darwin*)
12490 if test -n "$STRIP" ; then
12491 striplib="$STRIP -x"
12492 old_striplib="$STRIP -S"
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494 $as_echo "yes" >&6; }
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12498 fi
12499 ;;
12500 *)
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503 ;;
12504 esac
12505 fi
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518 # Report which library types will actually be built
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12520 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12522 $as_echo "$can_build_shared" >&6; }
12523
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12525 $as_echo_n "checking whether to build shared libraries... " >&6; }
12526 test "$can_build_shared" = "no" && enable_shared=no
12527
12528 # On AIX, shared libraries and static libraries use the same namespace, and
12529 # are all built from PIC.
12530 case $host_os in
12531 aix3*)
12532 test "$enable_shared" = yes && enable_static=no
12533 if test -n "$RANLIB"; then
12534 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12535 postinstall_cmds='$RANLIB $lib'
12536 fi
12537 ;;
12538
12539 aix[4-9]*)
12540 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12541 test "$enable_shared" = yes && enable_static=no
12542 fi
12543 ;;
12544 esac
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12546 $as_echo "$enable_shared" >&6; }
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12549 $as_echo_n "checking whether to build static libraries... " >&6; }
12550 # Make sure either enable_shared or enable_static is yes.
12551 test "$enable_shared" = yes || enable_static=yes
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12553 $as_echo "$enable_static" >&6; }
12554
12555
12556
12557
12558 fi
12559 ac_ext=c
12560 ac_cpp='$CPP $CPPFLAGS'
12561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12564
12565 CC="$lt_save_CC"
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579 ac_config_commands="$ac_config_commands libtool"
12580
12581
12582
12583
12584 # Only expand once:
12585
12586
12587 if test x$enable_darwin_at_rpath = xyes; then
12588 ENABLE_DARWIN_AT_RPATH_TRUE=
12589 ENABLE_DARWIN_AT_RPATH_FALSE='#'
12590 else
12591 ENABLE_DARWIN_AT_RPATH_TRUE='#'
12592 ENABLE_DARWIN_AT_RPATH_FALSE=
12593 fi
12594
12595
12596
12597
12598 case $host in
12599 *-cygwin* | *-mingw*)
12600 # 'host' will be top-level target in the case of a target lib,
12601 # we must compare to with_cross_host to decide if this is a native
12602 # or cross-compiler and select where to install dlls appropriately.
12603 if test -n "$with_cross_host" &&
12604 test x"$with_cross_host" != x"no"; then
12605 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12606 else
12607 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12608 fi
12609 ;;
12610 *)
12611 lt_host_flags=
12612 ;;
12613 esac
12614
12615
12616
12617
12618 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12619 case $ac_cv_c_int64_t in #(
12620 no|yes) ;; #(
12621 *)
12622
12623 cat >>confdefs.h <<_ACEOF
12624 #define int64_t $ac_cv_c_int64_t
12625 _ACEOF
12626 ;;
12627 esac
12628
12629 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12630 case $ac_cv_c_uint64_t in #(
12631 no|yes) ;; #(
12632 *)
12633
12634 $as_echo "#define _UINT64_T 1" >>confdefs.h
12635
12636
12637 cat >>confdefs.h <<_ACEOF
12638 #define uint64_t $ac_cv_c_uint64_t
12639 _ACEOF
12640 ;;
12641 esac
12642
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12644 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12645 if ${ac_cv_header_sys_wait_h+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650 #include <sys/types.h>
12651 #include <sys/wait.h>
12652 #ifndef WEXITSTATUS
12653 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12654 #endif
12655 #ifndef WIFEXITED
12656 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12657 #endif
12658
12659 int
12660 main ()
12661 {
12662 int s;
12663 wait (&s);
12664 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 if ac_fn_c_try_compile "$LINENO"; then :
12670 ac_cv_header_sys_wait_h=yes
12671 else
12672 ac_cv_header_sys_wait_h=no
12673 fi
12674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12677 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12678 if test $ac_cv_header_sys_wait_h = yes; then
12679
12680 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12681
12682 fi
12683
12684 ac_config_files="$ac_config_files Makefile"
12685
12686 ac_config_headers="$ac_config_headers config.h"
12687
12688 cat >confcache <<\_ACEOF
12689 # This file is a shell script that caches the results of configure
12690 # tests run on this system so they can be shared between configure
12691 # scripts and configure runs, see configure's option --config-cache.
12692 # It is not useful on other systems. If it contains results you don't
12693 # want to keep, you may remove or edit it.
12694 #
12695 # config.status only pays attention to the cache file if you give it
12696 # the --recheck option to rerun configure.
12697 #
12698 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12699 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12700 # following values.
12701
12702 _ACEOF
12703
12704 # The following way of writing the cache mishandles newlines in values,
12705 # but we know of no workaround that is simple, portable, and efficient.
12706 # So, we kill variables containing newlines.
12707 # Ultrix sh set writes to stderr and can't be redirected directly,
12708 # and sets the high bit in the cache file unless we assign to the vars.
12709 (
12710 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12711 eval ac_val=\$$ac_var
12712 case $ac_val in #(
12713 *${as_nl}*)
12714 case $ac_var in #(
12715 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12716 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12717 esac
12718 case $ac_var in #(
12719 _ | IFS | as_nl) ;; #(
12720 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12721 *) { eval $ac_var=; unset $ac_var;} ;;
12722 esac ;;
12723 esac
12724 done
12725
12726 (set) 2>&1 |
12727 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12728 *${as_nl}ac_space=\ *)
12729 # `set' does not quote correctly, so add quotes: double-quote
12730 # substitution turns \\\\ into \\, and sed turns \\ into \.
12731 sed -n \
12732 "s/'/'\\\\''/g;
12733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12734 ;; #(
12735 *)
12736 # `set' quotes correctly as required by POSIX, so do not add quotes.
12737 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12738 ;;
12739 esac |
12740 sort
12741 ) |
12742 sed '
12743 /^ac_cv_env_/b end
12744 t clear
12745 :clear
12746 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12747 t end
12748 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12749 :end' >>confcache
12750 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12751 if test -w "$cache_file"; then
12752 if test "x$cache_file" != "x/dev/null"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12754 $as_echo "$as_me: updating cache $cache_file" >&6;}
12755 if test ! -f "$cache_file" || test -h "$cache_file"; then
12756 cat confcache >"$cache_file"
12757 else
12758 case $cache_file in #(
12759 */* | ?:*)
12760 mv -f confcache "$cache_file"$$ &&
12761 mv -f "$cache_file"$$ "$cache_file" ;; #(
12762 *)
12763 mv -f confcache "$cache_file" ;;
12764 esac
12765 fi
12766 fi
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12769 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12770 fi
12771 fi
12772 rm -f confcache
12773
12774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12775 # Let make expand exec_prefix.
12776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12777
12778 DEFS=-DHAVE_CONFIG_H
12779
12780 ac_libobjs=
12781 ac_ltlibobjs=
12782 U=
12783 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12784 # 1. Remove the extension, and $U if already installed.
12785 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12786 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12787 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12788 # will be set to the directory where LIBOBJS objects are built.
12789 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12790 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12791 done
12792 LIBOBJS=$ac_libobjs
12793
12794 LTLIBOBJS=$ac_ltlibobjs
12795
12796
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12798 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12799 if test -n "$am_sleep_pid"; then
12800 # Hide warnings about reused PIDs.
12801 wait $am_sleep_pid 2>/dev/null
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12804 $as_echo "done" >&6; }
12805 if test -n "$EXEEXT"; then
12806 am__EXEEXT_TRUE=
12807 am__EXEEXT_FALSE='#'
12808 else
12809 am__EXEEXT_TRUE='#'
12810 am__EXEEXT_FALSE=
12811 fi
12812
12813 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12814 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12816 fi
12817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12818 as_fn_error $? "conditional \"AMDEP\" was never defined.
12819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12820 fi
12821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12822 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12824 fi
12825 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12826 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12828 fi
12829 if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12830 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12832 fi
12833 if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12834 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12836 fi
12837 if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12838 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12840 fi
12841 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
12842 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
12843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12844 fi
12845
12846 : "${CONFIG_STATUS=./config.status}"
12847 ac_write_fail=0
12848 ac_clean_files_save=$ac_clean_files
12849 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12851 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12852 as_write_fail=0
12853 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12854 #! $SHELL
12855 # Generated by $as_me.
12856 # Run this file to recreate the current configuration.
12857 # Compiler output produced by configure, useful for debugging
12858 # configure, is in config.log if it exists.
12859
12860 debug=false
12861 ac_cs_recheck=false
12862 ac_cs_silent=false
12863
12864 SHELL=\${CONFIG_SHELL-$SHELL}
12865 export SHELL
12866 _ASEOF
12867 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12868 ## -------------------- ##
12869 ## M4sh Initialization. ##
12870 ## -------------------- ##
12871
12872 # Be more Bourne compatible
12873 DUALCASE=1; export DUALCASE # for MKS sh
12874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12875 emulate sh
12876 NULLCMD=:
12877 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12878 # is contrary to our usage. Disable this feature.
12879 alias -g '${1+"$@"}'='"$@"'
12880 setopt NO_GLOB_SUBST
12881 else
12882 case `(set -o) 2>/dev/null` in #(
12883 *posix*) :
12884 set -o posix ;; #(
12885 *) :
12886 ;;
12887 esac
12888 fi
12889
12890
12891 as_nl='
12892 '
12893 export as_nl
12894 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12895 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12898 # Prefer a ksh shell builtin over an external printf program on Solaris,
12899 # but without wasting forks for bash or zsh.
12900 if test -z "$BASH_VERSION$ZSH_VERSION" \
12901 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12902 as_echo='print -r --'
12903 as_echo_n='print -rn --'
12904 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12905 as_echo='printf %s\n'
12906 as_echo_n='printf %s'
12907 else
12908 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12909 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12910 as_echo_n='/usr/ucb/echo -n'
12911 else
12912 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12913 as_echo_n_body='eval
12914 arg=$1;
12915 case $arg in #(
12916 *"$as_nl"*)
12917 expr "X$arg" : "X\\(.*\\)$as_nl";
12918 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12919 esac;
12920 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12921 '
12922 export as_echo_n_body
12923 as_echo_n='sh -c $as_echo_n_body as_echo'
12924 fi
12925 export as_echo_body
12926 as_echo='sh -c $as_echo_body as_echo'
12927 fi
12928
12929 # The user is always right.
12930 if test "${PATH_SEPARATOR+set}" != set; then
12931 PATH_SEPARATOR=:
12932 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12933 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12934 PATH_SEPARATOR=';'
12935 }
12936 fi
12937
12938
12939 # IFS
12940 # We need space, tab and new line, in precisely that order. Quoting is
12941 # there to prevent editors from complaining about space-tab.
12942 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12943 # splitting by setting IFS to empty value.)
12944 IFS=" "" $as_nl"
12945
12946 # Find who we are. Look in the path if we contain no directory separator.
12947 as_myself=
12948 case $0 in #((
12949 *[\\/]* ) as_myself=$0 ;;
12950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12956 done
12957 IFS=$as_save_IFS
12958
12959 ;;
12960 esac
12961 # We did not find ourselves, most probably we were run as `sh COMMAND'
12962 # in which case we are not to be found in the path.
12963 if test "x$as_myself" = x; then
12964 as_myself=$0
12965 fi
12966 if test ! -f "$as_myself"; then
12967 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12968 exit 1
12969 fi
12970
12971 # Unset variables that we do not need and which cause bugs (e.g. in
12972 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12973 # suppresses any "Segmentation fault" message there. '((' could
12974 # trigger a bug in pdksh 5.2.14.
12975 for as_var in BASH_ENV ENV MAIL MAILPATH
12976 do eval test x\${$as_var+set} = xset \
12977 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12978 done
12979 PS1='$ '
12980 PS2='> '
12981 PS4='+ '
12982
12983 # NLS nuisances.
12984 LC_ALL=C
12985 export LC_ALL
12986 LANGUAGE=C
12987 export LANGUAGE
12988
12989 # CDPATH.
12990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12991
12992
12993 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12994 # ----------------------------------------
12995 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12996 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12997 # script with STATUS, using 1 if that was 0.
12998 as_fn_error ()
12999 {
13000 as_status=$1; test $as_status -eq 0 && as_status=1
13001 if test "$4"; then
13002 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13003 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13004 fi
13005 $as_echo "$as_me: error: $2" >&2
13006 as_fn_exit $as_status
13007 } # as_fn_error
13008
13009
13010 # as_fn_set_status STATUS
13011 # -----------------------
13012 # Set $? to STATUS, without forking.
13013 as_fn_set_status ()
13014 {
13015 return $1
13016 } # as_fn_set_status
13017
13018 # as_fn_exit STATUS
13019 # -----------------
13020 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13021 as_fn_exit ()
13022 {
13023 set +e
13024 as_fn_set_status $1
13025 exit $1
13026 } # as_fn_exit
13027
13028 # as_fn_unset VAR
13029 # ---------------
13030 # Portably unset VAR.
13031 as_fn_unset ()
13032 {
13033 { eval $1=; unset $1;}
13034 }
13035 as_unset=as_fn_unset
13036 # as_fn_append VAR VALUE
13037 # ----------------------
13038 # Append the text in VALUE to the end of the definition contained in VAR. Take
13039 # advantage of any shell optimizations that allow amortized linear growth over
13040 # repeated appends, instead of the typical quadratic growth present in naive
13041 # implementations.
13042 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13043 eval 'as_fn_append ()
13044 {
13045 eval $1+=\$2
13046 }'
13047 else
13048 as_fn_append ()
13049 {
13050 eval $1=\$$1\$2
13051 }
13052 fi # as_fn_append
13053
13054 # as_fn_arith ARG...
13055 # ------------------
13056 # Perform arithmetic evaluation on the ARGs, and store the result in the
13057 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13058 # must be portable across $(()) and expr.
13059 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13060 eval 'as_fn_arith ()
13061 {
13062 as_val=$(( $* ))
13063 }'
13064 else
13065 as_fn_arith ()
13066 {
13067 as_val=`expr "$@" || test $? -eq 1`
13068 }
13069 fi # as_fn_arith
13070
13071
13072 if expr a : '\(a\)' >/dev/null 2>&1 &&
13073 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13074 as_expr=expr
13075 else
13076 as_expr=false
13077 fi
13078
13079 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13080 as_basename=basename
13081 else
13082 as_basename=false
13083 fi
13084
13085 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13086 as_dirname=dirname
13087 else
13088 as_dirname=false
13089 fi
13090
13091 as_me=`$as_basename -- "$0" ||
13092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13093 X"$0" : 'X\(//\)$' \| \
13094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13095 $as_echo X/"$0" |
13096 sed '/^.*\/\([^/][^/]*\)\/*$/{
13097 s//\1/
13098 q
13099 }
13100 /^X\/\(\/\/\)$/{
13101 s//\1/
13102 q
13103 }
13104 /^X\/\(\/\).*/{
13105 s//\1/
13106 q
13107 }
13108 s/.*/./; q'`
13109
13110 # Avoid depending upon Character Ranges.
13111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13114 as_cr_digits='0123456789'
13115 as_cr_alnum=$as_cr_Letters$as_cr_digits
13116
13117 ECHO_C= ECHO_N= ECHO_T=
13118 case `echo -n x` in #(((((
13119 -n*)
13120 case `echo 'xy\c'` in
13121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13122 xy) ECHO_C='\c';;
13123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13124 ECHO_T=' ';;
13125 esac;;
13126 *)
13127 ECHO_N='-n';;
13128 esac
13129
13130 rm -f conf$$ conf$$.exe conf$$.file
13131 if test -d conf$$.dir; then
13132 rm -f conf$$.dir/conf$$.file
13133 else
13134 rm -f conf$$.dir
13135 mkdir conf$$.dir 2>/dev/null
13136 fi
13137 if (echo >conf$$.file) 2>/dev/null; then
13138 if ln -s conf$$.file conf$$ 2>/dev/null; then
13139 as_ln_s='ln -s'
13140 # ... but there are two gotchas:
13141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13143 # In both cases, we have to default to `cp -pR'.
13144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13145 as_ln_s='cp -pR'
13146 elif ln conf$$.file conf$$ 2>/dev/null; then
13147 as_ln_s=ln
13148 else
13149 as_ln_s='cp -pR'
13150 fi
13151 else
13152 as_ln_s='cp -pR'
13153 fi
13154 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13155 rmdir conf$$.dir 2>/dev/null
13156
13157
13158 # as_fn_mkdir_p
13159 # -------------
13160 # Create "$as_dir" as a directory, including parents if necessary.
13161 as_fn_mkdir_p ()
13162 {
13163
13164 case $as_dir in #(
13165 -*) as_dir=./$as_dir;;
13166 esac
13167 test -d "$as_dir" || eval $as_mkdir_p || {
13168 as_dirs=
13169 while :; do
13170 case $as_dir in #(
13171 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13172 *) as_qdir=$as_dir;;
13173 esac
13174 as_dirs="'$as_qdir' $as_dirs"
13175 as_dir=`$as_dirname -- "$as_dir" ||
13176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13177 X"$as_dir" : 'X\(//\)[^/]' \| \
13178 X"$as_dir" : 'X\(//\)$' \| \
13179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13180 $as_echo X"$as_dir" |
13181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13182 s//\1/
13183 q
13184 }
13185 /^X\(\/\/\)[^/].*/{
13186 s//\1/
13187 q
13188 }
13189 /^X\(\/\/\)$/{
13190 s//\1/
13191 q
13192 }
13193 /^X\(\/\).*/{
13194 s//\1/
13195 q
13196 }
13197 s/.*/./; q'`
13198 test -d "$as_dir" && break
13199 done
13200 test -z "$as_dirs" || eval "mkdir $as_dirs"
13201 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13202
13203
13204 } # as_fn_mkdir_p
13205 if mkdir -p . 2>/dev/null; then
13206 as_mkdir_p='mkdir -p "$as_dir"'
13207 else
13208 test -d ./-p && rmdir ./-p
13209 as_mkdir_p=false
13210 fi
13211
13212
13213 # as_fn_executable_p FILE
13214 # -----------------------
13215 # Test if FILE is an executable regular file.
13216 as_fn_executable_p ()
13217 {
13218 test -f "$1" && test -x "$1"
13219 } # as_fn_executable_p
13220 as_test_x='test -x'
13221 as_executable_p=as_fn_executable_p
13222
13223 # Sed expression to map a string onto a valid CPP name.
13224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13225
13226 # Sed expression to map a string onto a valid variable name.
13227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13228
13229
13230 exec 6>&1
13231 ## ----------------------------------- ##
13232 ## Main body of $CONFIG_STATUS script. ##
13233 ## ----------------------------------- ##
13234 _ASEOF
13235 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13236
13237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13238 # Save the log message, to keep $0 and so on meaningful, and to
13239 # report actual input values of CONFIG_FILES etc. instead of their
13240 # values after options handling.
13241 ac_log="
13242 This file was extended by LTO plugin for ld $as_me 0.1, which was
13243 generated by GNU Autoconf 2.69. Invocation command line was
13244
13245 CONFIG_FILES = $CONFIG_FILES
13246 CONFIG_HEADERS = $CONFIG_HEADERS
13247 CONFIG_LINKS = $CONFIG_LINKS
13248 CONFIG_COMMANDS = $CONFIG_COMMANDS
13249 $ $0 $@
13250
13251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13252 "
13253
13254 _ACEOF
13255
13256 case $ac_config_files in *"
13257 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13258 esac
13259
13260 case $ac_config_headers in *"
13261 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13262 esac
13263
13264
13265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13266 # Files that config.status was made for.
13267 config_files="$ac_config_files"
13268 config_headers="$ac_config_headers"
13269 config_commands="$ac_config_commands"
13270
13271 _ACEOF
13272
13273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13274 ac_cs_usage="\
13275 \`$as_me' instantiates files and other configuration actions
13276 from templates according to the current configuration. Unless the files
13277 and actions are specified as TAGs, all are instantiated by default.
13278
13279 Usage: $0 [OPTION]... [TAG]...
13280
13281 -h, --help print this help, then exit
13282 -V, --version print version number and configuration settings, then exit
13283 --config print configuration, then exit
13284 -q, --quiet, --silent
13285 do not print progress messages
13286 -d, --debug don't remove temporary files
13287 --recheck update $as_me by reconfiguring in the same conditions
13288 --file=FILE[:TEMPLATE]
13289 instantiate the configuration file FILE
13290 --header=FILE[:TEMPLATE]
13291 instantiate the configuration header FILE
13292
13293 Configuration files:
13294 $config_files
13295
13296 Configuration headers:
13297 $config_headers
13298
13299 Configuration commands:
13300 $config_commands
13301
13302 Report bugs to the package provider."
13303
13304 _ACEOF
13305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13306 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13307 ac_cs_version="\\
13308 LTO plugin for ld config.status 0.1
13309 configured by $0, generated by GNU Autoconf 2.69,
13310 with options \\"\$ac_cs_config\\"
13311
13312 Copyright (C) 2012 Free Software Foundation, Inc.
13313 This config.status script is free software; the Free Software Foundation
13314 gives unlimited permission to copy, distribute and modify it."
13315
13316 ac_pwd='$ac_pwd'
13317 srcdir='$srcdir'
13318 INSTALL='$INSTALL'
13319 MKDIR_P='$MKDIR_P'
13320 AWK='$AWK'
13321 test -n "\$AWK" || AWK=awk
13322 _ACEOF
13323
13324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13325 # The default lists apply if the user does not specify any file.
13326 ac_need_defaults=:
13327 while test $# != 0
13328 do
13329 case $1 in
13330 --*=?*)
13331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13333 ac_shift=:
13334 ;;
13335 --*=)
13336 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13337 ac_optarg=
13338 ac_shift=:
13339 ;;
13340 *)
13341 ac_option=$1
13342 ac_optarg=$2
13343 ac_shift=shift
13344 ;;
13345 esac
13346
13347 case $ac_option in
13348 # Handling of the options.
13349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13350 ac_cs_recheck=: ;;
13351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13352 $as_echo "$ac_cs_version"; exit ;;
13353 --config | --confi | --conf | --con | --co | --c )
13354 $as_echo "$ac_cs_config"; exit ;;
13355 --debug | --debu | --deb | --de | --d | -d )
13356 debug=: ;;
13357 --file | --fil | --fi | --f )
13358 $ac_shift
13359 case $ac_optarg in
13360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13361 '') as_fn_error $? "missing file argument" ;;
13362 esac
13363 as_fn_append CONFIG_FILES " '$ac_optarg'"
13364 ac_need_defaults=false;;
13365 --header | --heade | --head | --hea )
13366 $ac_shift
13367 case $ac_optarg in
13368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13369 esac
13370 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13371 ac_need_defaults=false;;
13372 --he | --h)
13373 # Conflict between --help and --header
13374 as_fn_error $? "ambiguous option: \`$1'
13375 Try \`$0 --help' for more information.";;
13376 --help | --hel | -h )
13377 $as_echo "$ac_cs_usage"; exit ;;
13378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13379 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13380 ac_cs_silent=: ;;
13381
13382 # This is an error.
13383 -*) as_fn_error $? "unrecognized option: \`$1'
13384 Try \`$0 --help' for more information." ;;
13385
13386 *) as_fn_append ac_config_targets " $1"
13387 ac_need_defaults=false ;;
13388
13389 esac
13390 shift
13391 done
13392
13393 ac_configure_extra_args=
13394
13395 if $ac_cs_silent; then
13396 exec 6>/dev/null
13397 ac_configure_extra_args="$ac_configure_extra_args --silent"
13398 fi
13399
13400 _ACEOF
13401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13402 if \$ac_cs_recheck; then
13403 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13404 shift
13405 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13406 CONFIG_SHELL='$SHELL'
13407 export CONFIG_SHELL
13408 exec "\$@"
13409 fi
13410
13411 _ACEOF
13412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13413 exec 5>>config.log
13414 {
13415 echo
13416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13417 ## Running $as_me. ##
13418 _ASBOX
13419 $as_echo "$ac_log"
13420 } >&5
13421
13422 _ACEOF
13423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13424 #
13425 # INIT-COMMANDS
13426 #
13427 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13428
13429
13430 # The HP-UX ksh and POSIX shell print the target directory to stdout
13431 # if CDPATH is set.
13432 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13433
13434 sed_quote_subst='$sed_quote_subst'
13435 double_quote_subst='$double_quote_subst'
13436 delay_variable_subst='$delay_variable_subst'
13437 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13438 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13439 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13440 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13441 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13442 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13443 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13444 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13445 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13446 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13447 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13448 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13449 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13450 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13451 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13452 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13453 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13454 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13455 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13456 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13457 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13458 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13459 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13460 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13461 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13462 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13463 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13464 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13465 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13466 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13467 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13468 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13469 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13470 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13471 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13472 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13473 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13474 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13475 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13476 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13477 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13478 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13479 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13480 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13481 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13482 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13483 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13484 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13485 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"`'
13486 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13487 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13488 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13489 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13490 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13491 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13492 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13493 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13494 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13495 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13496 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13497 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13498 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13499 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13500 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13501 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13502 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13503 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13504 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13505 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13506 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13507 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13508 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13509 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13510 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13511 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13512 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13513 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13514 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13515 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13516 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13517 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13518 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13519 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13520 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13521 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13522 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13523 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13524 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13525 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13526 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13527 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13528 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13529 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13530 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13531 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13532 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13533 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13534 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13535 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13536 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13537 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13538 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13539 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13540 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13541 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13542 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13543 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13544 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13545 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13546 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13547 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13548 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13549 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13550 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13551 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13552 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13553 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13554 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13555 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13556 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13557
13558 LTCC='$LTCC'
13559 LTCFLAGS='$LTCFLAGS'
13560 compiler='$compiler_DEFAULT'
13561
13562 # A function that is used when there is no print builtin or printf.
13563 func_fallback_echo ()
13564 {
13565 eval 'cat <<_LTECHO_EOF
13566 \$1
13567 _LTECHO_EOF'
13568 }
13569
13570 # Quote evaled strings.
13571 for var in SHELL \
13572 ECHO \
13573 SED \
13574 GREP \
13575 EGREP \
13576 FGREP \
13577 LD \
13578 NM \
13579 LN_S \
13580 lt_SP2NL \
13581 lt_NL2SP \
13582 reload_flag \
13583 OBJDUMP \
13584 deplibs_check_method \
13585 file_magic_cmd \
13586 AR \
13587 AR_FLAGS \
13588 STRIP \
13589 RANLIB \
13590 CC \
13591 CFLAGS \
13592 compiler \
13593 lt_cv_sys_global_symbol_pipe \
13594 lt_cv_sys_global_symbol_to_cdecl \
13595 lt_cv_sys_global_symbol_to_c_name_address \
13596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13597 lt_prog_compiler_no_builtin_flag \
13598 lt_prog_compiler_wl \
13599 lt_prog_compiler_pic \
13600 lt_prog_compiler_static \
13601 lt_cv_prog_compiler_c_o \
13602 need_locks \
13603 DSYMUTIL \
13604 NMEDIT \
13605 LIPO \
13606 OTOOL \
13607 OTOOL64 \
13608 shrext_cmds \
13609 export_dynamic_flag_spec \
13610 whole_archive_flag_spec \
13611 compiler_needs_object \
13612 with_gnu_ld \
13613 allow_undefined_flag \
13614 no_undefined_flag \
13615 hardcode_libdir_flag_spec \
13616 hardcode_libdir_flag_spec_ld \
13617 hardcode_libdir_separator \
13618 fix_srcfile_path \
13619 exclude_expsyms \
13620 include_expsyms \
13621 file_list_spec \
13622 variables_saved_for_relink \
13623 libname_spec \
13624 library_names_spec \
13625 soname_spec \
13626 install_override_mode \
13627 finish_eval \
13628 old_striplib \
13629 striplib; do
13630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13631 *[\\\\\\\`\\"\\\$]*)
13632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13633 ;;
13634 *)
13635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13636 ;;
13637 esac
13638 done
13639
13640 # Double-quote double-evaled strings.
13641 for var in reload_cmds \
13642 old_postinstall_cmds \
13643 old_postuninstall_cmds \
13644 old_archive_cmds \
13645 extract_expsyms_cmds \
13646 old_archive_from_new_cmds \
13647 old_archive_from_expsyms_cmds \
13648 archive_cmds \
13649 archive_expsym_cmds \
13650 module_cmds \
13651 module_expsym_cmds \
13652 export_symbols_cmds \
13653 prelink_cmds \
13654 postinstall_cmds \
13655 postuninstall_cmds \
13656 finish_cmds \
13657 sys_lib_search_path_spec \
13658 sys_lib_dlsearch_path_spec; do
13659 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13660 *[\\\\\\\`\\"\\\$]*)
13661 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13662 ;;
13663 *)
13664 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13665 ;;
13666 esac
13667 done
13668
13669 ac_aux_dir='$ac_aux_dir'
13670 xsi_shell='$xsi_shell'
13671 lt_shell_append='$lt_shell_append'
13672
13673 # See if we are running on zsh, and set the options which allow our
13674 # commands through without removal of \ escapes INIT.
13675 if test -n "\${ZSH_VERSION+set}" ; then
13676 setopt NO_GLOB_SUBST
13677 fi
13678
13679
13680 PACKAGE='$PACKAGE'
13681 VERSION='$VERSION'
13682 TIMESTAMP='$TIMESTAMP'
13683 RM='$RM'
13684 ofile='$ofile'
13685
13686
13687
13688
13689 _ACEOF
13690
13691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13692
13693 # Handling of arguments.
13694 for ac_config_target in $ac_config_targets
13695 do
13696 case $ac_config_target in
13697 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13698 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13699 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13700 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13701
13702 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13703 esac
13704 done
13705
13706
13707 # If the user did not use the arguments to specify the items to instantiate,
13708 # then the envvar interface is used. Set only those that are not.
13709 # We use the long form for the default assignment because of an extremely
13710 # bizarre bug on SunOS 4.1.3.
13711 if $ac_need_defaults; then
13712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13713 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13714 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13715 fi
13716
13717 # Have a temporary directory for convenience. Make it in the build tree
13718 # simply because there is no reason against having it here, and in addition,
13719 # creating and moving files from /tmp can sometimes cause problems.
13720 # Hook for its removal unless debugging.
13721 # Note that there is a small window in which the directory will not be cleaned:
13722 # after its creation but before its name has been assigned to `$tmp'.
13723 $debug ||
13724 {
13725 tmp= ac_tmp=
13726 trap 'exit_status=$?
13727 : "${ac_tmp:=$tmp}"
13728 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13729 ' 0
13730 trap 'as_fn_exit 1' 1 2 13 15
13731 }
13732 # Create a (secure) tmp directory for tmp files.
13733
13734 {
13735 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13736 test -d "$tmp"
13737 } ||
13738 {
13739 tmp=./conf$$-$RANDOM
13740 (umask 077 && mkdir "$tmp")
13741 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13742 ac_tmp=$tmp
13743
13744 # Set up the scripts for CONFIG_FILES section.
13745 # No need to generate them if there are no CONFIG_FILES.
13746 # This happens for instance with `./config.status config.h'.
13747 if test -n "$CONFIG_FILES"; then
13748
13749
13750 ac_cr=`echo X | tr X '\015'`
13751 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13752 # But we know of no other shell where ac_cr would be empty at this
13753 # point, so we can use a bashism as a fallback.
13754 if test "x$ac_cr" = x; then
13755 eval ac_cr=\$\'\\r\'
13756 fi
13757 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13758 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13759 ac_cs_awk_cr='\\r'
13760 else
13761 ac_cs_awk_cr=$ac_cr
13762 fi
13763
13764 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13765 _ACEOF
13766
13767
13768 {
13769 echo "cat >conf$$subs.awk <<_ACEOF" &&
13770 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13771 echo "_ACEOF"
13772 } >conf$$subs.sh ||
13773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13774 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13775 ac_delim='%!_!# '
13776 for ac_last_try in false false false false false :; do
13777 . ./conf$$subs.sh ||
13778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13779
13780 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13781 if test $ac_delim_n = $ac_delim_num; then
13782 break
13783 elif $ac_last_try; then
13784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13785 else
13786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13787 fi
13788 done
13789 rm -f conf$$subs.sh
13790
13791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13792 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13793 _ACEOF
13794 sed -n '
13795 h
13796 s/^/S["/; s/!.*/"]=/
13797 p
13798 g
13799 s/^[^!]*!//
13800 :repl
13801 t repl
13802 s/'"$ac_delim"'$//
13803 t delim
13804 :nl
13805 h
13806 s/\(.\{148\}\)..*/\1/
13807 t more1
13808 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13809 p
13810 n
13811 b repl
13812 :more1
13813 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13814 p
13815 g
13816 s/.\{148\}//
13817 t nl
13818 :delim
13819 h
13820 s/\(.\{148\}\)..*/\1/
13821 t more2
13822 s/["\\]/\\&/g; s/^/"/; s/$/"/
13823 p
13824 b
13825 :more2
13826 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13827 p
13828 g
13829 s/.\{148\}//
13830 t delim
13831 ' <conf$$subs.awk | sed '
13832 /^[^""]/{
13833 N
13834 s/\n//
13835 }
13836 ' >>$CONFIG_STATUS || ac_write_fail=1
13837 rm -f conf$$subs.awk
13838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839 _ACAWK
13840 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13841 for (key in S) S_is_set[key] = 1
13842 FS = "\a"
13843
13844 }
13845 {
13846 line = $ 0
13847 nfields = split(line, field, "@")
13848 substed = 0
13849 len = length(field[1])
13850 for (i = 2; i < nfields; i++) {
13851 key = field[i]
13852 keylen = length(key)
13853 if (S_is_set[key]) {
13854 value = S[key]
13855 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13856 len += length(value) + length(field[++i])
13857 substed = 1
13858 } else
13859 len += 1 + keylen
13860 }
13861
13862 print line
13863 }
13864
13865 _ACAWK
13866 _ACEOF
13867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13868 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13869 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13870 else
13871 cat
13872 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13873 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13874 _ACEOF
13875
13876 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13877 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13878 # trailing colons and then remove the whole line if VPATH becomes empty
13879 # (actually we leave an empty line to preserve line numbers).
13880 if test "x$srcdir" = x.; then
13881 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13882 h
13883 s///
13884 s/^/:/
13885 s/[ ]*$/:/
13886 s/:\$(srcdir):/:/g
13887 s/:\${srcdir}:/:/g
13888 s/:@srcdir@:/:/g
13889 s/^:*//
13890 s/:*$//
13891 x
13892 s/\(=[ ]*\).*/\1/
13893 G
13894 s/\n//
13895 s/^[^=]*=[ ]*$//
13896 }'
13897 fi
13898
13899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13900 fi # test -n "$CONFIG_FILES"
13901
13902 # Set up the scripts for CONFIG_HEADERS section.
13903 # No need to generate them if there are no CONFIG_HEADERS.
13904 # This happens for instance with `./config.status Makefile'.
13905 if test -n "$CONFIG_HEADERS"; then
13906 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13907 BEGIN {
13908 _ACEOF
13909
13910 # Transform confdefs.h into an awk script `defines.awk', embedded as
13911 # here-document in config.status, that substitutes the proper values into
13912 # config.h.in to produce config.h.
13913
13914 # Create a delimiter string that does not exist in confdefs.h, to ease
13915 # handling of long lines.
13916 ac_delim='%!_!# '
13917 for ac_last_try in false false :; do
13918 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13919 if test -z "$ac_tt"; then
13920 break
13921 elif $ac_last_try; then
13922 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13923 else
13924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13925 fi
13926 done
13927
13928 # For the awk script, D is an array of macro values keyed by name,
13929 # likewise P contains macro parameters if any. Preserve backslash
13930 # newline sequences.
13931
13932 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13933 sed -n '
13934 s/.\{148\}/&'"$ac_delim"'/g
13935 t rset
13936 :rset
13937 s/^[ ]*#[ ]*define[ ][ ]*/ /
13938 t def
13939 d
13940 :def
13941 s/\\$//
13942 t bsnl
13943 s/["\\]/\\&/g
13944 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13945 D["\1"]=" \3"/p
13946 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13947 d
13948 :bsnl
13949 s/["\\]/\\&/g
13950 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13951 D["\1"]=" \3\\\\\\n"\\/p
13952 t cont
13953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13954 t cont
13955 d
13956 :cont
13957 n
13958 s/.\{148\}/&'"$ac_delim"'/g
13959 t clear
13960 :clear
13961 s/\\$//
13962 t bsnlc
13963 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13964 d
13965 :bsnlc
13966 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13967 b cont
13968 ' <confdefs.h | sed '
13969 s/'"$ac_delim"'/"\\\
13970 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13971
13972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13973 for (key in D) D_is_set[key] = 1
13974 FS = "\a"
13975 }
13976 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13977 line = \$ 0
13978 split(line, arg, " ")
13979 if (arg[1] == "#") {
13980 defundef = arg[2]
13981 mac1 = arg[3]
13982 } else {
13983 defundef = substr(arg[1], 2)
13984 mac1 = arg[2]
13985 }
13986 split(mac1, mac2, "(") #)
13987 macro = mac2[1]
13988 prefix = substr(line, 1, index(line, defundef) - 1)
13989 if (D_is_set[macro]) {
13990 # Preserve the white space surrounding the "#".
13991 print prefix "define", macro P[macro] D[macro]
13992 next
13993 } else {
13994 # Replace #undef with comments. This is necessary, for example,
13995 # in the case of _POSIX_SOURCE, which is predefined and required
13996 # on some systems where configure will not decide to define it.
13997 if (defundef == "undef") {
13998 print "/*", prefix defundef, macro, "*/"
13999 next
14000 }
14001 }
14002 }
14003 { print }
14004 _ACAWK
14005 _ACEOF
14006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14007 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14008 fi # test -n "$CONFIG_HEADERS"
14009
14010
14011 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14012 shift
14013 for ac_tag
14014 do
14015 case $ac_tag in
14016 :[FHLC]) ac_mode=$ac_tag; continue;;
14017 esac
14018 case $ac_mode$ac_tag in
14019 :[FHL]*:*);;
14020 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14021 :[FH]-) ac_tag=-:-;;
14022 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14023 esac
14024 ac_save_IFS=$IFS
14025 IFS=:
14026 set x $ac_tag
14027 IFS=$ac_save_IFS
14028 shift
14029 ac_file=$1
14030 shift
14031
14032 case $ac_mode in
14033 :L) ac_source=$1;;
14034 :[FH])
14035 ac_file_inputs=
14036 for ac_f
14037 do
14038 case $ac_f in
14039 -) ac_f="$ac_tmp/stdin";;
14040 *) # Look for the file first in the build tree, then in the source tree
14041 # (if the path is not absolute). The absolute path cannot be DOS-style,
14042 # because $ac_f cannot contain `:'.
14043 test -f "$ac_f" ||
14044 case $ac_f in
14045 [\\/$]*) false;;
14046 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14047 esac ||
14048 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14049 esac
14050 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14051 as_fn_append ac_file_inputs " '$ac_f'"
14052 done
14053
14054 # Let's still pretend it is `configure' which instantiates (i.e., don't
14055 # use $as_me), people would be surprised to read:
14056 # /* config.h. Generated by config.status. */
14057 configure_input='Generated from '`
14058 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14059 `' by configure.'
14060 if test x"$ac_file" != x-; then
14061 configure_input="$ac_file. $configure_input"
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14063 $as_echo "$as_me: creating $ac_file" >&6;}
14064 fi
14065 # Neutralize special characters interpreted by sed in replacement strings.
14066 case $configure_input in #(
14067 *\&* | *\|* | *\\* )
14068 ac_sed_conf_input=`$as_echo "$configure_input" |
14069 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14070 *) ac_sed_conf_input=$configure_input;;
14071 esac
14072
14073 case $ac_tag in
14074 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14076 esac
14077 ;;
14078 esac
14079
14080 ac_dir=`$as_dirname -- "$ac_file" ||
14081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14082 X"$ac_file" : 'X\(//\)[^/]' \| \
14083 X"$ac_file" : 'X\(//\)$' \| \
14084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14085 $as_echo X"$ac_file" |
14086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14087 s//\1/
14088 q
14089 }
14090 /^X\(\/\/\)[^/].*/{
14091 s//\1/
14092 q
14093 }
14094 /^X\(\/\/\)$/{
14095 s//\1/
14096 q
14097 }
14098 /^X\(\/\).*/{
14099 s//\1/
14100 q
14101 }
14102 s/.*/./; q'`
14103 as_dir="$ac_dir"; as_fn_mkdir_p
14104 ac_builddir=.
14105
14106 case "$ac_dir" in
14107 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14108 *)
14109 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14110 # A ".." for each directory in $ac_dir_suffix.
14111 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14112 case $ac_top_builddir_sub in
14113 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14114 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14115 esac ;;
14116 esac
14117 ac_abs_top_builddir=$ac_pwd
14118 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14119 # for backward compatibility:
14120 ac_top_builddir=$ac_top_build_prefix
14121
14122 case $srcdir in
14123 .) # We are building in place.
14124 ac_srcdir=.
14125 ac_top_srcdir=$ac_top_builddir_sub
14126 ac_abs_top_srcdir=$ac_pwd ;;
14127 [\\/]* | ?:[\\/]* ) # Absolute name.
14128 ac_srcdir=$srcdir$ac_dir_suffix;
14129 ac_top_srcdir=$srcdir
14130 ac_abs_top_srcdir=$srcdir ;;
14131 *) # Relative name.
14132 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14133 ac_top_srcdir=$ac_top_build_prefix$srcdir
14134 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14135 esac
14136 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14137
14138
14139 case $ac_mode in
14140 :F)
14141 #
14142 # CONFIG_FILE
14143 #
14144
14145 case $INSTALL in
14146 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14147 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14148 esac
14149 ac_MKDIR_P=$MKDIR_P
14150 case $MKDIR_P in
14151 [\\/$]* | ?:[\\/]* ) ;;
14152 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14153 esac
14154 _ACEOF
14155
14156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14157 # If the template does not know about datarootdir, expand it.
14158 # FIXME: This hack should be removed a few years after 2.60.
14159 ac_datarootdir_hack=; ac_datarootdir_seen=
14160 ac_sed_dataroot='
14161 /datarootdir/ {
14162 p
14163 q
14164 }
14165 /@datadir@/p
14166 /@docdir@/p
14167 /@infodir@/p
14168 /@localedir@/p
14169 /@mandir@/p'
14170 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14171 *datarootdir*) ac_datarootdir_seen=yes;;
14172 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14174 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14175 _ACEOF
14176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14177 ac_datarootdir_hack='
14178 s&@datadir@&$datadir&g
14179 s&@docdir@&$docdir&g
14180 s&@infodir@&$infodir&g
14181 s&@localedir@&$localedir&g
14182 s&@mandir@&$mandir&g
14183 s&\\\${datarootdir}&$datarootdir&g' ;;
14184 esac
14185 _ACEOF
14186
14187 # Neutralize VPATH when `$srcdir' = `.'.
14188 # Shell code in configure.ac might set extrasub.
14189 # FIXME: do we really want to maintain this feature?
14190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14191 ac_sed_extra="$ac_vpsub
14192 $extrasub
14193 _ACEOF
14194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14195 :t
14196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14197 s|@configure_input@|$ac_sed_conf_input|;t t
14198 s&@top_builddir@&$ac_top_builddir_sub&;t t
14199 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14200 s&@srcdir@&$ac_srcdir&;t t
14201 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14202 s&@top_srcdir@&$ac_top_srcdir&;t t
14203 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14204 s&@builddir@&$ac_builddir&;t t
14205 s&@abs_builddir@&$ac_abs_builddir&;t t
14206 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14207 s&@INSTALL@&$ac_INSTALL&;t t
14208 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14209 $ac_datarootdir_hack
14210 "
14211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14212 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14213
14214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14215 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14217 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14219 which seems to be undefined. Please make sure it is defined" >&5
14220 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14221 which seems to be undefined. Please make sure it is defined" >&2;}
14222
14223 rm -f "$ac_tmp/stdin"
14224 case $ac_file in
14225 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14226 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14227 esac \
14228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14229 ;;
14230 :H)
14231 #
14232 # CONFIG_HEADER
14233 #
14234 if test x"$ac_file" != x-; then
14235 {
14236 $as_echo "/* $configure_input */" \
14237 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14238 } >"$ac_tmp/config.h" \
14239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14240 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14242 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14243 else
14244 rm -f "$ac_file"
14245 mv "$ac_tmp/config.h" "$ac_file" \
14246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14247 fi
14248 else
14249 $as_echo "/* $configure_input */" \
14250 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14251 || as_fn_error $? "could not create -" "$LINENO" 5
14252 fi
14253 # Compute "$ac_file"'s index in $config_headers.
14254 _am_arg="$ac_file"
14255 _am_stamp_count=1
14256 for _am_header in $config_headers :; do
14257 case $_am_header in
14258 $_am_arg | $_am_arg:* )
14259 break ;;
14260 * )
14261 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14262 esac
14263 done
14264 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14265 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14266 X"$_am_arg" : 'X\(//\)[^/]' \| \
14267 X"$_am_arg" : 'X\(//\)$' \| \
14268 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14269 $as_echo X"$_am_arg" |
14270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14271 s//\1/
14272 q
14273 }
14274 /^X\(\/\/\)[^/].*/{
14275 s//\1/
14276 q
14277 }
14278 /^X\(\/\/\)$/{
14279 s//\1/
14280 q
14281 }
14282 /^X\(\/\).*/{
14283 s//\1/
14284 q
14285 }
14286 s/.*/./; q'`/stamp-h$_am_stamp_count
14287 ;;
14288
14289 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14290 $as_echo "$as_me: executing $ac_file commands" >&6;}
14291 ;;
14292 esac
14293
14294
14295 case $ac_file$ac_mode in
14296 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14297 # Older Autoconf quotes --file arguments for eval, but not when files
14298 # are listed without --file. Let's play safe and only enable the eval
14299 # if we detect the quoting.
14300 case $CONFIG_FILES in
14301 *\'*) eval set x "$CONFIG_FILES" ;;
14302 *) set x $CONFIG_FILES ;;
14303 esac
14304 shift
14305 for mf
14306 do
14307 # Strip MF so we end up with the name of the file.
14308 mf=`echo "$mf" | sed -e 's/:.*$//'`
14309 # Check whether this is an Automake generated Makefile or not.
14310 # We used to match only the files named 'Makefile.in', but
14311 # some people rename them; so instead we look at the file content.
14312 # Grep'ing the first line is not enough: some people post-process
14313 # each Makefile.in and add a new line on top of each file to say so.
14314 # Grep'ing the whole file is not good either: AIX grep has a line
14315 # limit of 2048, but all sed's we know have understand at least 4000.
14316 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14317 dirpart=`$as_dirname -- "$mf" ||
14318 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14319 X"$mf" : 'X\(//\)[^/]' \| \
14320 X"$mf" : 'X\(//\)$' \| \
14321 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14322 $as_echo X"$mf" |
14323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14324 s//\1/
14325 q
14326 }
14327 /^X\(\/\/\)[^/].*/{
14328 s//\1/
14329 q
14330 }
14331 /^X\(\/\/\)$/{
14332 s//\1/
14333 q
14334 }
14335 /^X\(\/\).*/{
14336 s//\1/
14337 q
14338 }
14339 s/.*/./; q'`
14340 else
14341 continue
14342 fi
14343 # Extract the definition of DEPDIR, am__include, and am__quote
14344 # from the Makefile without running 'make'.
14345 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14346 test -z "$DEPDIR" && continue
14347 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14348 test -z "$am__include" && continue
14349 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14350 # Find all dependency output files, they are included files with
14351 # $(DEPDIR) in their names. We invoke sed twice because it is the
14352 # simplest approach to changing $(DEPDIR) to its actual value in the
14353 # expansion.
14354 for file in `sed -n "
14355 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14356 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14357 # Make sure the directory exists.
14358 test -f "$dirpart/$file" && continue
14359 fdir=`$as_dirname -- "$file" ||
14360 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14361 X"$file" : 'X\(//\)[^/]' \| \
14362 X"$file" : 'X\(//\)$' \| \
14363 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14364 $as_echo X"$file" |
14365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14366 s//\1/
14367 q
14368 }
14369 /^X\(\/\/\)[^/].*/{
14370 s//\1/
14371 q
14372 }
14373 /^X\(\/\/\)$/{
14374 s//\1/
14375 q
14376 }
14377 /^X\(\/\).*/{
14378 s//\1/
14379 q
14380 }
14381 s/.*/./; q'`
14382 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14383 # echo "creating $dirpart/$file"
14384 echo '# dummy' > "$dirpart/$file"
14385 done
14386 done
14387 }
14388 ;;
14389 "libtool":C)
14390
14391 # See if we are running on zsh, and set the options which allow our
14392 # commands through without removal of \ escapes.
14393 if test -n "${ZSH_VERSION+set}" ; then
14394 setopt NO_GLOB_SUBST
14395 fi
14396
14397 cfgfile="${ofile}T"
14398 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14399 $RM "$cfgfile"
14400
14401 cat <<_LT_EOF >> "$cfgfile"
14402 #! $SHELL
14403
14404 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14405 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14408 #
14409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14410 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14411 # Written by Gordon Matzigkeit, 1996
14412 #
14413 # This file is part of GNU Libtool.
14414 #
14415 # GNU Libtool is free software; you can redistribute it and/or
14416 # modify it under the terms of the GNU General Public License as
14417 # published by the Free Software Foundation; either version 2 of
14418 # the License, or (at your option) any later version.
14419 #
14420 # As a special exception to the GNU General Public License,
14421 # if you distribute this file as part of a program or library that
14422 # is built using GNU Libtool, you may include this file under the
14423 # same distribution terms that you use for the rest of that program.
14424 #
14425 # GNU Libtool is distributed in the hope that it will be useful,
14426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14428 # GNU General Public License for more details.
14429 #
14430 # You should have received a copy of the GNU General Public License
14431 # along with GNU Libtool; see the file COPYING. If not, a copy
14432 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14433 # obtained by writing to the Free Software Foundation, Inc.,
14434 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14435
14436
14437 # The names of the tagged configurations supported by this script.
14438 available_tags=""
14439
14440 # ### BEGIN LIBTOOL CONFIG
14441
14442 # Which release of libtool.m4 was used?
14443 macro_version=$macro_version
14444 macro_revision=$macro_revision
14445
14446 # Whether or not to build shared libraries.
14447 build_libtool_libs=$enable_shared
14448
14449 # Whether or not to build static libraries.
14450 build_old_libs=$enable_static
14451
14452 # What type of objects to build.
14453 pic_mode=$pic_mode
14454
14455 # Whether or not to optimize for fast installation.
14456 fast_install=$enable_fast_install
14457
14458 # Shell to use when invoking shell scripts.
14459 SHELL=$lt_SHELL
14460
14461 # An echo program that protects backslashes.
14462 ECHO=$lt_ECHO
14463
14464 # The host system.
14465 host_alias=$host_alias
14466 host=$host
14467 host_os=$host_os
14468
14469 # The build system.
14470 build_alias=$build_alias
14471 build=$build
14472 build_os=$build_os
14473
14474 # A sed program that does not truncate output.
14475 SED=$lt_SED
14476
14477 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14478 Xsed="\$SED -e 1s/^X//"
14479
14480 # A grep program that handles long lines.
14481 GREP=$lt_GREP
14482
14483 # An ERE matcher.
14484 EGREP=$lt_EGREP
14485
14486 # A literal string matcher.
14487 FGREP=$lt_FGREP
14488
14489 # A BSD- or MS-compatible name lister.
14490 NM=$lt_NM
14491
14492 # Whether we need soft or hard links.
14493 LN_S=$lt_LN_S
14494
14495 # What is the maximum length of a command?
14496 max_cmd_len=$max_cmd_len
14497
14498 # Object file suffix (normally "o").
14499 objext=$ac_objext
14500
14501 # Executable file suffix (normally "").
14502 exeext=$exeext
14503
14504 # whether the shell understands "unset".
14505 lt_unset=$lt_unset
14506
14507 # turn spaces into newlines.
14508 SP2NL=$lt_lt_SP2NL
14509
14510 # turn newlines into spaces.
14511 NL2SP=$lt_lt_NL2SP
14512
14513 # An object symbol dumper.
14514 OBJDUMP=$lt_OBJDUMP
14515
14516 # Method to check whether dependent libraries are shared objects.
14517 deplibs_check_method=$lt_deplibs_check_method
14518
14519 # Command to use when deplibs_check_method == "file_magic".
14520 file_magic_cmd=$lt_file_magic_cmd
14521
14522 # The archiver.
14523 AR=$lt_AR
14524 AR_FLAGS=$lt_AR_FLAGS
14525
14526 # A symbol stripping program.
14527 STRIP=$lt_STRIP
14528
14529 # Commands used to install an old-style archive.
14530 RANLIB=$lt_RANLIB
14531 old_postinstall_cmds=$lt_old_postinstall_cmds
14532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14533
14534 # Whether to use a lock for old archive extraction.
14535 lock_old_archive_extraction=$lock_old_archive_extraction
14536
14537 # A C compiler.
14538 LTCC=$lt_CC
14539
14540 # LTCC compiler flags.
14541 LTCFLAGS=$lt_CFLAGS
14542
14543 # Take the output of nm and produce a listing of raw symbols and C names.
14544 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14545
14546 # Transform the output of nm in a proper C declaration.
14547 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14548
14549 # Transform the output of nm in a C name address pair.
14550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14551
14552 # Transform the output of nm in a C name address pair when lib prefix is needed.
14553 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14554
14555 # The name of the directory that contains temporary libtool files.
14556 objdir=$objdir
14557
14558 # Used to examine libraries when file_magic_cmd begins with "file".
14559 MAGIC_CMD=$MAGIC_CMD
14560
14561 # Must we lock files when doing compilation?
14562 need_locks=$lt_need_locks
14563
14564 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14565 DSYMUTIL=$lt_DSYMUTIL
14566
14567 # Tool to change global to local symbols on Mac OS X.
14568 NMEDIT=$lt_NMEDIT
14569
14570 # Tool to manipulate fat objects and archives on Mac OS X.
14571 LIPO=$lt_LIPO
14572
14573 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14574 OTOOL=$lt_OTOOL
14575
14576 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14577 OTOOL64=$lt_OTOOL64
14578
14579 # Old archive suffix (normally "a").
14580 libext=$libext
14581
14582 # Shared library suffix (normally ".so").
14583 shrext_cmds=$lt_shrext_cmds
14584
14585 # The commands to extract the exported symbol list from a shared archive.
14586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14587
14588 # Variables whose values should be saved in libtool wrapper scripts and
14589 # restored at link time.
14590 variables_saved_for_relink=$lt_variables_saved_for_relink
14591
14592 # Do we need the "lib" prefix for modules?
14593 need_lib_prefix=$need_lib_prefix
14594
14595 # Do we need a version for libraries?
14596 need_version=$need_version
14597
14598 # Library versioning type.
14599 version_type=$version_type
14600
14601 # Shared library runtime path variable.
14602 runpath_var=$runpath_var
14603
14604 # Shared library path variable.
14605 shlibpath_var=$shlibpath_var
14606
14607 # Is shlibpath searched before the hard-coded library search path?
14608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14609
14610 # Format of library name prefix.
14611 libname_spec=$lt_libname_spec
14612
14613 # List of archive names. First name is the real one, the rest are links.
14614 # The last name is the one that the linker finds with -lNAME
14615 library_names_spec=$lt_library_names_spec
14616
14617 # The coded name of the library, if different from the real name.
14618 soname_spec=$lt_soname_spec
14619
14620 # Permission mode override for installation of shared libraries.
14621 install_override_mode=$lt_install_override_mode
14622
14623 # Command to use after installation of a shared archive.
14624 postinstall_cmds=$lt_postinstall_cmds
14625
14626 # Command to use after uninstallation of a shared archive.
14627 postuninstall_cmds=$lt_postuninstall_cmds
14628
14629 # Commands used to finish a libtool library installation in a directory.
14630 finish_cmds=$lt_finish_cmds
14631
14632 # As "finish_cmds", except a single script fragment to be evaled but
14633 # not shown.
14634 finish_eval=$lt_finish_eval
14635
14636 # Whether we should hardcode library paths into libraries.
14637 hardcode_into_libs=$hardcode_into_libs
14638
14639 # Compile-time system search path for libraries.
14640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14641
14642 # Run-time system search path for libraries.
14643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14644
14645 # Whether dlopen is supported.
14646 dlopen_support=$enable_dlopen
14647
14648 # Whether dlopen of programs is supported.
14649 dlopen_self=$enable_dlopen_self
14650
14651 # Whether dlopen of statically linked programs is supported.
14652 dlopen_self_static=$enable_dlopen_self_static
14653
14654 # Commands to strip libraries.
14655 old_striplib=$lt_old_striplib
14656 striplib=$lt_striplib
14657
14658
14659 # The linker used to build libraries.
14660 LD=$lt_LD
14661
14662 # How to create reloadable object files.
14663 reload_flag=$lt_reload_flag
14664 reload_cmds=$lt_reload_cmds
14665
14666 # Commands used to build an old-style archive.
14667 old_archive_cmds=$lt_old_archive_cmds
14668
14669 # A language specific compiler.
14670 CC=$lt_compiler
14671
14672 # Is the compiler the GNU compiler?
14673 with_gcc=$GCC
14674
14675 # Compiler flag to turn off builtin functions.
14676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14677
14678 # How to pass a linker flag through the compiler.
14679 wl=$lt_lt_prog_compiler_wl
14680
14681 # Additional compiler flags for building library objects.
14682 pic_flag=$lt_lt_prog_compiler_pic
14683
14684 # Compiler flag to prevent dynamic linking.
14685 link_static_flag=$lt_lt_prog_compiler_static
14686
14687 # Does compiler simultaneously support -c and -o options?
14688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14689
14690 # Whether or not to add -lc for building shared libraries.
14691 build_libtool_need_lc=$archive_cmds_need_lc
14692
14693 # Whether or not to disallow shared libs when runtime libs are static.
14694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14695
14696 # Compiler flag to allow reflexive dlopens.
14697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14698
14699 # Compiler flag to generate shared objects directly from archives.
14700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14701
14702 # Whether the compiler copes with passing no objects directly.
14703 compiler_needs_object=$lt_compiler_needs_object
14704
14705 # Create an old-style archive from a shared archive.
14706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14707
14708 # Create a temporary old-style archive to link instead of a shared archive.
14709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14710
14711 # Commands used to build a shared archive.
14712 archive_cmds=$lt_archive_cmds
14713 archive_expsym_cmds=$lt_archive_expsym_cmds
14714
14715 # Commands used to build a loadable module if different from building
14716 # a shared archive.
14717 module_cmds=$lt_module_cmds
14718 module_expsym_cmds=$lt_module_expsym_cmds
14719
14720 # Whether we are building with GNU ld or not.
14721 with_gnu_ld=$lt_with_gnu_ld
14722
14723 # Flag that allows shared libraries with undefined symbols to be built.
14724 allow_undefined_flag=$lt_allow_undefined_flag
14725
14726 # Flag that enforces no undefined symbols.
14727 no_undefined_flag=$lt_no_undefined_flag
14728
14729 # Flag to hardcode \$libdir into a binary during linking.
14730 # This must work even if \$libdir does not exist
14731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14732
14733 # If ld is used when linking, flag to hardcode \$libdir into a binary
14734 # during linking. This must work even if \$libdir does not exist.
14735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14736
14737 # Whether we need a single "-rpath" flag with a separated argument.
14738 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14739
14740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14741 # DIR into the resulting binary.
14742 hardcode_direct=$hardcode_direct
14743
14744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14745 # DIR into the resulting binary and the resulting library dependency is
14746 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14747 # library is relocated.
14748 hardcode_direct_absolute=$hardcode_direct_absolute
14749
14750 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14751 # into the resulting binary.
14752 hardcode_minus_L=$hardcode_minus_L
14753
14754 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14755 # into the resulting binary.
14756 hardcode_shlibpath_var=$hardcode_shlibpath_var
14757
14758 # Set to "yes" if building a shared library automatically hardcodes DIR
14759 # into the library and all subsequent libraries and executables linked
14760 # against it.
14761 hardcode_automatic=$hardcode_automatic
14762
14763 # Set to yes if linker adds runtime paths of dependent libraries
14764 # to runtime path list.
14765 inherit_rpath=$inherit_rpath
14766
14767 # Whether libtool must link a program against all its dependency libraries.
14768 link_all_deplibs=$link_all_deplibs
14769
14770 # Fix the shell variable \$srcfile for the compiler.
14771 fix_srcfile_path=$lt_fix_srcfile_path
14772
14773 # Set to "yes" if exported symbols are required.
14774 always_export_symbols=$always_export_symbols
14775
14776 # The commands to list exported symbols.
14777 export_symbols_cmds=$lt_export_symbols_cmds
14778
14779 # Symbols that should not be listed in the preloaded symbols.
14780 exclude_expsyms=$lt_exclude_expsyms
14781
14782 # Symbols that must always be exported.
14783 include_expsyms=$lt_include_expsyms
14784
14785 # Commands necessary for linking programs (against libraries) with templates.
14786 prelink_cmds=$lt_prelink_cmds
14787
14788 # Specify filename containing input files.
14789 file_list_spec=$lt_file_list_spec
14790
14791 # How to hardcode a shared library path into an executable.
14792 hardcode_action=$hardcode_action
14793
14794 # ### END LIBTOOL CONFIG
14795
14796 _LT_EOF
14797
14798 case $host_os in
14799 aix3*)
14800 cat <<\_LT_EOF >> "$cfgfile"
14801 # AIX sometimes has problems with the GCC collect2 program. For some
14802 # reason, if we set the COLLECT_NAMES environment variable, the problems
14803 # vanish in a puff of smoke.
14804 if test "X${COLLECT_NAMES+set}" != Xset; then
14805 COLLECT_NAMES=
14806 export COLLECT_NAMES
14807 fi
14808 _LT_EOF
14809 ;;
14810 esac
14811
14812
14813 ltmain="$ac_aux_dir/ltmain.sh"
14814
14815
14816 # We use sed instead of cat because bash on DJGPP gets confused if
14817 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14818 # text mode, it properly converts lines to CR/LF. This bash problem
14819 # is reportedly fixed, but why not run on old versions too?
14820 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14821 || (rm -f "$cfgfile"; exit 1)
14822
14823 case $xsi_shell in
14824 yes)
14825 cat << \_LT_EOF >> "$cfgfile"
14826
14827 # func_dirname file append nondir_replacement
14828 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14829 # otherwise set result to NONDIR_REPLACEMENT.
14830 func_dirname ()
14831 {
14832 case ${1} in
14833 */*) func_dirname_result="${1%/*}${2}" ;;
14834 * ) func_dirname_result="${3}" ;;
14835 esac
14836 }
14837
14838 # func_basename file
14839 func_basename ()
14840 {
14841 func_basename_result="${1##*/}"
14842 }
14843
14844 # func_dirname_and_basename file append nondir_replacement
14845 # perform func_basename and func_dirname in a single function
14846 # call:
14847 # dirname: Compute the dirname of FILE. If nonempty,
14848 # add APPEND to the result, otherwise set result
14849 # to NONDIR_REPLACEMENT.
14850 # value returned in "$func_dirname_result"
14851 # basename: Compute filename of FILE.
14852 # value retuned in "$func_basename_result"
14853 # Implementation must be kept synchronized with func_dirname
14854 # and func_basename. For efficiency, we do not delegate to
14855 # those functions but instead duplicate the functionality here.
14856 func_dirname_and_basename ()
14857 {
14858 case ${1} in
14859 */*) func_dirname_result="${1%/*}${2}" ;;
14860 * ) func_dirname_result="${3}" ;;
14861 esac
14862 func_basename_result="${1##*/}"
14863 }
14864
14865 # func_stripname prefix suffix name
14866 # strip PREFIX and SUFFIX off of NAME.
14867 # PREFIX and SUFFIX must not contain globbing or regex special
14868 # characters, hashes, percent signs, but SUFFIX may contain a leading
14869 # dot (in which case that matches only a dot).
14870 func_stripname ()
14871 {
14872 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14873 # positional parameters, so assign one to ordinary parameter first.
14874 func_stripname_result=${3}
14875 func_stripname_result=${func_stripname_result#"${1}"}
14876 func_stripname_result=${func_stripname_result%"${2}"}
14877 }
14878
14879 # func_opt_split
14880 func_opt_split ()
14881 {
14882 func_opt_split_opt=${1%%=*}
14883 func_opt_split_arg=${1#*=}
14884 }
14885
14886 # func_lo2o object
14887 func_lo2o ()
14888 {
14889 case ${1} in
14890 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14891 *) func_lo2o_result=${1} ;;
14892 esac
14893 }
14894
14895 # func_xform libobj-or-source
14896 func_xform ()
14897 {
14898 func_xform_result=${1%.*}.lo
14899 }
14900
14901 # func_arith arithmetic-term...
14902 func_arith ()
14903 {
14904 func_arith_result=$(( $* ))
14905 }
14906
14907 # func_len string
14908 # STRING may not start with a hyphen.
14909 func_len ()
14910 {
14911 func_len_result=${#1}
14912 }
14913
14914 _LT_EOF
14915 ;;
14916 *) # Bourne compatible functions.
14917 cat << \_LT_EOF >> "$cfgfile"
14918
14919 # func_dirname file append nondir_replacement
14920 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14921 # otherwise set result to NONDIR_REPLACEMENT.
14922 func_dirname ()
14923 {
14924 # Extract subdirectory from the argument.
14925 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14926 if test "X$func_dirname_result" = "X${1}"; then
14927 func_dirname_result="${3}"
14928 else
14929 func_dirname_result="$func_dirname_result${2}"
14930 fi
14931 }
14932
14933 # func_basename file
14934 func_basename ()
14935 {
14936 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14937 }
14938
14939
14940 # func_stripname prefix suffix name
14941 # strip PREFIX and SUFFIX off of NAME.
14942 # PREFIX and SUFFIX must not contain globbing or regex special
14943 # characters, hashes, percent signs, but SUFFIX may contain a leading
14944 # dot (in which case that matches only a dot).
14945 # func_strip_suffix prefix name
14946 func_stripname ()
14947 {
14948 case ${2} in
14949 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14950 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14951 esac
14952 }
14953
14954 # sed scripts:
14955 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14956 my_sed_long_arg='1s/^-[^=]*=//'
14957
14958 # func_opt_split
14959 func_opt_split ()
14960 {
14961 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14962 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14963 }
14964
14965 # func_lo2o object
14966 func_lo2o ()
14967 {
14968 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14969 }
14970
14971 # func_xform libobj-or-source
14972 func_xform ()
14973 {
14974 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14975 }
14976
14977 # func_arith arithmetic-term...
14978 func_arith ()
14979 {
14980 func_arith_result=`expr "$@"`
14981 }
14982
14983 # func_len string
14984 # STRING may not start with a hyphen.
14985 func_len ()
14986 {
14987 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14988 }
14989
14990 _LT_EOF
14991 esac
14992
14993 case $lt_shell_append in
14994 yes)
14995 cat << \_LT_EOF >> "$cfgfile"
14996
14997 # func_append var value
14998 # Append VALUE to the end of shell variable VAR.
14999 func_append ()
15000 {
15001 eval "$1+=\$2"
15002 }
15003 _LT_EOF
15004 ;;
15005 *)
15006 cat << \_LT_EOF >> "$cfgfile"
15007
15008 # func_append var value
15009 # Append VALUE to the end of shell variable VAR.
15010 func_append ()
15011 {
15012 eval "$1=\$$1\$2"
15013 }
15014
15015 _LT_EOF
15016 ;;
15017 esac
15018
15019
15020 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15021 || (rm -f "$cfgfile"; exit 1)
15022
15023 mv -f "$cfgfile" "$ofile" ||
15024 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15025 chmod +x "$ofile"
15026
15027 ;;
15028
15029 esac
15030 done # for ac_tag
15031
15032
15033 as_fn_exit 0
15034 _ACEOF
15035 ac_clean_files=$ac_clean_files_save
15036
15037 test $ac_write_fail = 0 ||
15038 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15039
15040
15041 # configure is writing to config.log, and then calls config.status.
15042 # config.status does its own redirection, appending to config.log.
15043 # Unfortunately, on DOS this fails, as config.log is still kept open
15044 # by configure, so config.status won't be able to write to it; its
15045 # output is simply discarded. So we exec the FD to /dev/null,
15046 # effectively closing config.log, so it can be properly (re)opened and
15047 # appended to by config.status. When coming back to configure, we
15048 # need to make the FD available again.
15049 if test "$no_create" != yes; then
15050 ac_cs_success=:
15051 ac_config_status_args=
15052 test "$silent" = yes &&
15053 ac_config_status_args="$ac_config_status_args --quiet"
15054 exec 5>/dev/null
15055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15056 exec 5>>config.log
15057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15058 # would make configure fail if this is the last instruction.
15059 $ac_cs_success || as_fn_exit 1
15060 fi
15061 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15063 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15064 fi
15065
This page took 0.762823 seconds and 5 git commands to generate.