]> gcc.gnu.org Git - gcc.git/blob - libgrust/configure
libgrust: Add libproc_macro and build system
[gcc.git] / libgrust / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgrust version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 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='libgrust'
589 PACKAGE_TARNAME='libgrust'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='libgrust version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 toolexeclibdir
638 toolexecdir
639 target_subdir
640 host_subdir
641 build_subdir
642 build_libsubdir
643 target_noncanonical
644 host_noncanonical
645 CXXCPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 RANLIB
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 SED
660 LIBTOOL
661 am__fastdepCCAS_FALSE
662 am__fastdepCCAS_TRUE
663 CCASDEPMODE
664 CCASFLAGS
665 CCAS
666 am__fastdepCXX_FALSE
667 am__fastdepCXX_TRUE
668 CXXDEPMODE
669 ac_ct_CXX
670 CXXFLAGS
671 CXX
672 ac_ct_AR
673 AR
674 EGREP
675 GREP
676 CPP
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
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 MAINT
722 MAINTAINER_MODE_FALSE
723 MAINTAINER_MODE_TRUE
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 multi_basedir
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_multilib
779 enable_maintainer_mode
780 enable_silent_rules
781 with_toolexeclibdir
782 enable_dependency_tracking
783 enable_werror
784 enable_cet
785 enable_shared
786 enable_static
787 with_pic
788 enable_fast_install
789 with_gnu_ld
790 enable_libtool_lock
791 enable_darwin_at_rpath
792 with_build_libsubdir
793 enable_version_specific_runtime_libs
794 with_gcc_major_version_only
795 '
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 CPP
805 CXX
806 CXXFLAGS
807 CCC
808 CCAS
809 CCASFLAGS
810 CXXCPP'
811
812
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
834
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
860
861 ac_prev=
862 ac_dashdash=
863 for ac_option
864 do
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
868 ac_prev=
869 continue
870 fi
871
872 case $ac_option in
873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *=) ac_optarg= ;;
875 *) ac_optarg=yes ;;
876 esac
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1161
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1195
1196 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1198 ;;
1199
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1209
1210 *)
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 ;;
1217
1218 esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1239 do
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1315 fi
1316 else
1317 ac_srcdir_defaulted=no
1318 fi
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 fi
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330 fi
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1343
1344 #
1345 # Report the --help message.
1346 #
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures libgrust version-unused to adapt to many kinds of systems.
1352
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1357
1358 Defaults for the options are specified in brackets.
1359
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1376
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1381
1382 For better control, use the options below.
1383
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libgrust]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1405
1406 cat <<\_ACEOF
1407
1408 Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 --target=TARGET configure for building compilers for TARGET [HOST]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of libgrust version-unused:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-multilib build many library versions (default)
1431 --enable-maintainer-mode
1432 enable make rules and dependencies not useful (and
1433 sometimes confusing) to the casual installer
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-werror disable building with -Werror
1441 --enable-cet enable Intel CET in target libraries [default=auto]
1442 --enable-shared[=PKGS] build shared libraries [default=yes]
1443 --enable-static[=PKGS] build static libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --enable-darwin-at-rpath
1448 install libraries with @rpath/library-name, requires
1449 rpaths to be added to executables
1450 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1451
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-toolexeclibdir=DIR
1456 install libraries built with a cross compiler within
1457 DIR
1458 --with-pic try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-build-libsubdir=DIR Directory where to find libraries for build system
1462 --with-gcc-major-version-only
1463 use only GCC major number in filesystem paths
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 CXX C++ compiler command
1475 CXXFLAGS C++ compiler flags
1476 CCAS assembler compiler command (defaults to CC)
1477 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1478 CXXCPP C++ preprocessor
1479
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1482
1483 Report bugs to the package provider.
1484 _ACEOF
1485 ac_status=$?
1486 fi
1487
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1495
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *)
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1511
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1541 fi
1542
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 libgrust configure version-unused
1547 generated by GNU Autoconf 2.69
1548
1549 Copyright (C) 2012 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1554 fi
1555
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1559
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1580 fi
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592 fi
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_compile
1597
1598 # ac_fn_c_try_cpp LINENO
1599 # ----------------------
1600 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_cpp ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_cpp conftest.$ac_ext"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } > conftest.i && {
1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 }; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629 fi
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_cpp
1634
1635 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1638 # the include files in INCLUDES and setting the cache variable VAR
1639 # accordingly.
1640 ac_fn_c_check_header_mongrel ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if eval \${$3+:} false; then :
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1648 fi
1649 eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652 else
1653 # Is the header compilable?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1655 $as_echo_n "checking $2 usability... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 ac_header_compiler=yes
1663 else
1664 ac_header_compiler=no
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1668 $as_echo "$ac_header_compiler" >&6; }
1669
1670 # Is the header present?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1672 $as_echo_n "checking $2 presence... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_cpp "$LINENO"; then :
1678 ac_header_preproc=yes
1679 else
1680 ac_header_preproc=no
1681 fi
1682 rm -f conftest.err conftest.i conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1684 $as_echo "$ac_header_preproc" >&6; }
1685
1686 # So? What about this header?
1687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1688 yes:no: )
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1690 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 ;;
1694 no:yes:* )
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1696 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1698 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1700 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1702 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 ;;
1706 esac
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1711 else
1712 eval "$3=\$ac_header_compiler"
1713 fi
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720 } # ac_fn_c_check_header_mongrel
1721
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1726 ac_fn_c_try_run ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740 { { case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_try") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; }; }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: program exited with status $ac_status" >&5
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=$ac_status
1757 fi
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_run
1763
1764 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists and can be compiled using the include files in
1767 # INCLUDES, setting the cache variable VAR accordingly.
1768 ac_fn_c_check_header_compile ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 $4
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 eval "$3=yes"
1783 else
1784 eval "$3=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 fi
1788 eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793 } # ac_fn_c_check_header_compile
1794
1795 # ac_fn_cxx_try_compile LINENO
1796 # ----------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_compile ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_cxx_try_compile
1832
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_link ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 test -x conftest$ac_exeext
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868 fi
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_link
1878
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889 else
1890 if test x$gcc_no_link = xyes; then
1891 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1892 fi
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_c_check_func
1948
1949 # ac_fn_cxx_try_cpp LINENO
1950 # ------------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_cpp ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } > conftest.i && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1983
1984 } # ac_fn_cxx_try_cpp
1985
1986 # ac_fn_cxx_try_link LINENO
1987 # -------------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_link ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 test -x conftest$ac_exeext
2014 }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021 fi
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 as_fn_set_status $ac_retval
2029
2030 } # ac_fn_cxx_try_link
2031 cat >config.log <<_ACEOF
2032 This file contains any messages produced by compilers while
2033 running configure, to aid debugging if configure makes a mistake.
2034
2035 It was created by libgrust $as_me version-unused, which was
2036 generated by GNU Autoconf 2.69. Invocation command line was
2037
2038 $ $0 $@
2039
2040 _ACEOF
2041 exec 5>>config.log
2042 {
2043 cat <<_ASUNAME
2044 ## --------- ##
2045 ## Platform. ##
2046 ## --------- ##
2047
2048 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2049 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2050 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2051 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2052 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2053
2054 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2055 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2056
2057 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2058 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2059 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2060 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2061 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2062 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2063 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2064
2065 _ASUNAME
2066
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 $as_echo "PATH: $as_dir"
2073 done
2074 IFS=$as_save_IFS
2075
2076 } >&5
2077
2078 cat >&5 <<_ACEOF
2079
2080
2081 ## ----------- ##
2082 ## Core tests. ##
2083 ## ----------- ##
2084
2085 _ACEOF
2086
2087
2088 # Keep a trace of the command line.
2089 # Strip out --no-create and --no-recursion so they do not pile up.
2090 # Strip out --silent because we don't want to record it for future runs.
2091 # Also quote any args containing shell meta-characters.
2092 # Make two passes to allow for proper duplicate-argument suppression.
2093 ac_configure_args=
2094 ac_configure_args0=
2095 ac_configure_args1=
2096 ac_must_keep_next=false
2097 for ac_pass in 1 2
2098 do
2099 for ac_arg
2100 do
2101 case $ac_arg in
2102 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2104 | -silent | --silent | --silen | --sile | --sil)
2105 continue ;;
2106 *\'*)
2107 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 esac
2109 case $ac_pass in
2110 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2111 2)
2112 as_fn_append ac_configure_args1 " '$ac_arg'"
2113 if test $ac_must_keep_next = true; then
2114 ac_must_keep_next=false # Got value, back to normal.
2115 else
2116 case $ac_arg in
2117 *=* | --config-cache | -C | -disable-* | --disable-* \
2118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2120 | -with-* | --with-* | -without-* | --without-* | --x)
2121 case "$ac_configure_args0 " in
2122 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123 esac
2124 ;;
2125 -* ) ac_must_keep_next=true ;;
2126 esac
2127 fi
2128 as_fn_append ac_configure_args " '$ac_arg'"
2129 ;;
2130 esac
2131 done
2132 done
2133 { ac_configure_args0=; unset ac_configure_args0;}
2134 { ac_configure_args1=; unset ac_configure_args1;}
2135
2136 # When interrupted or exit'd, cleanup temporary files, and complete
2137 # config.log. We remove comments because anyway the quotes in there
2138 # would cause problems or look ugly.
2139 # WARNING: Use '\'' to represent an apostrophe within the trap.
2140 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2141 trap 'exit_status=$?
2142 # Save into config.log some information that might help in debugging.
2143 {
2144 echo
2145
2146 $as_echo "## ---------------- ##
2147 ## Cache variables. ##
2148 ## ---------------- ##"
2149 echo
2150 # The following way of writing the cache mishandles newlines in values,
2151 (
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in #(
2155 *${as_nl}*)
2156 case $ac_var in #(
2157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159 esac
2160 case $ac_var in #(
2161 _ | IFS | as_nl) ;; #(
2162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163 *) { eval $ac_var=; unset $ac_var;} ;;
2164 esac ;;
2165 esac
2166 done
2167 (set) 2>&1 |
2168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169 *${as_nl}ac_space=\ *)
2170 sed -n \
2171 "s/'\''/'\''\\\\'\'''\''/g;
2172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 ;; #(
2174 *)
2175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2176 ;;
2177 esac |
2178 sort
2179 )
2180 echo
2181
2182 $as_echo "## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##"
2185 echo
2186 for ac_var in $ac_subst_vars
2187 do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2195
2196 if test -n "$ac_subst_files"; then
2197 $as_echo "## ------------------- ##
2198 ## File substitutions. ##
2199 ## ------------------- ##"
2200 echo
2201 for ac_var in $ac_subst_files
2202 do
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 $as_echo "$ac_var='\''$ac_val'\''"
2208 done | sort
2209 echo
2210 fi
2211
2212 if test -s confdefs.h; then
2213 $as_echo "## ----------- ##
2214 ## confdefs.h. ##
2215 ## ----------- ##"
2216 echo
2217 cat confdefs.h
2218 echo
2219 fi
2220 test "$ac_signal" != 0 &&
2221 $as_echo "$as_me: caught signal $ac_signal"
2222 $as_echo "$as_me: exit $exit_status"
2223 } >&5
2224 rm -f core *.core core.conftest.* &&
2225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226 exit $exit_status
2227 ' 0
2228 for ac_signal in 1 2 13 15; do
2229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2230 done
2231 ac_signal=0
2232
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2235
2236 $as_echo "/* confdefs.h */" > confdefs.h
2237
2238 # Predefined preprocessor variables.
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_NAME "$PACKAGE_NAME"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_STRING "$PACKAGE_STRING"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_URL "$PACKAGE_URL"
2262 _ACEOF
2263
2264
2265 # Let the site file select an alternate cache file if it wants to.
2266 # Prefer an explicitly selected file to automatically selected ones.
2267 ac_site_file1=NONE
2268 ac_site_file2=NONE
2269 if test -n "$CONFIG_SITE"; then
2270 # We do not want a PATH search for config.site.
2271 case $CONFIG_SITE in #((
2272 -*) ac_site_file1=./$CONFIG_SITE;;
2273 */*) ac_site_file1=$CONFIG_SITE;;
2274 *) ac_site_file1=./$CONFIG_SITE;;
2275 esac
2276 elif test "x$prefix" != xNONE; then
2277 ac_site_file1=$prefix/share/config.site
2278 ac_site_file2=$prefix/etc/config.site
2279 else
2280 ac_site_file1=$ac_default_prefix/share/config.site
2281 ac_site_file2=$ac_default_prefix/etc/config.site
2282 fi
2283 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2284 do
2285 test "x$ac_site_file" = xNONE && continue
2286 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2289 sed 's/^/| /' "$ac_site_file" >&5
2290 . "$ac_site_file" \
2291 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 as_fn_error $? "failed to load site script $ac_site_file
2294 See \`config.log' for more details" "$LINENO" 5; }
2295 fi
2296 done
2297
2298 if test -r "$cache_file"; then
2299 # Some versions of bash will fail to source /dev/null (special files
2300 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2301 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2303 $as_echo "$as_me: loading cache $cache_file" >&6;}
2304 case $cache_file in
2305 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2306 *) . "./$cache_file";;
2307 esac
2308 fi
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2311 $as_echo "$as_me: creating cache $cache_file" >&6;}
2312 >$cache_file
2313 fi
2314
2315 # Check that the precious variables saved in the cache have kept the same
2316 # value.
2317 ac_cache_corrupted=false
2318 for ac_var in $ac_precious_vars; do
2319 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2320 eval ac_new_set=\$ac_env_${ac_var}_set
2321 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2322 eval ac_new_val=\$ac_env_${ac_var}_value
2323 case $ac_old_set,$ac_new_set in
2324 set,)
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2326 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2327 ac_cache_corrupted=: ;;
2328 ,set)
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2330 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2332 ,);;
2333 *)
2334 if test "x$ac_old_val" != "x$ac_new_val"; then
2335 # differences in whitespace do not lead to failure.
2336 ac_old_val_w=`echo x $ac_old_val`
2337 ac_new_val_w=`echo x $ac_new_val`
2338 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2340 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2341 ac_cache_corrupted=:
2342 else
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2344 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2345 eval $ac_var=\$ac_old_val
2346 fi
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2348 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2350 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2351 fi;;
2352 esac
2353 # Pass precious variables to config.status.
2354 if test "$ac_new_set" = set; then
2355 case $ac_new_val in
2356 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2357 *) ac_arg=$ac_var=$ac_new_val ;;
2358 esac
2359 case " $ac_configure_args " in
2360 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2361 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2362 esac
2363 fi
2364 done
2365 if $ac_cache_corrupted; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2369 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2370 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2371 fi
2372 ## -------------------- ##
2373 ## Main body of script. ##
2374 ## -------------------- ##
2375
2376 ac_ext=c
2377 ac_cpp='$CPP $CPPFLAGS'
2378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381
2382
2383
2384
2385
2386
2387 ac_config_files="$ac_config_files Makefile"
2388
2389
2390 # Default to --enable-multilib
2391 # Check whether --enable-multilib was given.
2392 if test "${enable_multilib+set}" = set; then :
2393 enableval=$enable_multilib; case "$enableval" in
2394 yes) multilib=yes ;;
2395 no) multilib=no ;;
2396 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2397 esac
2398 else
2399 multilib=yes
2400 fi
2401
2402
2403 # We may get other options which we leave undocumented:
2404 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2405 # See config-ml.in if you want the gory details.
2406
2407 if test "$srcdir" = "."; then
2408 if test "$with_target_subdir" != "."; then
2409 multi_basedir="$srcdir/$with_multisrctop../.."
2410 else
2411 multi_basedir="$srcdir/$with_multisrctop.."
2412 fi
2413 else
2414 multi_basedir="$srcdir/.."
2415 fi
2416
2417
2418 # Even if the default multilib is not a cross compilation,
2419 # it may be that some of the other multilibs are.
2420 if test $cross_compiling = no && test $multilib = yes \
2421 && test "x${with_multisubdir}" != x ; then
2422 cross_compiling=maybe
2423 fi
2424
2425 ac_config_commands="$ac_config_commands default-1"
2426
2427
2428 # Do not delete or change the following two lines. For why, see
2429 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2430 ac_aux_dir=
2431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2432 if test -f "$ac_dir/install-sh"; then
2433 ac_aux_dir=$ac_dir
2434 ac_install_sh="$ac_aux_dir/install-sh -c"
2435 break
2436 elif test -f "$ac_dir/install.sh"; then
2437 ac_aux_dir=$ac_dir
2438 ac_install_sh="$ac_aux_dir/install.sh -c"
2439 break
2440 elif test -f "$ac_dir/shtool"; then
2441 ac_aux_dir=$ac_dir
2442 ac_install_sh="$ac_aux_dir/shtool install -c"
2443 break
2444 fi
2445 done
2446 if test -z "$ac_aux_dir"; then
2447 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2448 fi
2449
2450 # These three variables are undocumented and unsupported,
2451 # and are intended to be withdrawn in a future Autoconf release.
2452 # They can cause serious problems if a builder's source tree is in a directory
2453 # whose full name contains unusual characters.
2454 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2455 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2456 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2457
2458
2459 # Make sure we can run config.sub.
2460 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2461 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2464 $as_echo_n "checking build system type... " >&6; }
2465 if ${ac_cv_build+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 ac_build_alias=$build_alias
2469 test "x$ac_build_alias" = x &&
2470 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2471 test "x$ac_build_alias" = x &&
2472 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2474 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2475
2476 fi
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2478 $as_echo "$ac_cv_build" >&6; }
2479 case $ac_cv_build in
2480 *-*-*) ;;
2481 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2482 esac
2483 build=$ac_cv_build
2484 ac_save_IFS=$IFS; IFS='-'
2485 set x $ac_cv_build
2486 shift
2487 build_cpu=$1
2488 build_vendor=$2
2489 shift; shift
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2492 build_os=$*
2493 IFS=$ac_save_IFS
2494 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2495
2496
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2498 $as_echo_n "checking host system type... " >&6; }
2499 if ${ac_cv_host+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 if test "x$host_alias" = x; then
2503 ac_cv_host=$ac_cv_build
2504 else
2505 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2507 fi
2508
2509 fi
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2511 $as_echo "$ac_cv_host" >&6; }
2512 case $ac_cv_host in
2513 *-*-*) ;;
2514 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2515 esac
2516 host=$ac_cv_host
2517 ac_save_IFS=$IFS; IFS='-'
2518 set x $ac_cv_host
2519 shift
2520 host_cpu=$1
2521 host_vendor=$2
2522 shift; shift
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2525 host_os=$*
2526 IFS=$ac_save_IFS
2527 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2528
2529
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2531 $as_echo_n "checking target system type... " >&6; }
2532 if ${ac_cv_target+:} false; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 if test "x$target_alias" = x; then
2536 ac_cv_target=$ac_cv_host
2537 else
2538 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2540 fi
2541
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2544 $as_echo "$ac_cv_target" >&6; }
2545 case $ac_cv_target in
2546 *-*-*) ;;
2547 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2548 esac
2549 target=$ac_cv_target
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_target
2552 shift
2553 target_cpu=$1
2554 target_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 target_os=$*
2559 IFS=$ac_save_IFS
2560 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 # The aliases save the names the user supplied, while $host etc.
2564 # will get canonicalized.
2565 test -n "$target_alias" &&
2566 test "$program_prefix$program_suffix$program_transform_name" = \
2567 NONENONEs,x,x, &&
2568 program_prefix=${target_alias}-
2569
2570 target_alias=${target_alias-$host_alias}
2571
2572
2573 # Automake should never attempt to rebuild configure
2574
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2576 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2577 # Check whether --enable-maintainer-mode was given.
2578 if test "${enable_maintainer_mode+set}" = set; then :
2579 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2580 else
2581 USE_MAINTAINER_MODE=no
2582 fi
2583
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2585 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2586 if test $USE_MAINTAINER_MODE = yes; then
2587 MAINTAINER_MODE_TRUE=
2588 MAINTAINER_MODE_FALSE='#'
2589 else
2590 MAINTAINER_MODE_TRUE='#'
2591 MAINTAINER_MODE_FALSE=
2592 fi
2593
2594 MAINT=$MAINTAINER_MODE_TRUE
2595
2596
2597
2598 am__api_version='1.15'
2599
2600 # Find a good install program. We prefer a C program (faster),
2601 # so one script is as good as another. But avoid the broken or
2602 # incompatible versions:
2603 # SysV /etc/install, /usr/sbin/install
2604 # SunOS /usr/etc/install
2605 # IRIX /sbin/install
2606 # AIX /bin/install
2607 # AmigaOS /C/install, which installs bootblocks on floppy discs
2608 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2611 # OS/2's system install, which has a completely different semantic
2612 # ./install, which can be erroneously created by make from ./install.sh.
2613 # Reject install programs that cannot install multiple files.
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2615 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2616 if test -z "$INSTALL"; then
2617 if ${ac_cv_path_install+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 # Account for people who put trailing slashes in PATH elements.
2626 case $as_dir/ in #((
2627 ./ | .// | /[cC]/* | \
2628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2629 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2630 /usr/ucb/* ) ;;
2631 *)
2632 # OSF1 and SCO ODT 3.0 have their own names for install.
2633 # Don't use installbsd from OSF since it installs stuff as root
2634 # by default.
2635 for ac_prog in ginstall scoinst install; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2638 if test $ac_prog = install &&
2639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640 # AIX install. It has an incompatible calling convention.
2641 :
2642 elif test $ac_prog = install &&
2643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644 # program-specific install script used by HP pwplus--don't use.
2645 :
2646 else
2647 rm -rf conftest.one conftest.two conftest.dir
2648 echo one > conftest.one
2649 echo two > conftest.two
2650 mkdir conftest.dir
2651 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2652 test -s conftest.one && test -s conftest.two &&
2653 test -s conftest.dir/conftest.one &&
2654 test -s conftest.dir/conftest.two
2655 then
2656 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2657 break 3
2658 fi
2659 fi
2660 fi
2661 done
2662 done
2663 ;;
2664 esac
2665
2666 done
2667 IFS=$as_save_IFS
2668
2669 rm -rf conftest.one conftest.two conftest.dir
2670
2671 fi
2672 if test "${ac_cv_path_install+set}" = set; then
2673 INSTALL=$ac_cv_path_install
2674 else
2675 # As a last resort, use the slow shell script. Don't cache a
2676 # value for INSTALL within a source directory, because that will
2677 # break other packages using the cache if that directory is
2678 # removed, or if the value is a relative name.
2679 INSTALL=$ac_install_sh
2680 fi
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2683 $as_echo "$INSTALL" >&6; }
2684
2685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2686 # It thinks the first close brace ends the variable substitution.
2687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2688
2689 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2690
2691 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2694 $as_echo_n "checking whether build environment is sane... " >&6; }
2695 # Reject unsafe characters in $srcdir or the absolute working directory
2696 # name. Accept space and tab only in the latter.
2697 am_lf='
2698 '
2699 case `pwd` in
2700 *[\\\"\#\$\&\'\`$am_lf]*)
2701 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2702 esac
2703 case $srcdir in
2704 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2705 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2706 esac
2707
2708 # Do 'set' in a subshell so we don't clobber the current shell's
2709 # arguments. Must try -L first in case configure is actually a
2710 # symlink; some systems play weird games with the mod time of symlinks
2711 # (eg FreeBSD returns the mod time of the symlink's containing
2712 # directory).
2713 if (
2714 am_has_slept=no
2715 for am_try in 1 2; do
2716 echo "timestamp, slept: $am_has_slept" > conftest.file
2717 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2718 if test "$*" = "X"; then
2719 # -L didn't work.
2720 set X `ls -t "$srcdir/configure" conftest.file`
2721 fi
2722 if test "$*" != "X $srcdir/configure conftest.file" \
2723 && test "$*" != "X conftest.file $srcdir/configure"; then
2724
2725 # If neither matched, then we have a broken ls. This can happen
2726 # if, for instance, CONFIG_SHELL is bash and it inherits a
2727 # broken ls alias from the environment. This has actually
2728 # happened. Such a system could not be considered "sane".
2729 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2730 alias in your environment" "$LINENO" 5
2731 fi
2732 if test "$2" = conftest.file || test $am_try -eq 2; then
2733 break
2734 fi
2735 # Just in case.
2736 sleep 1
2737 am_has_slept=yes
2738 done
2739 test "$2" = conftest.file
2740 )
2741 then
2742 # Ok.
2743 :
2744 else
2745 as_fn_error $? "newly created file is older than distributed files!
2746 Check your system clock" "$LINENO" 5
2747 fi
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749 $as_echo "yes" >&6; }
2750 # If we didn't sleep, we still need to ensure time stamps of config.status and
2751 # generated files are strictly newer.
2752 am_sleep_pid=
2753 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2754 ( sleep 1 ) &
2755 am_sleep_pid=$!
2756 fi
2757
2758 rm -f conftest.file
2759
2760 test "$program_prefix" != NONE &&
2761 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2762 # Use a double $ so make ignores it.
2763 test "$program_suffix" != NONE &&
2764 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2765 # Double any \ or $.
2766 # By default was `s,x,x', remove it if useless.
2767 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2768 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2769
2770 # Expand $ac_aux_dir to an absolute path.
2771 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2772
2773 if test x"${MISSING+set}" != xset; then
2774 case $am_aux_dir in
2775 *\ * | *\ *)
2776 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2777 *)
2778 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2779 esac
2780 fi
2781 # Use eval to expand $SHELL
2782 if eval "$MISSING --is-lightweight"; then
2783 am_missing_run="$MISSING "
2784 else
2785 am_missing_run=
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2787 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2788 fi
2789
2790 if test x"${install_sh+set}" != xset; then
2791 case $am_aux_dir in
2792 *\ * | *\ *)
2793 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2794 *)
2795 install_sh="\${SHELL} $am_aux_dir/install-sh"
2796 esac
2797 fi
2798
2799 # Installed binaries are usually stripped using 'strip' when the user
2800 # run "make install-strip". However 'strip' might not be the right
2801 # tool to use in cross-compilation environments, therefore Automake
2802 # will honor the 'STRIP' environment variable to overrule this program.
2803 if test "$cross_compiling" != no; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}strip; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_STRIP+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$STRIP"; then
2813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 STRIP=$ac_cv_prog_STRIP
2833 if test -n "$STRIP"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2835 $as_echo "$STRIP" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842 fi
2843 if test -z "$ac_cv_prog_STRIP"; then
2844 ac_ct_STRIP=$STRIP
2845 # Extract the first word of "strip", so it can be a program name with args.
2846 set dummy strip; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$ac_ct_STRIP"; then
2853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_ac_ct_STRIP="strip"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2873 if test -n "$ac_ct_STRIP"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2875 $as_echo "$ac_ct_STRIP" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881 if test "x$ac_ct_STRIP" = x; then
2882 STRIP=":"
2883 else
2884 case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888 ac_tool_warned=yes ;;
2889 esac
2890 STRIP=$ac_ct_STRIP
2891 fi
2892 else
2893 STRIP="$ac_cv_prog_STRIP"
2894 fi
2895
2896 fi
2897 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2900 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2901 if test -z "$MKDIR_P"; then
2902 if ${ac_cv_path_mkdir+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_prog in mkdir gmkdir; do
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2913 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2914 'mkdir (GNU coreutils) '* | \
2915 'mkdir (coreutils) '* | \
2916 'mkdir (fileutils) '4.1*)
2917 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2918 break 3;;
2919 esac
2920 done
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926
2927 test -d ./--version && rmdir ./--version
2928 if test "${ac_cv_path_mkdir+set}" = set; then
2929 MKDIR_P="$ac_cv_path_mkdir -p"
2930 else
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for MKDIR_P within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 MKDIR_P="$ac_install_sh -d"
2936 fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2939 $as_echo "$MKDIR_P" >&6; }
2940
2941 for ac_prog in gawk mawk nawk awk
2942 do
2943 # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy $ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_AWK+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$AWK"; then
2951 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_AWK="$ac_prog"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 AWK=$ac_cv_prog_AWK
2971 if test -n "$AWK"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2973 $as_echo "$AWK" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980 test -n "$AWK" && break
2981 done
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2984 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2985 set x ${MAKE-make}
2986 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2987 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 cat >conftest.make <<\_ACEOF
2991 SHELL = /bin/sh
2992 all:
2993 @echo '@@@%%%=$(MAKE)=@@@%%%'
2994 _ACEOF
2995 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2996 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2997 *@@@%%%=?*=@@@%%%*)
2998 eval ac_cv_prog_make_${ac_make}_set=yes;;
2999 *)
3000 eval ac_cv_prog_make_${ac_make}_set=no;;
3001 esac
3002 rm -f conftest.make
3003 fi
3004 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3007 SET_MAKE=
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 SET_MAKE="MAKE=${MAKE-make}"
3012 fi
3013
3014 rm -rf .tst 2>/dev/null
3015 mkdir .tst 2>/dev/null
3016 if test -d .tst; then
3017 am__leading_dot=.
3018 else
3019 am__leading_dot=_
3020 fi
3021 rmdir .tst 2>/dev/null
3022
3023 # Check whether --enable-silent-rules was given.
3024 if test "${enable_silent_rules+set}" = set; then :
3025 enableval=$enable_silent_rules;
3026 fi
3027
3028 case $enable_silent_rules in # (((
3029 yes) AM_DEFAULT_VERBOSITY=0;;
3030 no) AM_DEFAULT_VERBOSITY=1;;
3031 *) AM_DEFAULT_VERBOSITY=1;;
3032 esac
3033 am_make=${MAKE-make}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3035 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3036 if ${am_cv_make_support_nested_variables+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if $as_echo 'TRUE=$(BAR$(V))
3040 BAR0=false
3041 BAR1=true
3042 V=1
3043 am__doit:
3044 @$(TRUE)
3045 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3046 am_cv_make_support_nested_variables=yes
3047 else
3048 am_cv_make_support_nested_variables=no
3049 fi
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3052 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3053 if test $am_cv_make_support_nested_variables = yes; then
3054 AM_V='$(V)'
3055 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3056 else
3057 AM_V=$AM_DEFAULT_VERBOSITY
3058 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3059 fi
3060 AM_BACKSLASH='\'
3061
3062 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3063 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3064 # is not polluted with repeated "-I."
3065 am__isrc=' -I$(srcdir)'
3066 # test to see if srcdir already configured
3067 if test -f $srcdir/config.status; then
3068 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3069 fi
3070 fi
3071
3072 # test whether we have cygpath
3073 if test -z "$CYGPATH_W"; then
3074 if (cygpath --version) >/dev/null 2>/dev/null; then
3075 CYGPATH_W='cygpath -w'
3076 else
3077 CYGPATH_W=echo
3078 fi
3079 fi
3080
3081
3082 # Define the identity of the package.
3083 PACKAGE='libgrust'
3084 VERSION='version-unused'
3085
3086
3087 cat >>confdefs.h <<_ACEOF
3088 #define PACKAGE "$PACKAGE"
3089 _ACEOF
3090
3091
3092 cat >>confdefs.h <<_ACEOF
3093 #define VERSION "$VERSION"
3094 _ACEOF
3095
3096 # Some tools Automake needs.
3097
3098 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3099
3100
3101 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3102
3103
3104 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3105
3106
3107 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3108
3109
3110 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3111
3112 # For better backward compatibility. To be removed once Automake 1.9.x
3113 # dies out for good. For more background, see:
3114 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3115 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3116 mkdir_p='$(MKDIR_P)'
3117
3118 # We need awk for the "check" target (and possibly the TAP driver). The
3119 # system "awk" is bad on some platforms.
3120 # Always define AMTAR for backward compatibility. Yes, it's still used
3121 # in the wild :-( We should find a proper way to deprecate it ...
3122 AMTAR='$${TAR-tar}'
3123
3124
3125 # We'll loop over all known methods to create a tar archive until one works.
3126 _am_tools='gnutar pax cpio none'
3127
3128 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3129
3130
3131
3132
3133
3134
3135 # POSIX will say in a future version that running "rm -f" with no argument
3136 # is OK; and we want to be able to make that assumption in our Makefile
3137 # recipes. So use an aggressive probe to check that the usage we want is
3138 # actually supported "in the wild" to an acceptable degree.
3139 # See automake bug#10828.
3140 # To make any issue more visible, cause the running configure to be aborted
3141 # by default if the 'rm' program in use doesn't match our expectations; the
3142 # user can still override this though.
3143 if rm -f && rm -fr && rm -rf; then : OK; else
3144 cat >&2 <<'END'
3145 Oops!
3146
3147 Your 'rm' program seems unable to run without file operands specified
3148 on the command line, even when the '-f' option is present. This is contrary
3149 to the behaviour of most rm programs out there, and not conforming with
3150 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3151
3152 Please tell bug-automake@gnu.org about your system, including the value
3153 of your $PATH and any error possibly output before this message. This
3154 can help us improve future automake versions.
3155
3156 END
3157 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3158 echo 'Configuration will proceed anyway, since you have set the' >&2
3159 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3160 echo >&2
3161 else
3162 cat >&2 <<'END'
3163 Aborting the configuration process, to ensure you take notice of the issue.
3164
3165 You can download and install GNU coreutils to get an 'rm' implementation
3166 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3167
3168 If you want to complete the configuration process using your problematic
3169 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3170 to "yes", and re-run configure.
3171
3172 END
3173 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3174 fi
3175 fi
3176
3177
3178 # Make sure we don't test executables when making cross-tools.
3179
3180
3181
3182 # Add the ability to change LIBTOOL directory
3183
3184 # Check whether --with-toolexeclibdir was given.
3185 if test "${with_toolexeclibdir+set}" = set; then :
3186 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3187 /)
3188 ;;
3189 */)
3190 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3191 ;;
3192 esac
3193 else
3194 with_toolexeclibdir=no
3195 fi
3196
3197
3198
3199 # Use system specific extensions
3200 DEPDIR="${am__leading_dot}deps"
3201
3202 ac_config_commands="$ac_config_commands depfiles"
3203
3204
3205 am_make=${MAKE-make}
3206 cat > confinc << 'END'
3207 am__doit:
3208 @echo this is the am__doit target
3209 .PHONY: am__doit
3210 END
3211 # If we don't find an include directive, just comment out the code.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3214 am__include="#"
3215 am__quote=
3216 _am_result=none
3217 # First try GNU make style include.
3218 echo "include confinc" > confmf
3219 # Ignore all kinds of additional output from 'make'.
3220 case `$am_make -s -f confmf 2> /dev/null` in #(
3221 *the\ am__doit\ target*)
3222 am__include=include
3223 am__quote=
3224 _am_result=GNU
3225 ;;
3226 esac
3227 # Now try BSD make style include.
3228 if test "$am__include" = "#"; then
3229 echo '.include "confinc"' > confmf
3230 case `$am_make -s -f confmf 2> /dev/null` in #(
3231 *the\ am__doit\ target*)
3232 am__include=.include
3233 am__quote="\""
3234 _am_result=BSD
3235 ;;
3236 esac
3237 fi
3238
3239
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3241 $as_echo "$_am_result" >&6; }
3242 rm -f confinc confmf
3243
3244 # Check whether --enable-dependency-tracking was given.
3245 if test "${enable_dependency_tracking+set}" = set; then :
3246 enableval=$enable_dependency_tracking;
3247 fi
3248
3249 if test "x$enable_dependency_tracking" != xno; then
3250 am_depcomp="$ac_aux_dir/depcomp"
3251 AMDEPBACKSLASH='\'
3252 am__nodep='_no'
3253 fi
3254 if test "x$enable_dependency_tracking" != xno; then
3255 AMDEP_TRUE=
3256 AMDEP_FALSE='#'
3257 else
3258 AMDEP_TRUE='#'
3259 AMDEP_FALSE=
3260 fi
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 if test -z "$ac_cv_prog_CC"; then
3308 ac_ct_CC=$CC
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345 if test "x$ac_ct_CC" = x; then
3346 CC=""
3347 else
3348 case $cross_compiling:$ac_tool_warned in
3349 yes:)
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352 ac_tool_warned=yes ;;
3353 esac
3354 CC=$ac_ct_CC
3355 fi
3356 else
3357 CC="$ac_cv_prog_CC"
3358 fi
3359
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}cc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="${ac_tool_prefix}cc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399 fi
3400 fi
3401 if test -z "$CC"; then
3402 # Extract the first word of "cc", so it can be a program name with args.
3403 set dummy cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 ac_prog_rejected=no
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421 ac_prog_rejected=yes
3422 continue
3423 fi
3424 ac_cv_prog_CC="cc"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 if test $ac_prog_rejected = yes; then
3433 # We found a bogon in the path, so make sure we never use it.
3434 set dummy $ac_cv_prog_CC
3435 shift
3436 if test $# != 0; then
3437 # We chose a different compiler from the bogus one.
3438 # However, it has the same basename, so the bogon will be chosen
3439 # first if we set CC to just the basename; use the full file name.
3440 shift
3441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442 fi
3443 fi
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456 fi
3457 if test -z "$CC"; then
3458 if test -n "$ac_tool_prefix"; then
3459 for ac_prog in cl.exe
3460 do
3461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482 done
3483 done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498 test -n "$CC" && break
3499 done
3500 fi
3501 if test -z "$CC"; then
3502 ac_ct_CC=$CC
3503 for ac_prog in cl.exe
3504 do
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -n "$ac_ct_CC"; then
3513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_ac_ct_CC="$ac_prog"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526 done
3527 done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535 $as_echo "$ac_ct_CC" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542 test -n "$ac_ct_CC" && break
3543 done
3544
3545 if test "x$ac_ct_CC" = x; then
3546 CC=""
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554 CC=$ac_ct_CC
3555 fi
3556 fi
3557
3558 fi
3559
3560
3561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details" "$LINENO" 5; }
3565
3566 # Provide some information about the compiler.
3567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3568 set X $ac_compile
3569 ac_compiler=$2
3570 for ac_option in --version -v -V -qversion; do
3571 { { ac_try="$ac_compiler $ac_option >&5"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3579 ac_status=$?
3580 if test -s conftest.err; then
3581 sed '10a\
3582 ... rest of stderr output deleted ...
3583 10q' conftest.err >conftest.er1
3584 cat conftest.er1 >&5
3585 fi
3586 rm -f conftest.er1 conftest.err
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3589 done
3590
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593 #include <stdio.h>
3594 int
3595 main ()
3596 {
3597 printf ("hello world\n");
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 # FIXME: Cleanup?
3603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3604 (eval $ac_link) 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 gcc_no_link=no
3609 else
3610 gcc_no_link=yes
3611 fi
3612 if test x$gcc_no_link = xyes; then
3613 # Setting cross_compile will disable run tests; it will
3614 # also disable AC_CHECK_FILE but that's generally
3615 # correct if we can't link.
3616 cross_compiling=yes
3617 EXEEXT=
3618 else
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621
3622 int
3623 main ()
3624 {
3625
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 ac_clean_files_save=$ac_clean_files
3631 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3632 # Try to create an executable without -o first, disregard a.out.
3633 # It will help us diagnose broken compilers, and finding out an intuition
3634 # of exeext.
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3636 $as_echo_n "checking whether the C compiler works... " >&6; }
3637 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3638
3639 # The possible output files:
3640 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3641
3642 ac_rmfiles=
3643 for ac_file in $ac_files
3644 do
3645 case $ac_file in
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3647 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3648 esac
3649 done
3650 rm -f $ac_rmfiles
3651
3652 if { { ac_try="$ac_link_default"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_link_default") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; then :
3663 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3664 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3665 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3666 # so that the user can short-circuit this test for compilers unknown to
3667 # Autoconf.
3668 for ac_file in $ac_files ''
3669 do
3670 test -f "$ac_file" || continue
3671 case $ac_file in
3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3673 ;;
3674 [ab].out )
3675 # We found the default executable, but exeext='' is most
3676 # certainly right.
3677 break;;
3678 *.* )
3679 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3680 then :; else
3681 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 fi
3683 # We set ac_cv_exeext here because the later test for it is not
3684 # safe: cross compilers may not add the suffix if given an `-o'
3685 # argument, so we may need to know it at that point already.
3686 # Even if this section looks crufty: it has the advantage of
3687 # actually working.
3688 break;;
3689 * )
3690 break;;
3691 esac
3692 done
3693 test "$ac_cv_exeext" = no && ac_cv_exeext=
3694
3695 else
3696 ac_file=''
3697 fi
3698 if test -z "$ac_file"; then :
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 $as_echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error 77 "C compiler cannot create executables
3707 See \`config.log' for more details" "$LINENO" 5; }
3708 else
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710 $as_echo "yes" >&6; }
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3713 $as_echo_n "checking for C compiler default output file name... " >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3715 $as_echo "$ac_file" >&6; }
3716 ac_exeext=$ac_cv_exeext
3717
3718 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3719 ac_clean_files=$ac_clean_files_save
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3721 $as_echo_n "checking for suffix of executables... " >&6; }
3722 if { { ac_try="$ac_link"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_link") 2>&5
3730 ac_status=$?
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }; then :
3733 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3734 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3735 # work properly (i.e., refer to `conftest.exe'), while it won't with
3736 # `rm'.
3737 for ac_file in conftest.exe conftest conftest.*; do
3738 test -f "$ac_file" || continue
3739 case $ac_file in
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742 break;;
3743 * ) break;;
3744 esac
3745 done
3746 else
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3750 See \`config.log' for more details" "$LINENO" 5; }
3751 fi
3752 rm -f conftest conftest$ac_cv_exeext
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3754 $as_echo "$ac_cv_exeext" >&6; }
3755
3756 rm -f conftest.$ac_ext
3757 EXEEXT=$ac_cv_exeext
3758 ac_exeext=$EXEEXT
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761 #include <stdio.h>
3762 int
3763 main ()
3764 {
3765 FILE *f = fopen ("conftest.out", "w");
3766 return ferror (f) || fclose (f) != 0;
3767
3768 ;
3769 return 0;
3770 }
3771 _ACEOF
3772 ac_clean_files="$ac_clean_files conftest.out"
3773 # Check that the compiler produces executables we can run. If not, either
3774 # the compiler is broken, or we cross compile.
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3776 $as_echo_n "checking whether we are cross compiling... " >&6; }
3777 if test "$cross_compiling" != yes; then
3778 { { ac_try="$ac_link"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_link") 2>&5
3786 ac_status=$?
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }
3789 if { ac_try='./conftest$ac_cv_exeext'
3790 { { case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796 (eval "$ac_try") 2>&5
3797 ac_status=$?
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }; }; then
3800 cross_compiling=no
3801 else
3802 if test "$cross_compiling" = maybe; then
3803 cross_compiling=yes
3804 else
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error $? "cannot run C compiled programs.
3808 If you meant to cross compile, use \`--host'.
3809 See \`config.log' for more details" "$LINENO" 5; }
3810 fi
3811 fi
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3814 $as_echo "$cross_compiling" >&6; }
3815
3816 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3817 ac_clean_files=$ac_clean_files_save
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3820 $as_echo_n "checking for suffix of object files... " >&6; }
3821 if ${ac_cv_objext+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 int
3828 main ()
3829 {
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.o conftest.obj
3836 if { { ac_try="$ac_compile"
3837 case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_compile") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; then :
3847 for ac_file in conftest.o conftest.obj conftest.*; do
3848 test -f "$ac_file" || continue;
3849 case $ac_file in
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3852 break;;
3853 esac
3854 done
3855 else
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "cannot compute suffix of object files: cannot compile
3862 See \`config.log' for more details" "$LINENO" 5; }
3863 fi
3864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3867 $as_echo "$ac_cv_objext" >&6; }
3868 OBJEXT=$ac_cv_objext
3869 ac_objext=$OBJEXT
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3872 if ${ac_cv_c_compiler_gnu+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __GNUC__
3882 choke me
3883 #endif
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_compiler_gnu=yes
3891 else
3892 ac_compiler_gnu=no
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3900 if test $ac_compiler_gnu = yes; then
3901 GCC=yes
3902 else
3903 GCC=
3904 fi
3905 ac_test_CFLAGS=${CFLAGS+set}
3906 ac_save_CFLAGS=$CFLAGS
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3909 if ${ac_cv_prog_cc_g+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 ac_save_c_werror_flag=$ac_c_werror_flag
3913 ac_c_werror_flag=yes
3914 ac_cv_prog_cc_g=no
3915 CFLAGS="-g"
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918
3919 int
3920 main ()
3921 {
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928 ac_cv_prog_cc_g=yes
3929 else
3930 CFLAGS=""
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933
3934 int
3935 main ()
3936 {
3937
3938 ;
3939 return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943
3944 else
3945 ac_c_werror_flag=$ac_save_c_werror_flag
3946 CFLAGS="-g"
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949
3950 int
3951 main ()
3952 {
3953
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959 ac_cv_prog_cc_g=yes
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_c_werror_flag=$ac_save_c_werror_flag
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3969 $as_echo "$ac_cv_prog_cc_g" >&6; }
3970 if test "$ac_test_CFLAGS" = set; then
3971 CFLAGS=$ac_save_CFLAGS
3972 elif test $ac_cv_prog_cc_g = yes; then
3973 if test "$GCC" = yes; then
3974 CFLAGS="-g -O2"
3975 else
3976 CFLAGS="-g"
3977 fi
3978 else
3979 if test "$GCC" = yes; then
3980 CFLAGS="-O2"
3981 else
3982 CFLAGS=
3983 fi
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3987 if ${ac_cv_prog_cc_c89+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 ac_cv_prog_cc_c89=no
3991 ac_save_CC=$CC
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #include <stdarg.h>
3995 #include <stdio.h>
3996 struct stat;
3997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3998 struct buf { int x; };
3999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4000 static char *e (p, i)
4001 char **p;
4002 int i;
4003 {
4004 return p[i];
4005 }
4006 static char *f (char * (*g) (char **, int), char **p, ...)
4007 {
4008 char *s;
4009 va_list v;
4010 va_start (v,p);
4011 s = g (p, va_arg (v,int));
4012 va_end (v);
4013 return s;
4014 }
4015
4016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4017 function prototypes and stuff, but not '\xHH' hex character constants.
4018 These don't provoke an error unfortunately, instead are silently treated
4019 as 'x'. The following induces an error, until -std is added to get
4020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4021 array size at least. It's necessary to write '\x00'==0 to get something
4022 that's true only with -std. */
4023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4024
4025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4026 inside strings and character constants. */
4027 #define FOO(x) 'x'
4028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4029
4030 int test (int i, double x);
4031 struct s1 {int (*f) (int a);};
4032 struct s2 {int (*f) (double a);};
4033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4034 int argc;
4035 char **argv;
4036 int
4037 main ()
4038 {
4039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046 do
4047 CC="$ac_save_CC $ac_arg"
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049 ac_cv_prog_cc_c89=$ac_arg
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext
4052 test "x$ac_cv_prog_cc_c89" != "xno" && break
4053 done
4054 rm -f conftest.$ac_ext
4055 CC=$ac_save_CC
4056
4057 fi
4058 # AC_CACHE_VAL
4059 case "x$ac_cv_prog_cc_c89" in
4060 x)
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4062 $as_echo "none needed" >&6; } ;;
4063 xno)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4065 $as_echo "unsupported" >&6; } ;;
4066 *)
4067 CC="$CC $ac_cv_prog_cc_c89"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070 esac
4071 if test "x$ac_cv_prog_cc_c89" != xno; then :
4072
4073 fi
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4087 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4088 if ${am_cv_prog_cc_c_o+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093
4094 int
4095 main ()
4096 {
4097
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 # Make sure it works both with $CC and with simple cc.
4103 # Following AC_PROG_CC_C_O, we do the test twice because some
4104 # compilers refuse to overwrite an existing .o file with -o,
4105 # though they will create one.
4106 am_cv_prog_cc_c_o=yes
4107 for am_i in 1 2; do
4108 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4109 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } \
4113 && test -f conftest2.$ac_objext; then
4114 : OK
4115 else
4116 am_cv_prog_cc_c_o=no
4117 break
4118 fi
4119 done
4120 rm -f core conftest*
4121 unset am_i
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4124 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4125 if test "$am_cv_prog_cc_c_o" != yes; then
4126 # Losing compiler, so override with the script.
4127 # FIXME: It is wrong to rewrite CC.
4128 # But if we don't then we get into trouble of one sort or another.
4129 # A longer-term fix would be to have automake use am__CC in this case,
4130 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4131 CC="$am_aux_dir/compile $CC"
4132 fi
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139
4140 depcc="$CC" am_compiler_list=
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4143 $as_echo_n "checking dependency style of $depcc... " >&6; }
4144 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4148 # We make a subdir and do the tests there. Otherwise we can end up
4149 # making bogus files that we don't know about and never remove. For
4150 # instance it was reported that on HP-UX the gcc test will end up
4151 # making a dummy file named 'D' -- because '-MD' means "put the output
4152 # in D".
4153 rm -rf conftest.dir
4154 mkdir conftest.dir
4155 # Copy depcomp to subdir because otherwise we won't find it if we're
4156 # using a relative directory.
4157 cp "$am_depcomp" conftest.dir
4158 cd conftest.dir
4159 # We will build objects and dependencies in a subdirectory because
4160 # it helps to detect inapplicable dependency modes. For instance
4161 # both Tru64's cc and ICC support -MD to output dependencies as a
4162 # side effect of compilation, but ICC will put the dependencies in
4163 # the current directory while Tru64 will put them in the object
4164 # directory.
4165 mkdir sub
4166
4167 am_cv_CC_dependencies_compiler_type=none
4168 if test "$am_compiler_list" = ""; then
4169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4170 fi
4171 am__universal=false
4172 case " $depcc " in #(
4173 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4174 esac
4175
4176 for depmode in $am_compiler_list; do
4177 # Setup a source with many dependencies, because some compilers
4178 # like to wrap large dependency lists on column 80 (with \), and
4179 # we should not choose a depcomp mode which is confused by this.
4180 #
4181 # We need to recreate these files for each test, as the compiler may
4182 # overwrite some of them when testing with obscure command lines.
4183 # This happens at least with the AIX C compiler.
4184 : > sub/conftest.c
4185 for i in 1 2 3 4 5 6; do
4186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4187 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4188 # Solaris 10 /bin/sh.
4189 echo '/* dummy */' > sub/conftst$i.h
4190 done
4191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4192
4193 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4194 # mode. It turns out that the SunPro C++ compiler does not properly
4195 # handle '-M -o', and we need to detect this. Also, some Intel
4196 # versions had trouble with output in subdirs.
4197 am__obj=sub/conftest.${OBJEXT-o}
4198 am__minus_obj="-o $am__obj"
4199 case $depmode in
4200 gcc)
4201 # This depmode causes a compiler race in universal mode.
4202 test "$am__universal" = false || continue
4203 ;;
4204 nosideeffect)
4205 # After this tag, mechanisms are not by side-effect, so they'll
4206 # only be used when explicitly requested.
4207 if test "x$enable_dependency_tracking" = xyes; then
4208 continue
4209 else
4210 break
4211 fi
4212 ;;
4213 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4214 # This compiler won't grok '-c -o', but also, the minuso test has
4215 # not run yet. These depmodes are late enough in the game, and
4216 # so weak that their functioning should not be impacted.
4217 am__obj=conftest.${OBJEXT-o}
4218 am__minus_obj=
4219 ;;
4220 none) break ;;
4221 esac
4222 if depmode=$depmode \
4223 source=sub/conftest.c object=$am__obj \
4224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4225 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4226 >/dev/null 2>conftest.err &&
4227 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4229 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4231 # icc doesn't choke on unknown options, it will just issue warnings
4232 # or remarks (even with -Werror). So we grep stderr for any message
4233 # that says an option was ignored or not supported.
4234 # When given -MP, icc 7.0 and 7.1 complain thusly:
4235 # icc: Command line warning: ignoring option '-M'; no argument required
4236 # The diagnosis changed in icc 8.0:
4237 # icc: Command line remark: option '-MP' not supported
4238 if (grep 'ignoring option' conftest.err ||
4239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4240 am_cv_CC_dependencies_compiler_type=$depmode
4241 break
4242 fi
4243 fi
4244 done
4245
4246 cd ..
4247 rm -rf conftest.dir
4248 else
4249 am_cv_CC_dependencies_compiler_type=none
4250 fi
4251
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4254 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4256
4257 if
4258 test "x$enable_dependency_tracking" != xno \
4259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4260 am__fastdepCC_TRUE=
4261 am__fastdepCC_FALSE='#'
4262 else
4263 am__fastdepCC_TRUE='#'
4264 am__fastdepCC_FALSE=
4265 fi
4266
4267
4268
4269 ac_ext=c
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4275 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4276 # On Suns, sometimes $CPP names a directory.
4277 if test -n "$CPP" && test -d "$CPP"; then
4278 CPP=
4279 fi
4280 if test -z "$CPP"; then
4281 if ${ac_cv_prog_CPP+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 # Double quotes because CPP needs to be expanded
4285 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4286 do
4287 ac_preproc_ok=false
4288 for ac_c_preproc_warn_flag in '' yes
4289 do
4290 # Use a header file that comes with gcc, so configuring glibc
4291 # with a fresh cross-compiler works.
4292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293 # <limits.h> exists even on freestanding compilers.
4294 # On the NeXT, cc -E runs the code through the compiler's parser,
4295 # not just through cpp. "Syntax error" is here to catch this case.
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #ifdef __STDC__
4299 # include <limits.h>
4300 #else
4301 # include <assert.h>
4302 #endif
4303 Syntax error
4304 _ACEOF
4305 if ac_fn_c_try_cpp "$LINENO"; then :
4306
4307 else
4308 # Broken: fails on valid input.
4309 continue
4310 fi
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313 # OK, works on sane cases. Now check whether nonexistent headers
4314 # can be detected and how.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <ac_nonexistent.h>
4318 _ACEOF
4319 if ac_fn_c_try_cpp "$LINENO"; then :
4320 # Broken: success on invalid input.
4321 continue
4322 else
4323 # Passes both tests.
4324 ac_preproc_ok=:
4325 break
4326 fi
4327 rm -f conftest.err conftest.i conftest.$ac_ext
4328
4329 done
4330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331 rm -f conftest.i conftest.err conftest.$ac_ext
4332 if $ac_preproc_ok; then :
4333 break
4334 fi
4335
4336 done
4337 ac_cv_prog_CPP=$CPP
4338
4339 fi
4340 CPP=$ac_cv_prog_CPP
4341 else
4342 ac_cv_prog_CPP=$CPP
4343 fi
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4345 $as_echo "$CPP" >&6; }
4346 ac_preproc_ok=false
4347 for ac_c_preproc_warn_flag in '' yes
4348 do
4349 # Use a header file that comes with gcc, so configuring glibc
4350 # with a fresh cross-compiler works.
4351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4352 # <limits.h> exists even on freestanding compilers.
4353 # On the NeXT, cc -E runs the code through the compiler's parser,
4354 # not just through cpp. "Syntax error" is here to catch this case.
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 #ifdef __STDC__
4358 # include <limits.h>
4359 #else
4360 # include <assert.h>
4361 #endif
4362 Syntax error
4363 _ACEOF
4364 if ac_fn_c_try_cpp "$LINENO"; then :
4365
4366 else
4367 # Broken: fails on valid input.
4368 continue
4369 fi
4370 rm -f conftest.err conftest.i conftest.$ac_ext
4371
4372 # OK, works on sane cases. Now check whether nonexistent headers
4373 # can be detected and how.
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 #include <ac_nonexistent.h>
4377 _ACEOF
4378 if ac_fn_c_try_cpp "$LINENO"; then :
4379 # Broken: success on invalid input.
4380 continue
4381 else
4382 # Passes both tests.
4383 ac_preproc_ok=:
4384 break
4385 fi
4386 rm -f conftest.err conftest.i conftest.$ac_ext
4387
4388 done
4389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390 rm -f conftest.i conftest.err conftest.$ac_ext
4391 if $ac_preproc_ok; then :
4392
4393 else
4394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4396 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4397 See \`config.log' for more details" "$LINENO" 5; }
4398 fi
4399
4400 ac_ext=c
4401 ac_cpp='$CPP $CPPFLAGS'
4402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405
4406
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4408 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4409 if ${ac_cv_path_GREP+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -z "$GREP"; then
4413 ac_path_GREP_found=false
4414 # Loop through the user's path and test for each of PROGNAME-LIST
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417 do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_prog in grep ggrep; do
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4423 as_fn_executable_p "$ac_path_GREP" || continue
4424 # Check for GNU ac_path_GREP and select it if it is found.
4425 # Check for GNU $ac_path_GREP
4426 case `"$ac_path_GREP" --version 2>&1` in
4427 *GNU*)
4428 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4429 *)
4430 ac_count=0
4431 $as_echo_n 0123456789 >"conftest.in"
4432 while :
4433 do
4434 cat "conftest.in" "conftest.in" >"conftest.tmp"
4435 mv "conftest.tmp" "conftest.in"
4436 cp "conftest.in" "conftest.nl"
4437 $as_echo 'GREP' >> "conftest.nl"
4438 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440 as_fn_arith $ac_count + 1 && ac_count=$as_val
4441 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4442 # Best one so far, save it but keep looking for a better one
4443 ac_cv_path_GREP="$ac_path_GREP"
4444 ac_path_GREP_max=$ac_count
4445 fi
4446 # 10*(2^10) chars as input seems more than enough
4447 test $ac_count -gt 10 && break
4448 done
4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450 esac
4451
4452 $ac_path_GREP_found && break 3
4453 done
4454 done
4455 done
4456 IFS=$as_save_IFS
4457 if test -z "$ac_cv_path_GREP"; then
4458 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4459 fi
4460 else
4461 ac_cv_path_GREP=$GREP
4462 fi
4463
4464 fi
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4466 $as_echo "$ac_cv_path_GREP" >&6; }
4467 GREP="$ac_cv_path_GREP"
4468
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4471 $as_echo_n "checking for egrep... " >&6; }
4472 if ${ac_cv_path_EGREP+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4476 then ac_cv_path_EGREP="$GREP -E"
4477 else
4478 if test -z "$EGREP"; then
4479 ac_path_EGREP_found=false
4480 # Loop through the user's path and test for each of PROGNAME-LIST
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4483 do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_prog in egrep; do
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4489 as_fn_executable_p "$ac_path_EGREP" || continue
4490 # Check for GNU ac_path_EGREP and select it if it is found.
4491 # Check for GNU $ac_path_EGREP
4492 case `"$ac_path_EGREP" --version 2>&1` in
4493 *GNU*)
4494 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4495 *)
4496 ac_count=0
4497 $as_echo_n 0123456789 >"conftest.in"
4498 while :
4499 do
4500 cat "conftest.in" "conftest.in" >"conftest.tmp"
4501 mv "conftest.tmp" "conftest.in"
4502 cp "conftest.in" "conftest.nl"
4503 $as_echo 'EGREP' >> "conftest.nl"
4504 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4506 as_fn_arith $ac_count + 1 && ac_count=$as_val
4507 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4508 # Best one so far, save it but keep looking for a better one
4509 ac_cv_path_EGREP="$ac_path_EGREP"
4510 ac_path_EGREP_max=$ac_count
4511 fi
4512 # 10*(2^10) chars as input seems more than enough
4513 test $ac_count -gt 10 && break
4514 done
4515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4516 esac
4517
4518 $ac_path_EGREP_found && break 3
4519 done
4520 done
4521 done
4522 IFS=$as_save_IFS
4523 if test -z "$ac_cv_path_EGREP"; then
4524 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4525 fi
4526 else
4527 ac_cv_path_EGREP=$EGREP
4528 fi
4529
4530 fi
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4533 $as_echo "$ac_cv_path_EGREP" >&6; }
4534 EGREP="$ac_cv_path_EGREP"
4535
4536
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4538 $as_echo_n "checking for ANSI C header files... " >&6; }
4539 if ${ac_cv_header_stdc+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <stdlib.h>
4545 #include <stdarg.h>
4546 #include <string.h>
4547 #include <float.h>
4548
4549 int
4550 main ()
4551 {
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 if ac_fn_c_try_compile "$LINENO"; then :
4558 ac_cv_header_stdc=yes
4559 else
4560 ac_cv_header_stdc=no
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563
4564 if test $ac_cv_header_stdc = yes; then
4565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 #include <string.h>
4569
4570 _ACEOF
4571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4572 $EGREP "memchr" >/dev/null 2>&1; then :
4573
4574 else
4575 ac_cv_header_stdc=no
4576 fi
4577 rm -f conftest*
4578
4579 fi
4580
4581 if test $ac_cv_header_stdc = yes; then
4582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <stdlib.h>
4586
4587 _ACEOF
4588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4589 $EGREP "free" >/dev/null 2>&1; then :
4590
4591 else
4592 ac_cv_header_stdc=no
4593 fi
4594 rm -f conftest*
4595
4596 fi
4597
4598 if test $ac_cv_header_stdc = yes; then
4599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4600 if test "$cross_compiling" = yes; then :
4601 :
4602 else
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <ctype.h>
4606 #include <stdlib.h>
4607 #if ((' ' & 0x0FF) == 0x020)
4608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4610 #else
4611 # define ISLOWER(c) \
4612 (('a' <= (c) && (c) <= 'i') \
4613 || ('j' <= (c) && (c) <= 'r') \
4614 || ('s' <= (c) && (c) <= 'z'))
4615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4616 #endif
4617
4618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4619 int
4620 main ()
4621 {
4622 int i;
4623 for (i = 0; i < 256; i++)
4624 if (XOR (islower (i), ISLOWER (i))
4625 || toupper (i) != TOUPPER (i))
4626 return 2;
4627 return 0;
4628 }
4629 _ACEOF
4630 if ac_fn_c_try_run "$LINENO"; then :
4631
4632 else
4633 ac_cv_header_stdc=no
4634 fi
4635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4636 conftest.$ac_objext conftest.beam conftest.$ac_ext
4637 fi
4638
4639 fi
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4642 $as_echo "$ac_cv_header_stdc" >&6; }
4643 if test $ac_cv_header_stdc = yes; then
4644
4645 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4646
4647 fi
4648
4649 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4650 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4651 inttypes.h stdint.h unistd.h
4652 do :
4653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4654 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4655 "
4656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4657 cat >>confdefs.h <<_ACEOF
4658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4659 _ACEOF
4660
4661 fi
4662
4663 done
4664
4665
4666
4667 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4668 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4669 MINIX=yes
4670 else
4671 MINIX=
4672 fi
4673
4674
4675 if test "$MINIX" = yes; then
4676
4677 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4678
4679
4680 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4681
4682
4683 $as_echo "#define _MINIX 1" >>confdefs.h
4684
4685 fi
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4689 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4690 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695
4696 # define __EXTENSIONS__ 1
4697 $ac_includes_default
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_safe_to_define___extensions__=yes
4708 else
4709 ac_cv_safe_to_define___extensions__=no
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4714 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4715 test $ac_cv_safe_to_define___extensions__ = yes &&
4716 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4717
4718 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4719
4720 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4721
4722 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4723
4724 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4725
4726
4727
4728
4729 # Checks for header files.
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4731 $as_echo_n "checking for ANSI C header files... " >&6; }
4732 if ${ac_cv_header_stdc+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #include <stdlib.h>
4738 #include <stdarg.h>
4739 #include <string.h>
4740 #include <float.h>
4741
4742 int
4743 main ()
4744 {
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 ac_cv_header_stdc=yes
4752 else
4753 ac_cv_header_stdc=no
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756
4757 if test $ac_cv_header_stdc = yes; then
4758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <string.h>
4762
4763 _ACEOF
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765 $EGREP "memchr" >/dev/null 2>&1; then :
4766
4767 else
4768 ac_cv_header_stdc=no
4769 fi
4770 rm -f conftest*
4771
4772 fi
4773
4774 if test $ac_cv_header_stdc = yes; then
4775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <stdlib.h>
4779
4780 _ACEOF
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 $EGREP "free" >/dev/null 2>&1; then :
4783
4784 else
4785 ac_cv_header_stdc=no
4786 fi
4787 rm -f conftest*
4788
4789 fi
4790
4791 if test $ac_cv_header_stdc = yes; then
4792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4793 if test "$cross_compiling" = yes; then :
4794 :
4795 else
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #include <ctype.h>
4799 #include <stdlib.h>
4800 #if ((' ' & 0x0FF) == 0x020)
4801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4803 #else
4804 # define ISLOWER(c) \
4805 (('a' <= (c) && (c) <= 'i') \
4806 || ('j' <= (c) && (c) <= 'r') \
4807 || ('s' <= (c) && (c) <= 'z'))
4808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4809 #endif
4810
4811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4812 int
4813 main ()
4814 {
4815 int i;
4816 for (i = 0; i < 256; i++)
4817 if (XOR (islower (i), ISLOWER (i))
4818 || toupper (i) != TOUPPER (i))
4819 return 2;
4820 return 0;
4821 }
4822 _ACEOF
4823 if ac_fn_c_try_run "$LINENO"; then :
4824
4825 else
4826 ac_cv_header_stdc=no
4827 fi
4828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4829 conftest.$ac_objext conftest.beam conftest.$ac_ext
4830 fi
4831
4832 fi
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4835 $as_echo "$ac_cv_header_stdc" >&6; }
4836 if test $ac_cv_header_stdc = yes; then
4837
4838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4839
4840 fi
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4843 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4844 if ${ac_cv_header_sys_wait_h+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 #include <sys/types.h>
4850 #include <sys/wait.h>
4851 #ifndef WEXITSTATUS
4852 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4853 #endif
4854 #ifndef WIFEXITED
4855 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4856 #endif
4857
4858 int
4859 main ()
4860 {
4861 int s;
4862 wait (&s);
4863 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4864 ;
4865 return 0;
4866 }
4867 _ACEOF
4868 if ac_fn_c_try_compile "$LINENO"; then :
4869 ac_cv_header_sys_wait_h=yes
4870 else
4871 ac_cv_header_sys_wait_h=no
4872 fi
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4876 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4877 if test $ac_cv_header_sys_wait_h = yes; then
4878
4879 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4880
4881 fi
4882
4883 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
4884 time.h sys/stat.h wchar.h
4885 do :
4886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4889 cat >>confdefs.h <<_ACEOF
4890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4891 _ACEOF
4892
4893 fi
4894
4895 done
4896
4897
4898 # Check whether --enable-werror was given.
4899 if test "${enable_werror+set}" = set; then :
4900 enableval=$enable_werror;
4901 fi
4902
4903
4904 # Add CET specific flags if CET is enabled
4905 # Check whether --enable-cet was given.
4906 if test "${enable_cet+set}" = set; then :
4907 enableval=$enable_cet;
4908 case "$enableval" in
4909 yes|no|auto) ;;
4910 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4911 esac
4912
4913 else
4914 enable_cet=auto
4915 fi
4916
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4919 $as_echo_n "checking for CET support... " >&6; }
4920
4921 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4922 case "$host" in
4923 i[34567]86-*-linux* | x86_64-*-linux*)
4924 case "$enable_cet" in
4925 auto)
4926 # Check if target supports multi-byte NOPs
4927 # and if compiler and assembler support CET insn.
4928 cet_save_CFLAGS="$CFLAGS"
4929 CFLAGS="$CFLAGS -fcf-protection"
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932
4933 int
4934 main ()
4935 {
4936
4937 #if !defined(__SSE2__)
4938 #error target does not support multi-byte NOPs
4939 #else
4940 asm ("setssbsy");
4941 #endif
4942
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 enable_cet=yes
4949 else
4950 enable_cet=no
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 CFLAGS="$cet_save_CFLAGS"
4954 ;;
4955 yes)
4956 # Check if assembler supports CET.
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959
4960 int
4961 main ()
4962 {
4963 asm ("setssbsy");
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_compile "$LINENO"; then :
4969
4970 else
4971 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4972 fi
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 ;;
4975 esac
4976 ;;
4977 *)
4978 enable_cet=no
4979 ;;
4980 esac
4981 if test x$enable_cet = xyes; then
4982 CET_FLAGS="-fcf-protection -mshstk"
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4984 $as_echo "yes" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990 XCFLAGS="$XCFLAGS $CET_FLAGS"
4991
4992 # Check for tools
4993 if test -n "$ac_tool_prefix"; then
4994 for ac_prog in ar lib "link -lib"
4995 do
4996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if ${ac_cv_prog_AR+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -n "$AR"; then
5004 ac_cv_prog_AR="$AR" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 fi
5022 fi
5023 AR=$ac_cv_prog_AR
5024 if test -n "$AR"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5026 $as_echo "$AR" >&6; }
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5030 fi
5031
5032
5033 test -n "$AR" && break
5034 done
5035 fi
5036 if test -z "$AR"; then
5037 ac_ct_AR=$AR
5038 for ac_prog in ar lib "link -lib"
5039 do
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$ac_ct_AR"; then
5048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_ac_ct_AR="$ac_prog"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5068 if test -n "$ac_ct_AR"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5070 $as_echo "$ac_ct_AR" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 test -n "$ac_ct_AR" && break
5078 done
5079
5080 if test "x$ac_ct_AR" = x; then
5081 AR="false"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089 AR=$ac_ct_AR
5090 fi
5091 fi
5092
5093 : ${AR=ar}
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5096 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5097 if ${am_cv_ar_interface+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106 am_cv_ar_interface=ar
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109 int some_variable = 0;
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5114 (eval $am_ar_try) 2>&5
5115 ac_status=$?
5116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }
5118 if test "$ac_status" -eq 0; then
5119 am_cv_ar_interface=ar
5120 else
5121 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5123 (eval $am_ar_try) 2>&5
5124 ac_status=$?
5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }
5127 if test "$ac_status" -eq 0; then
5128 am_cv_ar_interface=lib
5129 else
5130 am_cv_ar_interface=unknown
5131 fi
5132 fi
5133 rm -f conftest.lib libconftest.a
5134
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5145 $as_echo "$am_cv_ar_interface" >&6; }
5146
5147 case $am_cv_ar_interface in
5148 ar)
5149 ;;
5150 lib)
5151 # Microsoft lib, so override with the ar-lib wrapper script.
5152 # FIXME: It is wrong to rewrite AR.
5153 # But if we don't then we get into trouble of one sort or another.
5154 # A longer-term fix would be to have automake use am__AR in this case,
5155 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5156 # similar.
5157 AR="$am_aux_dir/ar-lib $AR"
5158 ;;
5159 unknown)
5160 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5161 ;;
5162 esac
5163
5164 ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_prog_CC+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$CC"; then
5178 ac_cv_prog_CC="$CC" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 CC=$ac_cv_prog_CC
5198 if test -n "$CC"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5200 $as_echo "$CC" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_prog_CC"; then
5209 ac_ct_CC=$CC
5210 # Extract the first word of "gcc", so it can be a program name with args.
5211 set dummy gcc; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ac_ct_CC"; then
5218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_CC="gcc"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5238 if test -n "$ac_ct_CC"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5240 $as_echo "$ac_ct_CC" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246 if test "x$ac_ct_CC" = x; then
5247 CC=""
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5254 esac
5255 CC=$ac_ct_CC
5256 fi
5257 else
5258 CC="$ac_cv_prog_CC"
5259 fi
5260
5261 if test -z "$CC"; then
5262 if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5264 set dummy ${ac_tool_prefix}cc; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_prog_CC+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$CC"; then
5271 ac_cv_prog_CC="$CC" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_CC="${ac_tool_prefix}cc"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 CC=$ac_cv_prog_CC
5291 if test -n "$CC"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5293 $as_echo "$CC" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300 fi
5301 fi
5302 if test -z "$CC"; then
5303 # Extract the first word of "cc", so it can be a program name with args.
5304 set dummy cc; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_CC+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -n "$CC"; then
5311 ac_cv_prog_CC="$CC" # Let the user override the test.
5312 else
5313 ac_prog_rejected=no
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5322 ac_prog_rejected=yes
5323 continue
5324 fi
5325 ac_cv_prog_CC="cc"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 if test $ac_prog_rejected = yes; then
5334 # We found a bogon in the path, so make sure we never use it.
5335 set dummy $ac_cv_prog_CC
5336 shift
5337 if test $# != 0; then
5338 # We chose a different compiler from the bogus one.
5339 # However, it has the same basename, so the bogon will be chosen
5340 # first if we set CC to just the basename; use the full file name.
5341 shift
5342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5343 fi
5344 fi
5345 fi
5346 fi
5347 CC=$ac_cv_prog_CC
5348 if test -n "$CC"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5350 $as_echo "$CC" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 fi
5358 if test -z "$CC"; then
5359 if test -n "$ac_tool_prefix"; then
5360 for ac_prog in cl.exe
5361 do
5362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_CC+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$CC"; then
5370 ac_cv_prog_CC="$CC" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 CC=$ac_cv_prog_CC
5390 if test -n "$CC"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5392 $as_echo "$CC" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 test -n "$CC" && break
5400 done
5401 fi
5402 if test -z "$CC"; then
5403 ac_ct_CC=$CC
5404 for ac_prog in cl.exe
5405 do
5406 # Extract the first word of "$ac_prog", so it can be a program name with args.
5407 set dummy $ac_prog; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$ac_ct_CC"; then
5414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423 ac_cv_prog_ac_ct_CC="$ac_prog"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5426 fi
5427 done
5428 done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5434 if test -n "$ac_ct_CC"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5436 $as_echo "$ac_ct_CC" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443 test -n "$ac_ct_CC" && break
5444 done
5445
5446 if test "x$ac_ct_CC" = x; then
5447 CC=""
5448 else
5449 case $cross_compiling:$ac_tool_warned in
5450 yes:)
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5453 ac_tool_warned=yes ;;
5454 esac
5455 CC=$ac_ct_CC
5456 fi
5457 fi
5458
5459 fi
5460
5461
5462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464 as_fn_error $? "no acceptable C compiler found in \$PATH
5465 See \`config.log' for more details" "$LINENO" 5; }
5466
5467 # Provide some information about the compiler.
5468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5469 set X $ac_compile
5470 ac_compiler=$2
5471 for ac_option in --version -v -V -qversion; do
5472 { { ac_try="$ac_compiler $ac_option >&5"
5473 case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476 esac
5477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5478 $as_echo "$ac_try_echo"; } >&5
5479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5480 ac_status=$?
5481 if test -s conftest.err; then
5482 sed '10a\
5483 ... rest of stderr output deleted ...
5484 10q' conftest.err >conftest.er1
5485 cat conftest.er1 >&5
5486 fi
5487 rm -f conftest.er1 conftest.err
5488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5489 test $ac_status = 0; }
5490 done
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5494 if ${ac_cv_c_compiler_gnu+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499
5500 int
5501 main ()
5502 {
5503 #ifndef __GNUC__
5504 choke me
5505 #endif
5506
5507 ;
5508 return 0;
5509 }
5510 _ACEOF
5511 if ac_fn_c_try_compile "$LINENO"; then :
5512 ac_compiler_gnu=yes
5513 else
5514 ac_compiler_gnu=no
5515 fi
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5518
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5522 if test $ac_compiler_gnu = yes; then
5523 GCC=yes
5524 else
5525 GCC=
5526 fi
5527 ac_test_CFLAGS=${CFLAGS+set}
5528 ac_save_CFLAGS=$CFLAGS
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5531 if ${ac_cv_prog_cc_g+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 ac_save_c_werror_flag=$ac_c_werror_flag
5535 ac_c_werror_flag=yes
5536 ac_cv_prog_cc_g=no
5537 CFLAGS="-g"
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540
5541 int
5542 main ()
5543 {
5544
5545 ;
5546 return 0;
5547 }
5548 _ACEOF
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550 ac_cv_prog_cc_g=yes
5551 else
5552 CFLAGS=""
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555
5556 int
5557 main ()
5558 {
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565
5566 else
5567 ac_c_werror_flag=$ac_save_c_werror_flag
5568 CFLAGS="-g"
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571
5572 int
5573 main ()
5574 {
5575
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581 ac_cv_prog_cc_g=yes
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 ac_c_werror_flag=$ac_save_c_werror_flag
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5591 $as_echo "$ac_cv_prog_cc_g" >&6; }
5592 if test "$ac_test_CFLAGS" = set; then
5593 CFLAGS=$ac_save_CFLAGS
5594 elif test $ac_cv_prog_cc_g = yes; then
5595 if test "$GCC" = yes; then
5596 CFLAGS="-g -O2"
5597 else
5598 CFLAGS="-g"
5599 fi
5600 else
5601 if test "$GCC" = yes; then
5602 CFLAGS="-O2"
5603 else
5604 CFLAGS=
5605 fi
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5609 if ${ac_cv_prog_cc_c89+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 ac_cv_prog_cc_c89=no
5613 ac_save_CC=$CC
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <stdarg.h>
5617 #include <stdio.h>
5618 struct stat;
5619 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5620 struct buf { int x; };
5621 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5622 static char *e (p, i)
5623 char **p;
5624 int i;
5625 {
5626 return p[i];
5627 }
5628 static char *f (char * (*g) (char **, int), char **p, ...)
5629 {
5630 char *s;
5631 va_list v;
5632 va_start (v,p);
5633 s = g (p, va_arg (v,int));
5634 va_end (v);
5635 return s;
5636 }
5637
5638 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5639 function prototypes and stuff, but not '\xHH' hex character constants.
5640 These don't provoke an error unfortunately, instead are silently treated
5641 as 'x'. The following induces an error, until -std is added to get
5642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5643 array size at least. It's necessary to write '\x00'==0 to get something
5644 that's true only with -std. */
5645 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5646
5647 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5648 inside strings and character constants. */
5649 #define FOO(x) 'x'
5650 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5651
5652 int test (int i, double x);
5653 struct s1 {int (*f) (int a);};
5654 struct s2 {int (*f) (double a);};
5655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5656 int argc;
5657 char **argv;
5658 int
5659 main ()
5660 {
5661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5662 ;
5663 return 0;
5664 }
5665 _ACEOF
5666 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5668 do
5669 CC="$ac_save_CC $ac_arg"
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 ac_cv_prog_cc_c89=$ac_arg
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext
5674 test "x$ac_cv_prog_cc_c89" != "xno" && break
5675 done
5676 rm -f conftest.$ac_ext
5677 CC=$ac_save_CC
5678
5679 fi
5680 # AC_CACHE_VAL
5681 case "x$ac_cv_prog_cc_c89" in
5682 x)
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5684 $as_echo "none needed" >&6; } ;;
5685 xno)
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5687 $as_echo "unsupported" >&6; } ;;
5688 *)
5689 CC="$CC $ac_cv_prog_cc_c89"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5691 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5692 esac
5693 if test "x$ac_cv_prog_cc_c89" != xno; then :
5694
5695 fi
5696
5697 ac_ext=c
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702
5703 ac_ext=c
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5709 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5710 if ${am_cv_prog_cc_c_o+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715
5716 int
5717 main ()
5718 {
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 # Make sure it works both with $CC and with simple cc.
5725 # Following AC_PROG_CC_C_O, we do the test twice because some
5726 # compilers refuse to overwrite an existing .o file with -o,
5727 # though they will create one.
5728 am_cv_prog_cc_c_o=yes
5729 for am_i in 1 2; do
5730 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5731 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } \
5735 && test -f conftest2.$ac_objext; then
5736 : OK
5737 else
5738 am_cv_prog_cc_c_o=no
5739 break
5740 fi
5741 done
5742 rm -f core conftest*
5743 unset am_i
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5746 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5747 if test "$am_cv_prog_cc_c_o" != yes; then
5748 # Losing compiler, so override with the script.
5749 # FIXME: It is wrong to rewrite CC.
5750 # But if we don't then we get into trouble of one sort or another.
5751 # A longer-term fix would be to have automake use am__CC in this case,
5752 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5753 CC="$am_aux_dir/compile $CC"
5754 fi
5755 ac_ext=c
5756 ac_cpp='$CPP $CPPFLAGS'
5757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5760
5761
5762 depcc="$CC" am_compiler_list=
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5765 $as_echo_n "checking dependency style of $depcc... " >&6; }
5766 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5770 # We make a subdir and do the tests there. Otherwise we can end up
5771 # making bogus files that we don't know about and never remove. For
5772 # instance it was reported that on HP-UX the gcc test will end up
5773 # making a dummy file named 'D' -- because '-MD' means "put the output
5774 # in D".
5775 rm -rf conftest.dir
5776 mkdir conftest.dir
5777 # Copy depcomp to subdir because otherwise we won't find it if we're
5778 # using a relative directory.
5779 cp "$am_depcomp" conftest.dir
5780 cd conftest.dir
5781 # We will build objects and dependencies in a subdirectory because
5782 # it helps to detect inapplicable dependency modes. For instance
5783 # both Tru64's cc and ICC support -MD to output dependencies as a
5784 # side effect of compilation, but ICC will put the dependencies in
5785 # the current directory while Tru64 will put them in the object
5786 # directory.
5787 mkdir sub
5788
5789 am_cv_CC_dependencies_compiler_type=none
5790 if test "$am_compiler_list" = ""; then
5791 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5792 fi
5793 am__universal=false
5794 case " $depcc " in #(
5795 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5796 esac
5797
5798 for depmode in $am_compiler_list; do
5799 # Setup a source with many dependencies, because some compilers
5800 # like to wrap large dependency lists on column 80 (with \), and
5801 # we should not choose a depcomp mode which is confused by this.
5802 #
5803 # We need to recreate these files for each test, as the compiler may
5804 # overwrite some of them when testing with obscure command lines.
5805 # This happens at least with the AIX C compiler.
5806 : > sub/conftest.c
5807 for i in 1 2 3 4 5 6; do
5808 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5809 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5810 # Solaris 10 /bin/sh.
5811 echo '/* dummy */' > sub/conftst$i.h
5812 done
5813 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5814
5815 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5816 # mode. It turns out that the SunPro C++ compiler does not properly
5817 # handle '-M -o', and we need to detect this. Also, some Intel
5818 # versions had trouble with output in subdirs.
5819 am__obj=sub/conftest.${OBJEXT-o}
5820 am__minus_obj="-o $am__obj"
5821 case $depmode in
5822 gcc)
5823 # This depmode causes a compiler race in universal mode.
5824 test "$am__universal" = false || continue
5825 ;;
5826 nosideeffect)
5827 # After this tag, mechanisms are not by side-effect, so they'll
5828 # only be used when explicitly requested.
5829 if test "x$enable_dependency_tracking" = xyes; then
5830 continue
5831 else
5832 break
5833 fi
5834 ;;
5835 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5836 # This compiler won't grok '-c -o', but also, the minuso test has
5837 # not run yet. These depmodes are late enough in the game, and
5838 # so weak that their functioning should not be impacted.
5839 am__obj=conftest.${OBJEXT-o}
5840 am__minus_obj=
5841 ;;
5842 none) break ;;
5843 esac
5844 if depmode=$depmode \
5845 source=sub/conftest.c object=$am__obj \
5846 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5847 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5848 >/dev/null 2>conftest.err &&
5849 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5850 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5851 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5852 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5853 # icc doesn't choke on unknown options, it will just issue warnings
5854 # or remarks (even with -Werror). So we grep stderr for any message
5855 # that says an option was ignored or not supported.
5856 # When given -MP, icc 7.0 and 7.1 complain thusly:
5857 # icc: Command line warning: ignoring option '-M'; no argument required
5858 # The diagnosis changed in icc 8.0:
5859 # icc: Command line remark: option '-MP' not supported
5860 if (grep 'ignoring option' conftest.err ||
5861 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5862 am_cv_CC_dependencies_compiler_type=$depmode
5863 break
5864 fi
5865 fi
5866 done
5867
5868 cd ..
5869 rm -rf conftest.dir
5870 else
5871 am_cv_CC_dependencies_compiler_type=none
5872 fi
5873
5874 fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5876 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5877 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5878
5879 if
5880 test "x$enable_dependency_tracking" != xno \
5881 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5882 am__fastdepCC_TRUE=
5883 am__fastdepCC_FALSE='#'
5884 else
5885 am__fastdepCC_TRUE='#'
5886 am__fastdepCC_FALSE=
5887 fi
5888
5889
5890 ac_ext=cpp
5891 ac_cpp='$CXXCPP $CPPFLAGS'
5892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5895 if test -z "$CXX"; then
5896 if test -n "$CCC"; then
5897 CXX=$CCC
5898 else
5899 if test -n "$ac_tool_prefix"; then
5900 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5901 do
5902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_CXX+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$CXX"; then
5910 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 CXX=$ac_cv_prog_CXX
5930 if test -n "$CXX"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5932 $as_echo "$CXX" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939 test -n "$CXX" && break
5940 done
5941 fi
5942 if test -z "$CXX"; then
5943 ac_ct_CXX=$CXX
5944 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5945 do
5946 # Extract the first word of "$ac_prog", so it can be a program name with args.
5947 set dummy $ac_prog; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if test -n "$ac_ct_CXX"; then
5954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_ac_ct_CXX="$ac_prog"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5966 fi
5967 done
5968 done
5969 IFS=$as_save_IFS
5970
5971 fi
5972 fi
5973 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5974 if test -n "$ac_ct_CXX"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5976 $as_echo "$ac_ct_CXX" >&6; }
5977 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982
5983 test -n "$ac_ct_CXX" && break
5984 done
5985
5986 if test "x$ac_ct_CXX" = x; then
5987 CXX="g++"
5988 else
5989 case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995 CXX=$ac_ct_CXX
5996 fi
5997 fi
5998
5999 fi
6000 fi
6001 # Provide some information about the compiler.
6002 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6003 set X $ac_compile
6004 ac_compiler=$2
6005 for ac_option in --version -v -V -qversion; do
6006 { { ac_try="$ac_compiler $ac_option >&5"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6012 $as_echo "$ac_try_echo"; } >&5
6013 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6014 ac_status=$?
6015 if test -s conftest.err; then
6016 sed '10a\
6017 ... rest of stderr output deleted ...
6018 10q' conftest.err >conftest.er1
6019 cat conftest.er1 >&5
6020 fi
6021 rm -f conftest.er1 conftest.err
6022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6023 test $ac_status = 0; }
6024 done
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6027 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6028 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033
6034 int
6035 main ()
6036 {
6037 #ifndef __GNUC__
6038 choke me
6039 #endif
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_cxx_try_compile "$LINENO"; then :
6046 ac_compiler_gnu=yes
6047 else
6048 ac_compiler_gnu=no
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6055 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6056 if test $ac_compiler_gnu = yes; then
6057 GXX=yes
6058 else
6059 GXX=
6060 fi
6061 ac_test_CXXFLAGS=${CXXFLAGS+set}
6062 ac_save_CXXFLAGS=$CXXFLAGS
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6064 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6065 if ${ac_cv_prog_cxx_g+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6069 ac_cxx_werror_flag=yes
6070 ac_cv_prog_cxx_g=no
6071 CXXFLAGS="-g"
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074
6075 int
6076 main ()
6077 {
6078
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_cxx_try_compile "$LINENO"; then :
6084 ac_cv_prog_cxx_g=yes
6085 else
6086 CXXFLAGS=""
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089
6090 int
6091 main ()
6092 {
6093
6094 ;
6095 return 0;
6096 }
6097 _ACEOF
6098 if ac_fn_cxx_try_compile "$LINENO"; then :
6099
6100 else
6101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6102 CXXFLAGS="-g"
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105
6106 int
6107 main ()
6108 {
6109
6110 ;
6111 return 0;
6112 }
6113 _ACEOF
6114 if ac_fn_cxx_try_compile "$LINENO"; then :
6115 ac_cv_prog_cxx_g=yes
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6125 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6126 if test "$ac_test_CXXFLAGS" = set; then
6127 CXXFLAGS=$ac_save_CXXFLAGS
6128 elif test $ac_cv_prog_cxx_g = yes; then
6129 if test "$GXX" = yes; then
6130 CXXFLAGS="-g -O2"
6131 else
6132 CXXFLAGS="-g"
6133 fi
6134 else
6135 if test "$GXX" = yes; then
6136 CXXFLAGS="-O2"
6137 else
6138 CXXFLAGS=
6139 fi
6140 fi
6141 ac_ext=c
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147 depcc="$CXX" am_compiler_list=
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6150 $as_echo_n "checking dependency style of $depcc... " >&6; }
6151 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6155 # We make a subdir and do the tests there. Otherwise we can end up
6156 # making bogus files that we don't know about and never remove. For
6157 # instance it was reported that on HP-UX the gcc test will end up
6158 # making a dummy file named 'D' -- because '-MD' means "put the output
6159 # in D".
6160 rm -rf conftest.dir
6161 mkdir conftest.dir
6162 # Copy depcomp to subdir because otherwise we won't find it if we're
6163 # using a relative directory.
6164 cp "$am_depcomp" conftest.dir
6165 cd conftest.dir
6166 # We will build objects and dependencies in a subdirectory because
6167 # it helps to detect inapplicable dependency modes. For instance
6168 # both Tru64's cc and ICC support -MD to output dependencies as a
6169 # side effect of compilation, but ICC will put the dependencies in
6170 # the current directory while Tru64 will put them in the object
6171 # directory.
6172 mkdir sub
6173
6174 am_cv_CXX_dependencies_compiler_type=none
6175 if test "$am_compiler_list" = ""; then
6176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6177 fi
6178 am__universal=false
6179 case " $depcc " in #(
6180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6181 esac
6182
6183 for depmode in $am_compiler_list; do
6184 # Setup a source with many dependencies, because some compilers
6185 # like to wrap large dependency lists on column 80 (with \), and
6186 # we should not choose a depcomp mode which is confused by this.
6187 #
6188 # We need to recreate these files for each test, as the compiler may
6189 # overwrite some of them when testing with obscure command lines.
6190 # This happens at least with the AIX C compiler.
6191 : > sub/conftest.c
6192 for i in 1 2 3 4 5 6; do
6193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6194 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6195 # Solaris 10 /bin/sh.
6196 echo '/* dummy */' > sub/conftst$i.h
6197 done
6198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6199
6200 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6201 # mode. It turns out that the SunPro C++ compiler does not properly
6202 # handle '-M -o', and we need to detect this. Also, some Intel
6203 # versions had trouble with output in subdirs.
6204 am__obj=sub/conftest.${OBJEXT-o}
6205 am__minus_obj="-o $am__obj"
6206 case $depmode in
6207 gcc)
6208 # This depmode causes a compiler race in universal mode.
6209 test "$am__universal" = false || continue
6210 ;;
6211 nosideeffect)
6212 # After this tag, mechanisms are not by side-effect, so they'll
6213 # only be used when explicitly requested.
6214 if test "x$enable_dependency_tracking" = xyes; then
6215 continue
6216 else
6217 break
6218 fi
6219 ;;
6220 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6221 # This compiler won't grok '-c -o', but also, the minuso test has
6222 # not run yet. These depmodes are late enough in the game, and
6223 # so weak that their functioning should not be impacted.
6224 am__obj=conftest.${OBJEXT-o}
6225 am__minus_obj=
6226 ;;
6227 none) break ;;
6228 esac
6229 if depmode=$depmode \
6230 source=sub/conftest.c object=$am__obj \
6231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6233 >/dev/null 2>conftest.err &&
6234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6238 # icc doesn't choke on unknown options, it will just issue warnings
6239 # or remarks (even with -Werror). So we grep stderr for any message
6240 # that says an option was ignored or not supported.
6241 # When given -MP, icc 7.0 and 7.1 complain thusly:
6242 # icc: Command line warning: ignoring option '-M'; no argument required
6243 # The diagnosis changed in icc 8.0:
6244 # icc: Command line remark: option '-MP' not supported
6245 if (grep 'ignoring option' conftest.err ||
6246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6247 am_cv_CXX_dependencies_compiler_type=$depmode
6248 break
6249 fi
6250 fi
6251 done
6252
6253 cd ..
6254 rm -rf conftest.dir
6255 else
6256 am_cv_CXX_dependencies_compiler_type=none
6257 fi
6258
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6261 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6262 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6263
6264 if
6265 test "x$enable_dependency_tracking" != xno \
6266 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6267 am__fastdepCXX_TRUE=
6268 am__fastdepCXX_FALSE='#'
6269 else
6270 am__fastdepCXX_TRUE='#'
6271 am__fastdepCXX_FALSE=
6272 fi
6273
6274
6275 # By default we simply use the C compiler to build assembly code.
6276
6277 test "${CCAS+set}" = set || CCAS=$CC
6278 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6279
6280
6281
6282 depcc="$CCAS" am_compiler_list=
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6285 $as_echo_n "checking dependency style of $depcc... " >&6; }
6286 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6290 # We make a subdir and do the tests there. Otherwise we can end up
6291 # making bogus files that we don't know about and never remove. For
6292 # instance it was reported that on HP-UX the gcc test will end up
6293 # making a dummy file named 'D' -- because '-MD' means "put the output
6294 # in D".
6295 rm -rf conftest.dir
6296 mkdir conftest.dir
6297 # Copy depcomp to subdir because otherwise we won't find it if we're
6298 # using a relative directory.
6299 cp "$am_depcomp" conftest.dir
6300 cd conftest.dir
6301 # We will build objects and dependencies in a subdirectory because
6302 # it helps to detect inapplicable dependency modes. For instance
6303 # both Tru64's cc and ICC support -MD to output dependencies as a
6304 # side effect of compilation, but ICC will put the dependencies in
6305 # the current directory while Tru64 will put them in the object
6306 # directory.
6307 mkdir sub
6308
6309 am_cv_CCAS_dependencies_compiler_type=none
6310 if test "$am_compiler_list" = ""; then
6311 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6312 fi
6313 am__universal=false
6314
6315
6316 for depmode in $am_compiler_list; do
6317 # Setup a source with many dependencies, because some compilers
6318 # like to wrap large dependency lists on column 80 (with \), and
6319 # we should not choose a depcomp mode which is confused by this.
6320 #
6321 # We need to recreate these files for each test, as the compiler may
6322 # overwrite some of them when testing with obscure command lines.
6323 # This happens at least with the AIX C compiler.
6324 : > sub/conftest.c
6325 for i in 1 2 3 4 5 6; do
6326 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6327 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6328 # Solaris 10 /bin/sh.
6329 echo '/* dummy */' > sub/conftst$i.h
6330 done
6331 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6332
6333 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6334 # mode. It turns out that the SunPro C++ compiler does not properly
6335 # handle '-M -o', and we need to detect this. Also, some Intel
6336 # versions had trouble with output in subdirs.
6337 am__obj=sub/conftest.${OBJEXT-o}
6338 am__minus_obj="-o $am__obj"
6339 case $depmode in
6340 gcc)
6341 # This depmode causes a compiler race in universal mode.
6342 test "$am__universal" = false || continue
6343 ;;
6344 nosideeffect)
6345 # After this tag, mechanisms are not by side-effect, so they'll
6346 # only be used when explicitly requested.
6347 if test "x$enable_dependency_tracking" = xyes; then
6348 continue
6349 else
6350 break
6351 fi
6352 ;;
6353 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6354 # This compiler won't grok '-c -o', but also, the minuso test has
6355 # not run yet. These depmodes are late enough in the game, and
6356 # so weak that their functioning should not be impacted.
6357 am__obj=conftest.${OBJEXT-o}
6358 am__minus_obj=
6359 ;;
6360 none) break ;;
6361 esac
6362 if depmode=$depmode \
6363 source=sub/conftest.c object=$am__obj \
6364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6365 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6366 >/dev/null 2>conftest.err &&
6367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6369 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6371 # icc doesn't choke on unknown options, it will just issue warnings
6372 # or remarks (even with -Werror). So we grep stderr for any message
6373 # that says an option was ignored or not supported.
6374 # When given -MP, icc 7.0 and 7.1 complain thusly:
6375 # icc: Command line warning: ignoring option '-M'; no argument required
6376 # The diagnosis changed in icc 8.0:
6377 # icc: Command line remark: option '-MP' not supported
6378 if (grep 'ignoring option' conftest.err ||
6379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6380 am_cv_CCAS_dependencies_compiler_type=$depmode
6381 break
6382 fi
6383 fi
6384 done
6385
6386 cd ..
6387 rm -rf conftest.dir
6388 else
6389 am_cv_CCAS_dependencies_compiler_type=none
6390 fi
6391
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6394 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6395 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6396
6397 if
6398 test "x$enable_dependency_tracking" != xno \
6399 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6400 am__fastdepCCAS_TRUE=
6401 am__fastdepCCAS_FALSE='#'
6402 else
6403 am__fastdepCCAS_TRUE='#'
6404 am__fastdepCCAS_FALSE=
6405 fi
6406
6407
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6409 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6410 set x ${MAKE-make}
6411 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6412 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 cat >conftest.make <<\_ACEOF
6416 SHELL = /bin/sh
6417 all:
6418 @echo '@@@%%%=$(MAKE)=@@@%%%'
6419 _ACEOF
6420 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6421 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6422 *@@@%%%=?*=@@@%%%*)
6423 eval ac_cv_prog_make_${ac_make}_set=yes;;
6424 *)
6425 eval ac_cv_prog_make_${ac_make}_set=no;;
6426 esac
6427 rm -f conftest.make
6428 fi
6429 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6431 $as_echo "yes" >&6; }
6432 SET_MAKE=
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6436 SET_MAKE="MAKE=${MAKE-make}"
6437 fi
6438
6439
6440
6441 # Enable libtool
6442 case `pwd` in
6443 *\ * | *\ *)
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6445 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6446 esac
6447
6448
6449
6450 macro_version='2.2.7a'
6451 macro_revision='1.3134'
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465 ltmain="$ac_aux_dir/ltmain.sh"
6466
6467 # Backslashify metacharacters that are still active within
6468 # double-quoted strings.
6469 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6470
6471 # Same as above, but do not quote variable references.
6472 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6473
6474 # Sed substitution to delay expansion of an escaped shell variable in a
6475 # double_quote_subst'ed string.
6476 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6477
6478 # Sed substitution to delay expansion of an escaped single quote.
6479 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6480
6481 # Sed substitution to avoid accidental globbing in evaled expressions
6482 no_glob_subst='s/\*/\\\*/g'
6483
6484 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6485 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6486 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6489 $as_echo_n "checking how to print strings... " >&6; }
6490 # Test print first, because it will be a builtin if present.
6491 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6492 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6493 ECHO='print -r --'
6494 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6495 ECHO='printf %s\n'
6496 else
6497 # Use this function as a fallback that always works.
6498 func_fallback_echo ()
6499 {
6500 eval 'cat <<_LTECHO_EOF
6501 $1
6502 _LTECHO_EOF'
6503 }
6504 ECHO='func_fallback_echo'
6505 fi
6506
6507 # func_echo_all arg...
6508 # Invoke $ECHO with all args, space-separated.
6509 func_echo_all ()
6510 {
6511 $ECHO ""
6512 }
6513
6514 case "$ECHO" in
6515 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6516 $as_echo "printf" >&6; } ;;
6517 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6518 $as_echo "print -r" >&6; } ;;
6519 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6520 $as_echo "cat" >&6; } ;;
6521 esac
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6537 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6538 if ${ac_cv_path_SED+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6542 for ac_i in 1 2 3 4 5 6 7; do
6543 ac_script="$ac_script$as_nl$ac_script"
6544 done
6545 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6546 { ac_script=; unset ac_script;}
6547 if test -z "$SED"; then
6548 ac_path_SED_found=false
6549 # Loop through the user's path and test for each of PROGNAME-LIST
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_prog in sed gsed; do
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6558 as_fn_executable_p "$ac_path_SED" || continue
6559 # Check for GNU ac_path_SED and select it if it is found.
6560 # Check for GNU $ac_path_SED
6561 case `"$ac_path_SED" --version 2>&1` in
6562 *GNU*)
6563 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6564 *)
6565 ac_count=0
6566 $as_echo_n 0123456789 >"conftest.in"
6567 while :
6568 do
6569 cat "conftest.in" "conftest.in" >"conftest.tmp"
6570 mv "conftest.tmp" "conftest.in"
6571 cp "conftest.in" "conftest.nl"
6572 $as_echo '' >> "conftest.nl"
6573 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6575 as_fn_arith $ac_count + 1 && ac_count=$as_val
6576 if test $ac_count -gt ${ac_path_SED_max-0}; then
6577 # Best one so far, save it but keep looking for a better one
6578 ac_cv_path_SED="$ac_path_SED"
6579 ac_path_SED_max=$ac_count
6580 fi
6581 # 10*(2^10) chars as input seems more than enough
6582 test $ac_count -gt 10 && break
6583 done
6584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6585 esac
6586
6587 $ac_path_SED_found && break 3
6588 done
6589 done
6590 done
6591 IFS=$as_save_IFS
6592 if test -z "$ac_cv_path_SED"; then
6593 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6594 fi
6595 else
6596 ac_cv_path_SED=$SED
6597 fi
6598
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6601 $as_echo "$ac_cv_path_SED" >&6; }
6602 SED="$ac_cv_path_SED"
6603 rm -f conftest.sed
6604
6605 test -z "$SED" && SED=sed
6606 Xsed="$SED -e 1s/^X//"
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6619 $as_echo_n "checking for fgrep... " >&6; }
6620 if ${ac_cv_path_FGREP+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6624 then ac_cv_path_FGREP="$GREP -F"
6625 else
6626 if test -z "$FGREP"; then
6627 ac_path_FGREP_found=false
6628 # Loop through the user's path and test for each of PROGNAME-LIST
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6631 do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_prog in fgrep; do
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6637 as_fn_executable_p "$ac_path_FGREP" || continue
6638 # Check for GNU ac_path_FGREP and select it if it is found.
6639 # Check for GNU $ac_path_FGREP
6640 case `"$ac_path_FGREP" --version 2>&1` in
6641 *GNU*)
6642 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6643 *)
6644 ac_count=0
6645 $as_echo_n 0123456789 >"conftest.in"
6646 while :
6647 do
6648 cat "conftest.in" "conftest.in" >"conftest.tmp"
6649 mv "conftest.tmp" "conftest.in"
6650 cp "conftest.in" "conftest.nl"
6651 $as_echo 'FGREP' >> "conftest.nl"
6652 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6654 as_fn_arith $ac_count + 1 && ac_count=$as_val
6655 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6656 # Best one so far, save it but keep looking for a better one
6657 ac_cv_path_FGREP="$ac_path_FGREP"
6658 ac_path_FGREP_max=$ac_count
6659 fi
6660 # 10*(2^10) chars as input seems more than enough
6661 test $ac_count -gt 10 && break
6662 done
6663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6664 esac
6665
6666 $ac_path_FGREP_found && break 3
6667 done
6668 done
6669 done
6670 IFS=$as_save_IFS
6671 if test -z "$ac_cv_path_FGREP"; then
6672 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6673 fi
6674 else
6675 ac_cv_path_FGREP=$FGREP
6676 fi
6677
6678 fi
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6681 $as_echo "$ac_cv_path_FGREP" >&6; }
6682 FGREP="$ac_cv_path_FGREP"
6683
6684
6685 test -z "$GREP" && GREP=grep
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705 # Check whether --with-gnu-ld was given.
6706 if test "${with_gnu_ld+set}" = set; then :
6707 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6708 else
6709 with_gnu_ld=no
6710 fi
6711
6712 ac_prog=ld
6713 if test "$GCC" = yes; then
6714 # Check if gcc -print-prog-name=ld gives a path.
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6716 $as_echo_n "checking for ld used by $CC... " >&6; }
6717 case $host in
6718 *-*-mingw*)
6719 # gcc leaves a trailing carriage return which upsets mingw
6720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6721 *)
6722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6723 esac
6724 case $ac_prog in
6725 # Accept absolute paths.
6726 [\\/]* | ?:[\\/]*)
6727 re_direlt='/[^/][^/]*/\.\./'
6728 # Canonicalize the pathname of ld
6729 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6730 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6731 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6732 done
6733 test -z "$LD" && LD="$ac_prog"
6734 ;;
6735 "")
6736 # If it fails, then pretend we aren't using GCC.
6737 ac_prog=ld
6738 ;;
6739 *)
6740 # If it is relative, then search for the first ld in PATH.
6741 with_gnu_ld=unknown
6742 ;;
6743 esac
6744 elif test "$with_gnu_ld" = yes; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6746 $as_echo_n "checking for GNU ld... " >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6749 $as_echo_n "checking for non-GNU ld... " >&6; }
6750 fi
6751 if ${lt_cv_path_LD+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 if test -z "$LD"; then
6755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6756 for ac_dir in $PATH; do
6757 IFS="$lt_save_ifs"
6758 test -z "$ac_dir" && ac_dir=.
6759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6760 lt_cv_path_LD="$ac_dir/$ac_prog"
6761 # Check to see if the program is GNU ld. I'd rather use --version,
6762 # but apparently some variants of GNU ld only accept -v.
6763 # Break only if it was the GNU/non-GNU ld that we prefer.
6764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6765 *GNU* | *'with BFD'*)
6766 test "$with_gnu_ld" != no && break
6767 ;;
6768 *)
6769 test "$with_gnu_ld" != yes && break
6770 ;;
6771 esac
6772 fi
6773 done
6774 IFS="$lt_save_ifs"
6775 else
6776 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6777 fi
6778 fi
6779
6780 LD="$lt_cv_path_LD"
6781 if test -n "$LD"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6783 $as_echo "$LD" >&6; }
6784 else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6790 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6791 if ${lt_cv_prog_gnu_ld+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6795 case `$LD -v 2>&1 </dev/null` in
6796 *GNU* | *'with BFD'*)
6797 lt_cv_prog_gnu_ld=yes
6798 ;;
6799 *)
6800 lt_cv_prog_gnu_ld=no
6801 ;;
6802 esac
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6805 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6806 with_gnu_ld=$lt_cv_prog_gnu_ld
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6817 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6818 if ${lt_cv_path_NM+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 if test -n "$NM"; then
6822 # Let the user override the nm to test.
6823 lt_nm_to_check="$NM"
6824 else
6825 lt_nm_to_check="${ac_tool_prefix}nm"
6826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6827 lt_nm_to_check="$lt_nm_to_check nm"
6828 fi
6829 fi
6830 for lt_tmp_nm in "$lt_nm_to_check"; do
6831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6833 IFS="$lt_save_ifs"
6834 test -z "$ac_dir" && ac_dir=.
6835 # Strip out any user-provided options from the nm to test twice,
6836 # the first time to test to see if nm (rather than its options) has
6837 # an explicit path, the second time to yield a file which can be
6838 # nm'ed itself.
6839 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6840 case "$tmp_nm_path" in
6841 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6842 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6843 esac
6844 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6845 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6846 # Check to see if the nm accepts a BSD-compat flag.
6847 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6848 # nm: unknown option "B" ignored
6849 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6850 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6851 break
6852 ;;
6853 *)
6854 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6855 *$tmp_nm*)
6856 lt_cv_path_NM="$tmp_nm -p"
6857 break
6858 ;;
6859 *)
6860 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6861 continue # so that we can try to find one that supports BSD flags
6862 ;;
6863 esac
6864 ;;
6865 esac
6866 fi
6867 done
6868 IFS="$lt_save_ifs"
6869 done
6870 : ${lt_cv_path_NM=no}
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6873 $as_echo "$lt_cv_path_NM" >&6; }
6874 if test "$lt_cv_path_NM" != "no"; then
6875 NM="$lt_cv_path_NM"
6876 else
6877 # Didn't find any BSD compatible name lister, look for dumpbin.
6878 if test -n "$DUMPBIN"; then :
6879 # Let the user override the test.
6880 else
6881 if test -n "$ac_tool_prefix"; then
6882 for ac_prog in dumpbin "link -dump"
6883 do
6884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_DUMPBIN+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$DUMPBIN"; then
6892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 DUMPBIN=$ac_cv_prog_DUMPBIN
6912 if test -n "$DUMPBIN"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6914 $as_echo "$DUMPBIN" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920
6921 test -n "$DUMPBIN" && break
6922 done
6923 fi
6924 if test -z "$DUMPBIN"; then
6925 ac_ct_DUMPBIN=$DUMPBIN
6926 for ac_prog in dumpbin "link -dump"
6927 do
6928 # Extract the first word of "$ac_prog", so it can be a program name with args.
6929 set dummy $ac_prog; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 if test -n "$ac_ct_DUMPBIN"; then
6936 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6956 if test -n "$ac_ct_DUMPBIN"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6958 $as_echo "$ac_ct_DUMPBIN" >&6; }
6959 else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964
6965 test -n "$ac_ct_DUMPBIN" && break
6966 done
6967
6968 if test "x$ac_ct_DUMPBIN" = x; then
6969 DUMPBIN=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 DUMPBIN=$ac_ct_DUMPBIN
6978 fi
6979 fi
6980
6981 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6982 *COFF*)
6983 DUMPBIN="$DUMPBIN -symbols"
6984 ;;
6985 *)
6986 DUMPBIN=:
6987 ;;
6988 esac
6989 fi
6990
6991 if test "$DUMPBIN" != ":"; then
6992 NM="$DUMPBIN"
6993 fi
6994 fi
6995 test -z "$NM" && NM=nm
6996
6997
6998
6999
7000
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7003 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7004 if ${lt_cv_nm_interface+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 lt_cv_nm_interface="BSD nm"
7008 echo "int some_variable = 0;" > conftest.$ac_ext
7009 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7010 (eval "$ac_compile" 2>conftest.err)
7011 cat conftest.err >&5
7012 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7013 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7014 cat conftest.err >&5
7015 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7016 cat conftest.out >&5
7017 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7018 lt_cv_nm_interface="MS dumpbin"
7019 fi
7020 rm -f conftest*
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7023 $as_echo "$lt_cv_nm_interface" >&6; }
7024
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7026 $as_echo_n "checking whether ln -s works... " >&6; }
7027 LN_S=$as_ln_s
7028 if test "$LN_S" = "ln -s"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7030 $as_echo "yes" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7033 $as_echo "no, using $LN_S" >&6; }
7034 fi
7035
7036 # find the maximum length of command line arguments
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7038 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7039 if ${lt_cv_sys_max_cmd_len+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 i=0
7043 teststring="ABCD"
7044
7045 case $build_os in
7046 msdosdjgpp*)
7047 # On DJGPP, this test can blow up pretty badly due to problems in libc
7048 # (any single argument exceeding 2000 bytes causes a buffer overrun
7049 # during glob expansion). Even if it were fixed, the result of this
7050 # check would be larger than it should be.
7051 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7052 ;;
7053
7054 gnu*)
7055 # Under GNU Hurd, this test is not required because there is
7056 # no limit to the length of command line arguments.
7057 # Libtool will interpret -1 as no limit whatsoever
7058 lt_cv_sys_max_cmd_len=-1;
7059 ;;
7060
7061 cygwin* | mingw* | cegcc*)
7062 # On Win9x/ME, this test blows up -- it succeeds, but takes
7063 # about 5 minutes as the teststring grows exponentially.
7064 # Worse, since 9x/ME are not pre-emptively multitasking,
7065 # you end up with a "frozen" computer, even though with patience
7066 # the test eventually succeeds (with a max line length of 256k).
7067 # Instead, let's just punt: use the minimum linelength reported by
7068 # all of the supported platforms: 8192 (on NT/2K/XP).
7069 lt_cv_sys_max_cmd_len=8192;
7070 ;;
7071
7072 mint*)
7073 # On MiNT this can take a long time and run out of memory.
7074 lt_cv_sys_max_cmd_len=8192;
7075 ;;
7076
7077 amigaos*)
7078 # On AmigaOS with pdksh, this test takes hours, literally.
7079 # So we just punt and use a minimum line length of 8192.
7080 lt_cv_sys_max_cmd_len=8192;
7081 ;;
7082
7083 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7084 # This has been around since 386BSD, at least. Likely further.
7085 if test -x /sbin/sysctl; then
7086 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7087 elif test -x /usr/sbin/sysctl; then
7088 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7089 else
7090 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7091 fi
7092 # And add a safety zone
7093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7095 ;;
7096
7097 interix*)
7098 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7099 lt_cv_sys_max_cmd_len=196608
7100 ;;
7101
7102 osf*)
7103 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7104 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7105 # nice to cause kernel panics so lets avoid the loop below.
7106 # First set a reasonable default.
7107 lt_cv_sys_max_cmd_len=16384
7108 #
7109 if test -x /sbin/sysconfig; then
7110 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7111 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7112 esac
7113 fi
7114 ;;
7115 sco3.2v5*)
7116 lt_cv_sys_max_cmd_len=102400
7117 ;;
7118 sysv5* | sco5v6* | sysv4.2uw2*)
7119 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7120 if test -n "$kargmax"; then
7121 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7122 else
7123 lt_cv_sys_max_cmd_len=32768
7124 fi
7125 ;;
7126 *)
7127 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7128 if test -n "$lt_cv_sys_max_cmd_len"; then
7129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7131 else
7132 # Make teststring a little bigger before we do anything with it.
7133 # a 1K string should be a reasonable start.
7134 for i in 1 2 3 4 5 6 7 8 ; do
7135 teststring=$teststring$teststring
7136 done
7137 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7138 # If test is not a shell built-in, we'll probably end up computing a
7139 # maximum length that is only half of the actual maximum length, but
7140 # we can't tell.
7141 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7142 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7143 test $i != 17 # 1/2 MB should be enough
7144 do
7145 i=`expr $i + 1`
7146 teststring=$teststring$teststring
7147 done
7148 # Only check the string length outside the loop.
7149 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7150 teststring=
7151 # Add a significant safety factor because C++ compilers can tack on
7152 # massive amounts of additional arguments before passing them to the
7153 # linker. It appears as though 1/2 is a usable value.
7154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7155 fi
7156 ;;
7157 esac
7158
7159 fi
7160
7161 if test -n $lt_cv_sys_max_cmd_len ; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7163 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7166 $as_echo "none" >&6; }
7167 fi
7168 max_cmd_len=$lt_cv_sys_max_cmd_len
7169
7170
7171
7172
7173
7174
7175 : ${CP="cp -f"}
7176 : ${MV="mv -f"}
7177 : ${RM="rm -f"}
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7180 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7181 # Try some XSI features
7182 xsi_shell=no
7183 ( _lt_dummy="a/b/c"
7184 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7185 = c,a/b,, \
7186 && eval 'test $(( 1 + 1 )) -eq 2 \
7187 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7188 && xsi_shell=yes
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7190 $as_echo "$xsi_shell" >&6; }
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7194 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7195 lt_shell_append=no
7196 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7197 >/dev/null 2>&1 \
7198 && lt_shell_append=yes
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7200 $as_echo "$lt_shell_append" >&6; }
7201
7202
7203 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7204 lt_unset=unset
7205 else
7206 lt_unset=false
7207 fi
7208
7209
7210
7211
7212
7213 # test EBCDIC or ASCII
7214 case `echo X|tr X '\101'` in
7215 A) # ASCII based system
7216 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7217 lt_SP2NL='tr \040 \012'
7218 lt_NL2SP='tr \015\012 \040\040'
7219 ;;
7220 *) # EBCDIC based system
7221 lt_SP2NL='tr \100 \n'
7222 lt_NL2SP='tr \r\n \100\100'
7223 ;;
7224 esac
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7235 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7236 if ${lt_cv_ld_reload_flag+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 lt_cv_ld_reload_flag='-r'
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7242 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7243 reload_flag=$lt_cv_ld_reload_flag
7244 case $reload_flag in
7245 "" | " "*) ;;
7246 *) reload_flag=" $reload_flag" ;;
7247 esac
7248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7249 case $host_os in
7250 darwin*)
7251 if test "$GCC" = yes; then
7252 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7253 else
7254 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7255 fi
7256 ;;
7257 esac
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267 if test -n "$ac_tool_prefix"; then
7268 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7269 set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$OBJDUMP"; then
7276 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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 OBJDUMP=$ac_cv_prog_OBJDUMP
7296 if test -n "$OBJDUMP"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7298 $as_echo "$OBJDUMP" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304
7305 fi
7306 if test -z "$ac_cv_prog_OBJDUMP"; then
7307 ac_ct_OBJDUMP=$OBJDUMP
7308 # Extract the first word of "objdump", so it can be a program name with args.
7309 set dummy objdump; ac_word=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 if test -n "$ac_ct_OBJDUMP"; then
7316 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329 done
7330 done
7331 IFS=$as_save_IFS
7332
7333 fi
7334 fi
7335 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7336 if test -n "$ac_ct_OBJDUMP"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7338 $as_echo "$ac_ct_OBJDUMP" >&6; }
7339 else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342 fi
7343
7344 if test "x$ac_ct_OBJDUMP" = x; then
7345 OBJDUMP="false"
7346 else
7347 case $cross_compiling:$ac_tool_warned in
7348 yes:)
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7351 ac_tool_warned=yes ;;
7352 esac
7353 OBJDUMP=$ac_ct_OBJDUMP
7354 fi
7355 else
7356 OBJDUMP="$ac_cv_prog_OBJDUMP"
7357 fi
7358
7359 test -z "$OBJDUMP" && OBJDUMP=objdump
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7370 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7371 if ${lt_cv_deplibs_check_method+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 lt_cv_file_magic_cmd='$MAGIC_CMD'
7375 lt_cv_file_magic_test_file=
7376 lt_cv_deplibs_check_method='unknown'
7377 # Need to set the preceding variable on all platforms that support
7378 # interlibrary dependencies.
7379 # 'none' -- dependencies not supported.
7380 # `unknown' -- same as none, but documents that we really don't know.
7381 # 'pass_all' -- all dependencies passed with no checks.
7382 # 'test_compile' -- check by making test program.
7383 # 'file_magic [[regex]]' -- check by looking for files in library path
7384 # which responds to the $file_magic_cmd with a given extended regex.
7385 # If you have `file' or equivalent on your system and you're not sure
7386 # whether `pass_all' will *always* work, you probably want this one.
7387
7388 case $host_os in
7389 aix[4-9]*)
7390 lt_cv_deplibs_check_method=pass_all
7391 ;;
7392
7393 beos*)
7394 lt_cv_deplibs_check_method=pass_all
7395 ;;
7396
7397 bsdi[45]*)
7398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7399 lt_cv_file_magic_cmd='/usr/bin/file -L'
7400 lt_cv_file_magic_test_file=/shlib/libc.so
7401 ;;
7402
7403 cygwin*)
7404 # func_win32_libid is a shell function defined in ltmain.sh
7405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7406 lt_cv_file_magic_cmd='func_win32_libid'
7407 ;;
7408
7409 mingw* | pw32*)
7410 # Base MSYS/MinGW do not provide the 'file' command needed by
7411 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7412 # unless we find 'file', for example because we are cross-compiling.
7413 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7414 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7416 lt_cv_file_magic_cmd='func_win32_libid'
7417 else
7418 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7419 lt_cv_file_magic_cmd='$OBJDUMP -f'
7420 fi
7421 ;;
7422
7423 cegcc*)
7424 # use the weaker test based on 'objdump'. See mingw*.
7425 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7426 lt_cv_file_magic_cmd='$OBJDUMP -f'
7427 ;;
7428
7429 darwin* | rhapsody*)
7430 lt_cv_deplibs_check_method=pass_all
7431 ;;
7432
7433 freebsd* | dragonfly*)
7434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7435 case $host_cpu in
7436 i*86 )
7437 # Not sure whether the presence of OpenBSD here was a mistake.
7438 # Let's accept both of them until this is cleared up.
7439 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7440 lt_cv_file_magic_cmd=/usr/bin/file
7441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7442 ;;
7443 esac
7444 else
7445 lt_cv_deplibs_check_method=pass_all
7446 fi
7447 ;;
7448
7449 gnu*)
7450 lt_cv_deplibs_check_method=pass_all
7451 ;;
7452
7453 haiku*)
7454 lt_cv_deplibs_check_method=pass_all
7455 ;;
7456
7457 hpux10.20* | hpux11*)
7458 lt_cv_file_magic_cmd=/usr/bin/file
7459 case $host_cpu in
7460 ia64*)
7461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7462 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7463 ;;
7464 hppa*64*)
7465 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]'
7466 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7467 ;;
7468 *)
7469 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7470 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7471 ;;
7472 esac
7473 ;;
7474
7475 interix[3-9]*)
7476 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7478 ;;
7479
7480 irix5* | irix6* | nonstopux*)
7481 case $LD in
7482 *-32|*"-32 ") libmagic=32-bit;;
7483 *-n32|*"-n32 ") libmagic=N32;;
7484 *-64|*"-64 ") libmagic=64-bit;;
7485 *) libmagic=never-match;;
7486 esac
7487 lt_cv_deplibs_check_method=pass_all
7488 ;;
7489
7490 # This must be Linux ELF.
7491 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7492 lt_cv_deplibs_check_method=pass_all
7493 ;;
7494
7495 netbsd*)
7496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7498 else
7499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7500 fi
7501 ;;
7502
7503 newos6*)
7504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7505 lt_cv_file_magic_cmd=/usr/bin/file
7506 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7507 ;;
7508
7509 *nto* | *qnx*)
7510 lt_cv_deplibs_check_method=pass_all
7511 ;;
7512
7513 openbsd*)
7514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7516 else
7517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7518 fi
7519 ;;
7520
7521 osf3* | osf4* | osf5*)
7522 lt_cv_deplibs_check_method=pass_all
7523 ;;
7524
7525 rdos*)
7526 lt_cv_deplibs_check_method=pass_all
7527 ;;
7528
7529 solaris*)
7530 lt_cv_deplibs_check_method=pass_all
7531 ;;
7532
7533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7534 lt_cv_deplibs_check_method=pass_all
7535 ;;
7536
7537 sysv4 | sysv4.3*)
7538 case $host_vendor in
7539 motorola)
7540 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]'
7541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7542 ;;
7543 ncr)
7544 lt_cv_deplibs_check_method=pass_all
7545 ;;
7546 sequent)
7547 lt_cv_file_magic_cmd='/bin/file'
7548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7549 ;;
7550 sni)
7551 lt_cv_file_magic_cmd='/bin/file'
7552 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7553 lt_cv_file_magic_test_file=/lib/libc.so
7554 ;;
7555 siemens)
7556 lt_cv_deplibs_check_method=pass_all
7557 ;;
7558 pc)
7559 lt_cv_deplibs_check_method=pass_all
7560 ;;
7561 esac
7562 ;;
7563
7564 tpf*)
7565 lt_cv_deplibs_check_method=pass_all
7566 ;;
7567 vxworks*)
7568 # Assume VxWorks cross toolchains are built on Linux, possibly
7569 # as canadian for Windows hosts.
7570 lt_cv_deplibs_check_method=pass_all
7571 ;;
7572 esac
7573
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7576 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7577 file_magic_cmd=$lt_cv_file_magic_cmd
7578 deplibs_check_method=$lt_cv_deplibs_check_method
7579 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592 plugin_option=
7593 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7594 for plugin in $plugin_names; do
7595 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7596 if test x$plugin_so = x$plugin; then
7597 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7598 fi
7599 if test x$plugin_so != x$plugin; then
7600 plugin_option="--plugin $plugin_so"
7601 break
7602 fi
7603 done
7604
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}ar; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_AR+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$AR"; then
7614 ac_cv_prog_AR="$AR" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_AR="${ac_tool_prefix}ar"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 AR=$ac_cv_prog_AR
7634 if test -n "$AR"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7636 $as_echo "$AR" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642
7643 fi
7644 if test -z "$ac_cv_prog_AR"; then
7645 ac_ct_AR=$AR
7646 # Extract the first word of "ar", so it can be a program name with args.
7647 set dummy ar; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$ac_ct_AR"; then
7654 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_ac_ct_AR="ar"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667 done
7668 done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7674 if test -n "$ac_ct_AR"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7676 $as_echo "$ac_ct_AR" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682 if test "x$ac_ct_AR" = x; then
7683 AR="false"
7684 else
7685 case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691 AR=$ac_ct_AR
7692 fi
7693 else
7694 AR="$ac_cv_prog_AR"
7695 fi
7696
7697 test -z "$AR" && AR=ar
7698 if test -n "$plugin_option"; then
7699 if $AR --help 2>&1 | grep -q "\--plugin"; then
7700 touch conftest.c
7701 $AR $plugin_option rc conftest.a conftest.c
7702 if test "$?" != 0; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7704 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7705 else
7706 AR="$AR $plugin_option"
7707 fi
7708 rm -f conftest.*
7709 fi
7710 fi
7711 test -z "$AR_FLAGS" && AR_FLAGS=cru
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723 if test -n "$ac_tool_prefix"; then
7724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7725 set dummy ${ac_tool_prefix}strip; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if ${ac_cv_prog_STRIP+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$STRIP"; then
7732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 STRIP=$ac_cv_prog_STRIP
7752 if test -n "$STRIP"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7754 $as_echo "$STRIP" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760
7761 fi
7762 if test -z "$ac_cv_prog_STRIP"; then
7763 ac_ct_STRIP=$STRIP
7764 # Extract the first word of "strip", so it can be a program name with args.
7765 set dummy strip; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$ac_ct_STRIP"; then
7772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_ac_ct_STRIP="strip"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7792 if test -n "$ac_ct_STRIP"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7794 $as_echo "$ac_ct_STRIP" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800 if test "x$ac_ct_STRIP" = x; then
7801 STRIP=":"
7802 else
7803 case $cross_compiling:$ac_tool_warned in
7804 yes:)
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7807 ac_tool_warned=yes ;;
7808 esac
7809 STRIP=$ac_ct_STRIP
7810 fi
7811 else
7812 STRIP="$ac_cv_prog_STRIP"
7813 fi
7814
7815 test -z "$STRIP" && STRIP=:
7816
7817
7818
7819
7820
7821
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_RANLIB+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$RANLIB"; then
7831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 RANLIB=$ac_cv_prog_RANLIB
7851 if test -n "$RANLIB"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7853 $as_echo "$RANLIB" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859
7860 fi
7861 if test -z "$ac_cv_prog_RANLIB"; then
7862 ac_ct_RANLIB=$RANLIB
7863 # Extract the first word of "ranlib", so it can be a program name with args.
7864 set dummy ranlib; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 if test -n "$ac_ct_RANLIB"; then
7871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_ac_ct_RANLIB="ranlib"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7891 if test -n "$ac_ct_RANLIB"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7893 $as_echo "$ac_ct_RANLIB" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898
7899 if test "x$ac_ct_RANLIB" = x; then
7900 RANLIB=":"
7901 else
7902 case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7907 esac
7908 RANLIB=$ac_ct_RANLIB
7909 fi
7910 else
7911 RANLIB="$ac_cv_prog_RANLIB"
7912 fi
7913
7914 test -z "$RANLIB" && RANLIB=:
7915 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7916 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7917 RANLIB="$RANLIB $plugin_option"
7918 fi
7919 fi
7920
7921
7922
7923
7924
7925
7926 # Determine commands to create old-style static archives.
7927 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7928 old_postinstall_cmds='chmod 644 $oldlib'
7929 old_postuninstall_cmds=
7930
7931 if test -n "$RANLIB"; then
7932 case $host_os in
7933 openbsd*)
7934 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7935 ;;
7936 *)
7937 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7938 ;;
7939 esac
7940 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7941 fi
7942
7943 case $host_os in
7944 darwin*)
7945 lock_old_archive_extraction=yes ;;
7946 *)
7947 lock_old_archive_extraction=no ;;
7948 esac
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988 # If no C compiler was specified, use CC.
7989 LTCC=${LTCC-"$CC"}
7990
7991 # If no C compiler flags were specified, use CFLAGS.
7992 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7993
7994 # Allow CC to be a program name with arguments.
7995 compiler=$CC
7996
7997
7998 # Check for command to grab the raw symbol name followed by C symbol from nm.
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8000 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8001 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004
8005 # These are sane defaults that work on at least a few old systems.
8006 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8007
8008 # Character class describing NM global symbol codes.
8009 symcode='[BCDEGRST]'
8010
8011 # Regexp to match symbols that can be accessed directly from C.
8012 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8013
8014 # Define system-specific variables.
8015 case $host_os in
8016 aix*)
8017 symcode='[BCDT]'
8018 ;;
8019 cygwin* | mingw* | pw32* | cegcc*)
8020 symcode='[ABCDGISTW]'
8021 ;;
8022 hpux*)
8023 if test "$host_cpu" = ia64; then
8024 symcode='[ABCDEGRST]'
8025 fi
8026 ;;
8027 irix* | nonstopux*)
8028 symcode='[BCDEGRST]'
8029 ;;
8030 osf*)
8031 symcode='[BCDEGQRST]'
8032 ;;
8033 solaris*)
8034 symcode='[BCDRT]'
8035 ;;
8036 sco3.2v5*)
8037 symcode='[DT]'
8038 ;;
8039 sysv4.2uw2*)
8040 symcode='[DT]'
8041 ;;
8042 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8043 symcode='[ABDT]'
8044 ;;
8045 sysv4)
8046 symcode='[DFNSTU]'
8047 ;;
8048 esac
8049
8050 # If we're using GNU nm, then use its standard symbol codes.
8051 case `$NM -V 2>&1` in
8052 *GNU* | *'with BFD'*)
8053 symcode='[ABCDGIRSTW]' ;;
8054 esac
8055
8056 # Transform an extracted symbol line into a proper C declaration.
8057 # Some systems (esp. on ia64) link data and code symbols differently,
8058 # so use this general approach.
8059 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8060
8061 # Transform an extracted symbol line into symbol name and symbol address
8062 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8063 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'"
8064
8065 # Handle CRLF in mingw tool chain
8066 opt_cr=
8067 case $build_os in
8068 mingw*)
8069 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8070 ;;
8071 esac
8072
8073 # Try without a prefix underscore, then with it.
8074 for ac_symprfx in "" "_"; do
8075
8076 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8077 symxfrm="\\1 $ac_symprfx\\2 \\2"
8078
8079 # Write the raw and C identifiers.
8080 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8081 # Fake it for dumpbin and say T for any non-static function
8082 # and D for any global variable.
8083 # Also find C++ and __fastcall symbols from MSVC++,
8084 # which start with @ or ?.
8085 lt_cv_sys_global_symbol_pipe="$AWK '"\
8086 " {last_section=section; section=\$ 3};"\
8087 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8088 " \$ 0!~/External *\|/{next};"\
8089 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8090 " {if(hide[section]) next};"\
8091 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8092 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8093 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8094 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8095 " ' prfx=^$ac_symprfx"
8096 else
8097 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8098 fi
8099
8100 # Check to see that the pipe works correctly.
8101 pipe_works=no
8102
8103 rm -f conftest*
8104 cat > conftest.$ac_ext <<_LT_EOF
8105 #ifdef __cplusplus
8106 extern "C" {
8107 #endif
8108 char nm_test_var;
8109 void nm_test_func(void);
8110 void nm_test_func(void){}
8111 #ifdef __cplusplus
8112 }
8113 #endif
8114 int main(){nm_test_var='a';nm_test_func();return(0);}
8115 _LT_EOF
8116
8117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8118 (eval $ac_compile) 2>&5
8119 ac_status=$?
8120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8121 test $ac_status = 0; }; then
8122 # Now try to grab the symbols.
8123 nlist=conftest.nm
8124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8125 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8126 ac_status=$?
8127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8128 test $ac_status = 0; } && test -s "$nlist"; then
8129 # Try sorting and uniquifying the output.
8130 if sort "$nlist" | uniq > "$nlist"T; then
8131 mv -f "$nlist"T "$nlist"
8132 else
8133 rm -f "$nlist"T
8134 fi
8135
8136 # Make sure that we snagged all the symbols we need.
8137 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8138 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8139 cat <<_LT_EOF > conftest.$ac_ext
8140 #ifdef __cplusplus
8141 extern "C" {
8142 #endif
8143
8144 _LT_EOF
8145 # Now generate the symbol file.
8146 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8147
8148 cat <<_LT_EOF >> conftest.$ac_ext
8149
8150 /* The mapping between symbol names and symbols. */
8151 const struct {
8152 const char *name;
8153 void *address;
8154 }
8155 lt__PROGRAM__LTX_preloaded_symbols[] =
8156 {
8157 { "@PROGRAM@", (void *) 0 },
8158 _LT_EOF
8159 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8160 cat <<\_LT_EOF >> conftest.$ac_ext
8161 {0, (void *) 0}
8162 };
8163
8164 /* This works around a problem in FreeBSD linker */
8165 #ifdef FREEBSD_WORKAROUND
8166 static const void *lt_preloaded_setup() {
8167 return lt__PROGRAM__LTX_preloaded_symbols;
8168 }
8169 #endif
8170
8171 #ifdef __cplusplus
8172 }
8173 #endif
8174 _LT_EOF
8175 # Now try linking the two files.
8176 mv conftest.$ac_objext conftstm.$ac_objext
8177 lt_save_LIBS="$LIBS"
8178 lt_save_CFLAGS="$CFLAGS"
8179 LIBS="conftstm.$ac_objext"
8180 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8182 (eval $ac_link) 2>&5
8183 ac_status=$?
8184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8185 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8186 pipe_works=yes
8187 fi
8188 LIBS="$lt_save_LIBS"
8189 CFLAGS="$lt_save_CFLAGS"
8190 else
8191 echo "cannot find nm_test_func in $nlist" >&5
8192 fi
8193 else
8194 echo "cannot find nm_test_var in $nlist" >&5
8195 fi
8196 else
8197 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8198 fi
8199 else
8200 echo "$progname: failed program was:" >&5
8201 cat conftest.$ac_ext >&5
8202 fi
8203 rm -rf conftest* conftst*
8204
8205 # Do not use the global_symbol_pipe unless it works.
8206 if test "$pipe_works" = yes; then
8207 break
8208 else
8209 lt_cv_sys_global_symbol_pipe=
8210 fi
8211 done
8212
8213 fi
8214
8215 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8216 lt_cv_sys_global_symbol_to_cdecl=
8217 fi
8218 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8220 $as_echo "failed" >&6; }
8221 else
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8223 $as_echo "ok" >&6; }
8224 fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247 # Check whether --enable-libtool-lock was given.
8248 if test "${enable_libtool_lock+set}" = set; then :
8249 enableval=$enable_libtool_lock;
8250 fi
8251
8252 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8253
8254 # Some flags need to be propagated to the compiler or linker for good
8255 # libtool support.
8256 case $host in
8257 ia64-*-hpux*)
8258 # Find out which ABI we are using.
8259 echo 'int i;' > conftest.$ac_ext
8260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8261 (eval $ac_compile) 2>&5
8262 ac_status=$?
8263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8264 test $ac_status = 0; }; then
8265 case `/usr/bin/file conftest.$ac_objext` in
8266 *ELF-32*)
8267 HPUX_IA64_MODE="32"
8268 ;;
8269 *ELF-64*)
8270 HPUX_IA64_MODE="64"
8271 ;;
8272 esac
8273 fi
8274 rm -rf conftest*
8275 ;;
8276 *-*-irix6*)
8277 # Find out which ABI we are using.
8278 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8280 (eval $ac_compile) 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; }; then
8284 if test "$lt_cv_prog_gnu_ld" = yes; then
8285 case `/usr/bin/file conftest.$ac_objext` in
8286 *32-bit*)
8287 LD="${LD-ld} -melf32bsmip"
8288 ;;
8289 *N32*)
8290 LD="${LD-ld} -melf32bmipn32"
8291 ;;
8292 *64-bit*)
8293 LD="${LD-ld} -melf64bmip"
8294 ;;
8295 esac
8296 else
8297 case `/usr/bin/file conftest.$ac_objext` in
8298 *32-bit*)
8299 LD="${LD-ld} -32"
8300 ;;
8301 *N32*)
8302 LD="${LD-ld} -n32"
8303 ;;
8304 *64-bit*)
8305 LD="${LD-ld} -64"
8306 ;;
8307 esac
8308 fi
8309 fi
8310 rm -rf conftest*
8311 ;;
8312
8313 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8314 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8315 # Find out which ABI we are using.
8316 echo 'int i;' > conftest.$ac_ext
8317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8318 (eval $ac_compile) 2>&5
8319 ac_status=$?
8320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8321 test $ac_status = 0; }; then
8322 case `/usr/bin/file conftest.o` in
8323 *32-bit*)
8324 case $host in
8325 x86_64-*kfreebsd*-gnu)
8326 LD="${LD-ld} -m elf_i386_fbsd"
8327 ;;
8328 x86_64-*linux*)
8329 case `/usr/bin/file conftest.o` in
8330 *x86-64*)
8331 LD="${LD-ld} -m elf32_x86_64"
8332 ;;
8333 *)
8334 LD="${LD-ld} -m elf_i386"
8335 ;;
8336 esac
8337 ;;
8338 powerpc64le-*linux*)
8339 LD="${LD-ld} -m elf32lppclinux"
8340 ;;
8341 powerpc64-*linux*)
8342 LD="${LD-ld} -m elf32ppclinux"
8343 ;;
8344 s390x-*linux*)
8345 LD="${LD-ld} -m elf_s390"
8346 ;;
8347 sparc64-*linux*)
8348 LD="${LD-ld} -m elf32_sparc"
8349 ;;
8350 esac
8351 ;;
8352 *64-bit*)
8353 case $host in
8354 x86_64-*kfreebsd*-gnu)
8355 LD="${LD-ld} -m elf_x86_64_fbsd"
8356 ;;
8357 x86_64-*linux*)
8358 LD="${LD-ld} -m elf_x86_64"
8359 ;;
8360 powerpcle-*linux*)
8361 LD="${LD-ld} -m elf64lppc"
8362 ;;
8363 powerpc-*linux*)
8364 LD="${LD-ld} -m elf64ppc"
8365 ;;
8366 s390*-*linux*|s390*-*tpf*)
8367 LD="${LD-ld} -m elf64_s390"
8368 ;;
8369 sparc*-*linux*)
8370 LD="${LD-ld} -m elf64_sparc"
8371 ;;
8372 esac
8373 ;;
8374 esac
8375 fi
8376 rm -rf conftest*
8377 ;;
8378
8379 *-*-sco3.2v5*)
8380 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8381 SAVE_CFLAGS="$CFLAGS"
8382 CFLAGS="$CFLAGS -belf"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8384 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8385 if ${lt_cv_cc_needs_belf+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 ac_ext=c
8389 ac_cpp='$CPP $CPPFLAGS'
8390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8393
8394 if test x$gcc_no_link = xyes; then
8395 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8396 fi
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399
8400 int
8401 main ()
8402 {
8403
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 lt_cv_cc_needs_belf=yes
8410 else
8411 lt_cv_cc_needs_belf=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 ac_ext=c
8416 ac_cpp='$CPP $CPPFLAGS'
8417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8420
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8423 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8424 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8425 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8426 CFLAGS="$SAVE_CFLAGS"
8427 fi
8428 ;;
8429 sparc*-*solaris*)
8430 # Find out which ABI we are using.
8431 echo 'int i;' > conftest.$ac_ext
8432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8433 (eval $ac_compile) 2>&5
8434 ac_status=$?
8435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8436 test $ac_status = 0; }; then
8437 case `/usr/bin/file conftest.o` in
8438 *64-bit*)
8439 case $lt_cv_prog_gnu_ld in
8440 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8441 *)
8442 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8443 LD="${LD-ld} -64"
8444 fi
8445 ;;
8446 esac
8447 ;;
8448 esac
8449 fi
8450 rm -rf conftest*
8451 ;;
8452 esac
8453
8454 need_locks="$enable_libtool_lock"
8455
8456
8457 case $host_os in
8458 rhapsody* | darwin*)
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 if test -n "$DSYMUTIL"; then
8468 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481 done
8482 done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8488 if test -n "$DSYMUTIL"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8490 $as_echo "$DSYMUTIL" >&6; }
8491 else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496
8497 fi
8498 if test -z "$ac_cv_prog_DSYMUTIL"; then
8499 ac_ct_DSYMUTIL=$DSYMUTIL
8500 # Extract the first word of "dsymutil", so it can be a program name with args.
8501 set dummy dsymutil; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 if test -n "$ac_ct_DSYMUTIL"; then
8508 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
8521 done
8522 done
8523 IFS=$as_save_IFS
8524
8525 fi
8526 fi
8527 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8528 if test -n "$ac_ct_DSYMUTIL"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8530 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8531 else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536 if test "x$ac_ct_DSYMUTIL" = x; then
8537 DSYMUTIL=":"
8538 else
8539 case $cross_compiling:$ac_tool_warned in
8540 yes:)
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543 ac_tool_warned=yes ;;
8544 esac
8545 DSYMUTIL=$ac_ct_DSYMUTIL
8546 fi
8547 else
8548 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8549 fi
8550
8551 if test -n "$ac_tool_prefix"; then
8552 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8553 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_prog_NMEDIT+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 if test -n "$NMEDIT"; then
8560 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 NMEDIT=$ac_cv_prog_NMEDIT
8580 if test -n "$NMEDIT"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8582 $as_echo "$NMEDIT" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589 fi
8590 if test -z "$ac_cv_prog_NMEDIT"; then
8591 ac_ct_NMEDIT=$NMEDIT
8592 # Extract the first word of "nmedit", so it can be a program name with args.
8593 set dummy nmedit; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$ac_ct_NMEDIT"; then
8600 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613 done
8614 done
8615 IFS=$as_save_IFS
8616
8617 fi
8618 fi
8619 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8620 if test -n "$ac_ct_NMEDIT"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8622 $as_echo "$ac_ct_NMEDIT" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8626 fi
8627
8628 if test "x$ac_ct_NMEDIT" = x; then
8629 NMEDIT=":"
8630 else
8631 case $cross_compiling:$ac_tool_warned in
8632 yes:)
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635 ac_tool_warned=yes ;;
8636 esac
8637 NMEDIT=$ac_ct_NMEDIT
8638 fi
8639 else
8640 NMEDIT="$ac_cv_prog_NMEDIT"
8641 fi
8642
8643 if test -n "$ac_tool_prefix"; then
8644 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8645 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_LIPO+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test -n "$LIPO"; then
8652 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669 fi
8670 fi
8671 LIPO=$ac_cv_prog_LIPO
8672 if test -n "$LIPO"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8674 $as_echo "$LIPO" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680
8681 fi
8682 if test -z "$ac_cv_prog_LIPO"; then
8683 ac_ct_LIPO=$LIPO
8684 # Extract the first word of "lipo", so it can be a program name with args.
8685 set dummy lipo; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 if test -n "$ac_ct_LIPO"; then
8692 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701 ac_cv_prog_ac_ct_LIPO="lipo"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8704 fi
8705 done
8706 done
8707 IFS=$as_save_IFS
8708
8709 fi
8710 fi
8711 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8712 if test -n "$ac_ct_LIPO"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8714 $as_echo "$ac_ct_LIPO" >&6; }
8715 else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720 if test "x$ac_ct_LIPO" = x; then
8721 LIPO=":"
8722 else
8723 case $cross_compiling:$ac_tool_warned in
8724 yes:)
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8727 ac_tool_warned=yes ;;
8728 esac
8729 LIPO=$ac_ct_LIPO
8730 fi
8731 else
8732 LIPO="$ac_cv_prog_LIPO"
8733 fi
8734
8735 if test -n "$ac_tool_prefix"; then
8736 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8737 set dummy ${ac_tool_prefix}otool; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_prog_OTOOL+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if test -n "$OTOOL"; then
8744 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8748 do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 break 2
8756 fi
8757 done
8758 done
8759 IFS=$as_save_IFS
8760
8761 fi
8762 fi
8763 OTOOL=$ac_cv_prog_OTOOL
8764 if test -n "$OTOOL"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8766 $as_echo "$OTOOL" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8770 fi
8771
8772
8773 fi
8774 if test -z "$ac_cv_prog_OTOOL"; then
8775 ac_ct_OTOOL=$OTOOL
8776 # Extract the first word of "otool", so it can be a program name with args.
8777 set dummy otool; ac_word=$2
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 $as_echo_n "checking for $ac_word... " >&6; }
8780 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 if test -n "$ac_ct_OTOOL"; then
8784 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8785 else
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8788 do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_ac_ct_OTOOL="otool"
8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797 done
8798 done
8799 IFS=$as_save_IFS
8800
8801 fi
8802 fi
8803 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8804 if test -n "$ac_ct_OTOOL"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8806 $as_echo "$ac_ct_OTOOL" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 fi
8811
8812 if test "x$ac_ct_OTOOL" = x; then
8813 OTOOL=":"
8814 else
8815 case $cross_compiling:$ac_tool_warned in
8816 yes:)
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8819 ac_tool_warned=yes ;;
8820 esac
8821 OTOOL=$ac_ct_OTOOL
8822 fi
8823 else
8824 OTOOL="$ac_cv_prog_OTOOL"
8825 fi
8826
8827 if test -n "$ac_tool_prefix"; then
8828 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8829 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_OTOOL64+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 if test -n "$OTOOL64"; then
8836 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8837 else
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8840 do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8848 fi
8849 done
8850 done
8851 IFS=$as_save_IFS
8852
8853 fi
8854 fi
8855 OTOOL64=$ac_cv_prog_OTOOL64
8856 if test -n "$OTOOL64"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8858 $as_echo "$OTOOL64" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 fi
8863
8864
8865 fi
8866 if test -z "$ac_cv_prog_OTOOL64"; then
8867 ac_ct_OTOOL64=$OTOOL64
8868 # Extract the first word of "otool64", so it can be a program name with args.
8869 set dummy otool64; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 if test -n "$ac_ct_OTOOL64"; then
8876 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8877 else
8878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879 for as_dir in $PATH
8880 do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8885 ac_cv_prog_ac_ct_OTOOL64="otool64"
8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 break 2
8888 fi
8889 done
8890 done
8891 IFS=$as_save_IFS
8892
8893 fi
8894 fi
8895 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8896 if test -n "$ac_ct_OTOOL64"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8898 $as_echo "$ac_ct_OTOOL64" >&6; }
8899 else
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8902 fi
8903
8904 if test "x$ac_ct_OTOOL64" = x; then
8905 OTOOL64=":"
8906 else
8907 case $cross_compiling:$ac_tool_warned in
8908 yes:)
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8911 ac_tool_warned=yes ;;
8912 esac
8913 OTOOL64=$ac_ct_OTOOL64
8914 fi
8915 else
8916 OTOOL64="$ac_cv_prog_OTOOL64"
8917 fi
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8946 $as_echo_n "checking for -single_module linker flag... " >&6; }
8947 if ${lt_cv_apple_cc_single_mod+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 lt_cv_apple_cc_single_mod=no
8951 if test -z "${LT_MULTI_MODULE}"; then
8952 # By default we will add the -single_module flag. You can override
8953 # by either setting the environment variable LT_MULTI_MODULE
8954 # non-empty at configure time, or by adding -multi_module to the
8955 # link flags.
8956 rm -rf libconftest.dylib*
8957 echo "int foo(void){return 1;}" > conftest.c
8958 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8959 -dynamiclib -Wl,-single_module conftest.c" >&5
8960 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8961 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8962 _lt_result=$?
8963 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8964 lt_cv_apple_cc_single_mod=yes
8965 else
8966 cat conftest.err >&5
8967 fi
8968 rm -rf libconftest.dylib*
8969 rm -f conftest.*
8970 fi
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8973 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8975 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8976 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 lt_cv_ld_exported_symbols_list=no
8980 save_LDFLAGS=$LDFLAGS
8981 echo "_main" > conftest.sym
8982 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8983 if test x$gcc_no_link = xyes; then
8984 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8985 fi
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988
8989 int
8990 main ()
8991 {
8992
8993 ;
8994 return 0;
8995 }
8996 _ACEOF
8997 if ac_fn_c_try_link "$LINENO"; then :
8998 lt_cv_ld_exported_symbols_list=yes
8999 else
9000 lt_cv_ld_exported_symbols_list=no
9001 fi
9002 rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 LDFLAGS="$save_LDFLAGS"
9005
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9008 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9010 $as_echo_n "checking for -force_load linker flag... " >&6; }
9011 if ${lt_cv_ld_force_load+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 lt_cv_ld_force_load=no
9015 cat > conftest.c << _LT_EOF
9016 int forced_loaded() { return 2;}
9017 _LT_EOF
9018 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9019 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9020 echo "$AR cru libconftest.a conftest.o" >&5
9021 $AR cru libconftest.a conftest.o 2>&5
9022 cat > conftest.c << _LT_EOF
9023 int main() { return 0;}
9024 _LT_EOF
9025 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9026 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9027 _lt_result=$?
9028 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9029 lt_cv_ld_force_load=yes
9030 else
9031 cat conftest.err >&5
9032 fi
9033 rm -f conftest.err libconftest.a conftest conftest.c
9034 rm -rf conftest.dSYM
9035
9036 fi
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9038 $as_echo "$lt_cv_ld_force_load" >&6; }
9039 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9040 # build without first building modern cctools / linker.
9041 case $host_cpu-$host_os in
9042 *-rhapsody* | *-darwin1.[012])
9043 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9044 *-darwin1.*)
9045 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9046 *-darwin*)
9047 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9048 # deployment target is forced to an earlier version.
9049 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9050 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
9051 ;;
9052 10.[012][,.]*)
9053 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9054 ;;
9055 *)
9056 ;;
9057 esac
9058 ;;
9059 esac
9060 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9061 _lt_dar_single_mod='$single_module'
9062 fi
9063 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9064 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9065 else
9066 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9067 fi
9068 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9069 _lt_dsymutil='~$DSYMUTIL $lib || :'
9070 else
9071 _lt_dsymutil=
9072 fi
9073 ;;
9074 esac
9075
9076 for ac_header in dlfcn.h
9077 do :
9078 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9079 "
9080 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9081 cat >>confdefs.h <<_ACEOF
9082 #define HAVE_DLFCN_H 1
9083 _ACEOF
9084
9085 fi
9086
9087 done
9088
9089
9090
9091
9092
9093
9094 # Set options
9095
9096
9097
9098 enable_dlopen=no
9099
9100
9101 enable_win32_dll=no
9102
9103
9104 # Check whether --enable-shared was given.
9105 if test "${enable_shared+set}" = set; then :
9106 enableval=$enable_shared; p=${PACKAGE-default}
9107 case $enableval in
9108 yes) enable_shared=yes ;;
9109 no) enable_shared=no ;;
9110 *)
9111 enable_shared=no
9112 # Look at the argument we got. We use all the common list separators.
9113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9114 for pkg in $enableval; do
9115 IFS="$lt_save_ifs"
9116 if test "X$pkg" = "X$p"; then
9117 enable_shared=yes
9118 fi
9119 done
9120 IFS="$lt_save_ifs"
9121 ;;
9122 esac
9123 else
9124 enable_shared=yes
9125 fi
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135 # Check whether --enable-static was given.
9136 if test "${enable_static+set}" = set; then :
9137 enableval=$enable_static; p=${PACKAGE-default}
9138 case $enableval in
9139 yes) enable_static=yes ;;
9140 no) enable_static=no ;;
9141 *)
9142 enable_static=no
9143 # Look at the argument we got. We use all the common list separators.
9144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9145 for pkg in $enableval; do
9146 IFS="$lt_save_ifs"
9147 if test "X$pkg" = "X$p"; then
9148 enable_static=yes
9149 fi
9150 done
9151 IFS="$lt_save_ifs"
9152 ;;
9153 esac
9154 else
9155 enable_static=yes
9156 fi
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167 # Check whether --with-pic was given.
9168 if test "${with_pic+set}" = set; then :
9169 withval=$with_pic; pic_mode="$withval"
9170 else
9171 pic_mode=default
9172 fi
9173
9174
9175 test -z "$pic_mode" && pic_mode=default
9176
9177
9178
9179
9180
9181
9182
9183 # Check whether --enable-fast-install was given.
9184 if test "${enable_fast_install+set}" = set; then :
9185 enableval=$enable_fast_install; p=${PACKAGE-default}
9186 case $enableval in
9187 yes) enable_fast_install=yes ;;
9188 no) enable_fast_install=no ;;
9189 *)
9190 enable_fast_install=no
9191 # Look at the argument we got. We use all the common list separators.
9192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9193 for pkg in $enableval; do
9194 IFS="$lt_save_ifs"
9195 if test "X$pkg" = "X$p"; then
9196 enable_fast_install=yes
9197 fi
9198 done
9199 IFS="$lt_save_ifs"
9200 ;;
9201 esac
9202 else
9203 enable_fast_install=yes
9204 fi
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216 # This can be used to rebuild libtool when needed
9217 LIBTOOL_DEPS="$ltmain"
9218
9219 # Always use our own libtool.
9220 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247 test -z "$LN_S" && LN_S="ln -s"
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262 if test -n "${ZSH_VERSION+set}" ; then
9263 setopt NO_GLOB_SUBST
9264 fi
9265
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9267 $as_echo_n "checking for objdir... " >&6; }
9268 if ${lt_cv_objdir+:} false; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 rm -f .libs 2>/dev/null
9272 mkdir .libs 2>/dev/null
9273 if test -d .libs; then
9274 lt_cv_objdir=.libs
9275 else
9276 # MS-DOS does not allow filenames that begin with a dot.
9277 lt_cv_objdir=_libs
9278 fi
9279 rmdir .libs 2>/dev/null
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9282 $as_echo "$lt_cv_objdir" >&6; }
9283 objdir=$lt_cv_objdir
9284
9285
9286
9287
9288
9289 cat >>confdefs.h <<_ACEOF
9290 #define LT_OBJDIR "$lt_cv_objdir/"
9291 _ACEOF
9292
9293
9294
9295
9296 case $host_os in
9297 aix3*)
9298 # AIX sometimes has problems with the GCC collect2 program. For some
9299 # reason, if we set the COLLECT_NAMES environment variable, the problems
9300 # vanish in a puff of smoke.
9301 if test "X${COLLECT_NAMES+set}" != Xset; then
9302 COLLECT_NAMES=
9303 export COLLECT_NAMES
9304 fi
9305 ;;
9306 esac
9307
9308 # Global variables:
9309 ofile=libtool
9310 can_build_shared=yes
9311
9312 # All known linkers require a `.a' archive for static linking (except MSVC,
9313 # which needs '.lib').
9314 libext=a
9315
9316 with_gnu_ld="$lt_cv_prog_gnu_ld"
9317
9318 old_CC="$CC"
9319 old_CFLAGS="$CFLAGS"
9320
9321 # Set sane defaults for various variables
9322 test -z "$CC" && CC=cc
9323 test -z "$LTCC" && LTCC=$CC
9324 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9325 test -z "$LD" && LD=ld
9326 test -z "$ac_objext" && ac_objext=o
9327
9328 for cc_temp in $compiler""; do
9329 case $cc_temp in
9330 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9331 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9332 \-*) ;;
9333 *) break;;
9334 esac
9335 done
9336 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9337
9338
9339 # Only perform the check for file, if the check method requires it
9340 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9341 case $deplibs_check_method in
9342 file_magic*)
9343 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9345 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9346 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9349 case $MAGIC_CMD in
9350 [\\/*] | ?:[\\/]*)
9351 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9352 ;;
9353 *)
9354 lt_save_MAGIC_CMD="$MAGIC_CMD"
9355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9357 for ac_dir in $ac_dummy; do
9358 IFS="$lt_save_ifs"
9359 test -z "$ac_dir" && ac_dir=.
9360 if test -f $ac_dir/${ac_tool_prefix}file; then
9361 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9362 if test -n "$file_magic_test_file"; then
9363 case $deplibs_check_method in
9364 "file_magic "*)
9365 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9368 $EGREP "$file_magic_regex" > /dev/null; then
9369 :
9370 else
9371 cat <<_LT_EOF 1>&2
9372
9373 *** Warning: the command libtool uses to detect shared libraries,
9374 *** $file_magic_cmd, produces output that libtool cannot recognize.
9375 *** The result is that libtool may fail to recognize shared libraries
9376 *** as such. This will affect the creation of libtool libraries that
9377 *** depend on shared libraries, but programs linked with such libtool
9378 *** libraries will work regardless of this problem. Nevertheless, you
9379 *** may want to report the problem to your system manager and/or to
9380 *** bug-libtool@gnu.org
9381
9382 _LT_EOF
9383 fi ;;
9384 esac
9385 fi
9386 break
9387 fi
9388 done
9389 IFS="$lt_save_ifs"
9390 MAGIC_CMD="$lt_save_MAGIC_CMD"
9391 ;;
9392 esac
9393 fi
9394
9395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9396 if test -n "$MAGIC_CMD"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9398 $as_echo "$MAGIC_CMD" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9402 fi
9403
9404
9405
9406
9407
9408 if test -z "$lt_cv_path_MAGIC_CMD"; then
9409 if test -n "$ac_tool_prefix"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9411 $as_echo_n "checking for file... " >&6; }
9412 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 case $MAGIC_CMD in
9416 [\\/*] | ?:[\\/]*)
9417 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9418 ;;
9419 *)
9420 lt_save_MAGIC_CMD="$MAGIC_CMD"
9421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9422 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9423 for ac_dir in $ac_dummy; do
9424 IFS="$lt_save_ifs"
9425 test -z "$ac_dir" && ac_dir=.
9426 if test -f $ac_dir/file; then
9427 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9428 if test -n "$file_magic_test_file"; then
9429 case $deplibs_check_method in
9430 "file_magic "*)
9431 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9432 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9433 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9434 $EGREP "$file_magic_regex" > /dev/null; then
9435 :
9436 else
9437 cat <<_LT_EOF 1>&2
9438
9439 *** Warning: the command libtool uses to detect shared libraries,
9440 *** $file_magic_cmd, produces output that libtool cannot recognize.
9441 *** The result is that libtool may fail to recognize shared libraries
9442 *** as such. This will affect the creation of libtool libraries that
9443 *** depend on shared libraries, but programs linked with such libtool
9444 *** libraries will work regardless of this problem. Nevertheless, you
9445 *** may want to report the problem to your system manager and/or to
9446 *** bug-libtool@gnu.org
9447
9448 _LT_EOF
9449 fi ;;
9450 esac
9451 fi
9452 break
9453 fi
9454 done
9455 IFS="$lt_save_ifs"
9456 MAGIC_CMD="$lt_save_MAGIC_CMD"
9457 ;;
9458 esac
9459 fi
9460
9461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9462 if test -n "$MAGIC_CMD"; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9464 $as_echo "$MAGIC_CMD" >&6; }
9465 else
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467 $as_echo "no" >&6; }
9468 fi
9469
9470
9471 else
9472 MAGIC_CMD=:
9473 fi
9474 fi
9475
9476 fi
9477 ;;
9478 esac
9479
9480 # Use C for the default configuration in the libtool script
9481
9482 lt_save_CC="$CC"
9483 ac_ext=c
9484 ac_cpp='$CPP $CPPFLAGS'
9485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9488
9489
9490 # Source file extension for C test sources.
9491 ac_ext=c
9492
9493 # Object file extension for compiled C test sources.
9494 objext=o
9495 objext=$objext
9496
9497 # Code to be used in simple compile tests
9498 lt_simple_compile_test_code="int some_variable = 0;"
9499
9500 # Code to be used in simple link tests
9501 lt_simple_link_test_code='int main(){return(0);}'
9502
9503
9504
9505
9506
9507
9508
9509 # If no C compiler was specified, use CC.
9510 LTCC=${LTCC-"$CC"}
9511
9512 # If no C compiler flags were specified, use CFLAGS.
9513 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9514
9515 # Allow CC to be a program name with arguments.
9516 compiler=$CC
9517
9518 # Save the default compiler, since it gets overwritten when the other
9519 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9520 compiler_DEFAULT=$CC
9521
9522 # save warnings/boilerplate of simple test code
9523 ac_outfile=conftest.$ac_objext
9524 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9525 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9526 _lt_compiler_boilerplate=`cat conftest.err`
9527 $RM conftest*
9528
9529 ac_outfile=conftest.$ac_objext
9530 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9531 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9532 _lt_linker_boilerplate=`cat conftest.err`
9533 $RM -r conftest*
9534
9535
9536 ## CAVEAT EMPTOR:
9537 ## There is no encapsulation within the following macros, do not change
9538 ## the running order or otherwise move them around unless you know exactly
9539 ## what you are doing...
9540 if test -n "$compiler"; then
9541
9542 lt_prog_compiler_no_builtin_flag=
9543
9544 if test "$GCC" = yes; then
9545 case $cc_basename in
9546 nvcc*)
9547 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9548 *)
9549 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9550 esac
9551
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9553 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9554 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 lt_cv_prog_compiler_rtti_exceptions=no
9558 ac_outfile=conftest.$ac_objext
9559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9560 lt_compiler_flag="-fno-rtti -fno-exceptions"
9561 # Insert the option either (1) after the last *FLAGS variable, or
9562 # (2) before a word containing "conftest.", or (3) at the end.
9563 # Note that $ac_compile itself does not contain backslashes and begins
9564 # with a dollar sign (not a hyphen), so the echo should work correctly.
9565 # The option is referenced via a variable to avoid confusing sed.
9566 lt_compile=`echo "$ac_compile" | $SED \
9567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9569 -e 's:$: $lt_compiler_flag:'`
9570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9571 (eval "$lt_compile" 2>conftest.err)
9572 ac_status=$?
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 if (exit $ac_status) && test -s "$ac_outfile"; then
9576 # The compiler can only warn and ignore the option if not recognized
9577 # So say no if there are warnings other than the usual output.
9578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9581 lt_cv_prog_compiler_rtti_exceptions=yes
9582 fi
9583 fi
9584 $RM conftest*
9585
9586 fi
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9588 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9589
9590 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9591 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9592 else
9593 :
9594 fi
9595
9596 fi
9597
9598
9599
9600
9601
9602
9603 lt_prog_compiler_wl=
9604 lt_prog_compiler_pic=
9605 lt_prog_compiler_static=
9606
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9608 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9609
9610 if test "$GCC" = yes; then
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_static='-static'
9613
9614 case $host_os in
9615 aix*)
9616 # All AIX code is PIC.
9617 if test "$host_cpu" = ia64; then
9618 # AIX 5 now supports IA64 processor
9619 lt_prog_compiler_static='-Bstatic'
9620 fi
9621 lt_prog_compiler_pic='-fPIC'
9622 ;;
9623
9624 amigaos*)
9625 case $host_cpu in
9626 powerpc)
9627 # see comment about AmigaOS4 .so support
9628 lt_prog_compiler_pic='-fPIC'
9629 ;;
9630 m68k)
9631 # FIXME: we need at least 68020 code to build shared libraries, but
9632 # adding the `-m68020' flag to GCC prevents building anything better,
9633 # like `-m68040'.
9634 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9635 ;;
9636 esac
9637 ;;
9638
9639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9640 # PIC is the default for these OSes.
9641 ;;
9642
9643 mingw* | cygwin* | pw32* | os2* | cegcc*)
9644 # This hack is so that the source file can tell whether it is being
9645 # built for inclusion in a dll (and should export symbols for example).
9646 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9647 # (--disable-auto-import) libraries
9648 lt_prog_compiler_pic='-DDLL_EXPORT'
9649 ;;
9650
9651 darwin* | rhapsody*)
9652 # PIC is the default on this platform
9653 # Common symbols not allowed in MH_DYLIB files
9654 lt_prog_compiler_pic='-fno-common'
9655 ;;
9656
9657 haiku*)
9658 # PIC is the default for Haiku.
9659 # The "-static" flag exists, but is broken.
9660 lt_prog_compiler_static=
9661 ;;
9662
9663 hpux*)
9664 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9665 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9666 # sets the default TLS model and affects inlining.
9667 case $host_cpu in
9668 hppa*64*)
9669 # +Z the default
9670 ;;
9671 *)
9672 lt_prog_compiler_pic='-fPIC'
9673 ;;
9674 esac
9675 ;;
9676
9677 interix[3-9]*)
9678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9679 # Instead, we relocate shared libraries at runtime.
9680 ;;
9681
9682 msdosdjgpp*)
9683 # Just because we use GCC doesn't mean we suddenly get shared libraries
9684 # on systems that don't support them.
9685 lt_prog_compiler_can_build_shared=no
9686 enable_shared=no
9687 ;;
9688
9689 *nto* | *qnx*)
9690 # QNX uses GNU C++, but need to define -shared option too, otherwise
9691 # it will coredump.
9692 lt_prog_compiler_pic='-fPIC -shared'
9693 ;;
9694
9695 sysv4*MP*)
9696 if test -d /usr/nec; then
9697 lt_prog_compiler_pic=-Kconform_pic
9698 fi
9699 ;;
9700
9701 *)
9702 lt_prog_compiler_pic='-fPIC'
9703 ;;
9704 esac
9705
9706 case $cc_basename in
9707 nvcc*) # Cuda Compiler Driver 2.2
9708 lt_prog_compiler_wl='-Xlinker '
9709 lt_prog_compiler_pic='-Xcompiler -fPIC'
9710 ;;
9711 esac
9712 else
9713 # PORTME Check for flag to pass linker flags through the system compiler.
9714 case $host_os in
9715 aix*)
9716 lt_prog_compiler_wl='-Wl,'
9717 if test "$host_cpu" = ia64; then
9718 # AIX 5 now supports IA64 processor
9719 lt_prog_compiler_static='-Bstatic'
9720 else
9721 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9722 fi
9723 ;;
9724
9725 mingw* | cygwin* | pw32* | os2* | cegcc*)
9726 # This hack is so that the source file can tell whether it is being
9727 # built for inclusion in a dll (and should export symbols for example).
9728 lt_prog_compiler_pic='-DDLL_EXPORT'
9729 ;;
9730
9731 hpux9* | hpux10* | hpux11*)
9732 lt_prog_compiler_wl='-Wl,'
9733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9734 # not for PA HP-UX.
9735 case $host_cpu in
9736 hppa*64*|ia64*)
9737 # +Z the default
9738 ;;
9739 *)
9740 lt_prog_compiler_pic='+Z'
9741 ;;
9742 esac
9743 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9744 lt_prog_compiler_static='${wl}-a ${wl}archive'
9745 ;;
9746
9747 irix5* | irix6* | nonstopux*)
9748 lt_prog_compiler_wl='-Wl,'
9749 # PIC (with -KPIC) is the default.
9750 lt_prog_compiler_static='-non_shared'
9751 ;;
9752
9753 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9754 case $cc_basename in
9755 # old Intel for x86_64 which still supported -KPIC.
9756 ecc*)
9757 lt_prog_compiler_wl='-Wl,'
9758 lt_prog_compiler_pic='-KPIC'
9759 lt_prog_compiler_static='-static'
9760 ;;
9761 # icc used to be incompatible with GCC.
9762 # ICC 10 doesn't accept -KPIC any more.
9763 icc* | ifort*)
9764 lt_prog_compiler_wl='-Wl,'
9765 lt_prog_compiler_pic='-fPIC'
9766 lt_prog_compiler_static='-static'
9767 ;;
9768 # Lahey Fortran 8.1.
9769 lf95*)
9770 lt_prog_compiler_wl='-Wl,'
9771 lt_prog_compiler_pic='--shared'
9772 lt_prog_compiler_static='--static'
9773 ;;
9774 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9775 # Portland Group compilers (*not* the Pentium gcc compiler,
9776 # which looks to be a dead project)
9777 lt_prog_compiler_wl='-Wl,'
9778 lt_prog_compiler_pic='-fpic'
9779 lt_prog_compiler_static='-Bstatic'
9780 ;;
9781 ccc*)
9782 lt_prog_compiler_wl='-Wl,'
9783 # All Alpha code is PIC.
9784 lt_prog_compiler_static='-non_shared'
9785 ;;
9786 xl* | bgxl* | bgf* | mpixl*)
9787 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9788 lt_prog_compiler_wl='-Wl,'
9789 lt_prog_compiler_pic='-qpic'
9790 lt_prog_compiler_static='-qstaticlink'
9791 ;;
9792 *)
9793 case `$CC -V 2>&1 | sed 5q` in
9794 *Sun\ F* | *Sun*Fortran*)
9795 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9796 lt_prog_compiler_pic='-KPIC'
9797 lt_prog_compiler_static='-Bstatic'
9798 lt_prog_compiler_wl=''
9799 ;;
9800 *Sun\ C*)
9801 # Sun C 5.9
9802 lt_prog_compiler_pic='-KPIC'
9803 lt_prog_compiler_static='-Bstatic'
9804 lt_prog_compiler_wl='-Wl,'
9805 ;;
9806 esac
9807 ;;
9808 esac
9809 ;;
9810
9811 newsos6)
9812 lt_prog_compiler_pic='-KPIC'
9813 lt_prog_compiler_static='-Bstatic'
9814 ;;
9815
9816 *nto* | *qnx*)
9817 # QNX uses GNU C++, but need to define -shared option too, otherwise
9818 # it will coredump.
9819 lt_prog_compiler_pic='-fPIC -shared'
9820 ;;
9821
9822 osf3* | osf4* | osf5*)
9823 lt_prog_compiler_wl='-Wl,'
9824 # All OSF/1 code is PIC.
9825 lt_prog_compiler_static='-non_shared'
9826 ;;
9827
9828 rdos*)
9829 lt_prog_compiler_static='-non_shared'
9830 ;;
9831
9832 solaris*)
9833 lt_prog_compiler_pic='-KPIC'
9834 lt_prog_compiler_static='-Bstatic'
9835 case $cc_basename in
9836 f77* | f90* | f95*)
9837 lt_prog_compiler_wl='-Qoption ld ';;
9838 *)
9839 lt_prog_compiler_wl='-Wl,';;
9840 esac
9841 ;;
9842
9843 sunos4*)
9844 lt_prog_compiler_wl='-Qoption ld '
9845 lt_prog_compiler_pic='-PIC'
9846 lt_prog_compiler_static='-Bstatic'
9847 ;;
9848
9849 sysv4 | sysv4.2uw2* | sysv4.3*)
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_pic='-KPIC'
9852 lt_prog_compiler_static='-Bstatic'
9853 ;;
9854
9855 sysv4*MP*)
9856 if test -d /usr/nec ;then
9857 lt_prog_compiler_pic='-Kconform_pic'
9858 lt_prog_compiler_static='-Bstatic'
9859 fi
9860 ;;
9861
9862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9863 lt_prog_compiler_wl='-Wl,'
9864 lt_prog_compiler_pic='-KPIC'
9865 lt_prog_compiler_static='-Bstatic'
9866 ;;
9867
9868 unicos*)
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_can_build_shared=no
9871 ;;
9872
9873 uts4*)
9874 lt_prog_compiler_pic='-pic'
9875 lt_prog_compiler_static='-Bstatic'
9876 ;;
9877
9878 *)
9879 lt_prog_compiler_can_build_shared=no
9880 ;;
9881 esac
9882 fi
9883
9884 case $host_os in
9885 # For platforms which do not support PIC, -DPIC is meaningless:
9886 *djgpp*)
9887 lt_prog_compiler_pic=
9888 ;;
9889 *)
9890 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9891 ;;
9892 esac
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9894 $as_echo "$lt_prog_compiler_pic" >&6; }
9895
9896
9897
9898
9899
9900
9901 #
9902 # Check to make sure the PIC flag actually works.
9903 #
9904 if test -n "$lt_prog_compiler_pic"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9906 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9907 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 lt_cv_prog_compiler_pic_works=no
9911 ac_outfile=conftest.$ac_objext
9912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9914 # Insert the option either (1) after the last *FLAGS variable, or
9915 # (2) before a word containing "conftest.", or (3) at the end.
9916 # Note that $ac_compile itself does not contain backslashes and begins
9917 # with a dollar sign (not a hyphen), so the echo should work correctly.
9918 # The option is referenced via a variable to avoid confusing sed.
9919 lt_compile=`echo "$ac_compile" | $SED \
9920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9922 -e 's:$: $lt_compiler_flag:'`
9923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9924 (eval "$lt_compile" 2>conftest.err)
9925 ac_status=$?
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 if (exit $ac_status) && test -s "$ac_outfile"; then
9929 # The compiler can only warn and ignore the option if not recognized
9930 # So say no if there are warnings other than the usual output.
9931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9934 lt_cv_prog_compiler_pic_works=yes
9935 fi
9936 fi
9937 $RM conftest*
9938
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9942
9943 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9944 case $lt_prog_compiler_pic in
9945 "" | " "*) ;;
9946 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9947 esac
9948 else
9949 lt_prog_compiler_pic=
9950 lt_prog_compiler_can_build_shared=no
9951 fi
9952
9953 fi
9954
9955
9956
9957
9958
9959
9960 #
9961 # Check to make sure the static flag actually works.
9962 #
9963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9966 if ${lt_cv_prog_compiler_static_works+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 lt_cv_prog_compiler_static_works=no
9970 save_LDFLAGS="$LDFLAGS"
9971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9974 # The linker can only warn and ignore the option if not recognized
9975 # So say no if there are warnings
9976 if test -s conftest.err; then
9977 # Append any errors to the config.log.
9978 cat conftest.err 1>&5
9979 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9981 if diff conftest.exp conftest.er2 >/dev/null; then
9982 lt_cv_prog_compiler_static_works=yes
9983 fi
9984 else
9985 lt_cv_prog_compiler_static_works=yes
9986 fi
9987 fi
9988 $RM -r conftest*
9989 LDFLAGS="$save_LDFLAGS"
9990
9991 fi
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9994
9995 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9996 :
9997 else
9998 lt_prog_compiler_static=
9999 fi
10000
10001
10002
10003
10004
10005
10006
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10009 if ${lt_cv_prog_compiler_c_o+:} false; then :
10010 $as_echo_n "(cached) " >&6
10011 else
10012 lt_cv_prog_compiler_c_o=no
10013 $RM -r conftest 2>/dev/null
10014 mkdir conftest
10015 cd conftest
10016 mkdir out
10017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10018
10019 lt_compiler_flag="-o out/conftest2.$ac_objext"
10020 # Insert the option either (1) after the last *FLAGS variable, or
10021 # (2) before a word containing "conftest.", or (3) at the end.
10022 # Note that $ac_compile itself does not contain backslashes and begins
10023 # with a dollar sign (not a hyphen), so the echo should work correctly.
10024 lt_compile=`echo "$ac_compile" | $SED \
10025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10027 -e 's:$: $lt_compiler_flag:'`
10028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10029 (eval "$lt_compile" 2>out/conftest.err)
10030 ac_status=$?
10031 cat out/conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10034 then
10035 # The compiler can only warn and ignore the option if not recognized
10036 # So say no if there are warnings
10037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10040 lt_cv_prog_compiler_c_o=yes
10041 fi
10042 fi
10043 chmod u+w . 2>&5
10044 $RM conftest*
10045 # SGI C++ compiler will create directory out/ii_files/ for
10046 # template instantiation
10047 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10048 $RM out/* && rmdir out
10049 cd ..
10050 $RM -r conftest
10051 $RM conftest*
10052
10053 fi
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10056
10057
10058
10059
10060
10061
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10064 if ${lt_cv_prog_compiler_c_o+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 lt_cv_prog_compiler_c_o=no
10068 $RM -r conftest 2>/dev/null
10069 mkdir conftest
10070 cd conftest
10071 mkdir out
10072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10073
10074 lt_compiler_flag="-o out/conftest2.$ac_objext"
10075 # Insert the option either (1) after the last *FLAGS variable, or
10076 # (2) before a word containing "conftest.", or (3) at the end.
10077 # Note that $ac_compile itself does not contain backslashes and begins
10078 # with a dollar sign (not a hyphen), so the echo should work correctly.
10079 lt_compile=`echo "$ac_compile" | $SED \
10080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10082 -e 's:$: $lt_compiler_flag:'`
10083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10084 (eval "$lt_compile" 2>out/conftest.err)
10085 ac_status=$?
10086 cat out/conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10089 then
10090 # The compiler can only warn and ignore the option if not recognized
10091 # So say no if there are warnings
10092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10095 lt_cv_prog_compiler_c_o=yes
10096 fi
10097 fi
10098 chmod u+w . 2>&5
10099 $RM conftest*
10100 # SGI C++ compiler will create directory out/ii_files/ for
10101 # template instantiation
10102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10103 $RM out/* && rmdir out
10104 cd ..
10105 $RM -r conftest
10106 $RM conftest*
10107
10108 fi
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10111
10112
10113
10114
10115 hard_links="nottested"
10116 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10117 # do not overwrite the value of need_locks provided by the user
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10119 $as_echo_n "checking if we can lock with hard links... " >&6; }
10120 hard_links=yes
10121 $RM conftest*
10122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10123 touch conftest.a
10124 ln conftest.a conftest.b 2>&5 || hard_links=no
10125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10127 $as_echo "$hard_links" >&6; }
10128 if test "$hard_links" = no; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10130 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10131 need_locks=warn
10132 fi
10133 else
10134 need_locks=no
10135 fi
10136
10137
10138
10139
10140
10141
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10144
10145 runpath_var=
10146 allow_undefined_flag=
10147 always_export_symbols=no
10148 archive_cmds=
10149 archive_expsym_cmds=
10150 compiler_needs_object=no
10151 enable_shared_with_static_runtimes=no
10152 export_dynamic_flag_spec=
10153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10154 hardcode_automatic=no
10155 hardcode_direct=no
10156 hardcode_direct_absolute=no
10157 hardcode_libdir_flag_spec=
10158 hardcode_libdir_flag_spec_ld=
10159 hardcode_libdir_separator=
10160 hardcode_minus_L=no
10161 hardcode_shlibpath_var=unsupported
10162 inherit_rpath=no
10163 link_all_deplibs=unknown
10164 module_cmds=
10165 module_expsym_cmds=
10166 old_archive_from_new_cmds=
10167 old_archive_from_expsyms_cmds=
10168 thread_safe_flag_spec=
10169 whole_archive_flag_spec=
10170 # include_expsyms should be a list of space-separated symbols to be *always*
10171 # included in the symbol list
10172 include_expsyms=
10173 # exclude_expsyms can be an extended regexp of symbols to exclude
10174 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10175 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10176 # as well as any symbol that contains `d'.
10177 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10179 # platforms (ab)use it in PIC code, but their linkers get confused if
10180 # the symbol is explicitly referenced. Since portable code cannot
10181 # rely on this symbol name, it's probably fine to never include it in
10182 # preloaded symbol tables.
10183 # Exclude shared library initialization/finalization symbols.
10184 extract_expsyms_cmds=
10185
10186 case $host_os in
10187 cygwin* | mingw* | pw32* | cegcc*)
10188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10189 # When not using gcc, we currently assume that we are using
10190 # Microsoft Visual C++.
10191 if test "$GCC" != yes; then
10192 with_gnu_ld=no
10193 fi
10194 ;;
10195 interix*)
10196 # we just hope/assume this is gcc and not c89 (= MSVC++)
10197 with_gnu_ld=yes
10198 ;;
10199 openbsd*)
10200 with_gnu_ld=no
10201 ;;
10202 esac
10203
10204 ld_shlibs=yes
10205
10206 # On some targets, GNU ld is compatible enough with the native linker
10207 # that we're better off using the native interface for both.
10208 lt_use_gnu_ld_interface=no
10209 if test "$with_gnu_ld" = yes; then
10210 case $host_os in
10211 aix*)
10212 # The AIX port of GNU ld has always aspired to compatibility
10213 # with the native linker. However, as the warning in the GNU ld
10214 # block says, versions before 2.19.5* couldn't really create working
10215 # shared libraries, regardless of the interface used.
10216 case `$LD -v 2>&1` in
10217 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10218 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10219 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10220 *)
10221 lt_use_gnu_ld_interface=yes
10222 ;;
10223 esac
10224 ;;
10225 *)
10226 lt_use_gnu_ld_interface=yes
10227 ;;
10228 esac
10229 fi
10230
10231 if test "$lt_use_gnu_ld_interface" = yes; then
10232 # If archive_cmds runs LD, not CC, wlarc should be empty
10233 wlarc='${wl}'
10234
10235 # Set some defaults for GNU ld with shared library support. These
10236 # are reset later if shared libraries are not supported. Putting them
10237 # here allows them to be overridden if necessary.
10238 runpath_var=LD_RUN_PATH
10239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10240 export_dynamic_flag_spec='${wl}--export-dynamic'
10241 # ancient GNU ld didn't support --whole-archive et. al.
10242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10243 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10244 else
10245 whole_archive_flag_spec=
10246 fi
10247 supports_anon_versioning=no
10248 case `$LD -v 2>&1` in
10249 *GNU\ gold*) supports_anon_versioning=yes ;;
10250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10253 *\ 2.11.*) ;; # other 2.11 versions
10254 *) supports_anon_versioning=yes ;;
10255 esac
10256
10257 # See if GNU ld supports shared libraries.
10258 case $host_os in
10259 aix[3-9]*)
10260 # On AIX/PPC, the GNU linker is very broken
10261 if test "$host_cpu" != ia64; then
10262 ld_shlibs=no
10263 cat <<_LT_EOF 1>&2
10264
10265 *** Warning: the GNU linker, at least up to release 2.19, is reported
10266 *** to be unable to reliably create shared libraries on AIX.
10267 *** Therefore, libtool is disabling shared libraries support. If you
10268 *** really care for shared libraries, you may want to install binutils
10269 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10270 *** You will then need to restart the configuration process.
10271
10272 _LT_EOF
10273 fi
10274 ;;
10275
10276 amigaos*)
10277 case $host_cpu in
10278 powerpc)
10279 # see comment about AmigaOS4 .so support
10280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10281 archive_expsym_cmds=''
10282 ;;
10283 m68k)
10284 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)'
10285 hardcode_libdir_flag_spec='-L$libdir'
10286 hardcode_minus_L=yes
10287 ;;
10288 esac
10289 ;;
10290
10291 beos*)
10292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10293 allow_undefined_flag=unsupported
10294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10295 # support --undefined. This deserves some investigation. FIXME
10296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297 else
10298 ld_shlibs=no
10299 fi
10300 ;;
10301
10302 cygwin* | mingw* | pw32* | cegcc*)
10303 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10304 # as there is no search path for DLLs.
10305 hardcode_libdir_flag_spec='-L$libdir'
10306 export_dynamic_flag_spec='${wl}--export-all-symbols'
10307 allow_undefined_flag=unsupported
10308 always_export_symbols=no
10309 enable_shared_with_static_runtimes=yes
10310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10311
10312 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10314 # If the export-symbols file already is a .def file (1st line
10315 # is EXPORTS), use it as is; otherwise, prepend...
10316 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10317 cp $export_symbols $output_objdir/$soname.def;
10318 else
10319 echo EXPORTS > $output_objdir/$soname.def;
10320 cat $export_symbols >> $output_objdir/$soname.def;
10321 fi~
10322 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10323 else
10324 ld_shlibs=no
10325 fi
10326 ;;
10327
10328 haiku*)
10329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10330 link_all_deplibs=yes
10331 ;;
10332
10333 interix[3-9]*)
10334 hardcode_direct=no
10335 hardcode_shlibpath_var=no
10336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10337 export_dynamic_flag_spec='${wl}-E'
10338 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10339 # Instead, shared libraries are loaded at an image base (0x10000000 by
10340 # default) and relocated if they conflict, which is a slow very memory
10341 # consuming and fragmenting process. To avoid this, we pick a random,
10342 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10343 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10344 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10345 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'
10346 ;;
10347
10348 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10349 tmp_diet=no
10350 if test "$host_os" = linux-dietlibc; then
10351 case $cc_basename in
10352 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10353 esac
10354 fi
10355 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10356 && test "$tmp_diet" = no
10357 then
10358 tmp_addflag=' $pic_flag'
10359 tmp_sharedflag='-shared'
10360 case $cc_basename,$host_cpu in
10361 pgcc*) # Portland Group C compiler
10362 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'
10363 tmp_addflag=' $pic_flag'
10364 ;;
10365 pgf77* | pgf90* | pgf95* | pgfortran*)
10366 # Portland Group f77 and f90 compilers
10367 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'
10368 tmp_addflag=' $pic_flag -Mnomain' ;;
10369 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10370 tmp_addflag=' -i_dynamic' ;;
10371 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10372 tmp_addflag=' -i_dynamic -nofor_main' ;;
10373 ifc* | ifort*) # Intel Fortran compiler
10374 tmp_addflag=' -nofor_main' ;;
10375 lf95*) # Lahey Fortran 8.1
10376 whole_archive_flag_spec=
10377 tmp_sharedflag='--shared' ;;
10378 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10379 tmp_sharedflag='-qmkshrobj'
10380 tmp_addflag= ;;
10381 nvcc*) # Cuda Compiler Driver 2.2
10382 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'
10383 compiler_needs_object=yes
10384 ;;
10385 esac
10386 case `$CC -V 2>&1 | sed 5q` in
10387 *Sun\ C*) # Sun C 5.9
10388 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'
10389 compiler_needs_object=yes
10390 tmp_sharedflag='-G' ;;
10391 *Sun\ F*) # Sun Fortran 8.3
10392 tmp_sharedflag='-G' ;;
10393 esac
10394 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10395
10396 if test "x$supports_anon_versioning" = xyes; then
10397 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10398 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10399 echo "local: *; };" >> $output_objdir/$libname.ver~
10400 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10401 fi
10402
10403 case $cc_basename in
10404 xlf* | bgf* | bgxlf* | mpixlf*)
10405 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10406 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10407 hardcode_libdir_flag_spec=
10408 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10409 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10410 if test "x$supports_anon_versioning" = xyes; then
10411 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10413 echo "local: *; };" >> $output_objdir/$libname.ver~
10414 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10415 fi
10416 ;;
10417 esac
10418 else
10419 ld_shlibs=no
10420 fi
10421 ;;
10422
10423 netbsd*)
10424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10425 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10426 wlarc=
10427 else
10428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10430 fi
10431 ;;
10432
10433 solaris*)
10434 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10435 ld_shlibs=no
10436 cat <<_LT_EOF 1>&2
10437
10438 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10439 *** create shared libraries on Solaris systems. Therefore, libtool
10440 *** is disabling shared libraries support. We urge you to upgrade GNU
10441 *** binutils to release 2.9.1 or newer. Another option is to modify
10442 *** your PATH or compiler configuration so that the native linker is
10443 *** used, and then restart.
10444
10445 _LT_EOF
10446 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10449 else
10450 ld_shlibs=no
10451 fi
10452 ;;
10453
10454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10455 case `$LD -v 2>&1` in
10456 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10457 ld_shlibs=no
10458 cat <<_LT_EOF 1>&2
10459
10460 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10461 *** reliably create shared libraries on SCO systems. Therefore, libtool
10462 *** is disabling shared libraries support. We urge you to upgrade GNU
10463 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10464 *** your PATH or compiler configuration so that the native linker is
10465 *** used, and then restart.
10466
10467 _LT_EOF
10468 ;;
10469 *)
10470 # For security reasons, it is highly recommended that you always
10471 # use absolute paths for naming shared libraries, and exclude the
10472 # DT_RUNPATH tag from executables and libraries. But doing so
10473 # requires that you compile everything twice, which is a pain.
10474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10477 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10478 else
10479 ld_shlibs=no
10480 fi
10481 ;;
10482 esac
10483 ;;
10484
10485 sunos4*)
10486 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10487 wlarc=
10488 hardcode_direct=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 *)
10493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10496 else
10497 ld_shlibs=no
10498 fi
10499 ;;
10500 esac
10501
10502 if test "$ld_shlibs" = no; then
10503 runpath_var=
10504 hardcode_libdir_flag_spec=
10505 export_dynamic_flag_spec=
10506 whole_archive_flag_spec=
10507 fi
10508 else
10509 # PORTME fill in a description of your system's linker (not GNU ld)
10510 case $host_os in
10511 aix3*)
10512 allow_undefined_flag=unsupported
10513 always_export_symbols=yes
10514 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'
10515 # Note: this linker hardcodes the directories in LIBPATH if there
10516 # are no directories specified by -L.
10517 hardcode_minus_L=yes
10518 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10519 # Neither direct hardcoding nor static linking is supported with a
10520 # broken collect2.
10521 hardcode_direct=unsupported
10522 fi
10523 ;;
10524
10525 aix[4-9]*)
10526 if test "$host_cpu" = ia64; then
10527 # On IA64, the linker does run time linking by default, so we don't
10528 # have to do anything special.
10529 aix_use_runtimelinking=no
10530 exp_sym_flag='-Bexport'
10531 no_entry_flag=""
10532 else
10533 # If we're using GNU nm, then we don't want the "-C" option.
10534 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10535 # Also, AIX nm treats weak defined symbols like other global
10536 # defined symbols, whereas GNU nm marks them as "W".
10537 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10538 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'
10539 else
10540 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'
10541 fi
10542 aix_use_runtimelinking=no
10543
10544 # Test if we are trying to use run time linking or normal
10545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10546 # need to do runtime linking.
10547 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10548 for ld_flag in $LDFLAGS; do
10549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10550 aix_use_runtimelinking=yes
10551 break
10552 fi
10553 done
10554 ;;
10555 esac
10556
10557 exp_sym_flag='-bexport'
10558 no_entry_flag='-bnoentry'
10559 fi
10560
10561 # When large executables or shared objects are built, AIX ld can
10562 # have problems creating the table of contents. If linking a library
10563 # or program results in "error TOC overflow" add -mminimal-toc to
10564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10566
10567 archive_cmds=''
10568 hardcode_direct=yes
10569 hardcode_direct_absolute=yes
10570 hardcode_libdir_separator=':'
10571 link_all_deplibs=yes
10572 file_list_spec='${wl}-f,'
10573
10574 if test "$GCC" = yes; then
10575 case $host_os in aix4.[012]|aix4.[012].*)
10576 # We only want to do this on AIX 4.2 and lower, the check
10577 # below for broken collect2 doesn't work under 4.3+
10578 collect2name=`${CC} -print-prog-name=collect2`
10579 if test -f "$collect2name" &&
10580 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10581 then
10582 # We have reworked collect2
10583 :
10584 else
10585 # We have old collect2
10586 hardcode_direct=unsupported
10587 # It fails to find uninstalled libraries when the uninstalled
10588 # path is not listed in the libpath. Setting hardcode_minus_L
10589 # to unsupported forces relinking
10590 hardcode_minus_L=yes
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_libdir_separator=
10593 fi
10594 ;;
10595 esac
10596 shared_flag='-shared'
10597 if test "$aix_use_runtimelinking" = yes; then
10598 shared_flag="$shared_flag "'${wl}-G'
10599 fi
10600 else
10601 # not using gcc
10602 if test "$host_cpu" = ia64; then
10603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10604 # chokes on -Wl,-G. The following line is correct:
10605 shared_flag='-G'
10606 else
10607 if test "$aix_use_runtimelinking" = yes; then
10608 shared_flag='${wl}-G'
10609 else
10610 shared_flag='${wl}-bM:SRE'
10611 fi
10612 fi
10613 fi
10614
10615 export_dynamic_flag_spec='${wl}-bexpall'
10616 # It seems that -bexpall does not export symbols beginning with
10617 # underscore (_), so it is better to generate a list of symbols to export.
10618 always_export_symbols=yes
10619 if test "$aix_use_runtimelinking" = yes; then
10620 # Warning - without using the other runtime loading flags (-brtl),
10621 # -berok will link without error, but may produce a broken library.
10622 allow_undefined_flag='-berok'
10623 # Determine the default libpath from the value encoded in an
10624 # empty executable.
10625 if test x$gcc_no_link = xyes; then
10626 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10627 fi
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630
10631 int
10632 main ()
10633 {
10634
10635 ;
10636 return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640
10641 lt_aix_libpath_sed='
10642 /Import File Strings/,/^$/ {
10643 /^0/ {
10644 s/^0 *\(.*\)$/\1/
10645 p
10646 }
10647 }'
10648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10649 # Check for a 64-bit object if we didn't find anything.
10650 if test -z "$aix_libpath"; then
10651 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10652 fi
10653 fi
10654 rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10657
10658 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10659 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"
10660 else
10661 if test "$host_cpu" = ia64; then
10662 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10663 allow_undefined_flag="-z nodefs"
10664 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"
10665 else
10666 # Determine the default libpath from the value encoded in an
10667 # empty executable.
10668 if test x$gcc_no_link = xyes; then
10669 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10670 fi
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673
10674 int
10675 main ()
10676 {
10677
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_link "$LINENO"; then :
10683
10684 lt_aix_libpath_sed='
10685 /Import File Strings/,/^$/ {
10686 /^0/ {
10687 s/^0 *\(.*\)$/\1/
10688 p
10689 }
10690 }'
10691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10692 # Check for a 64-bit object if we didn't find anything.
10693 if test -z "$aix_libpath"; then
10694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10695 fi
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10700
10701 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10702 # Warning - without using the other run time loading flags,
10703 # -berok will link without error, but may produce a broken library.
10704 no_undefined_flag=' ${wl}-bernotok'
10705 allow_undefined_flag=' ${wl}-berok'
10706 if test "$with_gnu_ld" = yes; then
10707 # We only use this code for GNU lds that support --whole-archive.
10708 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10709 else
10710 # Exported symbols can be pulled into shared objects from archives
10711 whole_archive_flag_spec='$convenience'
10712 fi
10713 archive_cmds_need_lc=yes
10714 # This is similar to how AIX traditionally builds its shared libraries.
10715 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'
10716 fi
10717 fi
10718 ;;
10719
10720 amigaos*)
10721 case $host_cpu in
10722 powerpc)
10723 # see comment about AmigaOS4 .so support
10724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10725 archive_expsym_cmds=''
10726 ;;
10727 m68k)
10728 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)'
10729 hardcode_libdir_flag_spec='-L$libdir'
10730 hardcode_minus_L=yes
10731 ;;
10732 esac
10733 ;;
10734
10735 bsdi[45]*)
10736 export_dynamic_flag_spec=-rdynamic
10737 ;;
10738
10739 cygwin* | mingw* | pw32* | cegcc*)
10740 # When not using gcc, we currently assume that we are using
10741 # Microsoft Visual C++.
10742 # hardcode_libdir_flag_spec is actually meaningless, as there is
10743 # no search path for DLLs.
10744 hardcode_libdir_flag_spec=' '
10745 allow_undefined_flag=unsupported
10746 # Tell ltmain to make .lib files, not .a files.
10747 libext=lib
10748 # Tell ltmain to make .dll files, not .so files.
10749 shrext_cmds=".dll"
10750 # FIXME: Setting linknames here is a bad hack.
10751 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10752 # The linker will automatically build a .lib file if we build a DLL.
10753 old_archive_from_new_cmds='true'
10754 # FIXME: Should let the user specify the lib program.
10755 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10756 fix_srcfile_path='`cygpath -w "$srcfile"`'
10757 enable_shared_with_static_runtimes=yes
10758 ;;
10759
10760 darwin* | rhapsody*)
10761
10762
10763
10764 # Publish an arg to allow the user to select that Darwin host (and target)
10765 # libraries should be given install-names like @rpath/libfoo.dylib. This
10766 # requires that the user of the library then adds an 'rpath' to the DSO that
10767 # needs access.
10768 # NOTE: there are defaults below, for systems that support rpaths. The person
10769 # configuring can override the defaults for any system version that supports
10770 # them - they are, however, forced off for system versions without support.
10771 # Check whether --enable-darwin-at-rpath was given.
10772 if test "${enable_darwin_at_rpath+set}" = set; then :
10773 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10774 # This is not supported before macOS 10.5 / Darwin9.
10775 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10776 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10778 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10779 enable_darwin_at_rpath=no
10780 ;;
10781 esac
10782 fi
10783 else
10784 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10785 # As above, before 10.5 / Darwin9 this does not work.
10786 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10787 enable_darwin_at_rpath=no
10788 ;;
10789
10790 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10791 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10792 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10793 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10795 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10796 enable_darwin_at_rpath=yes
10797 ;;
10798 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10799 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10800
10801 esac
10802
10803 fi
10804
10805
10806 archive_cmds_need_lc=no
10807 hardcode_direct=no
10808 hardcode_automatic=yes
10809 hardcode_shlibpath_var=unsupported
10810 if test "$lt_cv_ld_force_load" = "yes"; then
10811 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\"`'
10812 else
10813 whole_archive_flag_spec=''
10814 fi
10815 link_all_deplibs=yes
10816 allow_undefined_flag="$_lt_dar_allow_undefined"
10817 case $cc_basename in
10818 ifort*) _lt_dar_can_shared=yes ;;
10819 *) _lt_dar_can_shared=$GCC ;;
10820 esac
10821 if test "$_lt_dar_can_shared" = "yes"; then
10822 output_verbose_link_cmd=func_echo_all
10823 _lt_install_name='\$rpath/\$soname'
10824 if test "x$enable_darwin_at_rpath" = "xyes"; then
10825 _lt_install_name='@rpath/\$soname'
10826 fi
10827 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10828 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10829 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}"
10830 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}"
10831
10832 else
10833 ld_shlibs=no
10834 fi
10835
10836 ;;
10837
10838 dgux*)
10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_libdir_flag_spec='-L$libdir'
10841 hardcode_shlibpath_var=no
10842 ;;
10843
10844 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10845 # support. Future versions do this automatically, but an explicit c++rt0.o
10846 # does not break anything, and helps significantly (at the cost of a little
10847 # extra space).
10848 freebsd2.2*)
10849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10850 hardcode_libdir_flag_spec='-R$libdir'
10851 hardcode_direct=yes
10852 hardcode_shlibpath_var=no
10853 ;;
10854
10855 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10856 freebsd2.*)
10857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10858 hardcode_direct=yes
10859 hardcode_minus_L=yes
10860 hardcode_shlibpath_var=no
10861 ;;
10862
10863 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10864 freebsd* | dragonfly*)
10865 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10866 hardcode_libdir_flag_spec='-R$libdir'
10867 hardcode_direct=yes
10868 hardcode_shlibpath_var=no
10869 ;;
10870
10871 hpux9*)
10872 if test "$GCC" = yes; then
10873 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'
10874 else
10875 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'
10876 fi
10877 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10878 hardcode_libdir_separator=:
10879 hardcode_direct=yes
10880
10881 # hardcode_minus_L: Not really in the search PATH,
10882 # but as the default location of the library.
10883 hardcode_minus_L=yes
10884 export_dynamic_flag_spec='${wl}-E'
10885 ;;
10886
10887 hpux10*)
10888 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10889 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10890 else
10891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10892 fi
10893 if test "$with_gnu_ld" = no; then
10894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10895 hardcode_libdir_flag_spec_ld='+b $libdir'
10896 hardcode_libdir_separator=:
10897 hardcode_direct=yes
10898 hardcode_direct_absolute=yes
10899 export_dynamic_flag_spec='${wl}-E'
10900 # hardcode_minus_L: Not really in the search PATH,
10901 # but as the default location of the library.
10902 hardcode_minus_L=yes
10903 fi
10904 ;;
10905
10906 hpux11*)
10907 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10908 case $host_cpu in
10909 hppa*64*)
10910 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10911 ;;
10912 ia64*)
10913 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10914 ;;
10915 *)
10916 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10917 ;;
10918 esac
10919 else
10920 case $host_cpu in
10921 hppa*64*)
10922 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10923 ;;
10924 ia64*)
10925 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10926 ;;
10927 *)
10928
10929 # Older versions of the 11.00 compiler do not understand -b yet
10930 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10932 $as_echo_n "checking if $CC understands -b... " >&6; }
10933 if ${lt_cv_prog_compiler__b+:} false; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 lt_cv_prog_compiler__b=no
10937 save_LDFLAGS="$LDFLAGS"
10938 LDFLAGS="$LDFLAGS -b"
10939 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10941 # The linker can only warn and ignore the option if not recognized
10942 # So say no if there are warnings
10943 if test -s conftest.err; then
10944 # Append any errors to the config.log.
10945 cat conftest.err 1>&5
10946 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10948 if diff conftest.exp conftest.er2 >/dev/null; then
10949 lt_cv_prog_compiler__b=yes
10950 fi
10951 else
10952 lt_cv_prog_compiler__b=yes
10953 fi
10954 fi
10955 $RM -r conftest*
10956 LDFLAGS="$save_LDFLAGS"
10957
10958 fi
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10960 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10961
10962 if test x"$lt_cv_prog_compiler__b" = xyes; then
10963 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10964 else
10965 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10966 fi
10967
10968 ;;
10969 esac
10970 fi
10971 if test "$with_gnu_ld" = no; then
10972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10973 hardcode_libdir_separator=:
10974
10975 case $host_cpu in
10976 hppa*64*|ia64*)
10977 hardcode_direct=no
10978 hardcode_shlibpath_var=no
10979 ;;
10980 *)
10981 hardcode_direct=yes
10982 hardcode_direct_absolute=yes
10983 export_dynamic_flag_spec='${wl}-E'
10984
10985 # hardcode_minus_L: Not really in the search PATH,
10986 # but as the default location of the library.
10987 hardcode_minus_L=yes
10988 ;;
10989 esac
10990 fi
10991 ;;
10992
10993 irix5* | irix6* | nonstopux*)
10994 if test "$GCC" = yes; then
10995 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'
10996 # Try to use the -exported_symbol ld option, if it does not
10997 # work, assume that -exports_file does not work either and
10998 # implicitly export all symbols.
10999 save_LDFLAGS="$LDFLAGS"
11000 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11001 if test x$gcc_no_link = xyes; then
11002 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11003 fi
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 int foo(void) {}
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 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'
11010
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LDFLAGS="$save_LDFLAGS"
11015 else
11016 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'
11017 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'
11018 fi
11019 archive_cmds_need_lc='no'
11020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11021 hardcode_libdir_separator=:
11022 inherit_rpath=yes
11023 link_all_deplibs=yes
11024 ;;
11025
11026 netbsd*)
11027 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11029 else
11030 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11031 fi
11032 hardcode_libdir_flag_spec='-R$libdir'
11033 hardcode_direct=yes
11034 hardcode_shlibpath_var=no
11035 ;;
11036
11037 newsos6)
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_direct=yes
11040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11041 hardcode_libdir_separator=:
11042 hardcode_shlibpath_var=no
11043 ;;
11044
11045 *nto* | *qnx*)
11046 ;;
11047
11048 openbsd*)
11049 if test -f /usr/libexec/ld.so; then
11050 hardcode_direct=yes
11051 hardcode_shlibpath_var=no
11052 hardcode_direct_absolute=yes
11053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11056 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11057 export_dynamic_flag_spec='${wl}-E'
11058 else
11059 case $host_os in
11060 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11062 hardcode_libdir_flag_spec='-R$libdir'
11063 ;;
11064 *)
11065 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11066 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11067 ;;
11068 esac
11069 fi
11070 else
11071 ld_shlibs=no
11072 fi
11073 ;;
11074
11075 os2*)
11076 hardcode_libdir_flag_spec='-L$libdir'
11077 hardcode_minus_L=yes
11078 allow_undefined_flag=unsupported
11079 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'
11080 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11081 ;;
11082
11083 osf3*)
11084 if test "$GCC" = yes; then
11085 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11086 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'
11087 else
11088 allow_undefined_flag=' -expect_unresolved \*'
11089 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'
11090 fi
11091 archive_cmds_need_lc='no'
11092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11093 hardcode_libdir_separator=:
11094 ;;
11095
11096 osf4* | osf5*) # as osf3* with the addition of -msym flag
11097 if test "$GCC" = yes; then
11098 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11099 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'
11100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11101 else
11102 allow_undefined_flag=' -expect_unresolved \*'
11103 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'
11104 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~
11105 $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'
11106
11107 # Both c and cxx compiler support -rpath directly
11108 hardcode_libdir_flag_spec='-rpath $libdir'
11109 fi
11110 archive_cmds_need_lc='no'
11111 hardcode_libdir_separator=:
11112 ;;
11113
11114 solaris*)
11115 no_undefined_flag=' -z defs'
11116 if test "$GCC" = yes; then
11117 wlarc='${wl}'
11118 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11119 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11120 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11121 else
11122 case `$CC -V 2>&1` in
11123 *"Compilers 5.0"*)
11124 wlarc=''
11125 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11126 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11127 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11128 ;;
11129 *)
11130 wlarc='${wl}'
11131 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11132 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11133 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11134 ;;
11135 esac
11136 fi
11137 hardcode_libdir_flag_spec='-R$libdir'
11138 hardcode_shlibpath_var=no
11139 case $host_os in
11140 solaris2.[0-5] | solaris2.[0-5].*) ;;
11141 *)
11142 # The compiler driver will combine and reorder linker options,
11143 # but understands `-z linker_flag'. GCC discards it without `$wl',
11144 # but is careful enough not to reorder.
11145 # Supported since Solaris 2.6 (maybe 2.5.1?)
11146 if test "$GCC" = yes; then
11147 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11148 else
11149 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11150 fi
11151 ;;
11152 esac
11153 link_all_deplibs=yes
11154 ;;
11155
11156 sunos4*)
11157 if test "x$host_vendor" = xsequent; then
11158 # Use $CC to link under sequent, because it throws in some extra .o
11159 # files that make .init and .fini sections work.
11160 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11161 else
11162 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11163 fi
11164 hardcode_libdir_flag_spec='-L$libdir'
11165 hardcode_direct=yes
11166 hardcode_minus_L=yes
11167 hardcode_shlibpath_var=no
11168 ;;
11169
11170 sysv4)
11171 case $host_vendor in
11172 sni)
11173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11174 hardcode_direct=yes # is this really true???
11175 ;;
11176 siemens)
11177 ## LD is ld it makes a PLAMLIB
11178 ## CC just makes a GrossModule.
11179 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11180 reload_cmds='$CC -r -o $output$reload_objs'
11181 hardcode_direct=no
11182 ;;
11183 motorola)
11184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11185 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11186 ;;
11187 esac
11188 runpath_var='LD_RUN_PATH'
11189 hardcode_shlibpath_var=no
11190 ;;
11191
11192 sysv4.3*)
11193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11194 hardcode_shlibpath_var=no
11195 export_dynamic_flag_spec='-Bexport'
11196 ;;
11197
11198 sysv4*MP*)
11199 if test -d /usr/nec; then
11200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11201 hardcode_shlibpath_var=no
11202 runpath_var=LD_RUN_PATH
11203 hardcode_runpath_var=yes
11204 ld_shlibs=yes
11205 fi
11206 ;;
11207
11208 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11209 no_undefined_flag='${wl}-z,text'
11210 archive_cmds_need_lc=no
11211 hardcode_shlibpath_var=no
11212 runpath_var='LD_RUN_PATH'
11213
11214 if test "$GCC" = yes; then
11215 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11216 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11217 else
11218 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11219 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11220 fi
11221 ;;
11222
11223 sysv5* | sco3.2v5* | sco5v6*)
11224 # Note: We can NOT use -z defs as we might desire, because we do not
11225 # link with -lc, and that would cause any symbols used from libc to
11226 # always be unresolved, which means just about no library would
11227 # ever link correctly. If we're not using GNU ld we use -z text
11228 # though, which does catch some bad symbols but isn't as heavy-handed
11229 # as -z defs.
11230 no_undefined_flag='${wl}-z,text'
11231 allow_undefined_flag='${wl}-z,nodefs'
11232 archive_cmds_need_lc=no
11233 hardcode_shlibpath_var=no
11234 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11235 hardcode_libdir_separator=':'
11236 link_all_deplibs=yes
11237 export_dynamic_flag_spec='${wl}-Bexport'
11238 runpath_var='LD_RUN_PATH'
11239
11240 if test "$GCC" = yes; then
11241 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11242 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11243 else
11244 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11245 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11246 fi
11247 ;;
11248
11249 uts4*)
11250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11251 hardcode_libdir_flag_spec='-L$libdir'
11252 hardcode_shlibpath_var=no
11253 ;;
11254
11255 *)
11256 ld_shlibs=no
11257 ;;
11258 esac
11259
11260 if test x$host_vendor = xsni; then
11261 case $host in
11262 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11263 export_dynamic_flag_spec='${wl}-Blargedynsym'
11264 ;;
11265 esac
11266 fi
11267 fi
11268
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11270 $as_echo "$ld_shlibs" >&6; }
11271 test "$ld_shlibs" = no && can_build_shared=no
11272
11273 with_gnu_ld=$with_gnu_ld
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289 #
11290 # Do we need to explicitly link libc?
11291 #
11292 case "x$archive_cmds_need_lc" in
11293 x|xyes)
11294 # Assume -lc should be added
11295 archive_cmds_need_lc=yes
11296
11297 if test "$enable_shared" = yes && test "$GCC" = yes; then
11298 case $archive_cmds in
11299 *'~'*)
11300 # FIXME: we may have to deal with multi-command sequences.
11301 ;;
11302 '$CC '*)
11303 # Test whether the compiler implicitly links with -lc since on some
11304 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11305 # to ld, don't add -lc before -lgcc.
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11307 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11308 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 $RM conftest*
11312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11313
11314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11315 (eval $ac_compile) 2>&5
11316 ac_status=$?
11317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11318 test $ac_status = 0; } 2>conftest.err; then
11319 soname=conftest
11320 lib=conftest
11321 libobjs=conftest.$ac_objext
11322 deplibs=
11323 wl=$lt_prog_compiler_wl
11324 pic_flag=$lt_prog_compiler_pic
11325 compiler_flags=-v
11326 linker_flags=-v
11327 verstring=
11328 output_objdir=.
11329 libname=conftest
11330 lt_save_allow_undefined_flag=$allow_undefined_flag
11331 allow_undefined_flag=
11332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11333 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11334 ac_status=$?
11335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11336 test $ac_status = 0; }
11337 then
11338 lt_cv_archive_cmds_need_lc=no
11339 else
11340 lt_cv_archive_cmds_need_lc=yes
11341 fi
11342 allow_undefined_flag=$lt_save_allow_undefined_flag
11343 else
11344 cat conftest.err 1>&5
11345 fi
11346 $RM conftest*
11347
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11350 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11351 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11352 ;;
11353 esac
11354 fi
11355 ;;
11356 esac
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11515 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11516
11517 if test "$GCC" = yes; then
11518 case $host_os in
11519 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11520 *) lt_awk_arg="/^libraries:/" ;;
11521 esac
11522 case $host_os in
11523 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11524 *) lt_sed_strip_eq="s,=/,/,g" ;;
11525 esac
11526 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11527 case $lt_search_path_spec in
11528 *\;*)
11529 # if the path contains ";" then we assume it to be the separator
11530 # otherwise default to the standard path separator (i.e. ":") - it is
11531 # assumed that no part of a normal pathname contains ";" but that should
11532 # okay in the real world where ";" in dirpaths is itself problematic.
11533 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11534 ;;
11535 *)
11536 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11537 ;;
11538 esac
11539 # Ok, now we have the path, separated by spaces, we can step through it
11540 # and add multilib dir if necessary.
11541 lt_tmp_lt_search_path_spec=
11542 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11543 for lt_sys_path in $lt_search_path_spec; do
11544 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11545 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11546 else
11547 test -d "$lt_sys_path" && \
11548 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11549 fi
11550 done
11551 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11552 BEGIN {RS=" "; FS="/|\n";} {
11553 lt_foo="";
11554 lt_count=0;
11555 for (lt_i = NF; lt_i > 0; lt_i--) {
11556 if ($lt_i != "" && $lt_i != ".") {
11557 if ($lt_i == "..") {
11558 lt_count++;
11559 } else {
11560 if (lt_count == 0) {
11561 lt_foo="/" $lt_i lt_foo;
11562 } else {
11563 lt_count--;
11564 }
11565 }
11566 }
11567 }
11568 if (lt_foo != "") { lt_freq[lt_foo]++; }
11569 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11570 }'`
11571 # AWK program above erroneously prepends '/' to C:/dos/paths
11572 # for these hosts.
11573 case $host_os in
11574 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11575 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11576 esac
11577 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11578 else
11579 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11580 fi
11581 library_names_spec=
11582 libname_spec='lib$name'
11583 soname_spec=
11584 shrext_cmds=".so"
11585 postinstall_cmds=
11586 postuninstall_cmds=
11587 finish_cmds=
11588 finish_eval=
11589 shlibpath_var=
11590 shlibpath_overrides_runpath=unknown
11591 version_type=none
11592 dynamic_linker="$host_os ld.so"
11593 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11594 need_lib_prefix=unknown
11595 hardcode_into_libs=no
11596
11597 # when you set need_version to no, make sure it does not cause -set_version
11598 # flags to be left without arguments
11599 need_version=unknown
11600
11601 case $host_os in
11602 aix3*)
11603 version_type=linux
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11605 shlibpath_var=LIBPATH
11606
11607 # AIX 3 has no versioning support, so we append a major version to the name.
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 ;;
11610
11611 aix[4-9]*)
11612 version_type=linux
11613 need_lib_prefix=no
11614 need_version=no
11615 hardcode_into_libs=yes
11616 if test "$host_cpu" = ia64; then
11617 # AIX 5 supports IA64
11618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 else
11621 # With GCC up to 2.95.x, collect2 would create an import file
11622 # for dependence libraries. The import file would start with
11623 # the line `#! .'. This would cause the generated library to
11624 # depend on `.', always an invalid library. This was fixed in
11625 # development snapshots of GCC prior to 3.0.
11626 case $host_os in
11627 aix4 | aix4.[01] | aix4.[01].*)
11628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11629 echo ' yes '
11630 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11631 :
11632 else
11633 can_build_shared=no
11634 fi
11635 ;;
11636 esac
11637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11638 # soname into executable. Probably we can add versioning support to
11639 # collect2, so additional links can be useful in future.
11640 if test "$aix_use_runtimelinking" = yes; then
11641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11642 # instead of lib<name>.a to let people know that these are not
11643 # typical AIX shared libraries.
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 else
11646 # We preserve .a as extension for shared libraries through AIX4.2
11647 # and later when we are not doing run time linking.
11648 library_names_spec='${libname}${release}.a $libname.a'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11650 fi
11651 shlibpath_var=LIBPATH
11652 fi
11653 ;;
11654
11655 amigaos*)
11656 case $host_cpu in
11657 powerpc)
11658 # Since July 2007 AmigaOS4 officially supports .so libraries.
11659 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11661 ;;
11662 m68k)
11663 library_names_spec='$libname.ixlibrary $libname.a'
11664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11665 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'
11666 ;;
11667 esac
11668 ;;
11669
11670 beos*)
11671 library_names_spec='${libname}${shared_ext}'
11672 dynamic_linker="$host_os ld.so"
11673 shlibpath_var=LIBRARY_PATH
11674 ;;
11675
11676 bsdi[45]*)
11677 version_type=linux
11678 need_version=no
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11682 shlibpath_var=LD_LIBRARY_PATH
11683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11685 # the default ld.so.conf also contains /usr/contrib/lib and
11686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11687 # libtool to hard-code these into programs
11688 ;;
11689
11690 cygwin* | mingw* | pw32* | cegcc*)
11691 version_type=windows
11692 shrext_cmds=".dll"
11693 need_version=no
11694 need_lib_prefix=no
11695
11696 case $GCC,$host_os in
11697 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11698 library_names_spec='$libname.dll.a'
11699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11700 postinstall_cmds='base_file=`basename \${file}`~
11701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11702 dldir=$destdir/`dirname \$dlpath`~
11703 test -d \$dldir || mkdir -p \$dldir~
11704 $install_prog $dir/$dlname \$dldir/$dlname~
11705 chmod a+x \$dldir/$dlname~
11706 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11707 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11708 fi'
11709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11710 dlpath=$dir/\$dldll~
11711 $RM \$dlpath'
11712 shlibpath_overrides_runpath=yes
11713
11714 case $host_os in
11715 cygwin*)
11716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11718
11719 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11720 ;;
11721 mingw* | cegcc*)
11722 # MinGW DLLs use traditional 'lib' prefix
11723 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11724 ;;
11725 pw32*)
11726 # pw32 DLLs use 'pw' prefix rather than 'lib'
11727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11728 ;;
11729 esac
11730 ;;
11731
11732 *)
11733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11734 ;;
11735 esac
11736 dynamic_linker='Win32 ld.exe'
11737 # FIXME: first we should search . and the directory the executable is in
11738 shlibpath_var=PATH
11739 ;;
11740
11741 darwin* | rhapsody*)
11742 dynamic_linker="$host_os dyld"
11743 version_type=darwin
11744 need_lib_prefix=no
11745 need_version=no
11746 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11747 soname_spec='${libname}${release}${major}$shared_ext'
11748 shlibpath_overrides_runpath=yes
11749 shlibpath_var=DYLD_LIBRARY_PATH
11750 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11751
11752 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11753 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11754 ;;
11755
11756 dgux*)
11757 version_type=linux
11758 need_lib_prefix=no
11759 need_version=no
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 ;;
11764
11765 freebsd* | dragonfly*)
11766 # DragonFly does not have aout. When/if they implement a new
11767 # versioning mechanism, adjust this.
11768 if test -x /usr/bin/objformat; then
11769 objformat=`/usr/bin/objformat`
11770 else
11771 case $host_os in
11772 freebsd[23].*) objformat=aout ;;
11773 *) objformat=elf ;;
11774 esac
11775 fi
11776 version_type=freebsd-$objformat
11777 case $version_type in
11778 freebsd-elf*)
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11780 need_version=no
11781 need_lib_prefix=no
11782 ;;
11783 freebsd-*)
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11785 need_version=yes
11786 ;;
11787 esac
11788 shlibpath_var=LD_LIBRARY_PATH
11789 case $host_os in
11790 freebsd2.*)
11791 shlibpath_overrides_runpath=yes
11792 ;;
11793 freebsd3.[01]* | freebsdelf3.[01]*)
11794 shlibpath_overrides_runpath=yes
11795 hardcode_into_libs=yes
11796 ;;
11797 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11798 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11799 shlibpath_overrides_runpath=no
11800 hardcode_into_libs=yes
11801 ;;
11802 *) # from 4.6 on, and DragonFly
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11805 ;;
11806 esac
11807 ;;
11808
11809 haiku*)
11810 version_type=linux
11811 need_lib_prefix=no
11812 need_version=no
11813 dynamic_linker="$host_os runtime_loader"
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 shlibpath_var=LIBRARY_PATH
11817 shlibpath_overrides_runpath=yes
11818 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11819 hardcode_into_libs=yes
11820 ;;
11821
11822 hpux9* | hpux10* | hpux11*)
11823 # Give a soname corresponding to the major version so that dld.sl refuses to
11824 # link against other versions.
11825 version_type=sunos
11826 need_lib_prefix=no
11827 need_version=no
11828 case $host_cpu in
11829 ia64*)
11830 shrext_cmds='.so'
11831 hardcode_into_libs=yes
11832 dynamic_linker="$host_os dld.so"
11833 shlibpath_var=LD_LIBRARY_PATH
11834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836 soname_spec='${libname}${release}${shared_ext}$major'
11837 if test "X$HPUX_IA64_MODE" = X32; then
11838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11839 else
11840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11841 fi
11842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11843 ;;
11844 hppa*64*)
11845 shrext_cmds='.sl'
11846 hardcode_into_libs=yes
11847 dynamic_linker="$host_os dld.sl"
11848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851 soname_spec='${libname}${release}${shared_ext}$major'
11852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11854 ;;
11855 *)
11856 shrext_cmds='.sl'
11857 dynamic_linker="$host_os dld.sl"
11858 shlibpath_var=SHLIB_PATH
11859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 ;;
11863 esac
11864 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11865 postinstall_cmds='chmod 555 $lib'
11866 # or fails outright, so override atomically:
11867 install_override_mode=555
11868 ;;
11869
11870 interix[3-9]*)
11871 version_type=linux
11872 need_lib_prefix=no
11873 need_version=no
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=no
11879 hardcode_into_libs=yes
11880 ;;
11881
11882 irix5* | irix6* | nonstopux*)
11883 case $host_os in
11884 nonstopux*) version_type=nonstopux ;;
11885 *)
11886 if test "$lt_cv_prog_gnu_ld" = yes; then
11887 version_type=linux
11888 else
11889 version_type=irix
11890 fi ;;
11891 esac
11892 need_lib_prefix=no
11893 need_version=no
11894 soname_spec='${libname}${release}${shared_ext}$major'
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11896 case $host_os in
11897 irix5* | nonstopux*)
11898 libsuff= shlibsuff=
11899 ;;
11900 *)
11901 case $LD in # libtool.m4 will add one of these switches to LD
11902 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11903 libsuff= shlibsuff= libmagic=32-bit;;
11904 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11905 libsuff=32 shlibsuff=N32 libmagic=N32;;
11906 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11907 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11908 *) libsuff= shlibsuff= libmagic=never-match;;
11909 esac
11910 ;;
11911 esac
11912 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11913 shlibpath_overrides_runpath=no
11914 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11915 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11916 hardcode_into_libs=yes
11917 ;;
11918
11919 # No shared lib support for Linux oldld, aout, or coff.
11920 linux*oldld* | linux*aout* | linux*coff*)
11921 dynamic_linker=no
11922 ;;
11923
11924 # This must be Linux ELF.
11925
11926 # uclinux* changes (here and below) have been submitted to the libtool
11927 # project, but have not yet been accepted: they are GCC-local changes
11928 # for the time being. (See
11929 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11930 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11931 version_type=linux
11932 need_lib_prefix=no
11933 need_version=no
11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11935 soname_spec='${libname}${release}${shared_ext}$major'
11936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=no
11939
11940 # Some binutils ld are patched to set DT_RUNPATH
11941 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 lt_cv_shlibpath_overrides_runpath=no
11945 save_LDFLAGS=$LDFLAGS
11946 save_libdir=$libdir
11947 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11948 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11949 if test x$gcc_no_link = xyes; then
11950 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11951 fi
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11954
11955 int
11956 main ()
11957 {
11958
11959 ;
11960 return 0;
11961 }
11962 _ACEOF
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11965 lt_cv_shlibpath_overrides_runpath=yes
11966 fi
11967 fi
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 LDFLAGS=$save_LDFLAGS
11971 libdir=$save_libdir
11972
11973 fi
11974
11975 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11976
11977 # This implies no fast_install, which is unacceptable.
11978 # Some rework will be needed to allow for fast_install
11979 # before this can be enabled.
11980 hardcode_into_libs=yes
11981
11982 # Append ld.so.conf contents to the search path
11983 if test -f /etc/ld.so.conf; then
11984 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' ' '`
11985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11986 fi
11987
11988 # We used to test for /lib/ld.so.1 and disable shared libraries on
11989 # powerpc, because MkLinux only supported shared libraries with the
11990 # GNU dynamic linker. Since this was broken with cross compilers,
11991 # most powerpc-linux boxes support dynamic linking these days and
11992 # people can always --disable-shared, the test was removed, and we
11993 # assume the GNU/Linux dynamic linker is in use.
11994 dynamic_linker='GNU/Linux ld.so'
11995 ;;
11996
11997 netbsd*)
11998 version_type=sunos
11999 need_lib_prefix=no
12000 need_version=no
12001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12004 dynamic_linker='NetBSD (a.out) ld.so'
12005 else
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 dynamic_linker='NetBSD ld.elf_so'
12009 fi
12010 shlibpath_var=LD_LIBRARY_PATH
12011 shlibpath_overrides_runpath=yes
12012 hardcode_into_libs=yes
12013 ;;
12014
12015 newsos6)
12016 version_type=linux
12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12018 shlibpath_var=LD_LIBRARY_PATH
12019 shlibpath_overrides_runpath=yes
12020 ;;
12021
12022 *nto* | *qnx*)
12023 version_type=qnx
12024 need_lib_prefix=no
12025 need_version=no
12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12027 soname_spec='${libname}${release}${shared_ext}$major'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 shlibpath_overrides_runpath=no
12030 hardcode_into_libs=yes
12031 dynamic_linker='ldqnx.so'
12032 ;;
12033
12034 openbsd*)
12035 version_type=sunos
12036 sys_lib_dlsearch_path_spec="/usr/lib"
12037 need_lib_prefix=no
12038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12039 case $host_os in
12040 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12041 *) need_version=no ;;
12042 esac
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12045 shlibpath_var=LD_LIBRARY_PATH
12046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12047 case $host_os in
12048 openbsd2.[89] | openbsd2.[89].*)
12049 shlibpath_overrides_runpath=no
12050 ;;
12051 *)
12052 shlibpath_overrides_runpath=yes
12053 ;;
12054 esac
12055 else
12056 shlibpath_overrides_runpath=yes
12057 fi
12058 ;;
12059
12060 os2*)
12061 libname_spec='$name'
12062 shrext_cmds=".dll"
12063 need_lib_prefix=no
12064 library_names_spec='$libname${shared_ext} $libname.a'
12065 dynamic_linker='OS/2 ld.exe'
12066 shlibpath_var=LIBPATH
12067 ;;
12068
12069 osf3* | osf4* | osf5*)
12070 version_type=osf
12071 need_lib_prefix=no
12072 need_version=no
12073 soname_spec='${libname}${release}${shared_ext}$major'
12074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12078 ;;
12079
12080 rdos*)
12081 dynamic_linker=no
12082 ;;
12083
12084 solaris*)
12085 version_type=linux
12086 need_lib_prefix=no
12087 need_version=no
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=yes
12092 hardcode_into_libs=yes
12093 # ldd complains unless libraries are executable
12094 postinstall_cmds='chmod +x $lib'
12095 ;;
12096
12097 sunos4*)
12098 version_type=sunos
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12101 shlibpath_var=LD_LIBRARY_PATH
12102 shlibpath_overrides_runpath=yes
12103 if test "$with_gnu_ld" = yes; then
12104 need_lib_prefix=no
12105 fi
12106 need_version=yes
12107 ;;
12108
12109 sysv4 | sysv4.3*)
12110 version_type=linux
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12112 soname_spec='${libname}${release}${shared_ext}$major'
12113 shlibpath_var=LD_LIBRARY_PATH
12114 case $host_vendor in
12115 sni)
12116 shlibpath_overrides_runpath=no
12117 need_lib_prefix=no
12118 runpath_var=LD_RUN_PATH
12119 ;;
12120 siemens)
12121 need_lib_prefix=no
12122 ;;
12123 motorola)
12124 need_lib_prefix=no
12125 need_version=no
12126 shlibpath_overrides_runpath=no
12127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12128 ;;
12129 esac
12130 ;;
12131
12132 sysv4*MP*)
12133 if test -d /usr/nec ;then
12134 version_type=linux
12135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12136 soname_spec='$libname${shared_ext}.$major'
12137 shlibpath_var=LD_LIBRARY_PATH
12138 fi
12139 ;;
12140
12141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12142 version_type=freebsd-elf
12143 need_lib_prefix=no
12144 need_version=no
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12146 soname_spec='${libname}${release}${shared_ext}$major'
12147 shlibpath_var=LD_LIBRARY_PATH
12148 shlibpath_overrides_runpath=yes
12149 hardcode_into_libs=yes
12150 if test "$with_gnu_ld" = yes; then
12151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12152 else
12153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12154 case $host_os in
12155 sco3.2v5*)
12156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12157 ;;
12158 esac
12159 fi
12160 sys_lib_dlsearch_path_spec='/usr/lib'
12161 ;;
12162
12163 tpf*)
12164 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12165 version_type=linux
12166 need_lib_prefix=no
12167 need_version=no
12168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=no
12171 hardcode_into_libs=yes
12172 ;;
12173
12174 uts4*)
12175 version_type=linux
12176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12177 soname_spec='${libname}${release}${shared_ext}$major'
12178 shlibpath_var=LD_LIBRARY_PATH
12179 ;;
12180
12181 # Shared libraries for VwWorks, >= 7 only at this stage
12182 # and (fpic) still incompatible with "large" code models
12183 # in a few configurations. Only for RTP mode in any case,
12184 # and upon explicit request at configure time.
12185 vxworks7*)
12186 dynamic_linker=no
12187 case ${with_multisubdir}-${enable_shared} in
12188 *large*)
12189 ;;
12190 *mrtp*-yes)
12191 version_type=linux
12192 need_lib_prefix=no
12193 need_version=no
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 dynamic_linker="$host_os module_loader"
12197 ;;
12198 esac
12199 ;;
12200 *)
12201 dynamic_linker=no
12202 ;;
12203 esac
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12205 $as_echo "$dynamic_linker" >&6; }
12206 test "$dynamic_linker" = no && can_build_shared=no
12207
12208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12209 if test "$GCC" = yes; then
12210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12211 fi
12212
12213 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12214 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12215 fi
12216 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12217 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12218 fi
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12313 hardcode_action=
12314 if test -n "$hardcode_libdir_flag_spec" ||
12315 test -n "$runpath_var" ||
12316 test "X$hardcode_automatic" = "Xyes" ; then
12317
12318 # We can hardcode non-existent directories.
12319 if test "$hardcode_direct" != no &&
12320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12321 # have to relink, otherwise we might link with an installed library
12322 # when we should be linking with a yet-to-be-installed one
12323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12324 test "$hardcode_minus_L" != no; then
12325 # Linking always hardcodes the temporary library directory.
12326 hardcode_action=relink
12327 else
12328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12329 hardcode_action=immediate
12330 fi
12331 else
12332 # We cannot hardcode anything, or else we can only hardcode existing
12333 # directories.
12334 hardcode_action=unsupported
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12337 $as_echo "$hardcode_action" >&6; }
12338
12339 if test "$hardcode_action" = relink ||
12340 test "$inherit_rpath" = yes; then
12341 # Fast installation is not supported
12342 enable_fast_install=no
12343 elif test "$shlibpath_overrides_runpath" = yes ||
12344 test "$enable_shared" = no; then
12345 # Fast installation is not necessary
12346 enable_fast_install=needless
12347 fi
12348
12349
12350
12351
12352
12353
12354 if test "x$enable_dlopen" != xyes; then
12355 enable_dlopen=unknown
12356 enable_dlopen_self=unknown
12357 enable_dlopen_self_static=unknown
12358 else
12359 lt_cv_dlopen=no
12360 lt_cv_dlopen_libs=
12361
12362 case $host_os in
12363 beos*)
12364 lt_cv_dlopen="load_add_on"
12365 lt_cv_dlopen_libs=
12366 lt_cv_dlopen_self=yes
12367 ;;
12368
12369 mingw* | pw32* | cegcc*)
12370 lt_cv_dlopen="LoadLibrary"
12371 lt_cv_dlopen_libs=
12372 ;;
12373
12374 cygwin*)
12375 lt_cv_dlopen="dlopen"
12376 lt_cv_dlopen_libs=
12377 ;;
12378
12379 darwin*)
12380 # if libdl is installed we need to link against it
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12382 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12383 if ${ac_cv_lib_dl_dlopen+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-ldl $LIBS"
12388 if test x$gcc_no_link = xyes; then
12389 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12390 fi
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 char dlopen ();
12401 int
12402 main ()
12403 {
12404 return dlopen ();
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 if ac_fn_c_try_link "$LINENO"; then :
12410 ac_cv_lib_dl_dlopen=yes
12411 else
12412 ac_cv_lib_dl_dlopen=no
12413 fi
12414 rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12419 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12420 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12422 else
12423
12424 lt_cv_dlopen="dyld"
12425 lt_cv_dlopen_libs=
12426 lt_cv_dlopen_self=yes
12427
12428 fi
12429
12430 ;;
12431
12432 *)
12433 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12434 if test "x$ac_cv_func_shl_load" = xyes; then :
12435 lt_cv_dlopen="shl_load"
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12438 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12439 if ${ac_cv_lib_dld_shl_load+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 ac_check_lib_save_LIBS=$LIBS
12443 LIBS="-ldld $LIBS"
12444 if test x$gcc_no_link = xyes; then
12445 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12446 fi
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449
12450 /* Override any GCC internal prototype to avoid an error.
12451 Use char because int might match the return type of a GCC
12452 builtin and then its argument prototype would still apply. */
12453 #ifdef __cplusplus
12454 extern "C"
12455 #endif
12456 char shl_load ();
12457 int
12458 main ()
12459 {
12460 return shl_load ();
12461 ;
12462 return 0;
12463 }
12464 _ACEOF
12465 if ac_fn_c_try_link "$LINENO"; then :
12466 ac_cv_lib_dld_shl_load=yes
12467 else
12468 ac_cv_lib_dld_shl_load=no
12469 fi
12470 rm -f core conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext conftest.$ac_ext
12472 LIBS=$ac_check_lib_save_LIBS
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12475 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12476 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12477 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12478 else
12479 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12480 if test "x$ac_cv_func_dlopen" = xyes; then :
12481 lt_cv_dlopen="dlopen"
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12484 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12485 if ${ac_cv_lib_dl_dlopen+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 ac_check_lib_save_LIBS=$LIBS
12489 LIBS="-ldl $LIBS"
12490 if test x$gcc_no_link = xyes; then
12491 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12492 fi
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495
12496 /* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 char dlopen ();
12503 int
12504 main ()
12505 {
12506 return dlopen ();
12507 ;
12508 return 0;
12509 }
12510 _ACEOF
12511 if ac_fn_c_try_link "$LINENO"; then :
12512 ac_cv_lib_dl_dlopen=yes
12513 else
12514 ac_cv_lib_dl_dlopen=no
12515 fi
12516 rm -f core conftest.err conftest.$ac_objext \
12517 conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12519 fi
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12521 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12522 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12526 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12527 if ${ac_cv_lib_svld_dlopen+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-lsvld $LIBS"
12532 if test x$gcc_no_link = xyes; then
12533 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12534 fi
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12537
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 char dlopen ();
12545 int
12546 main ()
12547 {
12548 return dlopen ();
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_link "$LINENO"; then :
12554 ac_cv_lib_svld_dlopen=yes
12555 else
12556 ac_cv_lib_svld_dlopen=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12563 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12564 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12568 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12569 if ${ac_cv_lib_dld_dld_link+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 ac_check_lib_save_LIBS=$LIBS
12573 LIBS="-ldld $LIBS"
12574 if test x$gcc_no_link = xyes; then
12575 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12576 fi
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12583 #ifdef __cplusplus
12584 extern "C"
12585 #endif
12586 char dld_link ();
12587 int
12588 main ()
12589 {
12590 return dld_link ();
12591 ;
12592 return 0;
12593 }
12594 _ACEOF
12595 if ac_fn_c_try_link "$LINENO"; then :
12596 ac_cv_lib_dld_dld_link=yes
12597 else
12598 ac_cv_lib_dld_dld_link=no
12599 fi
12600 rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602 LIBS=$ac_check_lib_save_LIBS
12603 fi
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12605 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12606 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12607 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12608 fi
12609
12610
12611 fi
12612
12613
12614 fi
12615
12616
12617 fi
12618
12619
12620 fi
12621
12622
12623 fi
12624
12625 ;;
12626 esac
12627
12628 if test "x$lt_cv_dlopen" != xno; then
12629 enable_dlopen=yes
12630 else
12631 enable_dlopen=no
12632 fi
12633
12634 case $lt_cv_dlopen in
12635 dlopen)
12636 save_CPPFLAGS="$CPPFLAGS"
12637 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12638
12639 save_LDFLAGS="$LDFLAGS"
12640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12641
12642 save_LIBS="$LIBS"
12643 LIBS="$lt_cv_dlopen_libs $LIBS"
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12646 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12647 if ${lt_cv_dlopen_self+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test "$cross_compiling" = yes; then :
12651 lt_cv_dlopen_self=cross
12652 else
12653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12654 lt_status=$lt_dlunknown
12655 cat > conftest.$ac_ext <<_LT_EOF
12656 #line 12656 "configure"
12657 #include "confdefs.h"
12658
12659 #if HAVE_DLFCN_H
12660 #include <dlfcn.h>
12661 #endif
12662
12663 #include <stdio.h>
12664
12665 #ifdef RTLD_GLOBAL
12666 # define LT_DLGLOBAL RTLD_GLOBAL
12667 #else
12668 # ifdef DL_GLOBAL
12669 # define LT_DLGLOBAL DL_GLOBAL
12670 # else
12671 # define LT_DLGLOBAL 0
12672 # endif
12673 #endif
12674
12675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12676 find out it does not work in some platform. */
12677 #ifndef LT_DLLAZY_OR_NOW
12678 # ifdef RTLD_LAZY
12679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12680 # else
12681 # ifdef DL_LAZY
12682 # define LT_DLLAZY_OR_NOW DL_LAZY
12683 # else
12684 # ifdef RTLD_NOW
12685 # define LT_DLLAZY_OR_NOW RTLD_NOW
12686 # else
12687 # ifdef DL_NOW
12688 # define LT_DLLAZY_OR_NOW DL_NOW
12689 # else
12690 # define LT_DLLAZY_OR_NOW 0
12691 # endif
12692 # endif
12693 # endif
12694 # endif
12695 #endif
12696
12697 /* When -fvisbility=hidden is used, assume the code has been annotated
12698 correspondingly for the symbols needed. */
12699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12700 void fnord () __attribute__((visibility("default")));
12701 #endif
12702
12703 void fnord () { int i=42; }
12704 int main ()
12705 {
12706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12707 int status = $lt_dlunknown;
12708
12709 if (self)
12710 {
12711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12712 else
12713 {
12714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12715 else puts (dlerror ());
12716 }
12717 /* dlclose (self); */
12718 }
12719 else
12720 puts (dlerror ());
12721
12722 return status;
12723 }
12724 _LT_EOF
12725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12726 (eval $ac_link) 2>&5
12727 ac_status=$?
12728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12730 (./conftest; exit; ) >&5 2>/dev/null
12731 lt_status=$?
12732 case x$lt_status in
12733 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12734 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12735 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12736 esac
12737 else :
12738 # compilation failed
12739 lt_cv_dlopen_self=no
12740 fi
12741 fi
12742 rm -fr conftest*
12743
12744
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12747 $as_echo "$lt_cv_dlopen_self" >&6; }
12748
12749 if test "x$lt_cv_dlopen_self" = xyes; then
12750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12752 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12753 if ${lt_cv_dlopen_self_static+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 if test "$cross_compiling" = yes; then :
12757 lt_cv_dlopen_self_static=cross
12758 else
12759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12760 lt_status=$lt_dlunknown
12761 cat > conftest.$ac_ext <<_LT_EOF
12762 #line 12762 "configure"
12763 #include "confdefs.h"
12764
12765 #if HAVE_DLFCN_H
12766 #include <dlfcn.h>
12767 #endif
12768
12769 #include <stdio.h>
12770
12771 #ifdef RTLD_GLOBAL
12772 # define LT_DLGLOBAL RTLD_GLOBAL
12773 #else
12774 # ifdef DL_GLOBAL
12775 # define LT_DLGLOBAL DL_GLOBAL
12776 # else
12777 # define LT_DLGLOBAL 0
12778 # endif
12779 #endif
12780
12781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12782 find out it does not work in some platform. */
12783 #ifndef LT_DLLAZY_OR_NOW
12784 # ifdef RTLD_LAZY
12785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12786 # else
12787 # ifdef DL_LAZY
12788 # define LT_DLLAZY_OR_NOW DL_LAZY
12789 # else
12790 # ifdef RTLD_NOW
12791 # define LT_DLLAZY_OR_NOW RTLD_NOW
12792 # else
12793 # ifdef DL_NOW
12794 # define LT_DLLAZY_OR_NOW DL_NOW
12795 # else
12796 # define LT_DLLAZY_OR_NOW 0
12797 # endif
12798 # endif
12799 # endif
12800 # endif
12801 #endif
12802
12803 /* When -fvisbility=hidden is used, assume the code has been annotated
12804 correspondingly for the symbols needed. */
12805 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12806 void fnord () __attribute__((visibility("default")));
12807 #endif
12808
12809 void fnord () { int i=42; }
12810 int main ()
12811 {
12812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12813 int status = $lt_dlunknown;
12814
12815 if (self)
12816 {
12817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12818 else
12819 {
12820 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12821 else puts (dlerror ());
12822 }
12823 /* dlclose (self); */
12824 }
12825 else
12826 puts (dlerror ());
12827
12828 return status;
12829 }
12830 _LT_EOF
12831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12832 (eval $ac_link) 2>&5
12833 ac_status=$?
12834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12835 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12836 (./conftest; exit; ) >&5 2>/dev/null
12837 lt_status=$?
12838 case x$lt_status in
12839 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12840 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12841 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12842 esac
12843 else :
12844 # compilation failed
12845 lt_cv_dlopen_self_static=no
12846 fi
12847 fi
12848 rm -fr conftest*
12849
12850
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12853 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12854 fi
12855
12856 CPPFLAGS="$save_CPPFLAGS"
12857 LDFLAGS="$save_LDFLAGS"
12858 LIBS="$save_LIBS"
12859 ;;
12860 esac
12861
12862 case $lt_cv_dlopen_self in
12863 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12864 *) enable_dlopen_self=unknown ;;
12865 esac
12866
12867 case $lt_cv_dlopen_self_static in
12868 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12869 *) enable_dlopen_self_static=unknown ;;
12870 esac
12871 fi
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889 striplib=
12890 old_striplib=
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12892 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12893 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12895 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12897 $as_echo "yes" >&6; }
12898 else
12899 # FIXME - insert some real tests, host_os isn't really good enough
12900 case $host_os in
12901 darwin*)
12902 if test -n "$STRIP" ; then
12903 striplib="$STRIP -x"
12904 old_striplib="$STRIP -S"
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12906 $as_echo "yes" >&6; }
12907 else
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12910 fi
12911 ;;
12912 *)
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 $as_echo "no" >&6; }
12915 ;;
12916 esac
12917 fi
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930 # Report which library types will actually be built
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12932 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12934 $as_echo "$can_build_shared" >&6; }
12935
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12937 $as_echo_n "checking whether to build shared libraries... " >&6; }
12938 test "$can_build_shared" = "no" && enable_shared=no
12939
12940 # On AIX, shared libraries and static libraries use the same namespace, and
12941 # are all built from PIC.
12942 case $host_os in
12943 aix3*)
12944 test "$enable_shared" = yes && enable_static=no
12945 if test -n "$RANLIB"; then
12946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12947 postinstall_cmds='$RANLIB $lib'
12948 fi
12949 ;;
12950
12951 aix[4-9]*)
12952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12953 test "$enable_shared" = yes && enable_static=no
12954 fi
12955 ;;
12956 esac
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12958 $as_echo "$enable_shared" >&6; }
12959
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12961 $as_echo_n "checking whether to build static libraries... " >&6; }
12962 # Make sure either enable_shared or enable_static is yes.
12963 test "$enable_shared" = yes || enable_static=yes
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12965 $as_echo "$enable_static" >&6; }
12966
12967
12968
12969
12970 fi
12971 ac_ext=c
12972 ac_cpp='$CPP $CPPFLAGS'
12973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12976
12977 CC="$lt_save_CC"
12978
12979 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12980 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12981 (test "X$CXX" != "Xg++"))) ; then
12982 ac_ext=cpp
12983 ac_cpp='$CXXCPP $CPPFLAGS'
12984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12988 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12989 if test -z "$CXXCPP"; then
12990 if ${ac_cv_prog_CXXCPP+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 # Double quotes because CXXCPP needs to be expanded
12994 for CXXCPP in "$CXX -E" "/lib/cpp"
12995 do
12996 ac_preproc_ok=false
12997 for ac_cxx_preproc_warn_flag in '' yes
12998 do
12999 # Use a header file that comes with gcc, so configuring glibc
13000 # with a fresh cross-compiler works.
13001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13002 # <limits.h> exists even on freestanding compilers.
13003 # On the NeXT, cc -E runs the code through the compiler's parser,
13004 # not just through cpp. "Syntax error" is here to catch this case.
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007 #ifdef __STDC__
13008 # include <limits.h>
13009 #else
13010 # include <assert.h>
13011 #endif
13012 Syntax error
13013 _ACEOF
13014 if ac_fn_cxx_try_cpp "$LINENO"; then :
13015
13016 else
13017 # Broken: fails on valid input.
13018 continue
13019 fi
13020 rm -f conftest.err conftest.i conftest.$ac_ext
13021
13022 # OK, works on sane cases. Now check whether nonexistent headers
13023 # can be detected and how.
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13026 #include <ac_nonexistent.h>
13027 _ACEOF
13028 if ac_fn_cxx_try_cpp "$LINENO"; then :
13029 # Broken: success on invalid input.
13030 continue
13031 else
13032 # Passes both tests.
13033 ac_preproc_ok=:
13034 break
13035 fi
13036 rm -f conftest.err conftest.i conftest.$ac_ext
13037
13038 done
13039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13040 rm -f conftest.i conftest.err conftest.$ac_ext
13041 if $ac_preproc_ok; then :
13042 break
13043 fi
13044
13045 done
13046 ac_cv_prog_CXXCPP=$CXXCPP
13047
13048 fi
13049 CXXCPP=$ac_cv_prog_CXXCPP
13050 else
13051 ac_cv_prog_CXXCPP=$CXXCPP
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13054 $as_echo "$CXXCPP" >&6; }
13055 ac_preproc_ok=false
13056 for ac_cxx_preproc_warn_flag in '' yes
13057 do
13058 # Use a header file that comes with gcc, so configuring glibc
13059 # with a fresh cross-compiler works.
13060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13061 # <limits.h> exists even on freestanding compilers.
13062 # On the NeXT, cc -E runs the code through the compiler's parser,
13063 # not just through cpp. "Syntax error" is here to catch this case.
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13066 #ifdef __STDC__
13067 # include <limits.h>
13068 #else
13069 # include <assert.h>
13070 #endif
13071 Syntax error
13072 _ACEOF
13073 if ac_fn_cxx_try_cpp "$LINENO"; then :
13074
13075 else
13076 # Broken: fails on valid input.
13077 continue
13078 fi
13079 rm -f conftest.err conftest.i conftest.$ac_ext
13080
13081 # OK, works on sane cases. Now check whether nonexistent headers
13082 # can be detected and how.
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085 #include <ac_nonexistent.h>
13086 _ACEOF
13087 if ac_fn_cxx_try_cpp "$LINENO"; then :
13088 # Broken: success on invalid input.
13089 continue
13090 else
13091 # Passes both tests.
13092 ac_preproc_ok=:
13093 break
13094 fi
13095 rm -f conftest.err conftest.i conftest.$ac_ext
13096
13097 done
13098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13099 rm -f conftest.i conftest.err conftest.$ac_ext
13100 if $ac_preproc_ok; then :
13101
13102 else
13103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13105 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13106 See \`config.log' for more details" "$LINENO" 5; }
13107 fi
13108
13109 ac_ext=c
13110 ac_cpp='$CPP $CPPFLAGS'
13111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13114
13115 else
13116 _lt_caught_CXX_error=yes
13117 fi
13118
13119 ac_ext=cpp
13120 ac_cpp='$CXXCPP $CPPFLAGS'
13121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13124
13125 archive_cmds_need_lc_CXX=no
13126 allow_undefined_flag_CXX=
13127 always_export_symbols_CXX=no
13128 archive_expsym_cmds_CXX=
13129 compiler_needs_object_CXX=no
13130 export_dynamic_flag_spec_CXX=
13131 hardcode_direct_CXX=no
13132 hardcode_direct_absolute_CXX=no
13133 hardcode_libdir_flag_spec_CXX=
13134 hardcode_libdir_flag_spec_ld_CXX=
13135 hardcode_libdir_separator_CXX=
13136 hardcode_minus_L_CXX=no
13137 hardcode_shlibpath_var_CXX=unsupported
13138 hardcode_automatic_CXX=no
13139 inherit_rpath_CXX=no
13140 module_cmds_CXX=
13141 module_expsym_cmds_CXX=
13142 link_all_deplibs_CXX=unknown
13143 old_archive_cmds_CXX=$old_archive_cmds
13144 reload_flag_CXX=$reload_flag
13145 reload_cmds_CXX=$reload_cmds
13146 no_undefined_flag_CXX=
13147 whole_archive_flag_spec_CXX=
13148 enable_shared_with_static_runtimes_CXX=no
13149
13150 # Source file extension for C++ test sources.
13151 ac_ext=cpp
13152
13153 # Object file extension for compiled C++ test sources.
13154 objext=o
13155 objext_CXX=$objext
13156
13157 # No sense in running all these tests if we already determined that
13158 # the CXX compiler isn't working. Some variables (like enable_shared)
13159 # are currently assumed to apply to all compilers on this platform,
13160 # and will be corrupted by setting them based on a non-working compiler.
13161 if test "$_lt_caught_CXX_error" != yes; then
13162 # Code to be used in simple compile tests
13163 lt_simple_compile_test_code="int some_variable = 0;"
13164
13165 # Code to be used in simple link tests
13166 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13167
13168 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13169
13170
13171
13172
13173
13174
13175 # If no C compiler was specified, use CC.
13176 LTCC=${LTCC-"$CC"}
13177
13178 # If no C compiler flags were specified, use CFLAGS.
13179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13180
13181 # Allow CC to be a program name with arguments.
13182 compiler=$CC
13183
13184
13185 # save warnings/boilerplate of simple test code
13186 ac_outfile=conftest.$ac_objext
13187 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13188 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13189 _lt_compiler_boilerplate=`cat conftest.err`
13190 $RM conftest*
13191
13192 ac_outfile=conftest.$ac_objext
13193 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13194 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13195 _lt_linker_boilerplate=`cat conftest.err`
13196 $RM -r conftest*
13197
13198
13199 # Allow CC to be a program name with arguments.
13200 lt_save_CC=$CC
13201 lt_save_LD=$LD
13202 lt_save_GCC=$GCC
13203 GCC=$GXX
13204 lt_save_with_gnu_ld=$with_gnu_ld
13205 lt_save_path_LD=$lt_cv_path_LD
13206 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13207 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13208 else
13209 $as_unset lt_cv_prog_gnu_ld
13210 fi
13211 if test -n "${lt_cv_path_LDCXX+set}"; then
13212 lt_cv_path_LD=$lt_cv_path_LDCXX
13213 else
13214 $as_unset lt_cv_path_LD
13215 fi
13216 test -z "${LDCXX+set}" || LD=$LDCXX
13217 CC=${CXX-"c++"}
13218 compiler=$CC
13219 compiler_CXX=$CC
13220 for cc_temp in $compiler""; do
13221 case $cc_temp in
13222 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13223 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13224 \-*) ;;
13225 *) break;;
13226 esac
13227 done
13228 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13229
13230
13231 if test -n "$compiler"; then
13232 # We don't want -fno-exception when compiling C++ code, so set the
13233 # no_builtin_flag separately
13234 if test "$GXX" = yes; then
13235 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13236 else
13237 lt_prog_compiler_no_builtin_flag_CXX=
13238 fi
13239
13240 if test "$GXX" = yes; then
13241 # Set up default GNU C++ configuration
13242
13243
13244
13245 # Check whether --with-gnu-ld was given.
13246 if test "${with_gnu_ld+set}" = set; then :
13247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13248 else
13249 with_gnu_ld=no
13250 fi
13251
13252 ac_prog=ld
13253 if test "$GCC" = yes; then
13254 # Check if gcc -print-prog-name=ld gives a path.
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13256 $as_echo_n "checking for ld used by $CC... " >&6; }
13257 case $host in
13258 *-*-mingw*)
13259 # gcc leaves a trailing carriage return which upsets mingw
13260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13261 *)
13262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13263 esac
13264 case $ac_prog in
13265 # Accept absolute paths.
13266 [\\/]* | ?:[\\/]*)
13267 re_direlt='/[^/][^/]*/\.\./'
13268 # Canonicalize the pathname of ld
13269 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13270 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13271 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13272 done
13273 test -z "$LD" && LD="$ac_prog"
13274 ;;
13275 "")
13276 # If it fails, then pretend we aren't using GCC.
13277 ac_prog=ld
13278 ;;
13279 *)
13280 # If it is relative, then search for the first ld in PATH.
13281 with_gnu_ld=unknown
13282 ;;
13283 esac
13284 elif test "$with_gnu_ld" = yes; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13286 $as_echo_n "checking for GNU ld... " >&6; }
13287 else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13289 $as_echo_n "checking for non-GNU ld... " >&6; }
13290 fi
13291 if ${lt_cv_path_LD+:} false; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 if test -z "$LD"; then
13295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13296 for ac_dir in $PATH; do
13297 IFS="$lt_save_ifs"
13298 test -z "$ac_dir" && ac_dir=.
13299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13300 lt_cv_path_LD="$ac_dir/$ac_prog"
13301 # Check to see if the program is GNU ld. I'd rather use --version,
13302 # but apparently some variants of GNU ld only accept -v.
13303 # Break only if it was the GNU/non-GNU ld that we prefer.
13304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13305 *GNU* | *'with BFD'*)
13306 test "$with_gnu_ld" != no && break
13307 ;;
13308 *)
13309 test "$with_gnu_ld" != yes && break
13310 ;;
13311 esac
13312 fi
13313 done
13314 IFS="$lt_save_ifs"
13315 else
13316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13317 fi
13318 fi
13319
13320 LD="$lt_cv_path_LD"
13321 if test -n "$LD"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13323 $as_echo "$LD" >&6; }
13324 else
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13327 fi
13328 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13330 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13331 if ${lt_cv_prog_gnu_ld+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13335 case `$LD -v 2>&1 </dev/null` in
13336 *GNU* | *'with BFD'*)
13337 lt_cv_prog_gnu_ld=yes
13338 ;;
13339 *)
13340 lt_cv_prog_gnu_ld=no
13341 ;;
13342 esac
13343 fi
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13345 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13346 with_gnu_ld=$lt_cv_prog_gnu_ld
13347
13348
13349
13350
13351
13352
13353
13354 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13355 # archiving commands below assume that GNU ld is being used.
13356 if test "$with_gnu_ld" = yes; then
13357 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13358 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13359
13360 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13362
13363 # If archive_cmds runs LD, not CC, wlarc should be empty
13364 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13365 # investigate it a little bit more. (MM)
13366 wlarc='${wl}'
13367
13368 # ancient GNU ld didn't support --whole-archive et. al.
13369 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13370 $GREP 'no-whole-archive' > /dev/null; then
13371 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13372 else
13373 whole_archive_flag_spec_CXX=
13374 fi
13375 else
13376 with_gnu_ld=no
13377 wlarc=
13378
13379 # A generic and very simple default shared library creation
13380 # command for GNU C++ for the case where it uses the native
13381 # linker, instead of GNU ld. If possible, this setting should
13382 # overridden to take advantage of the native linker features on
13383 # the platform it is being used on.
13384 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13385 fi
13386
13387 # Commands to make compiler produce verbose output that lists
13388 # what "hidden" libraries, object files and flags are used when
13389 # linking a shared library.
13390 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13391
13392 else
13393 GXX=no
13394 with_gnu_ld=no
13395 wlarc=
13396 fi
13397
13398 # PORTME: fill in a description of your system's C++ link characteristics
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13400 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13401 ld_shlibs_CXX=yes
13402 case $host_os in
13403 aix3*)
13404 # FIXME: insert proper C++ library support
13405 ld_shlibs_CXX=no
13406 ;;
13407 aix[4-9]*)
13408 if test "$host_cpu" = ia64; then
13409 # On IA64, the linker does run time linking by default, so we don't
13410 # have to do anything special.
13411 aix_use_runtimelinking=no
13412 exp_sym_flag='-Bexport'
13413 no_entry_flag=""
13414 else
13415 aix_use_runtimelinking=no
13416
13417 # Test if we are trying to use run time linking or normal
13418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13419 # need to do runtime linking.
13420 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13421 for ld_flag in $LDFLAGS; do
13422 case $ld_flag in
13423 *-brtl*)
13424 aix_use_runtimelinking=yes
13425 break
13426 ;;
13427 esac
13428 done
13429 ;;
13430 esac
13431
13432 exp_sym_flag='-bexport'
13433 no_entry_flag='-bnoentry'
13434 fi
13435
13436 # When large executables or shared objects are built, AIX ld can
13437 # have problems creating the table of contents. If linking a library
13438 # or program results in "error TOC overflow" add -mminimal-toc to
13439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13441
13442 archive_cmds_CXX=''
13443 hardcode_direct_CXX=yes
13444 hardcode_direct_absolute_CXX=yes
13445 hardcode_libdir_separator_CXX=':'
13446 link_all_deplibs_CXX=yes
13447 file_list_spec_CXX='${wl}-f,'
13448
13449 if test "$GXX" = yes; then
13450 case $host_os in aix4.[012]|aix4.[012].*)
13451 # We only want to do this on AIX 4.2 and lower, the check
13452 # below for broken collect2 doesn't work under 4.3+
13453 collect2name=`${CC} -print-prog-name=collect2`
13454 if test -f "$collect2name" &&
13455 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13456 then
13457 # We have reworked collect2
13458 :
13459 else
13460 # We have old collect2
13461 hardcode_direct_CXX=unsupported
13462 # It fails to find uninstalled libraries when the uninstalled
13463 # path is not listed in the libpath. Setting hardcode_minus_L
13464 # to unsupported forces relinking
13465 hardcode_minus_L_CXX=yes
13466 hardcode_libdir_flag_spec_CXX='-L$libdir'
13467 hardcode_libdir_separator_CXX=
13468 fi
13469 esac
13470 shared_flag='-shared'
13471 if test "$aix_use_runtimelinking" = yes; then
13472 shared_flag="$shared_flag "'${wl}-G'
13473 fi
13474 else
13475 # not using gcc
13476 if test "$host_cpu" = ia64; then
13477 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13478 # chokes on -Wl,-G. The following line is correct:
13479 shared_flag='-G'
13480 else
13481 if test "$aix_use_runtimelinking" = yes; then
13482 shared_flag='${wl}-G'
13483 else
13484 shared_flag='${wl}-bM:SRE'
13485 fi
13486 fi
13487 fi
13488
13489 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13490 # It seems that -bexpall does not export symbols beginning with
13491 # underscore (_), so it is better to generate a list of symbols to
13492 # export.
13493 always_export_symbols_CXX=yes
13494 if test "$aix_use_runtimelinking" = yes; then
13495 # Warning - without using the other runtime loading flags (-brtl),
13496 # -berok will link without error, but may produce a broken library.
13497 allow_undefined_flag_CXX='-berok'
13498 # Determine the default libpath from the value encoded in an empty
13499 # executable.
13500 if test x$gcc_no_link = xyes; then
13501 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13502 fi
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505
13506 int
13507 main ()
13508 {
13509
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_cxx_try_link "$LINENO"; then :
13515
13516 lt_aix_libpath_sed='
13517 /Import File Strings/,/^$/ {
13518 /^0/ {
13519 s/^0 *\(.*\)$/\1/
13520 p
13521 }
13522 }'
13523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13524 # Check for a 64-bit object if we didn't find anything.
13525 if test -z "$aix_libpath"; then
13526 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13527 fi
13528 fi
13529 rm -f core conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
13531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13532
13533 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13534
13535 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13536 else
13537 if test "$host_cpu" = ia64; then
13538 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13539 allow_undefined_flag_CXX="-z nodefs"
13540 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13541 else
13542 # Determine the default libpath from the value encoded in an
13543 # empty executable.
13544 if test x$gcc_no_link = xyes; then
13545 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13546 fi
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13549
13550 int
13551 main ()
13552 {
13553
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_cxx_try_link "$LINENO"; then :
13559
13560 lt_aix_libpath_sed='
13561 /Import File Strings/,/^$/ {
13562 /^0/ {
13563 s/^0 *\(.*\)$/\1/
13564 p
13565 }
13566 }'
13567 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13568 # Check for a 64-bit object if we didn't find anything.
13569 if test -z "$aix_libpath"; then
13570 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13571 fi
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13576
13577 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13578 # Warning - without using the other run time loading flags,
13579 # -berok will link without error, but may produce a broken library.
13580 no_undefined_flag_CXX=' ${wl}-bernotok'
13581 allow_undefined_flag_CXX=' ${wl}-berok'
13582 if test "$with_gnu_ld" = yes; then
13583 # We only use this code for GNU lds that support --whole-archive.
13584 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13585 else
13586 # Exported symbols can be pulled into shared objects from archives
13587 whole_archive_flag_spec_CXX='$convenience'
13588 fi
13589 archive_cmds_need_lc_CXX=yes
13590 # This is similar to how AIX traditionally builds its shared
13591 # libraries.
13592 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13593 fi
13594 fi
13595 ;;
13596
13597 beos*)
13598 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13599 allow_undefined_flag_CXX=unsupported
13600 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13601 # support --undefined. This deserves some investigation. FIXME
13602 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603 else
13604 ld_shlibs_CXX=no
13605 fi
13606 ;;
13607
13608 chorus*)
13609 case $cc_basename in
13610 *)
13611 # FIXME: insert proper C++ library support
13612 ld_shlibs_CXX=no
13613 ;;
13614 esac
13615 ;;
13616
13617 cygwin* | mingw* | pw32* | cegcc*)
13618 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13619 # as there is no search path for DLLs.
13620 hardcode_libdir_flag_spec_CXX='-L$libdir'
13621 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13622 allow_undefined_flag_CXX=unsupported
13623 always_export_symbols_CXX=no
13624 enable_shared_with_static_runtimes_CXX=yes
13625
13626 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13627 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13628 # If the export-symbols file already is a .def file (1st line
13629 # is EXPORTS), use it as is; otherwise, prepend...
13630 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13631 cp $export_symbols $output_objdir/$soname.def;
13632 else
13633 echo EXPORTS > $output_objdir/$soname.def;
13634 cat $export_symbols >> $output_objdir/$soname.def;
13635 fi~
13636 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13637 else
13638 ld_shlibs_CXX=no
13639 fi
13640 ;;
13641 darwin* | rhapsody*)
13642
13643
13644
13645 # Publish an arg to allow the user to select that Darwin host (and target)
13646 # libraries should be given install-names like @rpath/libfoo.dylib. This
13647 # requires that the user of the library then adds an 'rpath' to the DSO that
13648 # needs access.
13649 # NOTE: there are defaults below, for systems that support rpaths. The person
13650 # configuring can override the defaults for any system version that supports
13651 # them - they are, however, forced off for system versions without support.
13652 # Check whether --enable-darwin-at-rpath was given.
13653 if test "${enable_darwin_at_rpath+set}" = set; then :
13654 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13655 # This is not supported before macOS 10.5 / Darwin9.
13656 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13657 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13659 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13660 enable_darwin_at_rpath=no
13661 ;;
13662 esac
13663 fi
13664 else
13665 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13666 # As above, before 10.5 / Darwin9 this does not work.
13667 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13668 enable_darwin_at_rpath=no
13669 ;;
13670
13671 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13672 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13673 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13674 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13676 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13677 enable_darwin_at_rpath=yes
13678 ;;
13679 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13680 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13681
13682 esac
13683
13684 fi
13685
13686
13687 archive_cmds_need_lc_CXX=no
13688 hardcode_direct_CXX=no
13689 hardcode_automatic_CXX=yes
13690 hardcode_shlibpath_var_CXX=unsupported
13691 if test "$lt_cv_ld_force_load" = "yes"; then
13692 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13693 else
13694 whole_archive_flag_spec_CXX=''
13695 fi
13696 link_all_deplibs_CXX=yes
13697 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13698 case $cc_basename in
13699 ifort*) _lt_dar_can_shared=yes ;;
13700 *) _lt_dar_can_shared=$GCC ;;
13701 esac
13702 if test "$_lt_dar_can_shared" = "yes"; then
13703 output_verbose_link_cmd=func_echo_all
13704 _lt_install_name='\$rpath/\$soname'
13705 if test "x$enable_darwin_at_rpath" = "xyes"; then
13706 _lt_install_name='@rpath/\$soname'
13707 fi
13708 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13709 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13710 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13711 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13712 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13713 _lt_install_name='\$rpath/\$soname'
13714 if test "x$enable_darwin_at_rpath" = "xyes"; then
13715 _lt_install_name='@rpath/\$soname'
13716 fi
13717 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
13718 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13719 fi
13720
13721 else
13722 ld_shlibs_CXX=no
13723 fi
13724
13725 ;;
13726
13727 dgux*)
13728 case $cc_basename in
13729 ec++*)
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13732 ;;
13733 ghcx*)
13734 # Green Hills C++ Compiler
13735 # FIXME: insert proper C++ library support
13736 ld_shlibs_CXX=no
13737 ;;
13738 *)
13739 # FIXME: insert proper C++ library support
13740 ld_shlibs_CXX=no
13741 ;;
13742 esac
13743 ;;
13744
13745 freebsd2.*)
13746 # C++ shared libraries reported to be fairly broken before
13747 # switch to ELF
13748 ld_shlibs_CXX=no
13749 ;;
13750
13751 freebsd-elf*)
13752 archive_cmds_need_lc_CXX=no
13753 ;;
13754
13755 freebsd* | dragonfly*)
13756 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13757 # conventions
13758 ld_shlibs_CXX=yes
13759 ;;
13760
13761 gnu*)
13762 ;;
13763
13764 haiku*)
13765 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13766 link_all_deplibs_CXX=yes
13767 ;;
13768
13769 hpux9*)
13770 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13771 hardcode_libdir_separator_CXX=:
13772 export_dynamic_flag_spec_CXX='${wl}-E'
13773 hardcode_direct_CXX=yes
13774 hardcode_minus_L_CXX=yes # Not in the search PATH,
13775 # but as the default
13776 # location of the library.
13777
13778 case $cc_basename in
13779 CC*)
13780 # FIXME: insert proper C++ library support
13781 ld_shlibs_CXX=no
13782 ;;
13783 aCC*)
13784 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13785 # Commands to make compiler produce verbose output that lists
13786 # what "hidden" libraries, object files and flags are used when
13787 # linking a shared library.
13788 #
13789 # There doesn't appear to be a way to prevent this compiler from
13790 # explicitly linking system object files so we need to strip them
13791 # from the output so that they don't get included in the library
13792 # dependencies.
13793 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13794 ;;
13795 *)
13796 if test "$GXX" = yes; then
13797 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13798 else
13799 # FIXME: insert proper C++ library support
13800 ld_shlibs_CXX=no
13801 fi
13802 ;;
13803 esac
13804 ;;
13805
13806 hpux10*|hpux11*)
13807 if test $with_gnu_ld = no; then
13808 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13809 hardcode_libdir_separator_CXX=:
13810
13811 case $host_cpu in
13812 hppa*64*|ia64*)
13813 ;;
13814 *)
13815 export_dynamic_flag_spec_CXX='${wl}-E'
13816 ;;
13817 esac
13818 fi
13819 case $host_cpu in
13820 hppa*64*|ia64*)
13821 hardcode_direct_CXX=no
13822 hardcode_shlibpath_var_CXX=no
13823 ;;
13824 *)
13825 hardcode_direct_CXX=yes
13826 hardcode_direct_absolute_CXX=yes
13827 hardcode_minus_L_CXX=yes # Not in the search PATH,
13828 # but as the default
13829 # location of the library.
13830 ;;
13831 esac
13832
13833 case $cc_basename in
13834 CC*)
13835 # FIXME: insert proper C++ library support
13836 ld_shlibs_CXX=no
13837 ;;
13838 aCC*)
13839 case $host_cpu in
13840 hppa*64*)
13841 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13842 ;;
13843 ia64*)
13844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13845 ;;
13846 *)
13847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13848 ;;
13849 esac
13850 # Commands to make compiler produce verbose output that lists
13851 # what "hidden" libraries, object files and flags are used when
13852 # linking a shared library.
13853 #
13854 # There doesn't appear to be a way to prevent this compiler from
13855 # explicitly linking system object files so we need to strip them
13856 # from the output so that they don't get included in the library
13857 # dependencies.
13858 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13859 ;;
13860 *)
13861 if test "$GXX" = yes; then
13862 if test $with_gnu_ld = no; then
13863 case $host_cpu in
13864 hppa*64*)
13865 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13866 ;;
13867 ia64*)
13868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13869 ;;
13870 *)
13871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13872 ;;
13873 esac
13874 fi
13875 else
13876 # FIXME: insert proper C++ library support
13877 ld_shlibs_CXX=no
13878 fi
13879 ;;
13880 esac
13881 ;;
13882
13883 interix[3-9]*)
13884 hardcode_direct_CXX=no
13885 hardcode_shlibpath_var_CXX=no
13886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13887 export_dynamic_flag_spec_CXX='${wl}-E'
13888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13889 # Instead, shared libraries are loaded at an image base (0x10000000 by
13890 # default) and relocated if they conflict, which is a slow very memory
13891 # consuming and fragmenting process. To avoid this, we pick a random,
13892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13894 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13895 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13896 ;;
13897 irix5* | irix6*)
13898 case $cc_basename in
13899 CC*)
13900 # SGI C++
13901 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13902
13903 # Archives containing C++ object files must be created using
13904 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13905 # necessary to make sure instantiated templates are included
13906 # in the archive.
13907 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13908 ;;
13909 *)
13910 if test "$GXX" = yes; then
13911 if test "$with_gnu_ld" = no; then
13912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13913 else
13914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13915 fi
13916 fi
13917 link_all_deplibs_CXX=yes
13918 ;;
13919 esac
13920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13921 hardcode_libdir_separator_CXX=:
13922 inherit_rpath_CXX=yes
13923 ;;
13924
13925 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13926 case $cc_basename in
13927 KCC*)
13928 # Kuck and Associates, Inc. (KAI) C++ Compiler
13929
13930 # KCC will only create a shared library if the output file
13931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13932 # to its proper name (with version) after linking.
13933 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13934 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13935 # Commands to make compiler produce verbose output that lists
13936 # what "hidden" libraries, object files and flags are used when
13937 # linking a shared library.
13938 #
13939 # There doesn't appear to be a way to prevent this compiler from
13940 # explicitly linking system object files so we need to strip them
13941 # from the output so that they don't get included in the library
13942 # dependencies.
13943 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13944
13945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13947
13948 # Archives containing C++ object files must be created using
13949 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13950 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13951 ;;
13952 icpc* | ecpc* )
13953 # Intel C++
13954 with_gnu_ld=yes
13955 # version 8.0 and above of icpc choke on multiply defined symbols
13956 # if we add $predep_objects and $postdep_objects, however 7.1 and
13957 # earlier do not add the objects themselves.
13958 case `$CC -V 2>&1` in
13959 *"Version 7."*)
13960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13961 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13962 ;;
13963 *) # Version 8.0 or newer
13964 tmp_idyn=
13965 case $host_cpu in
13966 ia64*) tmp_idyn=' -i_dynamic';;
13967 esac
13968 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13969 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13970 ;;
13971 esac
13972 archive_cmds_need_lc_CXX=no
13973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13974 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13975 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13976 ;;
13977 pgCC* | pgcpp*)
13978 # Portland Group C++ compiler
13979 case `$CC -V` in
13980 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13981 prelink_cmds_CXX='tpldir=Template.dir~
13982 rm -rf $tpldir~
13983 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13984 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13985 old_archive_cmds_CXX='tpldir=Template.dir~
13986 rm -rf $tpldir~
13987 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13988 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13989 $RANLIB $oldlib'
13990 archive_cmds_CXX='tpldir=Template.dir~
13991 rm -rf $tpldir~
13992 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13993 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13994 archive_expsym_cmds_CXX='tpldir=Template.dir~
13995 rm -rf $tpldir~
13996 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13997 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13998 ;;
13999 *) # Version 6 and above use weak symbols
14000 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14001 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14002 ;;
14003 esac
14004
14005 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14007 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14008 ;;
14009 cxx*)
14010 # Compaq C++
14011 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14012 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14013
14014 runpath_var=LD_RUN_PATH
14015 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14016 hardcode_libdir_separator_CXX=:
14017
14018 # Commands to make compiler produce verbose output that lists
14019 # what "hidden" libraries, object files and flags are used when
14020 # linking a shared library.
14021 #
14022 # There doesn't appear to be a way to prevent this compiler from
14023 # explicitly linking system object files so we need to strip them
14024 # from the output so that they don't get included in the library
14025 # dependencies.
14026 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14027 ;;
14028 xl* | mpixl* | bgxl*)
14029 # IBM XL 8.0 on PPC, with GNU ld
14030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14032 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14033 if test "x$supports_anon_versioning" = xyes; then
14034 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14036 echo "local: *; };" >> $output_objdir/$libname.ver~
14037 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14038 fi
14039 ;;
14040 *)
14041 case `$CC -V 2>&1 | sed 5q` in
14042 *Sun\ C*)
14043 # Sun C++ 5.9
14044 no_undefined_flag_CXX=' -zdefs'
14045 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14046 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14047 hardcode_libdir_flag_spec_CXX='-R$libdir'
14048 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14049 compiler_needs_object_CXX=yes
14050
14051 # Not sure whether something based on
14052 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14053 # would be better.
14054 output_verbose_link_cmd='func_echo_all'
14055
14056 # Archives containing C++ object files must be created using
14057 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14058 # necessary to make sure instantiated templates are included
14059 # in the archive.
14060 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14061 ;;
14062 esac
14063 ;;
14064 esac
14065 ;;
14066
14067 lynxos*)
14068 # FIXME: insert proper C++ library support
14069 ld_shlibs_CXX=no
14070 ;;
14071
14072 m88k*)
14073 # FIXME: insert proper C++ library support
14074 ld_shlibs_CXX=no
14075 ;;
14076
14077 mvs*)
14078 case $cc_basename in
14079 cxx*)
14080 # FIXME: insert proper C++ library support
14081 ld_shlibs_CXX=no
14082 ;;
14083 *)
14084 # FIXME: insert proper C++ library support
14085 ld_shlibs_CXX=no
14086 ;;
14087 esac
14088 ;;
14089
14090 netbsd*)
14091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14092 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14093 wlarc=
14094 hardcode_libdir_flag_spec_CXX='-R$libdir'
14095 hardcode_direct_CXX=yes
14096 hardcode_shlibpath_var_CXX=no
14097 fi
14098 # Workaround some broken pre-1.5 toolchains
14099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14100 ;;
14101
14102 *nto* | *qnx*)
14103 ld_shlibs_CXX=yes
14104 ;;
14105
14106 openbsd2*)
14107 # C++ shared libraries are fairly broken
14108 ld_shlibs_CXX=no
14109 ;;
14110
14111 openbsd*)
14112 if test -f /usr/libexec/ld.so; then
14113 hardcode_direct_CXX=yes
14114 hardcode_shlibpath_var_CXX=no
14115 hardcode_direct_absolute_CXX=yes
14116 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14119 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14120 export_dynamic_flag_spec_CXX='${wl}-E'
14121 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14122 fi
14123 output_verbose_link_cmd=func_echo_all
14124 else
14125 ld_shlibs_CXX=no
14126 fi
14127 ;;
14128
14129 osf3* | osf4* | osf5*)
14130 case $cc_basename in
14131 KCC*)
14132 # Kuck and Associates, Inc. (KAI) C++ Compiler
14133
14134 # KCC will only create a shared library if the output file
14135 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14136 # to its proper name (with version) after linking.
14137 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14138
14139 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14140 hardcode_libdir_separator_CXX=:
14141
14142 # Archives containing C++ object files must be created using
14143 # the KAI C++ compiler.
14144 case $host in
14145 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14146 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14147 esac
14148 ;;
14149 RCC*)
14150 # Rational C++ 2.4.1
14151 # FIXME: insert proper C++ library support
14152 ld_shlibs_CXX=no
14153 ;;
14154 cxx*)
14155 case $host in
14156 osf3*)
14157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14158 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14160 ;;
14161 *)
14162 allow_undefined_flag_CXX=' -expect_unresolved \*'
14163 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14164 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14165 echo "-hidden">> $lib.exp~
14166 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14167 $RM $lib.exp'
14168 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14169 ;;
14170 esac
14171
14172 hardcode_libdir_separator_CXX=:
14173
14174 # Commands to make compiler produce verbose output that lists
14175 # what "hidden" libraries, object files and flags are used when
14176 # linking a shared library.
14177 #
14178 # There doesn't appear to be a way to prevent this compiler from
14179 # explicitly linking system object files so we need to strip them
14180 # from the output so that they don't get included in the library
14181 # dependencies.
14182 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14183 ;;
14184 *)
14185 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14187 case $host in
14188 osf3*)
14189 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14190 ;;
14191 *)
14192 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14193 ;;
14194 esac
14195
14196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14197 hardcode_libdir_separator_CXX=:
14198
14199 # Commands to make compiler produce verbose output that lists
14200 # what "hidden" libraries, object files and flags are used when
14201 # linking a shared library.
14202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14203
14204 else
14205 # FIXME: insert proper C++ library support
14206 ld_shlibs_CXX=no
14207 fi
14208 ;;
14209 esac
14210 ;;
14211
14212 psos*)
14213 # FIXME: insert proper C++ library support
14214 ld_shlibs_CXX=no
14215 ;;
14216
14217 sunos4*)
14218 case $cc_basename in
14219 CC*)
14220 # Sun C++ 4.x
14221 # FIXME: insert proper C++ library support
14222 ld_shlibs_CXX=no
14223 ;;
14224 lcc*)
14225 # Lucid
14226 # FIXME: insert proper C++ library support
14227 ld_shlibs_CXX=no
14228 ;;
14229 *)
14230 # FIXME: insert proper C++ library support
14231 ld_shlibs_CXX=no
14232 ;;
14233 esac
14234 ;;
14235
14236 solaris*)
14237 case $cc_basename in
14238 CC*)
14239 # Sun C++ 4.2, 5.x and Centerline C++
14240 archive_cmds_need_lc_CXX=yes
14241 no_undefined_flag_CXX=' -zdefs'
14242 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14243 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14244 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14245
14246 hardcode_libdir_flag_spec_CXX='-R$libdir'
14247 hardcode_shlibpath_var_CXX=no
14248 case $host_os in
14249 solaris2.[0-5] | solaris2.[0-5].*) ;;
14250 *)
14251 # The compiler driver will combine and reorder linker options,
14252 # but understands `-z linker_flag'.
14253 # Supported since Solaris 2.6 (maybe 2.5.1?)
14254 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14255 ;;
14256 esac
14257 link_all_deplibs_CXX=yes
14258
14259 output_verbose_link_cmd='func_echo_all'
14260
14261 # Archives containing C++ object files must be created using
14262 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14263 # necessary to make sure instantiated templates are included
14264 # in the archive.
14265 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14266 ;;
14267 gcx*)
14268 # Green Hills C++ Compiler
14269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14270
14271 # The C++ compiler must be used to create the archive.
14272 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14273 ;;
14274 *)
14275 # GNU C++ compiler with Solaris linker
14276 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14277 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14278 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14279 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14280 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14281 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14282
14283 # Commands to make compiler produce verbose output that lists
14284 # what "hidden" libraries, object files and flags are used when
14285 # linking a shared library.
14286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14287 else
14288 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14289 # platform.
14290 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14291 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14292 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14293
14294 # Commands to make compiler produce verbose output that lists
14295 # what "hidden" libraries, object files and flags are used when
14296 # linking a shared library.
14297 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14298 fi
14299
14300 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14301 case $host_os in
14302 solaris2.[0-5] | solaris2.[0-5].*) ;;
14303 *)
14304 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14305 ;;
14306 esac
14307 fi
14308 ;;
14309 esac
14310 ;;
14311
14312 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14313 no_undefined_flag_CXX='${wl}-z,text'
14314 archive_cmds_need_lc_CXX=no
14315 hardcode_shlibpath_var_CXX=no
14316 runpath_var='LD_RUN_PATH'
14317
14318 case $cc_basename in
14319 CC*)
14320 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14322 ;;
14323 *)
14324 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14326 ;;
14327 esac
14328 ;;
14329
14330 sysv5* | sco3.2v5* | sco5v6*)
14331 # Note: We can NOT use -z defs as we might desire, because we do not
14332 # link with -lc, and that would cause any symbols used from libc to
14333 # always be unresolved, which means just about no library would
14334 # ever link correctly. If we're not using GNU ld we use -z text
14335 # though, which does catch some bad symbols but isn't as heavy-handed
14336 # as -z defs.
14337 no_undefined_flag_CXX='${wl}-z,text'
14338 allow_undefined_flag_CXX='${wl}-z,nodefs'
14339 archive_cmds_need_lc_CXX=no
14340 hardcode_shlibpath_var_CXX=no
14341 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14342 hardcode_libdir_separator_CXX=':'
14343 link_all_deplibs_CXX=yes
14344 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14345 runpath_var='LD_RUN_PATH'
14346
14347 case $cc_basename in
14348 CC*)
14349 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14351 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14352 '"$old_archive_cmds_CXX"
14353 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14354 '"$reload_cmds_CXX"
14355 ;;
14356 *)
14357 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14359 ;;
14360 esac
14361 ;;
14362
14363 tandem*)
14364 case $cc_basename in
14365 NCC*)
14366 # NonStop-UX NCC 3.20
14367 # FIXME: insert proper C++ library support
14368 ld_shlibs_CXX=no
14369 ;;
14370 *)
14371 # FIXME: insert proper C++ library support
14372 ld_shlibs_CXX=no
14373 ;;
14374 esac
14375 ;;
14376
14377 vxworks*)
14378 # For VxWorks ports, we assume the use of a GNU linker with
14379 # standard elf conventions.
14380 ld_shlibs_CXX=yes
14381 ;;
14382
14383 *)
14384 # FIXME: insert proper C++ library support
14385 ld_shlibs_CXX=no
14386 ;;
14387 esac
14388
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14390 $as_echo "$ld_shlibs_CXX" >&6; }
14391 test "$ld_shlibs_CXX" = no && can_build_shared=no
14392
14393 GCC_CXX="$GXX"
14394 LD_CXX="$LD"
14395
14396 ## CAVEAT EMPTOR:
14397 ## There is no encapsulation within the following macros, do not change
14398 ## the running order or otherwise move them around unless you know exactly
14399 ## what you are doing...
14400 # Dependencies to place before and after the object being linked:
14401 predep_objects_CXX=
14402 postdep_objects_CXX=
14403 predeps_CXX=
14404 postdeps_CXX=
14405 compiler_lib_search_path_CXX=
14406
14407 cat > conftest.$ac_ext <<_LT_EOF
14408 class Foo
14409 {
14410 public:
14411 Foo (void) { a = 0; }
14412 private:
14413 int a;
14414 };
14415 _LT_EOF
14416
14417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14418 (eval $ac_compile) 2>&5
14419 ac_status=$?
14420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14421 test $ac_status = 0; }; then
14422 # Parse the compiler output and extract the necessary
14423 # objects, libraries and library flags.
14424
14425 # Sentinel used to keep track of whether or not we are before
14426 # the conftest object file.
14427 pre_test_object_deps_done=no
14428
14429 for p in `eval "$output_verbose_link_cmd"`; do
14430 case $p in
14431
14432 -L* | -R* | -l*)
14433 # Some compilers place space between "-{L,R}" and the path.
14434 # Remove the space.
14435 if test $p = "-L" ||
14436 test $p = "-R"; then
14437 prev=$p
14438 continue
14439 else
14440 prev=
14441 fi
14442
14443 if test "$pre_test_object_deps_done" = no; then
14444 case $p in
14445 -L* | -R*)
14446 # Internal compiler library paths should come after those
14447 # provided the user. The postdeps already come after the
14448 # user supplied libs so there is no need to process them.
14449 if test -z "$compiler_lib_search_path_CXX"; then
14450 compiler_lib_search_path_CXX="${prev}${p}"
14451 else
14452 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14453 fi
14454 ;;
14455 # The "-l" case would never come before the object being
14456 # linked, so don't bother handling this case.
14457 esac
14458 else
14459 if test -z "$postdeps_CXX"; then
14460 postdeps_CXX="${prev}${p}"
14461 else
14462 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14463 fi
14464 fi
14465 ;;
14466
14467 *.$objext)
14468 # This assumes that the test object file only shows up
14469 # once in the compiler output.
14470 if test "$p" = "conftest.$objext"; then
14471 pre_test_object_deps_done=yes
14472 continue
14473 fi
14474
14475 if test "$pre_test_object_deps_done" = no; then
14476 if test -z "$predep_objects_CXX"; then
14477 predep_objects_CXX="$p"
14478 else
14479 predep_objects_CXX="$predep_objects_CXX $p"
14480 fi
14481 else
14482 if test -z "$postdep_objects_CXX"; then
14483 postdep_objects_CXX="$p"
14484 else
14485 postdep_objects_CXX="$postdep_objects_CXX $p"
14486 fi
14487 fi
14488 ;;
14489
14490 *) ;; # Ignore the rest.
14491
14492 esac
14493 done
14494
14495 # Clean up.
14496 rm -f a.out a.exe
14497 else
14498 echo "libtool.m4: error: problem compiling CXX test program"
14499 fi
14500
14501 $RM -f confest.$objext
14502
14503 # PORTME: override above test on systems where it is broken
14504 case $host_os in
14505 interix[3-9]*)
14506 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14507 # hack all around it, let's just trust "g++" to DTRT.
14508 predep_objects_CXX=
14509 postdep_objects_CXX=
14510 postdeps_CXX=
14511 ;;
14512
14513 linux*)
14514 case `$CC -V 2>&1 | sed 5q` in
14515 *Sun\ C*)
14516 # Sun C++ 5.9
14517
14518 # The more standards-conforming stlport4 library is
14519 # incompatible with the Cstd library. Avoid specifying
14520 # it if it's in CXXFLAGS. Ignore libCrun as
14521 # -library=stlport4 depends on it.
14522 case " $CXX $CXXFLAGS " in
14523 *" -library=stlport4 "*)
14524 solaris_use_stlport4=yes
14525 ;;
14526 esac
14527
14528 if test "$solaris_use_stlport4" != yes; then
14529 postdeps_CXX='-library=Cstd -library=Crun'
14530 fi
14531 ;;
14532 esac
14533 ;;
14534
14535 solaris*)
14536 case $cc_basename in
14537 CC*)
14538 # The more standards-conforming stlport4 library is
14539 # incompatible with the Cstd library. Avoid specifying
14540 # it if it's in CXXFLAGS. Ignore libCrun as
14541 # -library=stlport4 depends on it.
14542 case " $CXX $CXXFLAGS " in
14543 *" -library=stlport4 "*)
14544 solaris_use_stlport4=yes
14545 ;;
14546 esac
14547
14548 # Adding this requires a known-good setup of shared libraries for
14549 # Sun compiler versions before 5.6, else PIC objects from an old
14550 # archive will be linked into the output, leading to subtle bugs.
14551 if test "$solaris_use_stlport4" != yes; then
14552 postdeps_CXX='-library=Cstd -library=Crun'
14553 fi
14554 ;;
14555 esac
14556 ;;
14557 esac
14558
14559
14560 case " $postdeps_CXX " in
14561 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14562 esac
14563 compiler_lib_search_dirs_CXX=
14564 if test -n "${compiler_lib_search_path_CXX}"; then
14565 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14566 fi
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598 lt_prog_compiler_wl_CXX=
14599 lt_prog_compiler_pic_CXX=
14600 lt_prog_compiler_static_CXX=
14601
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14603 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14604
14605 # C++ specific cases for pic, static, wl, etc.
14606 if test "$GXX" = yes; then
14607 lt_prog_compiler_wl_CXX='-Wl,'
14608 lt_prog_compiler_static_CXX='-static'
14609
14610 case $host_os in
14611 aix*)
14612 # All AIX code is PIC.
14613 if test "$host_cpu" = ia64; then
14614 # AIX 5 now supports IA64 processor
14615 lt_prog_compiler_static_CXX='-Bstatic'
14616 fi
14617 lt_prog_compiler_pic_CXX='-fPIC'
14618 ;;
14619
14620 amigaos*)
14621 case $host_cpu in
14622 powerpc)
14623 # see comment about AmigaOS4 .so support
14624 lt_prog_compiler_pic_CXX='-fPIC'
14625 ;;
14626 m68k)
14627 # FIXME: we need at least 68020 code to build shared libraries, but
14628 # adding the `-m68020' flag to GCC prevents building anything better,
14629 # like `-m68040'.
14630 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14631 ;;
14632 esac
14633 ;;
14634
14635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14636 # PIC is the default for these OSes.
14637 ;;
14638 mingw* | cygwin* | os2* | pw32* | cegcc*)
14639 # This hack is so that the source file can tell whether it is being
14640 # built for inclusion in a dll (and should export symbols for example).
14641 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14642 # (--disable-auto-import) libraries
14643 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14644 ;;
14645 darwin* | rhapsody*)
14646 # PIC is the default on this platform
14647 # Common symbols not allowed in MH_DYLIB files
14648 lt_prog_compiler_pic_CXX='-fno-common'
14649 ;;
14650 *djgpp*)
14651 # DJGPP does not support shared libraries at all
14652 lt_prog_compiler_pic_CXX=
14653 ;;
14654 haiku*)
14655 # PIC is the default for Haiku.
14656 # The "-static" flag exists, but is broken.
14657 lt_prog_compiler_static_CXX=
14658 ;;
14659 interix[3-9]*)
14660 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14661 # Instead, we relocate shared libraries at runtime.
14662 ;;
14663 sysv4*MP*)
14664 if test -d /usr/nec; then
14665 lt_prog_compiler_pic_CXX=-Kconform_pic
14666 fi
14667 ;;
14668 hpux*)
14669 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14670 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14671 # sets the default TLS model and affects inlining.
14672 case $host_cpu in
14673 hppa*64*)
14674 ;;
14675 *)
14676 lt_prog_compiler_pic_CXX='-fPIC'
14677 ;;
14678 esac
14679 ;;
14680 *qnx* | *nto*)
14681 # QNX uses GNU C++, but need to define -shared option too, otherwise
14682 # it will coredump.
14683 lt_prog_compiler_pic_CXX='-fPIC -shared'
14684 ;;
14685 *)
14686 lt_prog_compiler_pic_CXX='-fPIC'
14687 ;;
14688 esac
14689 else
14690 case $host_os in
14691 aix[4-9]*)
14692 # All AIX code is PIC.
14693 if test "$host_cpu" = ia64; then
14694 # AIX 5 now supports IA64 processor
14695 lt_prog_compiler_static_CXX='-Bstatic'
14696 else
14697 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14698 fi
14699 ;;
14700 chorus*)
14701 case $cc_basename in
14702 cxch68*)
14703 # Green Hills C++ Compiler
14704 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14705 ;;
14706 esac
14707 ;;
14708 dgux*)
14709 case $cc_basename in
14710 ec++*)
14711 lt_prog_compiler_pic_CXX='-KPIC'
14712 ;;
14713 ghcx*)
14714 # Green Hills C++ Compiler
14715 lt_prog_compiler_pic_CXX='-pic'
14716 ;;
14717 *)
14718 ;;
14719 esac
14720 ;;
14721 freebsd* | dragonfly*)
14722 # FreeBSD uses GNU C++
14723 ;;
14724 hpux9* | hpux10* | hpux11*)
14725 case $cc_basename in
14726 CC*)
14727 lt_prog_compiler_wl_CXX='-Wl,'
14728 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14729 if test "$host_cpu" != ia64; then
14730 lt_prog_compiler_pic_CXX='+Z'
14731 fi
14732 ;;
14733 aCC*)
14734 lt_prog_compiler_wl_CXX='-Wl,'
14735 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14736 case $host_cpu in
14737 hppa*64*|ia64*)
14738 # +Z the default
14739 ;;
14740 *)
14741 lt_prog_compiler_pic_CXX='+Z'
14742 ;;
14743 esac
14744 ;;
14745 *)
14746 ;;
14747 esac
14748 ;;
14749 interix*)
14750 # This is c89, which is MS Visual C++ (no shared libs)
14751 # Anyone wants to do a port?
14752 ;;
14753 irix5* | irix6* | nonstopux*)
14754 case $cc_basename in
14755 CC*)
14756 lt_prog_compiler_wl_CXX='-Wl,'
14757 lt_prog_compiler_static_CXX='-non_shared'
14758 # CC pic flag -KPIC is the default.
14759 ;;
14760 *)
14761 ;;
14762 esac
14763 ;;
14764 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14765 case $cc_basename in
14766 KCC*)
14767 # KAI C++ Compiler
14768 lt_prog_compiler_wl_CXX='--backend -Wl,'
14769 lt_prog_compiler_pic_CXX='-fPIC'
14770 ;;
14771 ecpc* )
14772 # old Intel C++ for x86_64 which still supported -KPIC.
14773 lt_prog_compiler_wl_CXX='-Wl,'
14774 lt_prog_compiler_pic_CXX='-KPIC'
14775 lt_prog_compiler_static_CXX='-static'
14776 ;;
14777 icpc* )
14778 # Intel C++, used to be incompatible with GCC.
14779 # ICC 10 doesn't accept -KPIC any more.
14780 lt_prog_compiler_wl_CXX='-Wl,'
14781 lt_prog_compiler_pic_CXX='-fPIC'
14782 lt_prog_compiler_static_CXX='-static'
14783 ;;
14784 pgCC* | pgcpp*)
14785 # Portland Group C++ compiler
14786 lt_prog_compiler_wl_CXX='-Wl,'
14787 lt_prog_compiler_pic_CXX='-fpic'
14788 lt_prog_compiler_static_CXX='-Bstatic'
14789 ;;
14790 cxx*)
14791 # Compaq C++
14792 # Make sure the PIC flag is empty. It appears that all Alpha
14793 # Linux and Compaq Tru64 Unix objects are PIC.
14794 lt_prog_compiler_pic_CXX=
14795 lt_prog_compiler_static_CXX='-non_shared'
14796 ;;
14797 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14798 # IBM XL 8.0, 9.0 on PPC and BlueGene
14799 lt_prog_compiler_wl_CXX='-Wl,'
14800 lt_prog_compiler_pic_CXX='-qpic'
14801 lt_prog_compiler_static_CXX='-qstaticlink'
14802 ;;
14803 *)
14804 case `$CC -V 2>&1 | sed 5q` in
14805 *Sun\ C*)
14806 # Sun C++ 5.9
14807 lt_prog_compiler_pic_CXX='-KPIC'
14808 lt_prog_compiler_static_CXX='-Bstatic'
14809 lt_prog_compiler_wl_CXX='-Qoption ld '
14810 ;;
14811 esac
14812 ;;
14813 esac
14814 ;;
14815 lynxos*)
14816 ;;
14817 m88k*)
14818 ;;
14819 mvs*)
14820 case $cc_basename in
14821 cxx*)
14822 lt_prog_compiler_pic_CXX='-W c,exportall'
14823 ;;
14824 *)
14825 ;;
14826 esac
14827 ;;
14828 netbsd*)
14829 ;;
14830 *qnx* | *nto*)
14831 # QNX uses GNU C++, but need to define -shared option too, otherwise
14832 # it will coredump.
14833 lt_prog_compiler_pic_CXX='-fPIC -shared'
14834 ;;
14835 osf3* | osf4* | osf5*)
14836 case $cc_basename in
14837 KCC*)
14838 lt_prog_compiler_wl_CXX='--backend -Wl,'
14839 ;;
14840 RCC*)
14841 # Rational C++ 2.4.1
14842 lt_prog_compiler_pic_CXX='-pic'
14843 ;;
14844 cxx*)
14845 # Digital/Compaq C++
14846 lt_prog_compiler_wl_CXX='-Wl,'
14847 # Make sure the PIC flag is empty. It appears that all Alpha
14848 # Linux and Compaq Tru64 Unix objects are PIC.
14849 lt_prog_compiler_pic_CXX=
14850 lt_prog_compiler_static_CXX='-non_shared'
14851 ;;
14852 *)
14853 ;;
14854 esac
14855 ;;
14856 psos*)
14857 ;;
14858 solaris*)
14859 case $cc_basename in
14860 CC*)
14861 # Sun C++ 4.2, 5.x and Centerline C++
14862 lt_prog_compiler_pic_CXX='-KPIC'
14863 lt_prog_compiler_static_CXX='-Bstatic'
14864 lt_prog_compiler_wl_CXX='-Qoption ld '
14865 ;;
14866 gcx*)
14867 # Green Hills C++ Compiler
14868 lt_prog_compiler_pic_CXX='-PIC'
14869 ;;
14870 *)
14871 ;;
14872 esac
14873 ;;
14874 sunos4*)
14875 case $cc_basename in
14876 CC*)
14877 # Sun C++ 4.x
14878 lt_prog_compiler_pic_CXX='-pic'
14879 lt_prog_compiler_static_CXX='-Bstatic'
14880 ;;
14881 lcc*)
14882 # Lucid
14883 lt_prog_compiler_pic_CXX='-pic'
14884 ;;
14885 *)
14886 ;;
14887 esac
14888 ;;
14889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14890 case $cc_basename in
14891 CC*)
14892 lt_prog_compiler_wl_CXX='-Wl,'
14893 lt_prog_compiler_pic_CXX='-KPIC'
14894 lt_prog_compiler_static_CXX='-Bstatic'
14895 ;;
14896 esac
14897 ;;
14898 tandem*)
14899 case $cc_basename in
14900 NCC*)
14901 # NonStop-UX NCC 3.20
14902 lt_prog_compiler_pic_CXX='-KPIC'
14903 ;;
14904 *)
14905 ;;
14906 esac
14907 ;;
14908 vxworks*)
14909 ;;
14910 *)
14911 lt_prog_compiler_can_build_shared_CXX=no
14912 ;;
14913 esac
14914 fi
14915
14916 case $host_os in
14917 # For platforms which do not support PIC, -DPIC is meaningless:
14918 *djgpp*)
14919 lt_prog_compiler_pic_CXX=
14920 ;;
14921 *)
14922 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14923 ;;
14924 esac
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14926 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14927
14928
14929
14930 #
14931 # Check to make sure the PIC flag actually works.
14932 #
14933 if test -n "$lt_prog_compiler_pic_CXX"; then
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14935 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14936 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 lt_cv_prog_compiler_pic_works_CXX=no
14940 ac_outfile=conftest.$ac_objext
14941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14942 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14943 # Insert the option either (1) after the last *FLAGS variable, or
14944 # (2) before a word containing "conftest.", or (3) at the end.
14945 # Note that $ac_compile itself does not contain backslashes and begins
14946 # with a dollar sign (not a hyphen), so the echo should work correctly.
14947 # The option is referenced via a variable to avoid confusing sed.
14948 lt_compile=`echo "$ac_compile" | $SED \
14949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14951 -e 's:$: $lt_compiler_flag:'`
14952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14953 (eval "$lt_compile" 2>conftest.err)
14954 ac_status=$?
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 if (exit $ac_status) && test -s "$ac_outfile"; then
14958 # The compiler can only warn and ignore the option if not recognized
14959 # So say no if there are warnings other than the usual output.
14960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14963 lt_cv_prog_compiler_pic_works_CXX=yes
14964 fi
14965 fi
14966 $RM conftest*
14967
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14970 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14971
14972 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14973 case $lt_prog_compiler_pic_CXX in
14974 "" | " "*) ;;
14975 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14976 esac
14977 else
14978 lt_prog_compiler_pic_CXX=
14979 lt_prog_compiler_can_build_shared_CXX=no
14980 fi
14981
14982 fi
14983
14984
14985
14986 #
14987 # Check to make sure the static flag actually works.
14988 #
14989 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14991 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14992 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 lt_cv_prog_compiler_static_works_CXX=no
14996 save_LDFLAGS="$LDFLAGS"
14997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15000 # The linker can only warn and ignore the option if not recognized
15001 # So say no if there are warnings
15002 if test -s conftest.err; then
15003 # Append any errors to the config.log.
15004 cat conftest.err 1>&5
15005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15007 if diff conftest.exp conftest.er2 >/dev/null; then
15008 lt_cv_prog_compiler_static_works_CXX=yes
15009 fi
15010 else
15011 lt_cv_prog_compiler_static_works_CXX=yes
15012 fi
15013 fi
15014 $RM -r conftest*
15015 LDFLAGS="$save_LDFLAGS"
15016
15017 fi
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15019 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15020
15021 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15022 :
15023 else
15024 lt_prog_compiler_static_CXX=
15025 fi
15026
15027
15028
15029
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15032 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035 lt_cv_prog_compiler_c_o_CXX=no
15036 $RM -r conftest 2>/dev/null
15037 mkdir conftest
15038 cd conftest
15039 mkdir out
15040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15041
15042 lt_compiler_flag="-o out/conftest2.$ac_objext"
15043 # Insert the option either (1) after the last *FLAGS variable, or
15044 # (2) before a word containing "conftest.", or (3) at the end.
15045 # Note that $ac_compile itself does not contain backslashes and begins
15046 # with a dollar sign (not a hyphen), so the echo should work correctly.
15047 lt_compile=`echo "$ac_compile" | $SED \
15048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15050 -e 's:$: $lt_compiler_flag:'`
15051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15052 (eval "$lt_compile" 2>out/conftest.err)
15053 ac_status=$?
15054 cat out/conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15057 then
15058 # The compiler can only warn and ignore the option if not recognized
15059 # So say no if there are warnings
15060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15063 lt_cv_prog_compiler_c_o_CXX=yes
15064 fi
15065 fi
15066 chmod u+w . 2>&5
15067 $RM conftest*
15068 # SGI C++ compiler will create directory out/ii_files/ for
15069 # template instantiation
15070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15071 $RM out/* && rmdir out
15072 cd ..
15073 $RM -r conftest
15074 $RM conftest*
15075
15076 fi
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15078 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15079
15080
15081
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15083 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15084 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 lt_cv_prog_compiler_c_o_CXX=no
15088 $RM -r conftest 2>/dev/null
15089 mkdir conftest
15090 cd conftest
15091 mkdir out
15092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15093
15094 lt_compiler_flag="-o out/conftest2.$ac_objext"
15095 # Insert the option either (1) after the last *FLAGS variable, or
15096 # (2) before a word containing "conftest.", or (3) at the end.
15097 # Note that $ac_compile itself does not contain backslashes and begins
15098 # with a dollar sign (not a hyphen), so the echo should work correctly.
15099 lt_compile=`echo "$ac_compile" | $SED \
15100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15102 -e 's:$: $lt_compiler_flag:'`
15103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15104 (eval "$lt_compile" 2>out/conftest.err)
15105 ac_status=$?
15106 cat out/conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15109 then
15110 # The compiler can only warn and ignore the option if not recognized
15111 # So say no if there are warnings
15112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15115 lt_cv_prog_compiler_c_o_CXX=yes
15116 fi
15117 fi
15118 chmod u+w . 2>&5
15119 $RM conftest*
15120 # SGI C++ compiler will create directory out/ii_files/ for
15121 # template instantiation
15122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15123 $RM out/* && rmdir out
15124 cd ..
15125 $RM -r conftest
15126 $RM conftest*
15127
15128 fi
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15130 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15131
15132
15133
15134
15135 hard_links="nottested"
15136 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15137 # do not overwrite the value of need_locks provided by the user
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15139 $as_echo_n "checking if we can lock with hard links... " >&6; }
15140 hard_links=yes
15141 $RM conftest*
15142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15143 touch conftest.a
15144 ln conftest.a conftest.b 2>&5 || hard_links=no
15145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15147 $as_echo "$hard_links" >&6; }
15148 if test "$hard_links" = no; then
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15150 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15151 need_locks=warn
15152 fi
15153 else
15154 need_locks=no
15155 fi
15156
15157
15158
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15160 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15161
15162 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15163 case $host_os in
15164 aix[4-9]*)
15165 # If we're using GNU nm, then we don't want the "-C" option.
15166 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15167 # Also, AIX nm treats weak defined symbols like other global defined
15168 # symbols, whereas GNU nm marks them as "W".
15169 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15170 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15171 else
15172 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15173 fi
15174 ;;
15175 pw32*)
15176 export_symbols_cmds_CXX="$ltdll_cmds"
15177 ;;
15178 cygwin* | mingw* | cegcc*)
15179 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15180 ;;
15181 *)
15182 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15183 ;;
15184 esac
15185 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15186
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15188 $as_echo "$ld_shlibs_CXX" >&6; }
15189 test "$ld_shlibs_CXX" = no && can_build_shared=no
15190
15191 with_gnu_ld_CXX=$with_gnu_ld
15192
15193
15194
15195
15196
15197
15198 #
15199 # Do we need to explicitly link libc?
15200 #
15201 case "x$archive_cmds_need_lc_CXX" in
15202 x|xyes)
15203 # Assume -lc should be added
15204 archive_cmds_need_lc_CXX=yes
15205
15206 if test "$enable_shared" = yes && test "$GCC" = yes; then
15207 case $archive_cmds_CXX in
15208 *'~'*)
15209 # FIXME: we may have to deal with multi-command sequences.
15210 ;;
15211 '$CC '*)
15212 # Test whether the compiler implicitly links with -lc since on some
15213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15214 # to ld, don't add -lc before -lgcc.
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15216 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15217 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15218 $as_echo_n "(cached) " >&6
15219 else
15220 $RM conftest*
15221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15222
15223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15224 (eval $ac_compile) 2>&5
15225 ac_status=$?
15226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15227 test $ac_status = 0; } 2>conftest.err; then
15228 soname=conftest
15229 lib=conftest
15230 libobjs=conftest.$ac_objext
15231 deplibs=
15232 wl=$lt_prog_compiler_wl_CXX
15233 pic_flag=$lt_prog_compiler_pic_CXX
15234 compiler_flags=-v
15235 linker_flags=-v
15236 verstring=
15237 output_objdir=.
15238 libname=conftest
15239 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15240 allow_undefined_flag_CXX=
15241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15242 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15243 ac_status=$?
15244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245 test $ac_status = 0; }
15246 then
15247 lt_cv_archive_cmds_need_lc_CXX=no
15248 else
15249 lt_cv_archive_cmds_need_lc_CXX=yes
15250 fi
15251 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15252 else
15253 cat conftest.err 1>&5
15254 fi
15255 $RM conftest*
15256
15257 fi
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15259 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15260 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15261 ;;
15262 esac
15263 fi
15264 ;;
15265 esac
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15331 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15332
15333 library_names_spec=
15334 libname_spec='lib$name'
15335 soname_spec=
15336 shrext_cmds=".so"
15337 postinstall_cmds=
15338 postuninstall_cmds=
15339 finish_cmds=
15340 finish_eval=
15341 shlibpath_var=
15342 shlibpath_overrides_runpath=unknown
15343 version_type=none
15344 dynamic_linker="$host_os ld.so"
15345 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15346 need_lib_prefix=unknown
15347 hardcode_into_libs=no
15348
15349 # when you set need_version to no, make sure it does not cause -set_version
15350 # flags to be left without arguments
15351 need_version=unknown
15352
15353 case $host_os in
15354 aix3*)
15355 version_type=linux
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15357 shlibpath_var=LIBPATH
15358
15359 # AIX 3 has no versioning support, so we append a major version to the name.
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 ;;
15362
15363 aix[4-9]*)
15364 version_type=linux
15365 need_lib_prefix=no
15366 need_version=no
15367 hardcode_into_libs=yes
15368 if test "$host_cpu" = ia64; then
15369 # AIX 5 supports IA64
15370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 else
15373 # With GCC up to 2.95.x, collect2 would create an import file
15374 # for dependence libraries. The import file would start with
15375 # the line `#! .'. This would cause the generated library to
15376 # depend on `.', always an invalid library. This was fixed in
15377 # development snapshots of GCC prior to 3.0.
15378 case $host_os in
15379 aix4 | aix4.[01] | aix4.[01].*)
15380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15381 echo ' yes '
15382 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15383 :
15384 else
15385 can_build_shared=no
15386 fi
15387 ;;
15388 esac
15389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15390 # soname into executable. Probably we can add versioning support to
15391 # collect2, so additional links can be useful in future.
15392 if test "$aix_use_runtimelinking" = yes; then
15393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15394 # instead of lib<name>.a to let people know that these are not
15395 # typical AIX shared libraries.
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 else
15398 # We preserve .a as extension for shared libraries through AIX4.2
15399 # and later when we are not doing run time linking.
15400 library_names_spec='${libname}${release}.a $libname.a'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 fi
15403 shlibpath_var=LIBPATH
15404 fi
15405 ;;
15406
15407 amigaos*)
15408 case $host_cpu in
15409 powerpc)
15410 # Since July 2007 AmigaOS4 officially supports .so libraries.
15411 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413 ;;
15414 m68k)
15415 library_names_spec='$libname.ixlibrary $libname.a'
15416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15417 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'
15418 ;;
15419 esac
15420 ;;
15421
15422 beos*)
15423 library_names_spec='${libname}${shared_ext}'
15424 dynamic_linker="$host_os ld.so"
15425 shlibpath_var=LIBRARY_PATH
15426 ;;
15427
15428 bsdi[45]*)
15429 version_type=linux
15430 need_version=no
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432 soname_spec='${libname}${release}${shared_ext}$major'
15433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15437 # the default ld.so.conf also contains /usr/contrib/lib and
15438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15439 # libtool to hard-code these into programs
15440 ;;
15441
15442 cygwin* | mingw* | pw32* | cegcc*)
15443 version_type=windows
15444 shrext_cmds=".dll"
15445 need_version=no
15446 need_lib_prefix=no
15447
15448 case $GCC,$host_os in
15449 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15450 library_names_spec='$libname.dll.a'
15451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15452 postinstall_cmds='base_file=`basename \${file}`~
15453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15454 dldir=$destdir/`dirname \$dlpath`~
15455 test -d \$dldir || mkdir -p \$dldir~
15456 $install_prog $dir/$dlname \$dldir/$dlname~
15457 chmod a+x \$dldir/$dlname~
15458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15460 fi'
15461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15462 dlpath=$dir/\$dldll~
15463 $RM \$dlpath'
15464 shlibpath_overrides_runpath=yes
15465
15466 case $host_os in
15467 cygwin*)
15468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15470
15471 ;;
15472 mingw* | cegcc*)
15473 # MinGW DLLs use traditional 'lib' prefix
15474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15475 ;;
15476 pw32*)
15477 # pw32 DLLs use 'pw' prefix rather than 'lib'
15478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15479 ;;
15480 esac
15481 ;;
15482
15483 *)
15484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15485 ;;
15486 esac
15487 dynamic_linker='Win32 ld.exe'
15488 # FIXME: first we should search . and the directory the executable is in
15489 shlibpath_var=PATH
15490 ;;
15491
15492 darwin* | rhapsody*)
15493 dynamic_linker="$host_os dyld"
15494 version_type=darwin
15495 need_lib_prefix=no
15496 need_version=no
15497 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15498 soname_spec='${libname}${release}${major}$shared_ext'
15499 shlibpath_overrides_runpath=yes
15500 shlibpath_var=DYLD_LIBRARY_PATH
15501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15502
15503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15504 ;;
15505
15506 dgux*)
15507 version_type=linux
15508 need_lib_prefix=no
15509 need_version=no
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15511 soname_spec='${libname}${release}${shared_ext}$major'
15512 shlibpath_var=LD_LIBRARY_PATH
15513 ;;
15514
15515 freebsd* | dragonfly*)
15516 # DragonFly does not have aout. When/if they implement a new
15517 # versioning mechanism, adjust this.
15518 if test -x /usr/bin/objformat; then
15519 objformat=`/usr/bin/objformat`
15520 else
15521 case $host_os in
15522 freebsd[23].*) objformat=aout ;;
15523 *) objformat=elf ;;
15524 esac
15525 fi
15526 version_type=freebsd-$objformat
15527 case $version_type in
15528 freebsd-elf*)
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15530 need_version=no
15531 need_lib_prefix=no
15532 ;;
15533 freebsd-*)
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15535 need_version=yes
15536 ;;
15537 esac
15538 shlibpath_var=LD_LIBRARY_PATH
15539 case $host_os in
15540 freebsd2.*)
15541 shlibpath_overrides_runpath=yes
15542 ;;
15543 freebsd3.[01]* | freebsdelf3.[01]*)
15544 shlibpath_overrides_runpath=yes
15545 hardcode_into_libs=yes
15546 ;;
15547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15549 shlibpath_overrides_runpath=no
15550 hardcode_into_libs=yes
15551 ;;
15552 *) # from 4.6 on, and DragonFly
15553 shlibpath_overrides_runpath=yes
15554 hardcode_into_libs=yes
15555 ;;
15556 esac
15557 ;;
15558
15559 haiku*)
15560 version_type=linux
15561 need_lib_prefix=no
15562 need_version=no
15563 dynamic_linker="$host_os runtime_loader"
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 shlibpath_var=LIBRARY_PATH
15567 shlibpath_overrides_runpath=yes
15568 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15569 hardcode_into_libs=yes
15570 ;;
15571
15572 hpux9* | hpux10* | hpux11*)
15573 # Give a soname corresponding to the major version so that dld.sl refuses to
15574 # link against other versions.
15575 version_type=sunos
15576 need_lib_prefix=no
15577 need_version=no
15578 case $host_cpu in
15579 ia64*)
15580 shrext_cmds='.so'
15581 hardcode_into_libs=yes
15582 dynamic_linker="$host_os dld.so"
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 if test "X$HPUX_IA64_MODE" = X32; then
15588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15589 else
15590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15591 fi
15592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15593 ;;
15594 hppa*64*)
15595 shrext_cmds='.sl'
15596 hardcode_into_libs=yes
15597 dynamic_linker="$host_os dld.sl"
15598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15604 ;;
15605 *)
15606 shrext_cmds='.sl'
15607 dynamic_linker="$host_os dld.sl"
15608 shlibpath_var=SHLIB_PATH
15609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 ;;
15613 esac
15614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15615 postinstall_cmds='chmod 555 $lib'
15616 # or fails outright, so override atomically:
15617 install_override_mode=555
15618 ;;
15619
15620 interix[3-9]*)
15621 version_type=linux
15622 need_lib_prefix=no
15623 need_version=no
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=no
15629 hardcode_into_libs=yes
15630 ;;
15631
15632 irix5* | irix6* | nonstopux*)
15633 case $host_os in
15634 nonstopux*) version_type=nonstopux ;;
15635 *)
15636 if test "$lt_cv_prog_gnu_ld" = yes; then
15637 version_type=linux
15638 else
15639 version_type=irix
15640 fi ;;
15641 esac
15642 need_lib_prefix=no
15643 need_version=no
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15646 case $host_os in
15647 irix5* | nonstopux*)
15648 libsuff= shlibsuff=
15649 ;;
15650 *)
15651 case $LD in # libtool.m4 will add one of these switches to LD
15652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15653 libsuff= shlibsuff= libmagic=32-bit;;
15654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15655 libsuff=32 shlibsuff=N32 libmagic=N32;;
15656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15658 *) libsuff= shlibsuff= libmagic=never-match;;
15659 esac
15660 ;;
15661 esac
15662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15663 shlibpath_overrides_runpath=no
15664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15666 hardcode_into_libs=yes
15667 ;;
15668
15669 # No shared lib support for Linux oldld, aout, or coff.
15670 linux*oldld* | linux*aout* | linux*coff*)
15671 dynamic_linker=no
15672 ;;
15673
15674 # This must be Linux ELF.
15675
15676 # uclinux* changes (here and below) have been submitted to the libtool
15677 # project, but have not yet been accepted: they are GCC-local changes
15678 # for the time being. (See
15679 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15680 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15681 version_type=linux
15682 need_lib_prefix=no
15683 need_version=no
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 shlibpath_overrides_runpath=no
15689
15690 # Some binutils ld are patched to set DT_RUNPATH
15691 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15692 $as_echo_n "(cached) " >&6
15693 else
15694 lt_cv_shlibpath_overrides_runpath=no
15695 save_LDFLAGS=$LDFLAGS
15696 save_libdir=$libdir
15697 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15698 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15699 if test x$gcc_no_link = xyes; then
15700 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15701 fi
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15704
15705 int
15706 main ()
15707 {
15708
15709 ;
15710 return 0;
15711 }
15712 _ACEOF
15713 if ac_fn_cxx_try_link "$LINENO"; then :
15714 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15715 lt_cv_shlibpath_overrides_runpath=yes
15716 fi
15717 fi
15718 rm -f core conftest.err conftest.$ac_objext \
15719 conftest$ac_exeext conftest.$ac_ext
15720 LDFLAGS=$save_LDFLAGS
15721 libdir=$save_libdir
15722
15723 fi
15724
15725 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15726
15727 # This implies no fast_install, which is unacceptable.
15728 # Some rework will be needed to allow for fast_install
15729 # before this can be enabled.
15730 hardcode_into_libs=yes
15731
15732 # Append ld.so.conf contents to the search path
15733 if test -f /etc/ld.so.conf; then
15734 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' ' '`
15735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15736 fi
15737
15738 # We used to test for /lib/ld.so.1 and disable shared libraries on
15739 # powerpc, because MkLinux only supported shared libraries with the
15740 # GNU dynamic linker. Since this was broken with cross compilers,
15741 # most powerpc-linux boxes support dynamic linking these days and
15742 # people can always --disable-shared, the test was removed, and we
15743 # assume the GNU/Linux dynamic linker is in use.
15744 dynamic_linker='GNU/Linux ld.so'
15745 ;;
15746
15747 netbsd*)
15748 version_type=sunos
15749 need_lib_prefix=no
15750 need_version=no
15751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15754 dynamic_linker='NetBSD (a.out) ld.so'
15755 else
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 dynamic_linker='NetBSD ld.elf_so'
15759 fi
15760 shlibpath_var=LD_LIBRARY_PATH
15761 shlibpath_overrides_runpath=yes
15762 hardcode_into_libs=yes
15763 ;;
15764
15765 newsos6)
15766 version_type=linux
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 shlibpath_overrides_runpath=yes
15770 ;;
15771
15772 *nto* | *qnx*)
15773 version_type=qnx
15774 need_lib_prefix=no
15775 need_version=no
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 shlibpath_overrides_runpath=no
15780 hardcode_into_libs=yes
15781 dynamic_linker='ldqnx.so'
15782 ;;
15783
15784 openbsd*)
15785 version_type=sunos
15786 sys_lib_dlsearch_path_spec="/usr/lib"
15787 need_lib_prefix=no
15788 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15789 case $host_os in
15790 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15791 *) need_version=no ;;
15792 esac
15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15795 shlibpath_var=LD_LIBRARY_PATH
15796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15797 case $host_os in
15798 openbsd2.[89] | openbsd2.[89].*)
15799 shlibpath_overrides_runpath=no
15800 ;;
15801 *)
15802 shlibpath_overrides_runpath=yes
15803 ;;
15804 esac
15805 else
15806 shlibpath_overrides_runpath=yes
15807 fi
15808 ;;
15809
15810 os2*)
15811 libname_spec='$name'
15812 shrext_cmds=".dll"
15813 need_lib_prefix=no
15814 library_names_spec='$libname${shared_ext} $libname.a'
15815 dynamic_linker='OS/2 ld.exe'
15816 shlibpath_var=LIBPATH
15817 ;;
15818
15819 osf3* | osf4* | osf5*)
15820 version_type=osf
15821 need_lib_prefix=no
15822 need_version=no
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15827 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15828 ;;
15829
15830 rdos*)
15831 dynamic_linker=no
15832 ;;
15833
15834 solaris*)
15835 version_type=linux
15836 need_lib_prefix=no
15837 need_version=no
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 shlibpath_overrides_runpath=yes
15842 hardcode_into_libs=yes
15843 # ldd complains unless libraries are executable
15844 postinstall_cmds='chmod +x $lib'
15845 ;;
15846
15847 sunos4*)
15848 version_type=sunos
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15851 shlibpath_var=LD_LIBRARY_PATH
15852 shlibpath_overrides_runpath=yes
15853 if test "$with_gnu_ld" = yes; then
15854 need_lib_prefix=no
15855 fi
15856 need_version=yes
15857 ;;
15858
15859 sysv4 | sysv4.3*)
15860 version_type=linux
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862 soname_spec='${libname}${release}${shared_ext}$major'
15863 shlibpath_var=LD_LIBRARY_PATH
15864 case $host_vendor in
15865 sni)
15866 shlibpath_overrides_runpath=no
15867 need_lib_prefix=no
15868 runpath_var=LD_RUN_PATH
15869 ;;
15870 siemens)
15871 need_lib_prefix=no
15872 ;;
15873 motorola)
15874 need_lib_prefix=no
15875 need_version=no
15876 shlibpath_overrides_runpath=no
15877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15878 ;;
15879 esac
15880 ;;
15881
15882 sysv4*MP*)
15883 if test -d /usr/nec ;then
15884 version_type=linux
15885 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15886 soname_spec='$libname${shared_ext}.$major'
15887 shlibpath_var=LD_LIBRARY_PATH
15888 fi
15889 ;;
15890
15891 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15892 version_type=freebsd-elf
15893 need_lib_prefix=no
15894 need_version=no
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 shlibpath_var=LD_LIBRARY_PATH
15898 shlibpath_overrides_runpath=yes
15899 hardcode_into_libs=yes
15900 if test "$with_gnu_ld" = yes; then
15901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15902 else
15903 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15904 case $host_os in
15905 sco3.2v5*)
15906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15907 ;;
15908 esac
15909 fi
15910 sys_lib_dlsearch_path_spec='/usr/lib'
15911 ;;
15912
15913 tpf*)
15914 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15915 version_type=linux
15916 need_lib_prefix=no
15917 need_version=no
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919 shlibpath_var=LD_LIBRARY_PATH
15920 shlibpath_overrides_runpath=no
15921 hardcode_into_libs=yes
15922 ;;
15923
15924 uts4*)
15925 version_type=linux
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15929 ;;
15930
15931 # Shared libraries for VwWorks, >= 7 only at this stage
15932 # and (fpic) still incompatible with "large" code models
15933 # in a few configurations. Only for RTP mode in any case,
15934 # and upon explicit request at configure time.
15935 vxworks7*)
15936 dynamic_linker=no
15937 case ${with_multisubdir}-${enable_shared} in
15938 *large*)
15939 ;;
15940 *mrtp*-yes)
15941 version_type=linux
15942 need_lib_prefix=no
15943 need_version=no
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945 soname_spec='${libname}${release}${shared_ext}$major'
15946 dynamic_linker="$host_os module_loader"
15947 ;;
15948 esac
15949 ;;
15950 *)
15951 dynamic_linker=no
15952 ;;
15953 esac
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15955 $as_echo "$dynamic_linker" >&6; }
15956 test "$dynamic_linker" = no && can_build_shared=no
15957
15958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15959 if test "$GCC" = yes; then
15960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15961 fi
15962
15963 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15965 fi
15966 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15968 fi
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16008 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16009 hardcode_action_CXX=
16010 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16011 test -n "$runpath_var_CXX" ||
16012 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16013
16014 # We can hardcode non-existent directories.
16015 if test "$hardcode_direct_CXX" != no &&
16016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16017 # have to relink, otherwise we might link with an installed library
16018 # when we should be linking with a yet-to-be-installed one
16019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16020 test "$hardcode_minus_L_CXX" != no; then
16021 # Linking always hardcodes the temporary library directory.
16022 hardcode_action_CXX=relink
16023 else
16024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16025 hardcode_action_CXX=immediate
16026 fi
16027 else
16028 # We cannot hardcode anything, or else we can only hardcode existing
16029 # directories.
16030 hardcode_action_CXX=unsupported
16031 fi
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16033 $as_echo "$hardcode_action_CXX" >&6; }
16034
16035 if test "$hardcode_action_CXX" = relink ||
16036 test "$inherit_rpath_CXX" = yes; then
16037 # Fast installation is not supported
16038 enable_fast_install=no
16039 elif test "$shlibpath_overrides_runpath" = yes ||
16040 test "$enable_shared" = no; then
16041 # Fast installation is not necessary
16042 enable_fast_install=needless
16043 fi
16044
16045
16046
16047
16048
16049
16050
16051 fi # test -n "$compiler"
16052
16053 CC=$lt_save_CC
16054 LDCXX=$LD
16055 LD=$lt_save_LD
16056 GCC=$lt_save_GCC
16057 with_gnu_ld=$lt_save_with_gnu_ld
16058 lt_cv_path_LDCXX=$lt_cv_path_LD
16059 lt_cv_path_LD=$lt_save_path_LD
16060 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16061 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16062 fi # test "$_lt_caught_CXX_error" != yes
16063
16064 ac_ext=c
16065 ac_cpp='$CPP $CPPFLAGS'
16066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082 ac_config_commands="$ac_config_commands libtool"
16083
16084
16085
16086
16087 # Only expand once:
16088
16089
16090
16091 # target_noncanonical variables...
16092
16093 case ${build_alias} in
16094 "") build_noncanonical=${build} ;;
16095 *) build_noncanonical=${build_alias} ;;
16096 esac
16097
16098 case ${host_alias} in
16099 "") host_noncanonical=${build_noncanonical} ;;
16100 *) host_noncanonical=${host_alias} ;;
16101 esac
16102
16103
16104
16105 case ${target_alias} in
16106 "") target_noncanonical=${host_noncanonical} ;;
16107 *) target_noncanonical=${target_alias} ;;
16108 esac
16109
16110
16111
16112
16113 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
16114 # have matching libraries, they should use host libraries: Makefile.tpl
16115 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
16116 # However, they still use the build modules, because the corresponding
16117 # host modules (e.g. bison) are only built for the host when bootstrap
16118 # finishes. So:
16119 # - build_subdir is where we find build modules, and never changes.
16120 # - build_libsubdir is where we find build libraries, and can be overridden.
16121
16122 # Prefix 'build-' so this never conflicts with target_subdir.
16123 build_subdir="build-${build_noncanonical}"
16124
16125 # Check whether --with-build-libsubdir was given.
16126 if test "${with_build_libsubdir+set}" = set; then :
16127 withval=$with_build_libsubdir; build_libsubdir="$withval"
16128 else
16129 build_libsubdir="$build_subdir"
16130 fi
16131
16132 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
16133 if ( test $srcdir = . && test -d gcc ) \
16134 || test -d $srcdir/../host-${host_noncanonical}; then
16135 host_subdir="host-${host_noncanonical}"
16136 else
16137 host_subdir=.
16138 fi
16139 # No prefix.
16140 target_subdir=${target_noncanonical}
16141
16142
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
16144 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
16145 # Check whether --enable-version-specific-runtime-libs was given.
16146 if test "${enable_version_specific_runtime_libs+set}" = set; then :
16147 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
16148 yes) version_specific_libs=yes ;;
16149 no) version_specific_libs=no ;;
16150 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
16151 esac
16152 else
16153 version_specific_libs=no
16154 fi
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
16157 $as_echo "$version_specific_libs" >&6; }
16158
16159 toolexecdir=no
16160 toolexeclibdir=no
16161
16162 # Calculate toolexeclibdir
16163 # Also toolexecdir, though it's only used in toolexeclibdir
16164 case ${version_specific_libs} in
16165 yes)
16166 # Need the gcc compiler version to know where to install libraries
16167 # and header files if --enable-version-specific-runtime-libs option
16168 # is selected.
16169 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
16170 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
16171 ;;
16172 no)
16173 if test -n "$with_cross_host" &&
16174 test x"$with_cross_host" != x"no"; then
16175 # Install a library built with a cross compiler in tooldir, not libdir.
16176 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16177 toolexeclibdir='$(toolexecdir)/lib'
16178 else
16179 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16180 toolexeclibdir='$(libdir)'
16181 fi
16182 multi_os_directory=`$CC -print-multi-os-directory`
16183 case $multi_os_directory in
16184 .) ;; # Avoid trailing /.
16185 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16186 esac
16187 ;;
16188 esac
16189
16190
16191
16192
16193
16194 ac_config_files="$ac_config_files libproc_macro/Makefile"
16195
16196
16197
16198 get_gcc_base_ver="cat"
16199
16200 # Check whether --with-gcc-major-version-only was given.
16201 if test "${with_gcc_major_version_only+set}" = set; then :
16202 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16203 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16204 fi
16205
16206 fi
16207
16208
16209
16210
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: libgrust has been configured." >&5
16212 $as_echo "$as_me: libgrust has been configured." >&6;}
16213
16214 cat >confcache <<\_ACEOF
16215 # This file is a shell script that caches the results of configure
16216 # tests run on this system so they can be shared between configure
16217 # scripts and configure runs, see configure's option --config-cache.
16218 # It is not useful on other systems. If it contains results you don't
16219 # want to keep, you may remove or edit it.
16220 #
16221 # config.status only pays attention to the cache file if you give it
16222 # the --recheck option to rerun configure.
16223 #
16224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16226 # following values.
16227
16228 _ACEOF
16229
16230 # The following way of writing the cache mishandles newlines in values,
16231 # but we know of no workaround that is simple, portable, and efficient.
16232 # So, we kill variables containing newlines.
16233 # Ultrix sh set writes to stderr and can't be redirected directly,
16234 # and sets the high bit in the cache file unless we assign to the vars.
16235 (
16236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16237 eval ac_val=\$$ac_var
16238 case $ac_val in #(
16239 *${as_nl}*)
16240 case $ac_var in #(
16241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16243 esac
16244 case $ac_var in #(
16245 _ | IFS | as_nl) ;; #(
16246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16247 *) { eval $ac_var=; unset $ac_var;} ;;
16248 esac ;;
16249 esac
16250 done
16251
16252 (set) 2>&1 |
16253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16254 *${as_nl}ac_space=\ *)
16255 # `set' does not quote correctly, so add quotes: double-quote
16256 # substitution turns \\\\ into \\, and sed turns \\ into \.
16257 sed -n \
16258 "s/'/'\\\\''/g;
16259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16260 ;; #(
16261 *)
16262 # `set' quotes correctly as required by POSIX, so do not add quotes.
16263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16264 ;;
16265 esac |
16266 sort
16267 ) |
16268 sed '
16269 /^ac_cv_env_/b end
16270 t clear
16271 :clear
16272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16273 t end
16274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16275 :end' >>confcache
16276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16277 if test -w "$cache_file"; then
16278 if test "x$cache_file" != "x/dev/null"; then
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16280 $as_echo "$as_me: updating cache $cache_file" >&6;}
16281 if test ! -f "$cache_file" || test -h "$cache_file"; then
16282 cat confcache >"$cache_file"
16283 else
16284 case $cache_file in #(
16285 */* | ?:*)
16286 mv -f confcache "$cache_file"$$ &&
16287 mv -f "$cache_file"$$ "$cache_file" ;; #(
16288 *)
16289 mv -f confcache "$cache_file" ;;
16290 esac
16291 fi
16292 fi
16293 else
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16296 fi
16297 fi
16298 rm -f confcache
16299
16300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16301 # Let make expand exec_prefix.
16302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16303
16304 # Transform confdefs.h into DEFS.
16305 # Protect against shell expansion while executing Makefile rules.
16306 # Protect against Makefile macro expansion.
16307 #
16308 # If the first sed substitution is executed (which looks for macros that
16309 # take arguments), then branch to the quote section. Otherwise,
16310 # look for a macro that doesn't take arguments.
16311 ac_script='
16312 :mline
16313 /\\$/{
16314 N
16315 s,\\\n,,
16316 b mline
16317 }
16318 t clear
16319 :clear
16320 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16321 t quote
16322 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16323 t quote
16324 b any
16325 :quote
16326 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16327 s/\[/\\&/g
16328 s/\]/\\&/g
16329 s/\$/$$/g
16330 H
16331 :any
16332 ${
16333 g
16334 s/^\n//
16335 s/\n/ /g
16336 p
16337 }
16338 '
16339 DEFS=`sed -n "$ac_script" confdefs.h`
16340
16341
16342 ac_libobjs=
16343 ac_ltlibobjs=
16344 U=
16345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16346 # 1. Remove the extension, and $U if already installed.
16347 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16348 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16349 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16350 # will be set to the directory where LIBOBJS objects are built.
16351 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16352 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16353 done
16354 LIBOBJS=$ac_libobjs
16355
16356 LTLIBOBJS=$ac_ltlibobjs
16357
16358
16359 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16360 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16362 fi
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16364 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16365 if test -n "$am_sleep_pid"; then
16366 # Hide warnings about reused PIDs.
16367 wait $am_sleep_pid 2>/dev/null
16368 fi
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16370 $as_echo "done" >&6; }
16371 if test -n "$EXEEXT"; then
16372 am__EXEEXT_TRUE=
16373 am__EXEEXT_FALSE='#'
16374 else
16375 am__EXEEXT_TRUE='#'
16376 am__EXEEXT_FALSE=
16377 fi
16378
16379 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16380 as_fn_error $? "conditional \"AMDEP\" was never defined.
16381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16382 fi
16383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16384 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16386 fi
16387 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16388 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16390 fi
16391 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16392 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16394 fi
16395 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16396 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16398 fi
16399
16400 : "${CONFIG_STATUS=./config.status}"
16401 ac_write_fail=0
16402 ac_clean_files_save=$ac_clean_files
16403 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16405 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16406 as_write_fail=0
16407 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16408 #! $SHELL
16409 # Generated by $as_me.
16410 # Run this file to recreate the current configuration.
16411 # Compiler output produced by configure, useful for debugging
16412 # configure, is in config.log if it exists.
16413
16414 debug=false
16415 ac_cs_recheck=false
16416 ac_cs_silent=false
16417
16418 SHELL=\${CONFIG_SHELL-$SHELL}
16419 export SHELL
16420 _ASEOF
16421 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16422 ## -------------------- ##
16423 ## M4sh Initialization. ##
16424 ## -------------------- ##
16425
16426 # Be more Bourne compatible
16427 DUALCASE=1; export DUALCASE # for MKS sh
16428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16429 emulate sh
16430 NULLCMD=:
16431 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16432 # is contrary to our usage. Disable this feature.
16433 alias -g '${1+"$@"}'='"$@"'
16434 setopt NO_GLOB_SUBST
16435 else
16436 case `(set -o) 2>/dev/null` in #(
16437 *posix*) :
16438 set -o posix ;; #(
16439 *) :
16440 ;;
16441 esac
16442 fi
16443
16444
16445 as_nl='
16446 '
16447 export as_nl
16448 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16449 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16450 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16452 # Prefer a ksh shell builtin over an external printf program on Solaris,
16453 # but without wasting forks for bash or zsh.
16454 if test -z "$BASH_VERSION$ZSH_VERSION" \
16455 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16456 as_echo='print -r --'
16457 as_echo_n='print -rn --'
16458 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16459 as_echo='printf %s\n'
16460 as_echo_n='printf %s'
16461 else
16462 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16463 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16464 as_echo_n='/usr/ucb/echo -n'
16465 else
16466 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16467 as_echo_n_body='eval
16468 arg=$1;
16469 case $arg in #(
16470 *"$as_nl"*)
16471 expr "X$arg" : "X\\(.*\\)$as_nl";
16472 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16473 esac;
16474 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16475 '
16476 export as_echo_n_body
16477 as_echo_n='sh -c $as_echo_n_body as_echo'
16478 fi
16479 export as_echo_body
16480 as_echo='sh -c $as_echo_body as_echo'
16481 fi
16482
16483 # The user is always right.
16484 if test "${PATH_SEPARATOR+set}" != set; then
16485 PATH_SEPARATOR=:
16486 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16487 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16488 PATH_SEPARATOR=';'
16489 }
16490 fi
16491
16492
16493 # IFS
16494 # We need space, tab and new line, in precisely that order. Quoting is
16495 # there to prevent editors from complaining about space-tab.
16496 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16497 # splitting by setting IFS to empty value.)
16498 IFS=" "" $as_nl"
16499
16500 # Find who we are. Look in the path if we contain no directory separator.
16501 as_myself=
16502 case $0 in #((
16503 *[\\/]* ) as_myself=$0 ;;
16504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16505 for as_dir in $PATH
16506 do
16507 IFS=$as_save_IFS
16508 test -z "$as_dir" && as_dir=.
16509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16510 done
16511 IFS=$as_save_IFS
16512
16513 ;;
16514 esac
16515 # We did not find ourselves, most probably we were run as `sh COMMAND'
16516 # in which case we are not to be found in the path.
16517 if test "x$as_myself" = x; then
16518 as_myself=$0
16519 fi
16520 if test ! -f "$as_myself"; then
16521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16522 exit 1
16523 fi
16524
16525 # Unset variables that we do not need and which cause bugs (e.g. in
16526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16527 # suppresses any "Segmentation fault" message there. '((' could
16528 # trigger a bug in pdksh 5.2.14.
16529 for as_var in BASH_ENV ENV MAIL MAILPATH
16530 do eval test x\${$as_var+set} = xset \
16531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16532 done
16533 PS1='$ '
16534 PS2='> '
16535 PS4='+ '
16536
16537 # NLS nuisances.
16538 LC_ALL=C
16539 export LC_ALL
16540 LANGUAGE=C
16541 export LANGUAGE
16542
16543 # CDPATH.
16544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16545
16546
16547 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16548 # ----------------------------------------
16549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16551 # script with STATUS, using 1 if that was 0.
16552 as_fn_error ()
16553 {
16554 as_status=$1; test $as_status -eq 0 && as_status=1
16555 if test "$4"; then
16556 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16558 fi
16559 $as_echo "$as_me: error: $2" >&2
16560 as_fn_exit $as_status
16561 } # as_fn_error
16562
16563
16564 # as_fn_set_status STATUS
16565 # -----------------------
16566 # Set $? to STATUS, without forking.
16567 as_fn_set_status ()
16568 {
16569 return $1
16570 } # as_fn_set_status
16571
16572 # as_fn_exit STATUS
16573 # -----------------
16574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16575 as_fn_exit ()
16576 {
16577 set +e
16578 as_fn_set_status $1
16579 exit $1
16580 } # as_fn_exit
16581
16582 # as_fn_unset VAR
16583 # ---------------
16584 # Portably unset VAR.
16585 as_fn_unset ()
16586 {
16587 { eval $1=; unset $1;}
16588 }
16589 as_unset=as_fn_unset
16590 # as_fn_append VAR VALUE
16591 # ----------------------
16592 # Append the text in VALUE to the end of the definition contained in VAR. Take
16593 # advantage of any shell optimizations that allow amortized linear growth over
16594 # repeated appends, instead of the typical quadratic growth present in naive
16595 # implementations.
16596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16597 eval 'as_fn_append ()
16598 {
16599 eval $1+=\$2
16600 }'
16601 else
16602 as_fn_append ()
16603 {
16604 eval $1=\$$1\$2
16605 }
16606 fi # as_fn_append
16607
16608 # as_fn_arith ARG...
16609 # ------------------
16610 # Perform arithmetic evaluation on the ARGs, and store the result in the
16611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16612 # must be portable across $(()) and expr.
16613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16614 eval 'as_fn_arith ()
16615 {
16616 as_val=$(( $* ))
16617 }'
16618 else
16619 as_fn_arith ()
16620 {
16621 as_val=`expr "$@" || test $? -eq 1`
16622 }
16623 fi # as_fn_arith
16624
16625
16626 if expr a : '\(a\)' >/dev/null 2>&1 &&
16627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16628 as_expr=expr
16629 else
16630 as_expr=false
16631 fi
16632
16633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16634 as_basename=basename
16635 else
16636 as_basename=false
16637 fi
16638
16639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16640 as_dirname=dirname
16641 else
16642 as_dirname=false
16643 fi
16644
16645 as_me=`$as_basename -- "$0" ||
16646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16647 X"$0" : 'X\(//\)$' \| \
16648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16649 $as_echo X/"$0" |
16650 sed '/^.*\/\([^/][^/]*\)\/*$/{
16651 s//\1/
16652 q
16653 }
16654 /^X\/\(\/\/\)$/{
16655 s//\1/
16656 q
16657 }
16658 /^X\/\(\/\).*/{
16659 s//\1/
16660 q
16661 }
16662 s/.*/./; q'`
16663
16664 # Avoid depending upon Character Ranges.
16665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16668 as_cr_digits='0123456789'
16669 as_cr_alnum=$as_cr_Letters$as_cr_digits
16670
16671 ECHO_C= ECHO_N= ECHO_T=
16672 case `echo -n x` in #(((((
16673 -n*)
16674 case `echo 'xy\c'` in
16675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16676 xy) ECHO_C='\c';;
16677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16678 ECHO_T=' ';;
16679 esac;;
16680 *)
16681 ECHO_N='-n';;
16682 esac
16683
16684 rm -f conf$$ conf$$.exe conf$$.file
16685 if test -d conf$$.dir; then
16686 rm -f conf$$.dir/conf$$.file
16687 else
16688 rm -f conf$$.dir
16689 mkdir conf$$.dir 2>/dev/null
16690 fi
16691 if (echo >conf$$.file) 2>/dev/null; then
16692 if ln -s conf$$.file conf$$ 2>/dev/null; then
16693 as_ln_s='ln -s'
16694 # ... but there are two gotchas:
16695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16697 # In both cases, we have to default to `cp -pR'.
16698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16699 as_ln_s='cp -pR'
16700 elif ln conf$$.file conf$$ 2>/dev/null; then
16701 as_ln_s=ln
16702 else
16703 as_ln_s='cp -pR'
16704 fi
16705 else
16706 as_ln_s='cp -pR'
16707 fi
16708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16709 rmdir conf$$.dir 2>/dev/null
16710
16711
16712 # as_fn_mkdir_p
16713 # -------------
16714 # Create "$as_dir" as a directory, including parents if necessary.
16715 as_fn_mkdir_p ()
16716 {
16717
16718 case $as_dir in #(
16719 -*) as_dir=./$as_dir;;
16720 esac
16721 test -d "$as_dir" || eval $as_mkdir_p || {
16722 as_dirs=
16723 while :; do
16724 case $as_dir in #(
16725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16726 *) as_qdir=$as_dir;;
16727 esac
16728 as_dirs="'$as_qdir' $as_dirs"
16729 as_dir=`$as_dirname -- "$as_dir" ||
16730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16731 X"$as_dir" : 'X\(//\)[^/]' \| \
16732 X"$as_dir" : 'X\(//\)$' \| \
16733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16734 $as_echo X"$as_dir" |
16735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16736 s//\1/
16737 q
16738 }
16739 /^X\(\/\/\)[^/].*/{
16740 s//\1/
16741 q
16742 }
16743 /^X\(\/\/\)$/{
16744 s//\1/
16745 q
16746 }
16747 /^X\(\/\).*/{
16748 s//\1/
16749 q
16750 }
16751 s/.*/./; q'`
16752 test -d "$as_dir" && break
16753 done
16754 test -z "$as_dirs" || eval "mkdir $as_dirs"
16755 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16756
16757
16758 } # as_fn_mkdir_p
16759 if mkdir -p . 2>/dev/null; then
16760 as_mkdir_p='mkdir -p "$as_dir"'
16761 else
16762 test -d ./-p && rmdir ./-p
16763 as_mkdir_p=false
16764 fi
16765
16766
16767 # as_fn_executable_p FILE
16768 # -----------------------
16769 # Test if FILE is an executable regular file.
16770 as_fn_executable_p ()
16771 {
16772 test -f "$1" && test -x "$1"
16773 } # as_fn_executable_p
16774 as_test_x='test -x'
16775 as_executable_p=as_fn_executable_p
16776
16777 # Sed expression to map a string onto a valid CPP name.
16778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16779
16780 # Sed expression to map a string onto a valid variable name.
16781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16782
16783
16784 exec 6>&1
16785 ## ----------------------------------- ##
16786 ## Main body of $CONFIG_STATUS script. ##
16787 ## ----------------------------------- ##
16788 _ASEOF
16789 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16790
16791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16792 # Save the log message, to keep $0 and so on meaningful, and to
16793 # report actual input values of CONFIG_FILES etc. instead of their
16794 # values after options handling.
16795 ac_log="
16796 This file was extended by libgrust $as_me version-unused, which was
16797 generated by GNU Autoconf 2.69. Invocation command line was
16798
16799 CONFIG_FILES = $CONFIG_FILES
16800 CONFIG_HEADERS = $CONFIG_HEADERS
16801 CONFIG_LINKS = $CONFIG_LINKS
16802 CONFIG_COMMANDS = $CONFIG_COMMANDS
16803 $ $0 $@
16804
16805 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16806 "
16807
16808 _ACEOF
16809
16810 case $ac_config_files in *"
16811 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16812 esac
16813
16814
16815
16816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16817 # Files that config.status was made for.
16818 config_files="$ac_config_files"
16819 config_commands="$ac_config_commands"
16820
16821 _ACEOF
16822
16823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16824 ac_cs_usage="\
16825 \`$as_me' instantiates files and other configuration actions
16826 from templates according to the current configuration. Unless the files
16827 and actions are specified as TAGs, all are instantiated by default.
16828
16829 Usage: $0 [OPTION]... [TAG]...
16830
16831 -h, --help print this help, then exit
16832 -V, --version print version number and configuration settings, then exit
16833 --config print configuration, then exit
16834 -q, --quiet, --silent
16835 do not print progress messages
16836 -d, --debug don't remove temporary files
16837 --recheck update $as_me by reconfiguring in the same conditions
16838 --file=FILE[:TEMPLATE]
16839 instantiate the configuration file FILE
16840
16841 Configuration files:
16842 $config_files
16843
16844 Configuration commands:
16845 $config_commands
16846
16847 Report bugs to the package provider."
16848
16849 _ACEOF
16850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16851 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16852 ac_cs_version="\\
16853 libgrust config.status version-unused
16854 configured by $0, generated by GNU Autoconf 2.69,
16855 with options \\"\$ac_cs_config\\"
16856
16857 Copyright (C) 2012 Free Software Foundation, Inc.
16858 This config.status script is free software; the Free Software Foundation
16859 gives unlimited permission to copy, distribute and modify it."
16860
16861 ac_pwd='$ac_pwd'
16862 srcdir='$srcdir'
16863 INSTALL='$INSTALL'
16864 MKDIR_P='$MKDIR_P'
16865 AWK='$AWK'
16866 test -n "\$AWK" || AWK=awk
16867 _ACEOF
16868
16869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16870 # The default lists apply if the user does not specify any file.
16871 ac_need_defaults=:
16872 while test $# != 0
16873 do
16874 case $1 in
16875 --*=?*)
16876 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16877 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16878 ac_shift=:
16879 ;;
16880 --*=)
16881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16882 ac_optarg=
16883 ac_shift=:
16884 ;;
16885 *)
16886 ac_option=$1
16887 ac_optarg=$2
16888 ac_shift=shift
16889 ;;
16890 esac
16891
16892 case $ac_option in
16893 # Handling of the options.
16894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16895 ac_cs_recheck=: ;;
16896 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16897 $as_echo "$ac_cs_version"; exit ;;
16898 --config | --confi | --conf | --con | --co | --c )
16899 $as_echo "$ac_cs_config"; exit ;;
16900 --debug | --debu | --deb | --de | --d | -d )
16901 debug=: ;;
16902 --file | --fil | --fi | --f )
16903 $ac_shift
16904 case $ac_optarg in
16905 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16906 '') as_fn_error $? "missing file argument" ;;
16907 esac
16908 as_fn_append CONFIG_FILES " '$ac_optarg'"
16909 ac_need_defaults=false;;
16910 --he | --h | --help | --hel | -h )
16911 $as_echo "$ac_cs_usage"; exit ;;
16912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16913 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16914 ac_cs_silent=: ;;
16915
16916 # This is an error.
16917 -*) as_fn_error $? "unrecognized option: \`$1'
16918 Try \`$0 --help' for more information." ;;
16919
16920 *) as_fn_append ac_config_targets " $1"
16921 ac_need_defaults=false ;;
16922
16923 esac
16924 shift
16925 done
16926
16927 ac_configure_extra_args=
16928
16929 if $ac_cs_silent; then
16930 exec 6>/dev/null
16931 ac_configure_extra_args="$ac_configure_extra_args --silent"
16932 fi
16933
16934 _ACEOF
16935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16936 if \$ac_cs_recheck; then
16937 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16938 shift
16939 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16940 CONFIG_SHELL='$SHELL'
16941 export CONFIG_SHELL
16942 exec "\$@"
16943 fi
16944
16945 _ACEOF
16946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16947 exec 5>>config.log
16948 {
16949 echo
16950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16951 ## Running $as_me. ##
16952 _ASBOX
16953 $as_echo "$ac_log"
16954 } >&5
16955
16956 _ACEOF
16957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16958 #
16959 # INIT-COMMANDS
16960 #
16961
16962 srcdir="$srcdir"
16963 host="$host"
16964 target="$target"
16965 with_multisubdir="$with_multisubdir"
16966 with_multisrctop="$with_multisrctop"
16967 with_target_subdir="$with_target_subdir"
16968 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16969 multi_basedir="$multi_basedir"
16970 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16971 CC="$CC"
16972 CXX="$CXX"
16973 GFORTRAN="$GFORTRAN"
16974 GDC="$GDC"
16975 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16976
16977
16978 # The HP-UX ksh and POSIX shell print the target directory to stdout
16979 # if CDPATH is set.
16980 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16981
16982 sed_quote_subst='$sed_quote_subst'
16983 double_quote_subst='$double_quote_subst'
16984 delay_variable_subst='$delay_variable_subst'
16985 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16986 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16987 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16988 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16989 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16990 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16991 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16992 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16993 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16994 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16995 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16996 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16997 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16998 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16999 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17000 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17001 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17002 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17003 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17004 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17005 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17006 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17007 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17008 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17009 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17010 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17011 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17012 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17013 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17014 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17015 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17016 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17017 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17018 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17019 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17020 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17021 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17022 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17023 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17024 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17025 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17026 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17027 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17028 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17029 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17030 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17031 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17032 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17033 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"`'
17034 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17035 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17036 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17037 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17038 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17039 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17040 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17041 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17042 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17043 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17044 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17045 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17046 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17047 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17048 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17049 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17050 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17051 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17052 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17053 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17054 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17055 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17056 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17057 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17058 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17059 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17060 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17061 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17062 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17063 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17064 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17065 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17066 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17067 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17068 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17069 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17070 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17071 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17072 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17073 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17074 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17075 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17076 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17077 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17078 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17079 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17080 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17081 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17082 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17083 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17084 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17085 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17086 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17087 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17088 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17089 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17090 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17091 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17092 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17093 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17094 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17095 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17096 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17097 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17098 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17099 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17100 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17101 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17102 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17103 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17104 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17105 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17106 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17107 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17108 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17109 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17110 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17111 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17112 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17113 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17114 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17115 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17116 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17117 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17118 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17119 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17120 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17121 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17122 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17123 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17124 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17125 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17126 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17127 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17128 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17129 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17130 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17131 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17132 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17133 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17134 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17135 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17136 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17137 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17138 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17139 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17140 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17141 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17142 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17143 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17144 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17145 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17146 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17147 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17148 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17149 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17150 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17151 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17152 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17153 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17154 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17155 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17156 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17157 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17158 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17159 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17160
17161 LTCC='$LTCC'
17162 LTCFLAGS='$LTCFLAGS'
17163 compiler='$compiler_DEFAULT'
17164
17165 # A function that is used when there is no print builtin or printf.
17166 func_fallback_echo ()
17167 {
17168 eval 'cat <<_LTECHO_EOF
17169 \$1
17170 _LTECHO_EOF'
17171 }
17172
17173 # Quote evaled strings.
17174 for var in SHELL \
17175 ECHO \
17176 SED \
17177 GREP \
17178 EGREP \
17179 FGREP \
17180 LD \
17181 NM \
17182 LN_S \
17183 lt_SP2NL \
17184 lt_NL2SP \
17185 reload_flag \
17186 OBJDUMP \
17187 deplibs_check_method \
17188 file_magic_cmd \
17189 AR \
17190 AR_FLAGS \
17191 STRIP \
17192 RANLIB \
17193 CC \
17194 CFLAGS \
17195 compiler \
17196 lt_cv_sys_global_symbol_pipe \
17197 lt_cv_sys_global_symbol_to_cdecl \
17198 lt_cv_sys_global_symbol_to_c_name_address \
17199 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17200 lt_prog_compiler_no_builtin_flag \
17201 lt_prog_compiler_wl \
17202 lt_prog_compiler_pic \
17203 lt_prog_compiler_static \
17204 lt_cv_prog_compiler_c_o \
17205 need_locks \
17206 DSYMUTIL \
17207 NMEDIT \
17208 LIPO \
17209 OTOOL \
17210 OTOOL64 \
17211 shrext_cmds \
17212 export_dynamic_flag_spec \
17213 whole_archive_flag_spec \
17214 compiler_needs_object \
17215 with_gnu_ld \
17216 allow_undefined_flag \
17217 no_undefined_flag \
17218 hardcode_libdir_flag_spec \
17219 hardcode_libdir_flag_spec_ld \
17220 hardcode_libdir_separator \
17221 fix_srcfile_path \
17222 exclude_expsyms \
17223 include_expsyms \
17224 file_list_spec \
17225 variables_saved_for_relink \
17226 libname_spec \
17227 library_names_spec \
17228 soname_spec \
17229 install_override_mode \
17230 finish_eval \
17231 old_striplib \
17232 striplib \
17233 compiler_lib_search_dirs \
17234 predep_objects \
17235 postdep_objects \
17236 predeps \
17237 postdeps \
17238 compiler_lib_search_path \
17239 LD_CXX \
17240 reload_flag_CXX \
17241 compiler_CXX \
17242 lt_prog_compiler_no_builtin_flag_CXX \
17243 lt_prog_compiler_wl_CXX \
17244 lt_prog_compiler_pic_CXX \
17245 lt_prog_compiler_static_CXX \
17246 lt_cv_prog_compiler_c_o_CXX \
17247 export_dynamic_flag_spec_CXX \
17248 whole_archive_flag_spec_CXX \
17249 compiler_needs_object_CXX \
17250 with_gnu_ld_CXX \
17251 allow_undefined_flag_CXX \
17252 no_undefined_flag_CXX \
17253 hardcode_libdir_flag_spec_CXX \
17254 hardcode_libdir_flag_spec_ld_CXX \
17255 hardcode_libdir_separator_CXX \
17256 fix_srcfile_path_CXX \
17257 exclude_expsyms_CXX \
17258 include_expsyms_CXX \
17259 file_list_spec_CXX \
17260 compiler_lib_search_dirs_CXX \
17261 predep_objects_CXX \
17262 postdep_objects_CXX \
17263 predeps_CXX \
17264 postdeps_CXX \
17265 compiler_lib_search_path_CXX; do
17266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17267 *[\\\\\\\`\\"\\\$]*)
17268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17269 ;;
17270 *)
17271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17272 ;;
17273 esac
17274 done
17275
17276 # Double-quote double-evaled strings.
17277 for var in reload_cmds \
17278 old_postinstall_cmds \
17279 old_postuninstall_cmds \
17280 old_archive_cmds \
17281 extract_expsyms_cmds \
17282 old_archive_from_new_cmds \
17283 old_archive_from_expsyms_cmds \
17284 archive_cmds \
17285 archive_expsym_cmds \
17286 module_cmds \
17287 module_expsym_cmds \
17288 export_symbols_cmds \
17289 prelink_cmds \
17290 postinstall_cmds \
17291 postuninstall_cmds \
17292 finish_cmds \
17293 sys_lib_search_path_spec \
17294 sys_lib_dlsearch_path_spec \
17295 reload_cmds_CXX \
17296 old_archive_cmds_CXX \
17297 old_archive_from_new_cmds_CXX \
17298 old_archive_from_expsyms_cmds_CXX \
17299 archive_cmds_CXX \
17300 archive_expsym_cmds_CXX \
17301 module_cmds_CXX \
17302 module_expsym_cmds_CXX \
17303 export_symbols_cmds_CXX \
17304 prelink_cmds_CXX; do
17305 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17306 *[\\\\\\\`\\"\\\$]*)
17307 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17308 ;;
17309 *)
17310 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17311 ;;
17312 esac
17313 done
17314
17315 ac_aux_dir='$ac_aux_dir'
17316 xsi_shell='$xsi_shell'
17317 lt_shell_append='$lt_shell_append'
17318
17319 # See if we are running on zsh, and set the options which allow our
17320 # commands through without removal of \ escapes INIT.
17321 if test -n "\${ZSH_VERSION+set}" ; then
17322 setopt NO_GLOB_SUBST
17323 fi
17324
17325
17326 PACKAGE='$PACKAGE'
17327 VERSION='$VERSION'
17328 TIMESTAMP='$TIMESTAMP'
17329 RM='$RM'
17330 ofile='$ofile'
17331
17332
17333
17334
17335
17336
17337 _ACEOF
17338
17339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17340
17341 # Handling of arguments.
17342 for ac_config_target in $ac_config_targets
17343 do
17344 case $ac_config_target in
17345 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17346 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17347 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17348 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17349 "libproc_macro/Makefile") CONFIG_FILES="$CONFIG_FILES libproc_macro/Makefile" ;;
17350
17351 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17352 esac
17353 done
17354
17355
17356 # If the user did not use the arguments to specify the items to instantiate,
17357 # then the envvar interface is used. Set only those that are not.
17358 # We use the long form for the default assignment because of an extremely
17359 # bizarre bug on SunOS 4.1.3.
17360 if $ac_need_defaults; then
17361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17362 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17363 fi
17364
17365 # Have a temporary directory for convenience. Make it in the build tree
17366 # simply because there is no reason against having it here, and in addition,
17367 # creating and moving files from /tmp can sometimes cause problems.
17368 # Hook for its removal unless debugging.
17369 # Note that there is a small window in which the directory will not be cleaned:
17370 # after its creation but before its name has been assigned to `$tmp'.
17371 $debug ||
17372 {
17373 tmp= ac_tmp=
17374 trap 'exit_status=$?
17375 : "${ac_tmp:=$tmp}"
17376 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17377 ' 0
17378 trap 'as_fn_exit 1' 1 2 13 15
17379 }
17380 # Create a (secure) tmp directory for tmp files.
17381
17382 {
17383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17384 test -d "$tmp"
17385 } ||
17386 {
17387 tmp=./conf$$-$RANDOM
17388 (umask 077 && mkdir "$tmp")
17389 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17390 ac_tmp=$tmp
17391
17392 # Set up the scripts for CONFIG_FILES section.
17393 # No need to generate them if there are no CONFIG_FILES.
17394 # This happens for instance with `./config.status config.h'.
17395 if test -n "$CONFIG_FILES"; then
17396
17397
17398 ac_cr=`echo X | tr X '\015'`
17399 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17400 # But we know of no other shell where ac_cr would be empty at this
17401 # point, so we can use a bashism as a fallback.
17402 if test "x$ac_cr" = x; then
17403 eval ac_cr=\$\'\\r\'
17404 fi
17405 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17406 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17407 ac_cs_awk_cr='\\r'
17408 else
17409 ac_cs_awk_cr=$ac_cr
17410 fi
17411
17412 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17413 _ACEOF
17414
17415
17416 {
17417 echo "cat >conf$$subs.awk <<_ACEOF" &&
17418 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17419 echo "_ACEOF"
17420 } >conf$$subs.sh ||
17421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17423 ac_delim='%!_!# '
17424 for ac_last_try in false false false false false :; do
17425 . ./conf$$subs.sh ||
17426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17427
17428 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17429 if test $ac_delim_n = $ac_delim_num; then
17430 break
17431 elif $ac_last_try; then
17432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17433 else
17434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17435 fi
17436 done
17437 rm -f conf$$subs.sh
17438
17439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17440 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17441 _ACEOF
17442 sed -n '
17443 h
17444 s/^/S["/; s/!.*/"]=/
17445 p
17446 g
17447 s/^[^!]*!//
17448 :repl
17449 t repl
17450 s/'"$ac_delim"'$//
17451 t delim
17452 :nl
17453 h
17454 s/\(.\{148\}\)..*/\1/
17455 t more1
17456 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17457 p
17458 n
17459 b repl
17460 :more1
17461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17462 p
17463 g
17464 s/.\{148\}//
17465 t nl
17466 :delim
17467 h
17468 s/\(.\{148\}\)..*/\1/
17469 t more2
17470 s/["\\]/\\&/g; s/^/"/; s/$/"/
17471 p
17472 b
17473 :more2
17474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17475 p
17476 g
17477 s/.\{148\}//
17478 t delim
17479 ' <conf$$subs.awk | sed '
17480 /^[^""]/{
17481 N
17482 s/\n//
17483 }
17484 ' >>$CONFIG_STATUS || ac_write_fail=1
17485 rm -f conf$$subs.awk
17486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17487 _ACAWK
17488 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17489 for (key in S) S_is_set[key] = 1
17490 FS = "\a"
17491
17492 }
17493 {
17494 line = $ 0
17495 nfields = split(line, field, "@")
17496 substed = 0
17497 len = length(field[1])
17498 for (i = 2; i < nfields; i++) {
17499 key = field[i]
17500 keylen = length(key)
17501 if (S_is_set[key]) {
17502 value = S[key]
17503 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17504 len += length(value) + length(field[++i])
17505 substed = 1
17506 } else
17507 len += 1 + keylen
17508 }
17509
17510 print line
17511 }
17512
17513 _ACAWK
17514 _ACEOF
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17517 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17518 else
17519 cat
17520 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17521 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17522 _ACEOF
17523
17524 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17525 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17526 # trailing colons and then remove the whole line if VPATH becomes empty
17527 # (actually we leave an empty line to preserve line numbers).
17528 if test "x$srcdir" = x.; then
17529 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17530 h
17531 s///
17532 s/^/:/
17533 s/[ ]*$/:/
17534 s/:\$(srcdir):/:/g
17535 s/:\${srcdir}:/:/g
17536 s/:@srcdir@:/:/g
17537 s/^:*//
17538 s/:*$//
17539 x
17540 s/\(=[ ]*\).*/\1/
17541 G
17542 s/\n//
17543 s/^[^=]*=[ ]*$//
17544 }'
17545 fi
17546
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548 fi # test -n "$CONFIG_FILES"
17549
17550
17551 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17552 shift
17553 for ac_tag
17554 do
17555 case $ac_tag in
17556 :[FHLC]) ac_mode=$ac_tag; continue;;
17557 esac
17558 case $ac_mode$ac_tag in
17559 :[FHL]*:*);;
17560 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17561 :[FH]-) ac_tag=-:-;;
17562 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17563 esac
17564 ac_save_IFS=$IFS
17565 IFS=:
17566 set x $ac_tag
17567 IFS=$ac_save_IFS
17568 shift
17569 ac_file=$1
17570 shift
17571
17572 case $ac_mode in
17573 :L) ac_source=$1;;
17574 :[FH])
17575 ac_file_inputs=
17576 for ac_f
17577 do
17578 case $ac_f in
17579 -) ac_f="$ac_tmp/stdin";;
17580 *) # Look for the file first in the build tree, then in the source tree
17581 # (if the path is not absolute). The absolute path cannot be DOS-style,
17582 # because $ac_f cannot contain `:'.
17583 test -f "$ac_f" ||
17584 case $ac_f in
17585 [\\/$]*) false;;
17586 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17587 esac ||
17588 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17589 esac
17590 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17591 as_fn_append ac_file_inputs " '$ac_f'"
17592 done
17593
17594 # Let's still pretend it is `configure' which instantiates (i.e., don't
17595 # use $as_me), people would be surprised to read:
17596 # /* config.h. Generated by config.status. */
17597 configure_input='Generated from '`
17598 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17599 `' by configure.'
17600 if test x"$ac_file" != x-; then
17601 configure_input="$ac_file. $configure_input"
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17603 $as_echo "$as_me: creating $ac_file" >&6;}
17604 fi
17605 # Neutralize special characters interpreted by sed in replacement strings.
17606 case $configure_input in #(
17607 *\&* | *\|* | *\\* )
17608 ac_sed_conf_input=`$as_echo "$configure_input" |
17609 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17610 *) ac_sed_conf_input=$configure_input;;
17611 esac
17612
17613 case $ac_tag in
17614 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17616 esac
17617 ;;
17618 esac
17619
17620 ac_dir=`$as_dirname -- "$ac_file" ||
17621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17622 X"$ac_file" : 'X\(//\)[^/]' \| \
17623 X"$ac_file" : 'X\(//\)$' \| \
17624 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17625 $as_echo X"$ac_file" |
17626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17627 s//\1/
17628 q
17629 }
17630 /^X\(\/\/\)[^/].*/{
17631 s//\1/
17632 q
17633 }
17634 /^X\(\/\/\)$/{
17635 s//\1/
17636 q
17637 }
17638 /^X\(\/\).*/{
17639 s//\1/
17640 q
17641 }
17642 s/.*/./; q'`
17643 as_dir="$ac_dir"; as_fn_mkdir_p
17644 ac_builddir=.
17645
17646 case "$ac_dir" in
17647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17648 *)
17649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17650 # A ".." for each directory in $ac_dir_suffix.
17651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17652 case $ac_top_builddir_sub in
17653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17655 esac ;;
17656 esac
17657 ac_abs_top_builddir=$ac_pwd
17658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17659 # for backward compatibility:
17660 ac_top_builddir=$ac_top_build_prefix
17661
17662 case $srcdir in
17663 .) # We are building in place.
17664 ac_srcdir=.
17665 ac_top_srcdir=$ac_top_builddir_sub
17666 ac_abs_top_srcdir=$ac_pwd ;;
17667 [\\/]* | ?:[\\/]* ) # Absolute name.
17668 ac_srcdir=$srcdir$ac_dir_suffix;
17669 ac_top_srcdir=$srcdir
17670 ac_abs_top_srcdir=$srcdir ;;
17671 *) # Relative name.
17672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17673 ac_top_srcdir=$ac_top_build_prefix$srcdir
17674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17675 esac
17676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17677
17678
17679 case $ac_mode in
17680 :F)
17681 #
17682 # CONFIG_FILE
17683 #
17684
17685 case $INSTALL in
17686 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17687 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17688 esac
17689 ac_MKDIR_P=$MKDIR_P
17690 case $MKDIR_P in
17691 [\\/$]* | ?:[\\/]* ) ;;
17692 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17693 esac
17694 _ACEOF
17695
17696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17697 # If the template does not know about datarootdir, expand it.
17698 # FIXME: This hack should be removed a few years after 2.60.
17699 ac_datarootdir_hack=; ac_datarootdir_seen=
17700 ac_sed_dataroot='
17701 /datarootdir/ {
17702 p
17703 q
17704 }
17705 /@datadir@/p
17706 /@docdir@/p
17707 /@infodir@/p
17708 /@localedir@/p
17709 /@mandir@/p'
17710 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17711 *datarootdir*) ac_datarootdir_seen=yes;;
17712 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17714 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17715 _ACEOF
17716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17717 ac_datarootdir_hack='
17718 s&@datadir@&$datadir&g
17719 s&@docdir@&$docdir&g
17720 s&@infodir@&$infodir&g
17721 s&@localedir@&$localedir&g
17722 s&@mandir@&$mandir&g
17723 s&\\\${datarootdir}&$datarootdir&g' ;;
17724 esac
17725 _ACEOF
17726
17727 # Neutralize VPATH when `$srcdir' = `.'.
17728 # Shell code in configure.ac might set extrasub.
17729 # FIXME: do we really want to maintain this feature?
17730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17731 ac_sed_extra="$ac_vpsub
17732 $extrasub
17733 _ACEOF
17734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17735 :t
17736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17737 s|@configure_input@|$ac_sed_conf_input|;t t
17738 s&@top_builddir@&$ac_top_builddir_sub&;t t
17739 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17740 s&@srcdir@&$ac_srcdir&;t t
17741 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17742 s&@top_srcdir@&$ac_top_srcdir&;t t
17743 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17744 s&@builddir@&$ac_builddir&;t t
17745 s&@abs_builddir@&$ac_abs_builddir&;t t
17746 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17747 s&@INSTALL@&$ac_INSTALL&;t t
17748 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17749 $ac_datarootdir_hack
17750 "
17751 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17752 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17753
17754 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17755 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17756 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17757 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17759 which seems to be undefined. Please make sure it is defined" >&5
17760 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17761 which seems to be undefined. Please make sure it is defined" >&2;}
17762
17763 rm -f "$ac_tmp/stdin"
17764 case $ac_file in
17765 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17766 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17767 esac \
17768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17769 ;;
17770
17771
17772 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17773 $as_echo "$as_me: executing $ac_file commands" >&6;}
17774 ;;
17775 esac
17776
17777
17778 case $ac_file$ac_mode in
17779 "default-1":C)
17780 # Only add multilib support code if we just rebuilt the top-level
17781 # Makefile.
17782 case " $CONFIG_FILES " in
17783 *" Makefile "*)
17784 ac_file=Makefile . ${multi_basedir}/config-ml.in
17785 ;;
17786 esac ;;
17787 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17788 # Older Autoconf quotes --file arguments for eval, but not when files
17789 # are listed without --file. Let's play safe and only enable the eval
17790 # if we detect the quoting.
17791 case $CONFIG_FILES in
17792 *\'*) eval set x "$CONFIG_FILES" ;;
17793 *) set x $CONFIG_FILES ;;
17794 esac
17795 shift
17796 for mf
17797 do
17798 # Strip MF so we end up with the name of the file.
17799 mf=`echo "$mf" | sed -e 's/:.*$//'`
17800 # Check whether this is an Automake generated Makefile or not.
17801 # We used to match only the files named 'Makefile.in', but
17802 # some people rename them; so instead we look at the file content.
17803 # Grep'ing the first line is not enough: some people post-process
17804 # each Makefile.in and add a new line on top of each file to say so.
17805 # Grep'ing the whole file is not good either: AIX grep has a line
17806 # limit of 2048, but all sed's we know have understand at least 4000.
17807 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17808 dirpart=`$as_dirname -- "$mf" ||
17809 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17810 X"$mf" : 'X\(//\)[^/]' \| \
17811 X"$mf" : 'X\(//\)$' \| \
17812 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17813 $as_echo X"$mf" |
17814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17815 s//\1/
17816 q
17817 }
17818 /^X\(\/\/\)[^/].*/{
17819 s//\1/
17820 q
17821 }
17822 /^X\(\/\/\)$/{
17823 s//\1/
17824 q
17825 }
17826 /^X\(\/\).*/{
17827 s//\1/
17828 q
17829 }
17830 s/.*/./; q'`
17831 else
17832 continue
17833 fi
17834 # Extract the definition of DEPDIR, am__include, and am__quote
17835 # from the Makefile without running 'make'.
17836 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17837 test -z "$DEPDIR" && continue
17838 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17839 test -z "$am__include" && continue
17840 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17841 # Find all dependency output files, they are included files with
17842 # $(DEPDIR) in their names. We invoke sed twice because it is the
17843 # simplest approach to changing $(DEPDIR) to its actual value in the
17844 # expansion.
17845 for file in `sed -n "
17846 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17847 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17848 # Make sure the directory exists.
17849 test -f "$dirpart/$file" && continue
17850 fdir=`$as_dirname -- "$file" ||
17851 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17852 X"$file" : 'X\(//\)[^/]' \| \
17853 X"$file" : 'X\(//\)$' \| \
17854 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17855 $as_echo X"$file" |
17856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17857 s//\1/
17858 q
17859 }
17860 /^X\(\/\/\)[^/].*/{
17861 s//\1/
17862 q
17863 }
17864 /^X\(\/\/\)$/{
17865 s//\1/
17866 q
17867 }
17868 /^X\(\/\).*/{
17869 s//\1/
17870 q
17871 }
17872 s/.*/./; q'`
17873 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17874 # echo "creating $dirpart/$file"
17875 echo '# dummy' > "$dirpart/$file"
17876 done
17877 done
17878 }
17879 ;;
17880 "libtool":C)
17881
17882 # See if we are running on zsh, and set the options which allow our
17883 # commands through without removal of \ escapes.
17884 if test -n "${ZSH_VERSION+set}" ; then
17885 setopt NO_GLOB_SUBST
17886 fi
17887
17888 cfgfile="${ofile}T"
17889 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17890 $RM "$cfgfile"
17891
17892 cat <<_LT_EOF >> "$cfgfile"
17893 #! $SHELL
17894
17895 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17896 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17897 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17898 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17899 #
17900 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17901 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17902 # Written by Gordon Matzigkeit, 1996
17903 #
17904 # This file is part of GNU Libtool.
17905 #
17906 # GNU Libtool is free software; you can redistribute it and/or
17907 # modify it under the terms of the GNU General Public License as
17908 # published by the Free Software Foundation; either version 2 of
17909 # the License, or (at your option) any later version.
17910 #
17911 # As a special exception to the GNU General Public License,
17912 # if you distribute this file as part of a program or library that
17913 # is built using GNU Libtool, you may include this file under the
17914 # same distribution terms that you use for the rest of that program.
17915 #
17916 # GNU Libtool is distributed in the hope that it will be useful,
17917 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17918 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17919 # GNU General Public License for more details.
17920 #
17921 # You should have received a copy of the GNU General Public License
17922 # along with GNU Libtool; see the file COPYING. If not, a copy
17923 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17924 # obtained by writing to the Free Software Foundation, Inc.,
17925 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17926
17927
17928 # The names of the tagged configurations supported by this script.
17929 available_tags="CXX "
17930
17931 # ### BEGIN LIBTOOL CONFIG
17932
17933 # Which release of libtool.m4 was used?
17934 macro_version=$macro_version
17935 macro_revision=$macro_revision
17936
17937 # Whether or not to build shared libraries.
17938 build_libtool_libs=$enable_shared
17939
17940 # Whether or not to build static libraries.
17941 build_old_libs=$enable_static
17942
17943 # What type of objects to build.
17944 pic_mode=$pic_mode
17945
17946 # Whether or not to optimize for fast installation.
17947 fast_install=$enable_fast_install
17948
17949 # Shell to use when invoking shell scripts.
17950 SHELL=$lt_SHELL
17951
17952 # An echo program that protects backslashes.
17953 ECHO=$lt_ECHO
17954
17955 # The host system.
17956 host_alias=$host_alias
17957 host=$host
17958 host_os=$host_os
17959
17960 # The build system.
17961 build_alias=$build_alias
17962 build=$build
17963 build_os=$build_os
17964
17965 # A sed program that does not truncate output.
17966 SED=$lt_SED
17967
17968 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17969 Xsed="\$SED -e 1s/^X//"
17970
17971 # A grep program that handles long lines.
17972 GREP=$lt_GREP
17973
17974 # An ERE matcher.
17975 EGREP=$lt_EGREP
17976
17977 # A literal string matcher.
17978 FGREP=$lt_FGREP
17979
17980 # A BSD- or MS-compatible name lister.
17981 NM=$lt_NM
17982
17983 # Whether we need soft or hard links.
17984 LN_S=$lt_LN_S
17985
17986 # What is the maximum length of a command?
17987 max_cmd_len=$max_cmd_len
17988
17989 # Object file suffix (normally "o").
17990 objext=$ac_objext
17991
17992 # Executable file suffix (normally "").
17993 exeext=$exeext
17994
17995 # whether the shell understands "unset".
17996 lt_unset=$lt_unset
17997
17998 # turn spaces into newlines.
17999 SP2NL=$lt_lt_SP2NL
18000
18001 # turn newlines into spaces.
18002 NL2SP=$lt_lt_NL2SP
18003
18004 # An object symbol dumper.
18005 OBJDUMP=$lt_OBJDUMP
18006
18007 # Method to check whether dependent libraries are shared objects.
18008 deplibs_check_method=$lt_deplibs_check_method
18009
18010 # Command to use when deplibs_check_method == "file_magic".
18011 file_magic_cmd=$lt_file_magic_cmd
18012
18013 # The archiver.
18014 AR=$lt_AR
18015 AR_FLAGS=$lt_AR_FLAGS
18016
18017 # A symbol stripping program.
18018 STRIP=$lt_STRIP
18019
18020 # Commands used to install an old-style archive.
18021 RANLIB=$lt_RANLIB
18022 old_postinstall_cmds=$lt_old_postinstall_cmds
18023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18024
18025 # Whether to use a lock for old archive extraction.
18026 lock_old_archive_extraction=$lock_old_archive_extraction
18027
18028 # A C compiler.
18029 LTCC=$lt_CC
18030
18031 # LTCC compiler flags.
18032 LTCFLAGS=$lt_CFLAGS
18033
18034 # Take the output of nm and produce a listing of raw symbols and C names.
18035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18036
18037 # Transform the output of nm in a proper C declaration.
18038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18039
18040 # Transform the output of nm in a C name address pair.
18041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18042
18043 # Transform the output of nm in a C name address pair when lib prefix is needed.
18044 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18045
18046 # The name of the directory that contains temporary libtool files.
18047 objdir=$objdir
18048
18049 # Used to examine libraries when file_magic_cmd begins with "file".
18050 MAGIC_CMD=$MAGIC_CMD
18051
18052 # Must we lock files when doing compilation?
18053 need_locks=$lt_need_locks
18054
18055 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18056 DSYMUTIL=$lt_DSYMUTIL
18057
18058 # Tool to change global to local symbols on Mac OS X.
18059 NMEDIT=$lt_NMEDIT
18060
18061 # Tool to manipulate fat objects and archives on Mac OS X.
18062 LIPO=$lt_LIPO
18063
18064 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18065 OTOOL=$lt_OTOOL
18066
18067 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18068 OTOOL64=$lt_OTOOL64
18069
18070 # Old archive suffix (normally "a").
18071 libext=$libext
18072
18073 # Shared library suffix (normally ".so").
18074 shrext_cmds=$lt_shrext_cmds
18075
18076 # The commands to extract the exported symbol list from a shared archive.
18077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18078
18079 # Variables whose values should be saved in libtool wrapper scripts and
18080 # restored at link time.
18081 variables_saved_for_relink=$lt_variables_saved_for_relink
18082
18083 # Do we need the "lib" prefix for modules?
18084 need_lib_prefix=$need_lib_prefix
18085
18086 # Do we need a version for libraries?
18087 need_version=$need_version
18088
18089 # Library versioning type.
18090 version_type=$version_type
18091
18092 # Shared library runtime path variable.
18093 runpath_var=$runpath_var
18094
18095 # Shared library path variable.
18096 shlibpath_var=$shlibpath_var
18097
18098 # Is shlibpath searched before the hard-coded library search path?
18099 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18100
18101 # Format of library name prefix.
18102 libname_spec=$lt_libname_spec
18103
18104 # List of archive names. First name is the real one, the rest are links.
18105 # The last name is the one that the linker finds with -lNAME
18106 library_names_spec=$lt_library_names_spec
18107
18108 # The coded name of the library, if different from the real name.
18109 soname_spec=$lt_soname_spec
18110
18111 # Permission mode override for installation of shared libraries.
18112 install_override_mode=$lt_install_override_mode
18113
18114 # Command to use after installation of a shared archive.
18115 postinstall_cmds=$lt_postinstall_cmds
18116
18117 # Command to use after uninstallation of a shared archive.
18118 postuninstall_cmds=$lt_postuninstall_cmds
18119
18120 # Commands used to finish a libtool library installation in a directory.
18121 finish_cmds=$lt_finish_cmds
18122
18123 # As "finish_cmds", except a single script fragment to be evaled but
18124 # not shown.
18125 finish_eval=$lt_finish_eval
18126
18127 # Whether we should hardcode library paths into libraries.
18128 hardcode_into_libs=$hardcode_into_libs
18129
18130 # Compile-time system search path for libraries.
18131 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18132
18133 # Run-time system search path for libraries.
18134 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18135
18136 # Whether dlopen is supported.
18137 dlopen_support=$enable_dlopen
18138
18139 # Whether dlopen of programs is supported.
18140 dlopen_self=$enable_dlopen_self
18141
18142 # Whether dlopen of statically linked programs is supported.
18143 dlopen_self_static=$enable_dlopen_self_static
18144
18145 # Commands to strip libraries.
18146 old_striplib=$lt_old_striplib
18147 striplib=$lt_striplib
18148
18149
18150 # The linker used to build libraries.
18151 LD=$lt_LD
18152
18153 # How to create reloadable object files.
18154 reload_flag=$lt_reload_flag
18155 reload_cmds=$lt_reload_cmds
18156
18157 # Commands used to build an old-style archive.
18158 old_archive_cmds=$lt_old_archive_cmds
18159
18160 # A language specific compiler.
18161 CC=$lt_compiler
18162
18163 # Is the compiler the GNU compiler?
18164 with_gcc=$GCC
18165
18166 # Compiler flag to turn off builtin functions.
18167 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18168
18169 # How to pass a linker flag through the compiler.
18170 wl=$lt_lt_prog_compiler_wl
18171
18172 # Additional compiler flags for building library objects.
18173 pic_flag=$lt_lt_prog_compiler_pic
18174
18175 # Compiler flag to prevent dynamic linking.
18176 link_static_flag=$lt_lt_prog_compiler_static
18177
18178 # Does compiler simultaneously support -c and -o options?
18179 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18180
18181 # Whether or not to add -lc for building shared libraries.
18182 build_libtool_need_lc=$archive_cmds_need_lc
18183
18184 # Whether or not to disallow shared libs when runtime libs are static.
18185 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18186
18187 # Compiler flag to allow reflexive dlopens.
18188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18189
18190 # Compiler flag to generate shared objects directly from archives.
18191 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18192
18193 # Whether the compiler copes with passing no objects directly.
18194 compiler_needs_object=$lt_compiler_needs_object
18195
18196 # Create an old-style archive from a shared archive.
18197 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18198
18199 # Create a temporary old-style archive to link instead of a shared archive.
18200 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18201
18202 # Commands used to build a shared archive.
18203 archive_cmds=$lt_archive_cmds
18204 archive_expsym_cmds=$lt_archive_expsym_cmds
18205
18206 # Commands used to build a loadable module if different from building
18207 # a shared archive.
18208 module_cmds=$lt_module_cmds
18209 module_expsym_cmds=$lt_module_expsym_cmds
18210
18211 # Whether we are building with GNU ld or not.
18212 with_gnu_ld=$lt_with_gnu_ld
18213
18214 # Flag that allows shared libraries with undefined symbols to be built.
18215 allow_undefined_flag=$lt_allow_undefined_flag
18216
18217 # Flag that enforces no undefined symbols.
18218 no_undefined_flag=$lt_no_undefined_flag
18219
18220 # Flag to hardcode \$libdir into a binary during linking.
18221 # This must work even if \$libdir does not exist
18222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18223
18224 # If ld is used when linking, flag to hardcode \$libdir into a binary
18225 # during linking. This must work even if \$libdir does not exist.
18226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18227
18228 # Whether we need a single "-rpath" flag with a separated argument.
18229 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18230
18231 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18232 # DIR into the resulting binary.
18233 hardcode_direct=$hardcode_direct
18234
18235 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18236 # DIR into the resulting binary and the resulting library dependency is
18237 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18238 # library is relocated.
18239 hardcode_direct_absolute=$hardcode_direct_absolute
18240
18241 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18242 # into the resulting binary.
18243 hardcode_minus_L=$hardcode_minus_L
18244
18245 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18246 # into the resulting binary.
18247 hardcode_shlibpath_var=$hardcode_shlibpath_var
18248
18249 # Set to "yes" if building a shared library automatically hardcodes DIR
18250 # into the library and all subsequent libraries and executables linked
18251 # against it.
18252 hardcode_automatic=$hardcode_automatic
18253
18254 # Set to yes if linker adds runtime paths of dependent libraries
18255 # to runtime path list.
18256 inherit_rpath=$inherit_rpath
18257
18258 # Whether libtool must link a program against all its dependency libraries.
18259 link_all_deplibs=$link_all_deplibs
18260
18261 # Fix the shell variable \$srcfile for the compiler.
18262 fix_srcfile_path=$lt_fix_srcfile_path
18263
18264 # Set to "yes" if exported symbols are required.
18265 always_export_symbols=$always_export_symbols
18266
18267 # The commands to list exported symbols.
18268 export_symbols_cmds=$lt_export_symbols_cmds
18269
18270 # Symbols that should not be listed in the preloaded symbols.
18271 exclude_expsyms=$lt_exclude_expsyms
18272
18273 # Symbols that must always be exported.
18274 include_expsyms=$lt_include_expsyms
18275
18276 # Commands necessary for linking programs (against libraries) with templates.
18277 prelink_cmds=$lt_prelink_cmds
18278
18279 # Specify filename containing input files.
18280 file_list_spec=$lt_file_list_spec
18281
18282 # How to hardcode a shared library path into an executable.
18283 hardcode_action=$hardcode_action
18284
18285 # The directories searched by this compiler when creating a shared library.
18286 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18287
18288 # Dependencies to place before and after the objects being linked to
18289 # create a shared library.
18290 predep_objects=$lt_predep_objects
18291 postdep_objects=$lt_postdep_objects
18292 predeps=$lt_predeps
18293 postdeps=$lt_postdeps
18294
18295 # The library search path used internally by the compiler when linking
18296 # a shared library.
18297 compiler_lib_search_path=$lt_compiler_lib_search_path
18298
18299 # ### END LIBTOOL CONFIG
18300
18301 _LT_EOF
18302
18303 case $host_os in
18304 aix3*)
18305 cat <<\_LT_EOF >> "$cfgfile"
18306 # AIX sometimes has problems with the GCC collect2 program. For some
18307 # reason, if we set the COLLECT_NAMES environment variable, the problems
18308 # vanish in a puff of smoke.
18309 if test "X${COLLECT_NAMES+set}" != Xset; then
18310 COLLECT_NAMES=
18311 export COLLECT_NAMES
18312 fi
18313 _LT_EOF
18314 ;;
18315 esac
18316
18317
18318 ltmain="$ac_aux_dir/ltmain.sh"
18319
18320
18321 # We use sed instead of cat because bash on DJGPP gets confused if
18322 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18323 # text mode, it properly converts lines to CR/LF. This bash problem
18324 # is reportedly fixed, but why not run on old versions too?
18325 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18326 || (rm -f "$cfgfile"; exit 1)
18327
18328 case $xsi_shell in
18329 yes)
18330 cat << \_LT_EOF >> "$cfgfile"
18331
18332 # func_dirname file append nondir_replacement
18333 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18334 # otherwise set result to NONDIR_REPLACEMENT.
18335 func_dirname ()
18336 {
18337 case ${1} in
18338 */*) func_dirname_result="${1%/*}${2}" ;;
18339 * ) func_dirname_result="${3}" ;;
18340 esac
18341 }
18342
18343 # func_basename file
18344 func_basename ()
18345 {
18346 func_basename_result="${1##*/}"
18347 }
18348
18349 # func_dirname_and_basename file append nondir_replacement
18350 # perform func_basename and func_dirname in a single function
18351 # call:
18352 # dirname: Compute the dirname of FILE. If nonempty,
18353 # add APPEND to the result, otherwise set result
18354 # to NONDIR_REPLACEMENT.
18355 # value returned in "$func_dirname_result"
18356 # basename: Compute filename of FILE.
18357 # value retuned in "$func_basename_result"
18358 # Implementation must be kept synchronized with func_dirname
18359 # and func_basename. For efficiency, we do not delegate to
18360 # those functions but instead duplicate the functionality here.
18361 func_dirname_and_basename ()
18362 {
18363 case ${1} in
18364 */*) func_dirname_result="${1%/*}${2}" ;;
18365 * ) func_dirname_result="${3}" ;;
18366 esac
18367 func_basename_result="${1##*/}"
18368 }
18369
18370 # func_stripname prefix suffix name
18371 # strip PREFIX and SUFFIX off of NAME.
18372 # PREFIX and SUFFIX must not contain globbing or regex special
18373 # characters, hashes, percent signs, but SUFFIX may contain a leading
18374 # dot (in which case that matches only a dot).
18375 func_stripname ()
18376 {
18377 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18378 # positional parameters, so assign one to ordinary parameter first.
18379 func_stripname_result=${3}
18380 func_stripname_result=${func_stripname_result#"${1}"}
18381 func_stripname_result=${func_stripname_result%"${2}"}
18382 }
18383
18384 # func_opt_split
18385 func_opt_split ()
18386 {
18387 func_opt_split_opt=${1%%=*}
18388 func_opt_split_arg=${1#*=}
18389 }
18390
18391 # func_lo2o object
18392 func_lo2o ()
18393 {
18394 case ${1} in
18395 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18396 *) func_lo2o_result=${1} ;;
18397 esac
18398 }
18399
18400 # func_xform libobj-or-source
18401 func_xform ()
18402 {
18403 func_xform_result=${1%.*}.lo
18404 }
18405
18406 # func_arith arithmetic-term...
18407 func_arith ()
18408 {
18409 func_arith_result=$(( $* ))
18410 }
18411
18412 # func_len string
18413 # STRING may not start with a hyphen.
18414 func_len ()
18415 {
18416 func_len_result=${#1}
18417 }
18418
18419 _LT_EOF
18420 ;;
18421 *) # Bourne compatible functions.
18422 cat << \_LT_EOF >> "$cfgfile"
18423
18424 # func_dirname file append nondir_replacement
18425 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18426 # otherwise set result to NONDIR_REPLACEMENT.
18427 func_dirname ()
18428 {
18429 # Extract subdirectory from the argument.
18430 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18431 if test "X$func_dirname_result" = "X${1}"; then
18432 func_dirname_result="${3}"
18433 else
18434 func_dirname_result="$func_dirname_result${2}"
18435 fi
18436 }
18437
18438 # func_basename file
18439 func_basename ()
18440 {
18441 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18442 }
18443
18444
18445 # func_stripname prefix suffix name
18446 # strip PREFIX and SUFFIX off of NAME.
18447 # PREFIX and SUFFIX must not contain globbing or regex special
18448 # characters, hashes, percent signs, but SUFFIX may contain a leading
18449 # dot (in which case that matches only a dot).
18450 # func_strip_suffix prefix name
18451 func_stripname ()
18452 {
18453 case ${2} in
18454 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18455 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18456 esac
18457 }
18458
18459 # sed scripts:
18460 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18461 my_sed_long_arg='1s/^-[^=]*=//'
18462
18463 # func_opt_split
18464 func_opt_split ()
18465 {
18466 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18467 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18468 }
18469
18470 # func_lo2o object
18471 func_lo2o ()
18472 {
18473 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18474 }
18475
18476 # func_xform libobj-or-source
18477 func_xform ()
18478 {
18479 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18480 }
18481
18482 # func_arith arithmetic-term...
18483 func_arith ()
18484 {
18485 func_arith_result=`expr "$@"`
18486 }
18487
18488 # func_len string
18489 # STRING may not start with a hyphen.
18490 func_len ()
18491 {
18492 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18493 }
18494
18495 _LT_EOF
18496 esac
18497
18498 case $lt_shell_append in
18499 yes)
18500 cat << \_LT_EOF >> "$cfgfile"
18501
18502 # func_append var value
18503 # Append VALUE to the end of shell variable VAR.
18504 func_append ()
18505 {
18506 eval "$1+=\$2"
18507 }
18508 _LT_EOF
18509 ;;
18510 *)
18511 cat << \_LT_EOF >> "$cfgfile"
18512
18513 # func_append var value
18514 # Append VALUE to the end of shell variable VAR.
18515 func_append ()
18516 {
18517 eval "$1=\$$1\$2"
18518 }
18519
18520 _LT_EOF
18521 ;;
18522 esac
18523
18524
18525 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18526 || (rm -f "$cfgfile"; exit 1)
18527
18528 mv -f "$cfgfile" "$ofile" ||
18529 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18530 chmod +x "$ofile"
18531
18532
18533 cat <<_LT_EOF >> "$ofile"
18534
18535 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18536
18537 # The linker used to build libraries.
18538 LD=$lt_LD_CXX
18539
18540 # How to create reloadable object files.
18541 reload_flag=$lt_reload_flag_CXX
18542 reload_cmds=$lt_reload_cmds_CXX
18543
18544 # Commands used to build an old-style archive.
18545 old_archive_cmds=$lt_old_archive_cmds_CXX
18546
18547 # A language specific compiler.
18548 CC=$lt_compiler_CXX
18549
18550 # Is the compiler the GNU compiler?
18551 with_gcc=$GCC_CXX
18552
18553 # Compiler flag to turn off builtin functions.
18554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18555
18556 # How to pass a linker flag through the compiler.
18557 wl=$lt_lt_prog_compiler_wl_CXX
18558
18559 # Additional compiler flags for building library objects.
18560 pic_flag=$lt_lt_prog_compiler_pic_CXX
18561
18562 # Compiler flag to prevent dynamic linking.
18563 link_static_flag=$lt_lt_prog_compiler_static_CXX
18564
18565 # Does compiler simultaneously support -c and -o options?
18566 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18567
18568 # Whether or not to add -lc for building shared libraries.
18569 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18570
18571 # Whether or not to disallow shared libs when runtime libs are static.
18572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18573
18574 # Compiler flag to allow reflexive dlopens.
18575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18576
18577 # Compiler flag to generate shared objects directly from archives.
18578 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18579
18580 # Whether the compiler copes with passing no objects directly.
18581 compiler_needs_object=$lt_compiler_needs_object_CXX
18582
18583 # Create an old-style archive from a shared archive.
18584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18585
18586 # Create a temporary old-style archive to link instead of a shared archive.
18587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18588
18589 # Commands used to build a shared archive.
18590 archive_cmds=$lt_archive_cmds_CXX
18591 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18592
18593 # Commands used to build a loadable module if different from building
18594 # a shared archive.
18595 module_cmds=$lt_module_cmds_CXX
18596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18597
18598 # Whether we are building with GNU ld or not.
18599 with_gnu_ld=$lt_with_gnu_ld_CXX
18600
18601 # Flag that allows shared libraries with undefined symbols to be built.
18602 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18603
18604 # Flag that enforces no undefined symbols.
18605 no_undefined_flag=$lt_no_undefined_flag_CXX
18606
18607 # Flag to hardcode \$libdir into a binary during linking.
18608 # This must work even if \$libdir does not exist
18609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18610
18611 # If ld is used when linking, flag to hardcode \$libdir into a binary
18612 # during linking. This must work even if \$libdir does not exist.
18613 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18614
18615 # Whether we need a single "-rpath" flag with a separated argument.
18616 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18617
18618 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18619 # DIR into the resulting binary.
18620 hardcode_direct=$hardcode_direct_CXX
18621
18622 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18623 # DIR into the resulting binary and the resulting library dependency is
18624 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18625 # library is relocated.
18626 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18627
18628 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18629 # into the resulting binary.
18630 hardcode_minus_L=$hardcode_minus_L_CXX
18631
18632 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18633 # into the resulting binary.
18634 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18635
18636 # Set to "yes" if building a shared library automatically hardcodes DIR
18637 # into the library and all subsequent libraries and executables linked
18638 # against it.
18639 hardcode_automatic=$hardcode_automatic_CXX
18640
18641 # Set to yes if linker adds runtime paths of dependent libraries
18642 # to runtime path list.
18643 inherit_rpath=$inherit_rpath_CXX
18644
18645 # Whether libtool must link a program against all its dependency libraries.
18646 link_all_deplibs=$link_all_deplibs_CXX
18647
18648 # Fix the shell variable \$srcfile for the compiler.
18649 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18650
18651 # Set to "yes" if exported symbols are required.
18652 always_export_symbols=$always_export_symbols_CXX
18653
18654 # The commands to list exported symbols.
18655 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18656
18657 # Symbols that should not be listed in the preloaded symbols.
18658 exclude_expsyms=$lt_exclude_expsyms_CXX
18659
18660 # Symbols that must always be exported.
18661 include_expsyms=$lt_include_expsyms_CXX
18662
18663 # Commands necessary for linking programs (against libraries) with templates.
18664 prelink_cmds=$lt_prelink_cmds_CXX
18665
18666 # Specify filename containing input files.
18667 file_list_spec=$lt_file_list_spec_CXX
18668
18669 # How to hardcode a shared library path into an executable.
18670 hardcode_action=$hardcode_action_CXX
18671
18672 # The directories searched by this compiler when creating a shared library.
18673 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18674
18675 # Dependencies to place before and after the objects being linked to
18676 # create a shared library.
18677 predep_objects=$lt_predep_objects_CXX
18678 postdep_objects=$lt_postdep_objects_CXX
18679 predeps=$lt_predeps_CXX
18680 postdeps=$lt_postdeps_CXX
18681
18682 # The library search path used internally by the compiler when linking
18683 # a shared library.
18684 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18685
18686 # ### END LIBTOOL TAG CONFIG: CXX
18687 _LT_EOF
18688
18689 ;;
18690 "libproc_macro/Makefile":F) cat > vpsed$$ << \_EOF
18691 s!`test -f '$<' || echo '$(srcdir)/'`!!
18692 _EOF
18693 sed -f vpsed$$ $ac_file > tmp$$
18694 mv tmp$$ $ac_file
18695 rm vpsed$$
18696 echo 'MULTISUBDIR =' >> $ac_file
18697 ml_norecursion=yes
18698 { ml_norecursion=; unset ml_norecursion;}
18699 ;;
18700
18701 esac
18702 done # for ac_tag
18703
18704
18705 as_fn_exit 0
18706 _ACEOF
18707 ac_clean_files=$ac_clean_files_save
18708
18709 test $ac_write_fail = 0 ||
18710 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18711
18712
18713 # configure is writing to config.log, and then calls config.status.
18714 # config.status does its own redirection, appending to config.log.
18715 # Unfortunately, on DOS this fails, as config.log is still kept open
18716 # by configure, so config.status won't be able to write to it; its
18717 # output is simply discarded. So we exec the FD to /dev/null,
18718 # effectively closing config.log, so it can be properly (re)opened and
18719 # appended to by config.status. When coming back to configure, we
18720 # need to make the FD available again.
18721 if test "$no_create" != yes; then
18722 ac_cs_success=:
18723 ac_config_status_args=
18724 test "$silent" = yes &&
18725 ac_config_status_args="$ac_config_status_args --quiet"
18726 exec 5>/dev/null
18727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18728 exec 5>>config.log
18729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18730 # would make configure fail if this is the last instruction.
18731 $ac_cs_success || as_fn_exit 1
18732 fi
18733 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18735 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18736 fi
18737
This page took 1.015081 seconds and 5 git commands to generate.