Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dieharder 3.31.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='dieharder'
589 PACKAGE_TARNAME='dieharder'
590 PACKAGE_VERSION='3.31.1'
591 PACKAGE_STRING='dieharder 3.31.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="dieharder.abs"
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 LITTLE_ENDIAN
637 ACLOCAL_AMFLAGS
638 DIEHARDER_LIBS
639 libdieharder_lo_CFLAGS
640 dieharder_CFLAGS
641 DIEHARDER_CFLAGS
642 ACTAR
643 RELEASED
644 DIEHARDER_LIB_VERSION
645 DIEHARDER_LT_VERSION
646 LIBTOOL_DEPS
647 CPP
648 LT_SYS_LIBRARY_PATH
649 OTOOL64
650 OTOOL
651 LIPO
652 NMEDIT
653 DSYMUTIL
654 MANIFEST_TOOL
655 RANLIB
656 ac_ct_AR
657 AR
658 DLLTOOL
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 EGREP
667 GREP
668 SED
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 LIBTOOL
694 RELEASE
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 runstatedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL
761 am__quote'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_aix_soname
771 enable_dependency_tracking
772 with_gnu_ld
773 with_sysroot
774 enable_libtool_lock
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 LT_SYS_LIBRARY_PATH
785 CPP'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 runstatedir='${localstatedir}/run'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -runstatedir | --runstatedir | --runstatedi | --runstated \
1078 | --runstate | --runstat | --runsta | --runst | --runs \
1079 | --run | --ru | --r)
1080 ac_prev=runstatedir ;;
1081 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1082 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1083 | --run=* | --ru=* | --r=*)
1084 runstatedir=$ac_optarg ;;
1085
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1091
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1102
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1107
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1112
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1119
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1124
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1127
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1130
1131 -with-* | --with-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=\$ac_optarg ;;
1146
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=no ;;
1162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information"
1183 ;;
1184
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191 esac
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 ;;
1202
1203 esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1209 fi
1210
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1217 fi
1218
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir runstatedir
1224 do
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
1233 case $ac_val in
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 esac
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 done
1239
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1243 build=$build_alias
1244 host=$host_alias
1245 target=$target_alias
1246
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1253 fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1300 fi
1301 else
1302 ac_srcdir_defaulted=no
1303 fi
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336 \`configure' configures dieharder 3.31.1 to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/dieharder]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1391
1392 cat <<\_ACEOF
1393
1394 Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of dieharder 3.31.1:";;
1408 esac
1409 cat <<\_ACEOF
1410
1411 Optional Features:
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --enable-silent-rules less verbose build output (undo: "make V=1")
1416 --disable-silent-rules verbose build output (undo: "make V=0")
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --enable-dependency-tracking
1422 do not reject slow dependency extractors
1423 --disable-dependency-tracking
1424 speeds up one-time build
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-aix-soname=aix|svr4|both
1433 shared library versioning (aka "SONAME") variant to
1434 provide on AIX, [default=aix].
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1437 compiler's sysroot if not specified).
1438
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 LT_SYS_LIBRARY_PATH
1448 User-defined run-time library search path.
1449 CPP C preprocessor
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to the package provider.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 dieharder configure 3.31.1
1518 generated by GNU Autoconf 2.69
1519
1520 Copyright (C) 2012 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_try_link LINENO
1570 # -----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_link ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest$ac_exeext
1576 if { { ac_try="$ac_link"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest$ac_exeext && {
1595 test "$cross_compiling" = yes ||
1596 test -x conftest$ac_exeext
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604 fi
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_link
1614
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1626 else
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 $4
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"; then :
1633 eval "$3=yes"
1634 else
1635 eval "$3=no"
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 fi
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_c_check_header_compile
1645
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_cpp ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677 fi
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_cpp
1682
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=$ac_status
1718 fi
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1735 else
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1741
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below.
1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745 <limits.h> exists even on freestanding compilers. */
1746
1747 #ifdef __STDC__
1748 # include <limits.h>
1749 #else
1750 # include <assert.h>
1751 #endif
1752
1753 #undef $2
1754
1755 /* Override any GCC internal prototype to avoid an error.
1756 Use char because int might match the return type of a GCC
1757 builtin and then its argument prototype would still apply. */
1758 #ifdef __cplusplus
1759 extern "C"
1760 #endif
1761 char $2 ();
1762 /* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765 #if defined __stub_$2 || defined __stub___$2
1766 choke me
1767 #endif
1768
1769 int
1770 main ()
1771 {
1772 return $2 ();
1773 ;
1774 return 0;
1775 }
1776 _ACEOF
1777 if ac_fn_c_try_link "$LINENO"; then :
1778 eval "$3=yes"
1779 else
1780 eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext \
1783 conftest$ac_exeext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_func
1791
1792 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1793 # -------------------------------------------
1794 # Tests whether TYPE exists after having included INCLUDES, setting cache
1795 # variable VAR accordingly.
1796 ac_fn_c_check_type ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 eval "$3=no"
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 int
1809 main ()
1810 {
1811 if (sizeof ($2))
1812 return 0;
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 $4
1821 int
1822 main ()
1823 {
1824 if (sizeof (($2)))
1825 return 0;
1826 ;
1827 return 0;
1828 }
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831
1832 else
1833 eval "$3=yes"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_type
1845
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1850 # accordingly.
1851 ac_fn_c_check_header_mongrel ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if eval \${$3+:} false; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 else
1864 # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $4
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873 ac_header_compiler=yes
1874 else
1875 ac_header_compiler=no
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1880
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889 ac_header_preproc=yes
1890 else
1891 ac_header_preproc=no
1892 fi
1893 rm -f conftest.err conftest.i conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1896
1897 # So? What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1899 yes:no: )
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 ;;
1905 no:yes:* )
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 ;;
1917 esac
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922 else
1923 eval "$3=\$ac_header_compiler"
1924 fi
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 fi
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_header_mongrel
1932 cat >config.log <<_ACEOF
1933 This file contains any messages produced by compilers while
1934 running configure, to aid debugging if configure makes a mistake.
1935
1936 It was created by dieharder $as_me 3.31.1, which was
1937 generated by GNU Autoconf 2.69. Invocation command line was
1938
1939 $ $0 $@
1940
1941 _ACEOF
1942 exec 5>>config.log
1943 {
1944 cat <<_ASUNAME
1945 ## --------- ##
1946 ## Platform. ##
1947 ## --------- ##
1948
1949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957
1958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1961 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1965
1966 _ASUNAME
1967
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 $as_echo "PATH: $as_dir"
1974 done
1975 IFS=$as_save_IFS
1976
1977 } >&5
1978
1979 cat >&5 <<_ACEOF
1980
1981
1982 ## ----------- ##
1983 ## Core tests. ##
1984 ## ----------- ##
1985
1986 _ACEOF
1987
1988
1989 # Keep a trace of the command line.
1990 # Strip out --no-create and --no-recursion so they do not pile up.
1991 # Strip out --silent because we don't want to record it for future runs.
1992 # Also quote any args containing shell meta-characters.
1993 # Make two passes to allow for proper duplicate-argument suppression.
1994 ac_configure_args=
1995 ac_configure_args0=
1996 ac_configure_args1=
1997 ac_must_keep_next=false
1998 for ac_pass in 1 2
1999 do
2000 for ac_arg
2001 do
2002 case $ac_arg in
2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005 | -silent | --silent | --silen | --sile | --sil)
2006 continue ;;
2007 *\'*)
2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2009 esac
2010 case $ac_pass in
2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2012 2)
2013 as_fn_append ac_configure_args1 " '$ac_arg'"
2014 if test $ac_must_keep_next = true; then
2015 ac_must_keep_next=false # Got value, back to normal.
2016 else
2017 case $ac_arg in
2018 *=* | --config-cache | -C | -disable-* | --disable-* \
2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021 | -with-* | --with-* | -without-* | --without-* | --x)
2022 case "$ac_configure_args0 " in
2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024 esac
2025 ;;
2026 -* ) ac_must_keep_next=true ;;
2027 esac
2028 fi
2029 as_fn_append ac_configure_args " '$ac_arg'"
2030 ;;
2031 esac
2032 done
2033 done
2034 { ac_configure_args0=; unset ac_configure_args0;}
2035 { ac_configure_args1=; unset ac_configure_args1;}
2036
2037 # When interrupted or exit'd, cleanup temporary files, and complete
2038 # config.log. We remove comments because anyway the quotes in there
2039 # would cause problems or look ugly.
2040 # WARNING: Use '\'' to represent an apostrophe within the trap.
2041 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2042 trap 'exit_status=$?
2043 # Save into config.log some information that might help in debugging.
2044 {
2045 echo
2046
2047 $as_echo "## ---------------- ##
2048 ## Cache variables. ##
2049 ## ---------------- ##"
2050 echo
2051 # The following way of writing the cache mishandles newlines in values,
2052 (
2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in #(
2056 *${as_nl}*)
2057 case $ac_var in #(
2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060 esac
2061 case $ac_var in #(
2062 _ | IFS | as_nl) ;; #(
2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064 *) { eval $ac_var=; unset $ac_var;} ;;
2065 esac ;;
2066 esac
2067 done
2068 (set) 2>&1 |
2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070 *${as_nl}ac_space=\ *)
2071 sed -n \
2072 "s/'\''/'\''\\\\'\'''\''/g;
2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074 ;; #(
2075 *)
2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2077 ;;
2078 esac |
2079 sort
2080 )
2081 echo
2082
2083 $as_echo "## ----------------- ##
2084 ## Output variables. ##
2085 ## ----------------- ##"
2086 echo
2087 for ac_var in $ac_subst_vars
2088 do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2096
2097 if test -n "$ac_subst_files"; then
2098 $as_echo "## ------------------- ##
2099 ## File substitutions. ##
2100 ## ------------------- ##"
2101 echo
2102 for ac_var in $ac_subst_files
2103 do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111 fi
2112
2113 if test -s confdefs.h; then
2114 $as_echo "## ----------- ##
2115 ## confdefs.h. ##
2116 ## ----------- ##"
2117 echo
2118 cat confdefs.h
2119 echo
2120 fi
2121 test "$ac_signal" != 0 &&
2122 $as_echo "$as_me: caught signal $ac_signal"
2123 $as_echo "$as_me: exit $exit_status"
2124 } >&5
2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2127 exit $exit_status
2128 ' 0
2129 for ac_signal in 1 2 13 15; do
2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2131 done
2132 ac_signal=0
2133
2134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2135 rm -f -r conftest* confdefs.h
2136
2137 $as_echo "/* confdefs.h */" > confdefs.h
2138
2139 # Predefined preprocessor variables.
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_NAME "$PACKAGE_NAME"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_STRING "$PACKAGE_STRING"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_URL "$PACKAGE_URL"
2163 _ACEOF
2164
2165
2166 # Let the site file select an alternate cache file if it wants to.
2167 # Prefer an explicitly selected file to automatically selected ones.
2168 ac_site_file1=NONE
2169 ac_site_file2=NONE
2170 if test -n "$CONFIG_SITE"; then
2171 # We do not want a PATH search for config.site.
2172 case $CONFIG_SITE in #((
2173 -*) ac_site_file1=./$CONFIG_SITE;;
2174 */*) ac_site_file1=$CONFIG_SITE;;
2175 *) ac_site_file1=./$CONFIG_SITE;;
2176 esac
2177 elif test "x$prefix" != xNONE; then
2178 ac_site_file1=$prefix/share/config.site
2179 ac_site_file2=$prefix/etc/config.site
2180 else
2181 ac_site_file1=$ac_default_prefix/share/config.site
2182 ac_site_file2=$ac_default_prefix/etc/config.site
2183 fi
2184 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185 do
2186 test "x$ac_site_file" = xNONE && continue
2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2190 sed 's/^/| /' "$ac_site_file" >&5
2191 . "$ac_site_file" \
2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194 as_fn_error $? "failed to load site script $ac_site_file
2195 See \`config.log' for more details" "$LINENO" 5; }
2196 fi
2197 done
2198
2199 if test -r "$cache_file"; then
2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204 $as_echo "$as_me: loading cache $cache_file" >&6;}
2205 case $cache_file in
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
2208 esac
2209 fi
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212 $as_echo "$as_me: creating cache $cache_file" >&6;}
2213 >$cache_file
2214 fi
2215
2216 # Check that the precious variables saved in the cache have kept the same
2217 # value.
2218 ac_cache_corrupted=false
2219 for ac_var in $ac_precious_vars; do
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
2224 case $ac_old_set,$ac_new_set in
2225 set,)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2229 ,set)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2233 ,);;
2234 *)
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263 esac
2264 fi
2265 done
2266 if $ac_cache_corrupted; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272 fi
2273 ## -------------------- ##
2274 ## Main body of script. ##
2275 ## -------------------- ##
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284
2285 am__api_version='1.16'
2286
2287 ac_aux_dir=
2288 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2289 if test -f "$ac_dir/install-sh"; then
2290 ac_aux_dir=$ac_dir
2291 ac_install_sh="$ac_aux_dir/install-sh -c"
2292 break
2293 elif test -f "$ac_dir/install.sh"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/install.sh -c"
2296 break
2297 elif test -f "$ac_dir/shtool"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/shtool install -c"
2300 break
2301 fi
2302 done
2303 if test -z "$ac_aux_dir"; then
2304 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2305 fi
2306
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
2315
2316 # Find a good install program. We prefer a C program (faster),
2317 # so one script is as good as another. But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2322 # AIX /bin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # OS/2's system install, which has a completely different semantic
2328 # ./install, which can be erroneously created by make from ./install.sh.
2329 # Reject install programs that cannot install multiple files.
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2332 if test -z "$INSTALL"; then
2333 if ${ac_cv_path_install+:} false; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 # Account for people who put trailing slashes in PATH elements.
2342 case $as_dir/ in #((
2343 ./ | .// | /[cC]/* | \
2344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2346 /usr/ucb/* ) ;;
2347 *)
2348 # OSF1 and SCO ODT 3.0 have their own names for install.
2349 # Don't use installbsd from OSF since it installs stuff as root
2350 # by default.
2351 for ac_prog in ginstall scoinst install; do
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354 if test $ac_prog = install &&
2355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356 # AIX install. It has an incompatible calling convention.
2357 :
2358 elif test $ac_prog = install &&
2359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # program-specific install script used by HP pwplus--don't use.
2361 :
2362 else
2363 rm -rf conftest.one conftest.two conftest.dir
2364 echo one > conftest.one
2365 echo two > conftest.two
2366 mkdir conftest.dir
2367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368 test -s conftest.one && test -s conftest.two &&
2369 test -s conftest.dir/conftest.one &&
2370 test -s conftest.dir/conftest.two
2371 then
2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373 break 3
2374 fi
2375 fi
2376 fi
2377 done
2378 done
2379 ;;
2380 esac
2381
2382 done
2383 IFS=$as_save_IFS
2384
2385 rm -rf conftest.one conftest.two conftest.dir
2386
2387 fi
2388 if test "${ac_cv_path_install+set}" = set; then
2389 INSTALL=$ac_cv_path_install
2390 else
2391 # As a last resort, use the slow shell script. Don't cache a
2392 # value for INSTALL within a source directory, because that will
2393 # break other packages using the cache if that directory is
2394 # removed, or if the value is a relative name.
2395 INSTALL=$ac_install_sh
2396 fi
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399 $as_echo "$INSTALL" >&6; }
2400
2401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402 # It thinks the first close brace ends the variable substitution.
2403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404
2405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406
2407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410 $as_echo_n "checking whether build environment is sane... " >&6; }
2411 # Reject unsafe characters in $srcdir or the absolute working directory
2412 # name. Accept space and tab only in the latter.
2413 am_lf='
2414 '
2415 case `pwd` in
2416 *[\\\"\#\$\&\'\`$am_lf]*)
2417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2418 esac
2419 case $srcdir in
2420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2422 esac
2423
2424 # Do 'set' in a subshell so we don't clobber the current shell's
2425 # arguments. Must try -L first in case configure is actually a
2426 # symlink; some systems play weird games with the mod time of symlinks
2427 # (eg FreeBSD returns the mod time of the symlink's containing
2428 # directory).
2429 if (
2430 am_has_slept=no
2431 for am_try in 1 2; do
2432 echo "timestamp, slept: $am_has_slept" > conftest.file
2433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434 if test "$*" = "X"; then
2435 # -L didn't work.
2436 set X `ls -t "$srcdir/configure" conftest.file`
2437 fi
2438 if test "$*" != "X $srcdir/configure conftest.file" \
2439 && test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441 # If neither matched, then we have a broken ls. This can happen
2442 # if, for instance, CONFIG_SHELL is bash and it inherits a
2443 # broken ls alias from the environment. This has actually
2444 # happened. Such a system could not be considered "sane".
2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2447 fi
2448 if test "$2" = conftest.file || test $am_try -eq 2; then
2449 break
2450 fi
2451 # Just in case.
2452 sleep 1
2453 am_has_slept=yes
2454 done
2455 test "$2" = conftest.file
2456 )
2457 then
2458 # Ok.
2459 :
2460 else
2461 as_fn_error $? "newly created file is older than distributed files!
2462 Check your system clock" "$LINENO" 5
2463 fi
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2466 # If we didn't sleep, we still need to ensure time stamps of config.status and
2467 # generated files are strictly newer.
2468 am_sleep_pid=
2469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2470 ( sleep 1 ) &
2471 am_sleep_pid=$!
2472 fi
2473
2474 rm -f conftest.file
2475
2476 test "$program_prefix" != NONE &&
2477 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478 # Use a double $ so make ignores it.
2479 test "$program_suffix" != NONE &&
2480 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481 # Double any \ or $.
2482 # By default was `s,x,x', remove it if useless.
2483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2485
2486 # Expand $ac_aux_dir to an absolute path.
2487 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2488
2489 if test x"${MISSING+set}" != xset; then
2490 case $am_aux_dir in
2491 *\ * | *\ *)
2492 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2493 *)
2494 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2495 esac
2496 fi
2497 # Use eval to expand $SHELL
2498 if eval "$MISSING --is-lightweight"; then
2499 am_missing_run="$MISSING "
2500 else
2501 am_missing_run=
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2503 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2504 fi
2505
2506 if test x"${install_sh+set}" != xset; then
2507 case $am_aux_dir in
2508 *\ * | *\ *)
2509 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2510 *)
2511 install_sh="\${SHELL} $am_aux_dir/install-sh"
2512 esac
2513 fi
2514
2515 # Installed binaries are usually stripped using 'strip' when the user
2516 # run "make install-strip". However 'strip' might not be the right
2517 # tool to use in cross-compilation environments, therefore Automake
2518 # will honor the 'STRIP' environment variable to overrule this program.
2519 if test "$cross_compiling" != no; then
2520 if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}strip; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_STRIP+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 if test -n "$STRIP"; then
2529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542 done
2543 done
2544 IFS=$as_save_IFS
2545
2546 fi
2547 fi
2548 STRIP=$ac_cv_prog_STRIP
2549 if test -n "$STRIP"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551 $as_echo "$STRIP" >&6; }
2552 else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2555 fi
2556
2557
2558 fi
2559 if test -z "$ac_cv_prog_STRIP"; then
2560 ac_ct_STRIP=$STRIP
2561 # Extract the first word of "strip", so it can be a program name with args.
2562 set dummy strip; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$ac_ct_STRIP"; then
2569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_ac_ct_STRIP="strip"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589 if test -n "$ac_ct_STRIP"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591 $as_echo "$ac_ct_STRIP" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597 if test "x$ac_ct_STRIP" = x; then
2598 STRIP=":"
2599 else
2600 case $cross_compiling:$ac_tool_warned in
2601 yes:)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604 ac_tool_warned=yes ;;
2605 esac
2606 STRIP=$ac_ct_STRIP
2607 fi
2608 else
2609 STRIP="$ac_cv_prog_STRIP"
2610 fi
2611
2612 fi
2613 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2614
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617 if test -z "$MKDIR_P"; then
2618 if ${ac_cv_path_mkdir+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_prog in mkdir gmkdir; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630 'mkdir (GNU coreutils) '* | \
2631 'mkdir (coreutils) '* | \
2632 'mkdir (fileutils) '4.1*)
2633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2634 break 3;;
2635 esac
2636 done
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642
2643 test -d ./--version && rmdir ./--version
2644 if test "${ac_cv_path_mkdir+set}" = set; then
2645 MKDIR_P="$ac_cv_path_mkdir -p"
2646 else
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for MKDIR_P within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 MKDIR_P="$ac_install_sh -d"
2652 fi
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655 $as_echo "$MKDIR_P" >&6; }
2656
2657 for ac_prog in gawk mawk nawk awk
2658 do
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_AWK+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$AWK"; then
2667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_AWK="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 AWK=$ac_cv_prog_AWK
2687 if test -n "$AWK"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689 $as_echo "$AWK" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 test -n "$AWK" && break
2697 done
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2701 set x ${MAKE-make}
2702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat >conftest.make <<\_ACEOF
2707 SHELL = /bin/sh
2708 all:
2709 @echo '@@@%%%=$(MAKE)=@@@%%%'
2710 _ACEOF
2711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2713 *@@@%%%=?*=@@@%%%*)
2714 eval ac_cv_prog_make_${ac_make}_set=yes;;
2715 *)
2716 eval ac_cv_prog_make_${ac_make}_set=no;;
2717 esac
2718 rm -f conftest.make
2719 fi
2720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 SET_MAKE=
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 SET_MAKE="MAKE=${MAKE-make}"
2728 fi
2729
2730 rm -rf .tst 2>/dev/null
2731 mkdir .tst 2>/dev/null
2732 if test -d .tst; then
2733 am__leading_dot=.
2734 else
2735 am__leading_dot=_
2736 fi
2737 rmdir .tst 2>/dev/null
2738
2739 # Check whether --enable-silent-rules was given.
2740 if test "${enable_silent_rules+set}" = set; then :
2741 enableval=$enable_silent_rules;
2742 fi
2743
2744 case $enable_silent_rules in # (((
2745 yes) AM_DEFAULT_VERBOSITY=0;;
2746 no) AM_DEFAULT_VERBOSITY=1;;
2747 *) AM_DEFAULT_VERBOSITY=1;;
2748 esac
2749 am_make=${MAKE-make}
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2751 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2752 if ${am_cv_make_support_nested_variables+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if $as_echo 'TRUE=$(BAR$(V))
2756 BAR0=false
2757 BAR1=true
2758 V=1
2759 am__doit:
2760 @$(TRUE)
2761 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2762 am_cv_make_support_nested_variables=yes
2763 else
2764 am_cv_make_support_nested_variables=no
2765 fi
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2768 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2769 if test $am_cv_make_support_nested_variables = yes; then
2770 AM_V='$(V)'
2771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2772 else
2773 AM_V=$AM_DEFAULT_VERBOSITY
2774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2775 fi
2776 AM_BACKSLASH='\'
2777
2778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780 # is not polluted with repeated "-I."
2781 am__isrc=' -I$(srcdir)'
2782 # test to see if srcdir already configured
2783 if test -f $srcdir/config.status; then
2784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785 fi
2786 fi
2787
2788 # test whether we have cygpath
2789 if test -z "$CYGPATH_W"; then
2790 if (cygpath --version) >/dev/null 2>/dev/null; then
2791 CYGPATH_W='cygpath -w'
2792 else
2793 CYGPATH_W=echo
2794 fi
2795 fi
2796
2797
2798 # Define the identity of the package.
2799 PACKAGE='dieharder'
2800 VERSION='3.31.1'
2801
2802
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE "$PACKAGE"
2805 _ACEOF
2806
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define VERSION "$VERSION"
2810 _ACEOF
2811
2812 # Some tools Automake needs.
2813
2814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815
2816
2817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818
2819
2820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821
2822
2823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824
2825
2826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827
2828 # For better backward compatibility. To be removed once Automake 1.9.x
2829 # dies out for good. For more background, see:
2830 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2831 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2832 mkdir_p='$(MKDIR_P)'
2833
2834 # We need awk for the "check" target (and possibly the TAP driver). The
2835 # system "awk" is bad on some platforms.
2836 # Always define AMTAR for backward compatibility. Yes, it's still used
2837 # in the wild :-( We should find a proper way to deprecate it ...
2838 AMTAR='$${TAR-tar}'
2839
2840
2841 # We'll loop over all known methods to create a tar archive until one works.
2842 _am_tools='gnutar pax cpio none'
2843
2844 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2845
2846
2847
2848
2849
2850
2851 # POSIX will say in a future version that running "rm -f" with no argument
2852 # is OK; and we want to be able to make that assumption in our Makefile
2853 # recipes. So use an aggressive probe to check that the usage we want is
2854 # actually supported "in the wild" to an acceptable degree.
2855 # See automake bug#10828.
2856 # To make any issue more visible, cause the running configure to be aborted
2857 # by default if the 'rm' program in use doesn't match our expectations; the
2858 # user can still override this though.
2859 if rm -f && rm -fr && rm -rf; then : OK; else
2860 cat >&2 <<'END'
2861 Oops!
2862
2863 Your 'rm' program seems unable to run without file operands specified
2864 on the command line, even when the '-f' option is present. This is contrary
2865 to the behaviour of most rm programs out there, and not conforming with
2866 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2867
2868 Please tell [email protected] about your system, including the value
2869 of your $PATH and any error possibly output before this message. This
2870 can help us improve future automake versions.
2871
2872 END
2873 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2874 echo 'Configuration will proceed anyway, since you have set the' >&2
2875 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2876 echo >&2
2877 else
2878 cat >&2 <<'END'
2879 Aborting the configuration process, to ensure you take notice of the issue.
2880
2881 You can download and install GNU coreutils to get an 'rm' implementation
2882 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2883
2884 If you want to complete the configuration process using your problematic
2885 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2886 to "yes", and re-run configure.
2887
2888 END
2889 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2890 fi
2891 fi
2892
2893
2894 RELEASE=1
2895
2896
2897 ac_config_headers="$ac_config_headers config.h"
2898
2899 # AM_MAINTAINER_MODE
2900
2901
2902 $as_echo "#define RELEASED /**/" >>confdefs.h
2903
2904
2905 #==================================================================
2906 # Library versioning (current:revision:age)
2907 # See the libtool manual for an explanation of the numbers.
2908 # NOTE WELL! One MUST bump LT_VERSION along with AC_INIT,
2909 # apparently.
2910 #
2911 # dieharder-1.0 libdieharder 0:0:0
2912 #==================================================================
2913 # This command "should" keep libtool up to date.
2914
2915 case `pwd` in
2916 *\ * | *\ *)
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2918 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2919 esac
2920
2921
2922
2923 macro_version='2.4.6'
2924 macro_revision='2.4.6'
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938 ltmain=$ac_aux_dir/ltmain.sh
2939
2940 # Make sure we can run config.sub.
2941 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2942 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2943
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2945 $as_echo_n "checking build system type... " >&6; }
2946 if ${ac_cv_build+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 ac_build_alias=$build_alias
2950 test "x$ac_build_alias" = x &&
2951 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2952 test "x$ac_build_alias" = x &&
2953 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2954 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2955 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2956
2957 fi
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2959 $as_echo "$ac_cv_build" >&6; }
2960 case $ac_cv_build in
2961 *-*-*) ;;
2962 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2963 esac
2964 build=$ac_cv_build
2965 ac_save_IFS=$IFS; IFS='-'
2966 set x $ac_cv_build
2967 shift
2968 build_cpu=$1
2969 build_vendor=$2
2970 shift; shift
2971 # Remember, the first character of IFS is used to create $*,
2972 # except with old shells:
2973 build_os=$*
2974 IFS=$ac_save_IFS
2975 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2976
2977
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2979 $as_echo_n "checking host system type... " >&6; }
2980 if ${ac_cv_host+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test "x$host_alias" = x; then
2984 ac_cv_host=$ac_cv_build
2985 else
2986 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2987 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2988 fi
2989
2990 fi
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2992 $as_echo "$ac_cv_host" >&6; }
2993 case $ac_cv_host in
2994 *-*-*) ;;
2995 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2996 esac
2997 host=$ac_cv_host
2998 ac_save_IFS=$IFS; IFS='-'
2999 set x $ac_cv_host
3000 shift
3001 host_cpu=$1
3002 host_vendor=$2
3003 shift; shift
3004 # Remember, the first character of IFS is used to create $*,
3005 # except with old shells:
3006 host_os=$*
3007 IFS=$ac_save_IFS
3008 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3009
3010
3011 # Backslashify metacharacters that are still active within
3012 # double-quoted strings.
3013 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3014
3015 # Same as above, but do not quote variable references.
3016 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3017
3018 # Sed substitution to delay expansion of an escaped shell variable in a
3019 # double_quote_subst'ed string.
3020 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3021
3022 # Sed substitution to delay expansion of an escaped single quote.
3023 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3024
3025 # Sed substitution to avoid accidental globbing in evaled expressions
3026 no_glob_subst='s/\*/\\\*/g'
3027
3028 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3029 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3030 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3031
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3033 $as_echo_n "checking how to print strings... " >&6; }
3034 # Test print first, because it will be a builtin if present.
3035 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3036 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3037 ECHO='print -r --'
3038 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3039 ECHO='printf %s\n'
3040 else
3041 # Use this function as a fallback that always works.
3042 func_fallback_echo ()
3043 {
3044 eval 'cat <<_LTECHO_EOF
3045 $1
3046 _LTECHO_EOF'
3047 }
3048 ECHO='func_fallback_echo'
3049 fi
3050
3051 # func_echo_all arg...
3052 # Invoke $ECHO with all args, space-separated.
3053 func_echo_all ()
3054 {
3055 $ECHO ""
3056 }
3057
3058 case $ECHO in
3059 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3060 $as_echo "printf" >&6; } ;;
3061 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3062 $as_echo "print -r" >&6; } ;;
3063 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3064 $as_echo "cat" >&6; } ;;
3065 esac
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080 DEPDIR="${am__leading_dot}deps"
3081
3082 ac_config_commands="$ac_config_commands depfiles"
3083
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3085 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3086 cat > confinc.mk << 'END'
3087 am__doit:
3088 @echo this is the am__doit target >confinc.out
3089 .PHONY: am__doit
3090 END
3091 am__include="#"
3092 am__quote=
3093 # BSD make does it like this.
3094 echo '.include "confinc.mk" # ignored' > confmf.BSD
3095 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3096 echo 'include confinc.mk # ignored' > confmf.GNU
3097 _am_result=no
3098 for s in GNU BSD; do
3099 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3100 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }
3104 case $?:`cat confinc.out 2>/dev/null` in #(
3105 '0:this is the am__doit target') :
3106 case $s in #(
3107 BSD) :
3108 am__include='.include' am__quote='"' ;; #(
3109 *) :
3110 am__include='include' am__quote='' ;;
3111 esac ;; #(
3112 *) :
3113 ;;
3114 esac
3115 if test "$am__include" != "#"; then
3116 _am_result="yes ($s style)"
3117 break
3118 fi
3119 done
3120 rm -f confinc.* confmf.*
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3122 $as_echo "${_am_result}" >&6; }
3123
3124 # Check whether --enable-dependency-tracking was given.
3125 if test "${enable_dependency_tracking+set}" = set; then :
3126 enableval=$enable_dependency_tracking;
3127 fi
3128
3129 if test "x$enable_dependency_tracking" != xno; then
3130 am_depcomp="$ac_aux_dir/depcomp"
3131 AMDEPBACKSLASH='\'
3132 am__nodep='_no'
3133 fi
3134 if test "x$enable_dependency_tracking" != xno; then
3135 AMDEP_TRUE=
3136 AMDEP_FALSE='#'
3137 else
3138 AMDEP_TRUE='#'
3139 AMDEP_FALSE=
3140 fi
3141
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 if test -z "$ac_cv_prog_CC"; then
3188 ac_ct_CC=$CC
3189 # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_ac_ct_CC="gcc"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3235 fi
3236 else
3237 CC="$ac_cv_prog_CC"
3238 fi
3239
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_CC="${ac_tool_prefix}cc"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3262 fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279 fi
3280 fi
3281 if test -z "$CC"; then
3282 # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 ac_prog_rejected=no
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301 ac_prog_rejected=yes
3302 continue
3303 fi
3304 ac_cv_prog_CC="cc"
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308 done
3309 done
3310 IFS=$as_save_IFS
3311
3312 if test $ac_prog_rejected = yes; then
3313 # We found a bogon in the path, so make sure we never use it.
3314 set dummy $ac_cv_prog_CC
3315 shift
3316 if test $# != 0; then
3317 # We chose a different compiler from the bogus one.
3318 # However, it has the same basename, so the bogon will be chosen
3319 # first if we set CC to just the basename; use the full file name.
3320 shift
3321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3322 fi
3323 fi
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$CC"; then
3338 if test -n "$ac_tool_prefix"; then
3339 for ac_prog in cl.exe
3340 do
3341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378 test -n "$CC" && break
3379 done
3380 fi
3381 if test -z "$CC"; then
3382 ac_ct_CC=$CC
3383 for ac_prog in cl.exe
3384 do
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_ac_ct_CC="$ac_prog"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422 test -n "$ac_ct_CC" && break
3423 done
3424
3425 if test "x$ac_ct_CC" = x; then
3426 CC=""
3427 else
3428 case $cross_compiling:$ac_tool_warned in
3429 yes:)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3433 esac
3434 CC=$ac_ct_CC
3435 fi
3436 fi
3437
3438 fi
3439
3440
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details" "$LINENO" 5; }
3445
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3448 set X $ac_compile
3449 ac_compiler=$2
3450 for ac_option in --version -v -V -qversion; do
3451 { { ac_try="$ac_compiler $ac_option >&5"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3459 ac_status=$?
3460 if test -s conftest.err; then
3461 sed '10a\
3462 ... rest of stderr output deleted ...
3463 10q' conftest.err >conftest.er1
3464 cat conftest.er1 >&5
3465 fi
3466 rm -f conftest.er1 conftest.err
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3469 done
3470
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main ()
3476 {
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3486 # of exeext.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3493
3494 ac_rmfiles=
3495 for ac_file in $ac_files
3496 do
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500 esac
3501 done
3502 rm -f $ac_rmfiles
3503
3504 if { { ac_try="$ac_link_default"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link_default") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3519 # Autoconf.
3520 for ac_file in $ac_files ''
3521 do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3525 ;;
3526 [ab].out )
3527 # We found the default executable, but exeext='' is most
3528 # certainly right.
3529 break;;
3530 *.* )
3531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532 then :; else
3533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 fi
3535 # We set ac_cv_exeext here because the later test for it is not
3536 # safe: cross compilers may not add the suffix if given an `-o'
3537 # argument, so we may need to know it at that point already.
3538 # Even if this section looks crufty: it has the advantage of
3539 # actually working.
3540 break;;
3541 * )
3542 break;;
3543 esac
3544 done
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3546
3547 else
3548 ac_file=''
3549 fi
3550 if test -z "$ac_file"; then :
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error 77 "C compiler cannot create executables
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3562 $as_echo "yes" >&6; }
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3568 ac_exeext=$ac_cv_exeext
3569
3570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3573 $as_echo_n "checking for suffix of executables... " >&6; }
3574 if { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3586 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3587 # work properly (i.e., refer to `conftest.exe'), while it won't with
3588 # `rm'.
3589 for ac_file in conftest.exe conftest conftest.*; do
3590 test -f "$ac_file" || continue
3591 case $ac_file in
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3594 break;;
3595 * ) break;;
3596 esac
3597 done
3598 else
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 fi
3604 rm -f conftest conftest$ac_cv_exeext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3606 $as_echo "$ac_cv_exeext" >&6; }
3607
3608 rm -f conftest.$ac_ext
3609 EXEEXT=$ac_cv_exeext
3610 ac_exeext=$EXEEXT
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613 #include <stdio.h>
3614 int
3615 main ()
3616 {
3617 FILE *f = fopen ("conftest.out", "w");
3618 return ferror (f) || fclose (f) != 0;
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 ac_clean_files="$ac_clean_files conftest.out"
3625 # Check that the compiler produces executables we can run. If not, either
3626 # the compiler is broken, or we cross compile.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3628 $as_echo_n "checking whether we are cross compiling... " >&6; }
3629 if test "$cross_compiling" != yes; then
3630 { { ac_try="$ac_link"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link") 2>&5
3638 ac_status=$?
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }
3641 if { ac_try='./conftest$ac_cv_exeext'
3642 { { case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_try") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; }; then
3652 cross_compiling=no
3653 else
3654 if test "$cross_compiling" = maybe; then
3655 cross_compiling=yes
3656 else
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "cannot run C compiled programs.
3660 If you meant to cross compile, use \`--host'.
3661 See \`config.log' for more details" "$LINENO" 5; }
3662 fi
3663 fi
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3667
3668 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3669 ac_clean_files=$ac_clean_files_save
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3671 $as_echo_n "checking for suffix of object files... " >&6; }
3672 if ${ac_cv_objext+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677
3678 int
3679 main ()
3680 {
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 rm -f conftest.o conftest.obj
3687 if { { ac_try="$ac_compile"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_compile") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 for ac_file in conftest.o conftest.obj conftest.*; do
3699 test -f "$ac_file" || continue;
3700 case $ac_file in
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703 break;;
3704 esac
3705 done
3706 else
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 fi
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3720 ac_objext=$OBJEXT
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3723 if ${ac_cv_c_compiler_gnu+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732 #ifndef __GNUC__
3733 choke me
3734 #endif
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_compiler_gnu=yes
3742 else
3743 ac_compiler_gnu=no
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3751 if test $ac_compiler_gnu = yes; then
3752 GCC=yes
3753 else
3754 GCC=
3755 fi
3756 ac_test_CFLAGS=${CFLAGS+set}
3757 ac_save_CFLAGS=$CFLAGS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3760 if ${ac_cv_prog_cc_g+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 ac_save_c_werror_flag=$ac_c_werror_flag
3764 ac_c_werror_flag=yes
3765 ac_cv_prog_cc_g=no
3766 CFLAGS="-g"
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_prog_cc_g=yes
3780 else
3781 CFLAGS=""
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794
3795 else
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3797 CFLAGS="-g"
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main ()
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_prog_cc_g=yes
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_c_werror_flag=$ac_save_c_werror_flag
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3820 $as_echo "$ac_cv_prog_cc_g" >&6; }
3821 if test "$ac_test_CFLAGS" = set; then
3822 CFLAGS=$ac_save_CFLAGS
3823 elif test $ac_cv_prog_cc_g = yes; then
3824 if test "$GCC" = yes; then
3825 CFLAGS="-g -O2"
3826 else
3827 CFLAGS="-g"
3828 fi
3829 else
3830 if test "$GCC" = yes; then
3831 CFLAGS="-O2"
3832 else
3833 CFLAGS=
3834 fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3838 if ${ac_cv_prog_cc_c89+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_cv_prog_cc_c89=no
3842 ac_save_CC=$CC
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845 #include <stdarg.h>
3846 #include <stdio.h>
3847 struct stat;
3848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3849 struct buf { int x; };
3850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3851 static char *e (p, i)
3852 char **p;
3853 int i;
3854 {
3855 return p[i];
3856 }
3857 static char *f (char * (*g) (char **, int), char **p, ...)
3858 {
3859 char *s;
3860 va_list v;
3861 va_start (v,p);
3862 s = g (p, va_arg (v,int));
3863 va_end (v);
3864 return s;
3865 }
3866
3867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3868 function prototypes and stuff, but not '\xHH' hex character constants.
3869 These don't provoke an error unfortunately, instead are silently treated
3870 as 'x'. The following induces an error, until -std is added to get
3871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3872 array size at least. It's necessary to write '\x00'==0 to get something
3873 that's true only with -std. */
3874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3875
3876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3877 inside strings and character constants. */
3878 #define FOO(x) 'x'
3879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3880
3881 int test (int i, double x);
3882 struct s1 {int (*f) (int a);};
3883 struct s2 {int (*f) (double a);};
3884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3885 int argc;
3886 char **argv;
3887 int
3888 main ()
3889 {
3890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3897 do
3898 CC="$ac_save_CC $ac_arg"
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_prog_cc_c89=$ac_arg
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break
3904 done
3905 rm -f conftest.$ac_ext
3906 CC=$ac_save_CC
3907
3908 fi
3909 # AC_CACHE_VAL
3910 case "x$ac_cv_prog_cc_c89" in
3911 x)
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;;
3914 xno)
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;;
3917 *)
3918 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3921 esac
3922 if test "x$ac_cv_prog_cc_c89" != xno; then :
3923
3924 fi
3925
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3932 ac_ext=c
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3938 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3939 if ${am_cv_prog_cc_c_o+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944
3945 int
3946 main ()
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 # Make sure it works both with $CC and with simple cc.
3954 # Following AC_PROG_CC_C_O, we do the test twice because some
3955 # compilers refuse to overwrite an existing .o file with -o,
3956 # though they will create one.
3957 am_cv_prog_cc_c_o=yes
3958 for am_i in 1 2; do
3959 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3960 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } \
3964 && test -f conftest2.$ac_objext; then
3965 : OK
3966 else
3967 am_cv_prog_cc_c_o=no
3968 break
3969 fi
3970 done
3971 rm -f core conftest*
3972 unset am_i
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3975 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3976 if test "$am_cv_prog_cc_c_o" != yes; then
3977 # Losing compiler, so override with the script.
3978 # FIXME: It is wrong to rewrite CC.
3979 # But if we don't then we get into trouble of one sort or another.
3980 # A longer-term fix would be to have automake use am__CC in this case,
3981 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3982 CC="$am_aux_dir/compile $CC"
3983 fi
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989
3990
3991 depcc="$CC" am_compiler_list=
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3994 $as_echo_n "checking dependency style of $depcc... " >&6; }
3995 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3999 # We make a subdir and do the tests there. Otherwise we can end up
4000 # making bogus files that we don't know about and never remove. For
4001 # instance it was reported that on HP-UX the gcc test will end up
4002 # making a dummy file named 'D' -- because '-MD' means "put the output
4003 # in D".
4004 rm -rf conftest.dir
4005 mkdir conftest.dir
4006 # Copy depcomp to subdir because otherwise we won't find it if we're
4007 # using a relative directory.
4008 cp "$am_depcomp" conftest.dir
4009 cd conftest.dir
4010 # We will build objects and dependencies in a subdirectory because
4011 # it helps to detect inapplicable dependency modes. For instance
4012 # both Tru64's cc and ICC support -MD to output dependencies as a
4013 # side effect of compilation, but ICC will put the dependencies in
4014 # the current directory while Tru64 will put them in the object
4015 # directory.
4016 mkdir sub
4017
4018 am_cv_CC_dependencies_compiler_type=none
4019 if test "$am_compiler_list" = ""; then
4020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4021 fi
4022 am__universal=false
4023 case " $depcc " in #(
4024 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4025 esac
4026
4027 for depmode in $am_compiler_list; do
4028 # Setup a source with many dependencies, because some compilers
4029 # like to wrap large dependency lists on column 80 (with \), and
4030 # we should not choose a depcomp mode which is confused by this.
4031 #
4032 # We need to recreate these files for each test, as the compiler may
4033 # overwrite some of them when testing with obscure command lines.
4034 # This happens at least with the AIX C compiler.
4035 : > sub/conftest.c
4036 for i in 1 2 3 4 5 6; do
4037 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4038 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4039 # Solaris 10 /bin/sh.
4040 echo '/* dummy */' > sub/conftst$i.h
4041 done
4042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4043
4044 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4045 # mode. It turns out that the SunPro C++ compiler does not properly
4046 # handle '-M -o', and we need to detect this. Also, some Intel
4047 # versions had trouble with output in subdirs.
4048 am__obj=sub/conftest.${OBJEXT-o}
4049 am__minus_obj="-o $am__obj"
4050 case $depmode in
4051 gcc)
4052 # This depmode causes a compiler race in universal mode.
4053 test "$am__universal" = false || continue
4054 ;;
4055 nosideeffect)
4056 # After this tag, mechanisms are not by side-effect, so they'll
4057 # only be used when explicitly requested.
4058 if test "x$enable_dependency_tracking" = xyes; then
4059 continue
4060 else
4061 break
4062 fi
4063 ;;
4064 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4065 # This compiler won't grok '-c -o', but also, the minuso test has
4066 # not run yet. These depmodes are late enough in the game, and
4067 # so weak that their functioning should not be impacted.
4068 am__obj=conftest.${OBJEXT-o}
4069 am__minus_obj=
4070 ;;
4071 none) break ;;
4072 esac
4073 if depmode=$depmode \
4074 source=sub/conftest.c object=$am__obj \
4075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4076 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4077 >/dev/null 2>conftest.err &&
4078 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4079 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4080 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4081 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4082 # icc doesn't choke on unknown options, it will just issue warnings
4083 # or remarks (even with -Werror). So we grep stderr for any message
4084 # that says an option was ignored or not supported.
4085 # When given -MP, icc 7.0 and 7.1 complain thusly:
4086 # icc: Command line warning: ignoring option '-M'; no argument required
4087 # The diagnosis changed in icc 8.0:
4088 # icc: Command line remark: option '-MP' not supported
4089 if (grep 'ignoring option' conftest.err ||
4090 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4091 am_cv_CC_dependencies_compiler_type=$depmode
4092 break
4093 fi
4094 fi
4095 done
4096
4097 cd ..
4098 rm -rf conftest.dir
4099 else
4100 am_cv_CC_dependencies_compiler_type=none
4101 fi
4102
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4105 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4107
4108 if
4109 test "x$enable_dependency_tracking" != xno \
4110 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4111 am__fastdepCC_TRUE=
4112 am__fastdepCC_FALSE='#'
4113 else
4114 am__fastdepCC_TRUE='#'
4115 am__fastdepCC_FALSE=
4116 fi
4117
4118
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4120 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4121 if ${ac_cv_path_SED+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4125 for ac_i in 1 2 3 4 5 6 7; do
4126 ac_script="$ac_script$as_nl$ac_script"
4127 done
4128 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4129 { ac_script=; unset ac_script;}
4130 if test -z "$SED"; then
4131 ac_path_SED_found=false
4132 # Loop through the user's path and test for each of PROGNAME-LIST
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_prog in sed gsed; do
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4141 as_fn_executable_p "$ac_path_SED" || continue
4142 # Check for GNU ac_path_SED and select it if it is found.
4143 # Check for GNU $ac_path_SED
4144 case `"$ac_path_SED" --version 2>&1` in
4145 *GNU*)
4146 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4147 *)
4148 ac_count=0
4149 $as_echo_n 0123456789 >"conftest.in"
4150 while :
4151 do
4152 cat "conftest.in" "conftest.in" >"conftest.tmp"
4153 mv "conftest.tmp" "conftest.in"
4154 cp "conftest.in" "conftest.nl"
4155 $as_echo '' >> "conftest.nl"
4156 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158 as_fn_arith $ac_count + 1 && ac_count=$as_val
4159 if test $ac_count -gt ${ac_path_SED_max-0}; then
4160 # Best one so far, save it but keep looking for a better one
4161 ac_cv_path_SED="$ac_path_SED"
4162 ac_path_SED_max=$ac_count
4163 fi
4164 # 10*(2^10) chars as input seems more than enough
4165 test $ac_count -gt 10 && break
4166 done
4167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168 esac
4169
4170 $ac_path_SED_found && break 3
4171 done
4172 done
4173 done
4174 IFS=$as_save_IFS
4175 if test -z "$ac_cv_path_SED"; then
4176 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4177 fi
4178 else
4179 ac_cv_path_SED=$SED
4180 fi
4181
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4184 $as_echo "$ac_cv_path_SED" >&6; }
4185 SED="$ac_cv_path_SED"
4186 rm -f conftest.sed
4187
4188 test -z "$SED" && SED=sed
4189 Xsed="$SED -e 1s/^X//"
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4203 if ${ac_cv_path_GREP+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -z "$GREP"; then
4207 ac_path_GREP_found=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211 do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_prog in grep ggrep; do
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4217 as_fn_executable_p "$ac_path_GREP" || continue
4218 # Check for GNU ac_path_GREP and select it if it is found.
4219 # Check for GNU $ac_path_GREP
4220 case `"$ac_path_GREP" --version 2>&1` in
4221 *GNU*)
4222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4223 *)
4224 ac_count=0
4225 $as_echo_n 0123456789 >"conftest.in"
4226 while :
4227 do
4228 cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 mv "conftest.tmp" "conftest.in"
4230 cp "conftest.in" "conftest.nl"
4231 $as_echo 'GREP' >> "conftest.nl"
4232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234 as_fn_arith $ac_count + 1 && ac_count=$as_val
4235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4236 # Best one so far, save it but keep looking for a better one
4237 ac_cv_path_GREP="$ac_path_GREP"
4238 ac_path_GREP_max=$ac_count
4239 fi
4240 # 10*(2^10) chars as input seems more than enough
4241 test $ac_count -gt 10 && break
4242 done
4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 esac
4245
4246 $ac_path_GREP_found && break 3
4247 done
4248 done
4249 done
4250 IFS=$as_save_IFS
4251 if test -z "$ac_cv_path_GREP"; then
4252 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4253 fi
4254 else
4255 ac_cv_path_GREP=$GREP
4256 fi
4257
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4260 $as_echo "$ac_cv_path_GREP" >&6; }
4261 GREP="$ac_cv_path_GREP"
4262
4263
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4265 $as_echo_n "checking for egrep... " >&6; }
4266 if ${ac_cv_path_EGREP+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4270 then ac_cv_path_EGREP="$GREP -E"
4271 else
4272 if test -z "$EGREP"; then
4273 ac_path_EGREP_found=false
4274 # Loop through the user's path and test for each of PROGNAME-LIST
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277 do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_prog in egrep; do
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4283 as_fn_executable_p "$ac_path_EGREP" || continue
4284 # Check for GNU ac_path_EGREP and select it if it is found.
4285 # Check for GNU $ac_path_EGREP
4286 case `"$ac_path_EGREP" --version 2>&1` in
4287 *GNU*)
4288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4289 *)
4290 ac_count=0
4291 $as_echo_n 0123456789 >"conftest.in"
4292 while :
4293 do
4294 cat "conftest.in" "conftest.in" >"conftest.tmp"
4295 mv "conftest.tmp" "conftest.in"
4296 cp "conftest.in" "conftest.nl"
4297 $as_echo 'EGREP' >> "conftest.nl"
4298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300 as_fn_arith $ac_count + 1 && ac_count=$as_val
4301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4302 # Best one so far, save it but keep looking for a better one
4303 ac_cv_path_EGREP="$ac_path_EGREP"
4304 ac_path_EGREP_max=$ac_count
4305 fi
4306 # 10*(2^10) chars as input seems more than enough
4307 test $ac_count -gt 10 && break
4308 done
4309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310 esac
4311
4312 $ac_path_EGREP_found && break 3
4313 done
4314 done
4315 done
4316 IFS=$as_save_IFS
4317 if test -z "$ac_cv_path_EGREP"; then
4318 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4319 fi
4320 else
4321 ac_cv_path_EGREP=$EGREP
4322 fi
4323
4324 fi
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4327 $as_echo "$ac_cv_path_EGREP" >&6; }
4328 EGREP="$ac_cv_path_EGREP"
4329
4330
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4332 $as_echo_n "checking for fgrep... " >&6; }
4333 if ${ac_cv_path_FGREP+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4337 then ac_cv_path_FGREP="$GREP -F"
4338 else
4339 if test -z "$FGREP"; then
4340 ac_path_FGREP_found=false
4341 # Loop through the user's path and test for each of PROGNAME-LIST
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344 do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_prog in fgrep; do
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4350 as_fn_executable_p "$ac_path_FGREP" || continue
4351 # Check for GNU ac_path_FGREP and select it if it is found.
4352 # Check for GNU $ac_path_FGREP
4353 case `"$ac_path_FGREP" --version 2>&1` in
4354 *GNU*)
4355 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4356 *)
4357 ac_count=0
4358 $as_echo_n 0123456789 >"conftest.in"
4359 while :
4360 do
4361 cat "conftest.in" "conftest.in" >"conftest.tmp"
4362 mv "conftest.tmp" "conftest.in"
4363 cp "conftest.in" "conftest.nl"
4364 $as_echo 'FGREP' >> "conftest.nl"
4365 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4367 as_fn_arith $ac_count + 1 && ac_count=$as_val
4368 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4369 # Best one so far, save it but keep looking for a better one
4370 ac_cv_path_FGREP="$ac_path_FGREP"
4371 ac_path_FGREP_max=$ac_count
4372 fi
4373 # 10*(2^10) chars as input seems more than enough
4374 test $ac_count -gt 10 && break
4375 done
4376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4377 esac
4378
4379 $ac_path_FGREP_found && break 3
4380 done
4381 done
4382 done
4383 IFS=$as_save_IFS
4384 if test -z "$ac_cv_path_FGREP"; then
4385 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4386 fi
4387 else
4388 ac_cv_path_FGREP=$FGREP
4389 fi
4390
4391 fi
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4394 $as_echo "$ac_cv_path_FGREP" >&6; }
4395 FGREP="$ac_cv_path_FGREP"
4396
4397
4398 test -z "$GREP" && GREP=grep
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418 # Check whether --with-gnu-ld was given.
4419 if test "${with_gnu_ld+set}" = set; then :
4420 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4421 else
4422 with_gnu_ld=no
4423 fi
4424
4425 ac_prog=ld
4426 if test yes = "$GCC"; then
4427 # Check if gcc -print-prog-name=ld gives a path.
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4429 $as_echo_n "checking for ld used by $CC... " >&6; }
4430 case $host in
4431 *-*-mingw*)
4432 # gcc leaves a trailing carriage return, which upsets mingw
4433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4434 *)
4435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4436 esac
4437 case $ac_prog in
4438 # Accept absolute paths.
4439 [\\/]* | ?:[\\/]*)
4440 re_direlt='/[^/][^/]*/\.\./'
4441 # Canonicalize the pathname of ld
4442 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4443 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4444 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4445 done
4446 test -z "$LD" && LD=$ac_prog
4447 ;;
4448 "")
4449 # If it fails, then pretend we aren't using GCC.
4450 ac_prog=ld
4451 ;;
4452 *)
4453 # If it is relative, then search for the first ld in PATH.
4454 with_gnu_ld=unknown
4455 ;;
4456 esac
4457 elif test yes = "$with_gnu_ld"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4459 $as_echo_n "checking for GNU ld... " >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4462 $as_echo_n "checking for non-GNU ld... " >&6; }
4463 fi
4464 if ${lt_cv_path_LD+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -z "$LD"; then
4468 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4469 for ac_dir in $PATH; do
4470 IFS=$lt_save_ifs
4471 test -z "$ac_dir" && ac_dir=.
4472 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4473 lt_cv_path_LD=$ac_dir/$ac_prog
4474 # Check to see if the program is GNU ld. I'd rather use --version,
4475 # but apparently some variants of GNU ld only accept -v.
4476 # Break only if it was the GNU/non-GNU ld that we prefer.
4477 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4478 *GNU* | *'with BFD'*)
4479 test no != "$with_gnu_ld" && break
4480 ;;
4481 *)
4482 test yes != "$with_gnu_ld" && break
4483 ;;
4484 esac
4485 fi
4486 done
4487 IFS=$lt_save_ifs
4488 else
4489 lt_cv_path_LD=$LD # Let the user override the test with a path.
4490 fi
4491 fi
4492
4493 LD=$lt_cv_path_LD
4494 if test -n "$LD"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4496 $as_echo "$LD" >&6; }
4497 else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4500 fi
4501 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4503 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4504 if ${lt_cv_prog_gnu_ld+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4508 case `$LD -v 2>&1 </dev/null` in
4509 *GNU* | *'with BFD'*)
4510 lt_cv_prog_gnu_ld=yes
4511 ;;
4512 *)
4513 lt_cv_prog_gnu_ld=no
4514 ;;
4515 esac
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4518 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4519 with_gnu_ld=$lt_cv_prog_gnu_ld
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4530 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4531 if ${lt_cv_path_NM+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$NM"; then
4535 # Let the user override the test.
4536 lt_cv_path_NM=$NM
4537 else
4538 lt_nm_to_check=${ac_tool_prefix}nm
4539 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4540 lt_nm_to_check="$lt_nm_to_check nm"
4541 fi
4542 for lt_tmp_nm in $lt_nm_to_check; do
4543 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4544 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4545 IFS=$lt_save_ifs
4546 test -z "$ac_dir" && ac_dir=.
4547 tmp_nm=$ac_dir/$lt_tmp_nm
4548 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4549 # Check to see if the nm accepts a BSD-compat flag.
4550 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4551 # nm: unknown option "B" ignored
4552 # Tru64's nm complains that /dev/null is an invalid object file
4553 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4554 case $build_os in
4555 mingw*) lt_bad_file=conftest.nm/nofile ;;
4556 *) lt_bad_file=/dev/null ;;
4557 esac
4558 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4559 *$lt_bad_file* | *'Invalid file or object type'*)
4560 lt_cv_path_NM="$tmp_nm -B"
4561 break 2
4562 ;;
4563 *)
4564 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4565 */dev/null*)
4566 lt_cv_path_NM="$tmp_nm -p"
4567 break 2
4568 ;;
4569 *)
4570 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4571 continue # so that we can try to find one that supports BSD flags
4572 ;;
4573 esac
4574 ;;
4575 esac
4576 fi
4577 done
4578 IFS=$lt_save_ifs
4579 done
4580 : ${lt_cv_path_NM=no}
4581 fi
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4584 $as_echo "$lt_cv_path_NM" >&6; }
4585 if test no != "$lt_cv_path_NM"; then
4586 NM=$lt_cv_path_NM
4587 else
4588 # Didn't find any BSD compatible name lister, look for dumpbin.
4589 if test -n "$DUMPBIN"; then :
4590 # Let the user override the test.
4591 else
4592 if test -n "$ac_tool_prefix"; then
4593 for ac_prog in dumpbin "link -dump"
4594 do
4595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_DUMPBIN+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$DUMPBIN"; then
4603 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620 fi
4621 fi
4622 DUMPBIN=$ac_cv_prog_DUMPBIN
4623 if test -n "$DUMPBIN"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4625 $as_echo "$DUMPBIN" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4629 fi
4630
4631
4632 test -n "$DUMPBIN" && break
4633 done
4634 fi
4635 if test -z "$DUMPBIN"; then
4636 ac_ct_DUMPBIN=$DUMPBIN
4637 for ac_prog in dumpbin "link -dump"
4638 do
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640 set dummy $ac_prog; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$ac_ct_DUMPBIN"; then
4647 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4667 if test -n "$ac_ct_DUMPBIN"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4669 $as_echo "$ac_ct_DUMPBIN" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674
4675
4676 test -n "$ac_ct_DUMPBIN" && break
4677 done
4678
4679 if test "x$ac_ct_DUMPBIN" = x; then
4680 DUMPBIN=":"
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 DUMPBIN=$ac_ct_DUMPBIN
4689 fi
4690 fi
4691
4692 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4693 *COFF*)
4694 DUMPBIN="$DUMPBIN -symbols -headers"
4695 ;;
4696 *)
4697 DUMPBIN=:
4698 ;;
4699 esac
4700 fi
4701
4702 if test : != "$DUMPBIN"; then
4703 NM=$DUMPBIN
4704 fi
4705 fi
4706 test -z "$NM" && NM=nm
4707
4708
4709
4710
4711
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4714 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4715 if ${lt_cv_nm_interface+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 lt_cv_nm_interface="BSD nm"
4719 echo "int some_variable = 0;" > conftest.$ac_ext
4720 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4721 (eval "$ac_compile" 2>conftest.err)
4722 cat conftest.err >&5
4723 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4724 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4725 cat conftest.err >&5
4726 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4727 cat conftest.out >&5
4728 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4729 lt_cv_nm_interface="MS dumpbin"
4730 fi
4731 rm -f conftest*
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4734 $as_echo "$lt_cv_nm_interface" >&6; }
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4737 $as_echo_n "checking whether ln -s works... " >&6; }
4738 LN_S=$as_ln_s
4739 if test "$LN_S" = "ln -s"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4741 $as_echo "yes" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4744 $as_echo "no, using $LN_S" >&6; }
4745 fi
4746
4747 # find the maximum length of command line arguments
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4749 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4750 if ${lt_cv_sys_max_cmd_len+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 i=0
4754 teststring=ABCD
4755
4756 case $build_os in
4757 msdosdjgpp*)
4758 # On DJGPP, this test can blow up pretty badly due to problems in libc
4759 # (any single argument exceeding 2000 bytes causes a buffer overrun
4760 # during glob expansion). Even if it were fixed, the result of this
4761 # check would be larger than it should be.
4762 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4763 ;;
4764
4765 gnu*)
4766 # Under GNU Hurd, this test is not required because there is
4767 # no limit to the length of command line arguments.
4768 # Libtool will interpret -1 as no limit whatsoever
4769 lt_cv_sys_max_cmd_len=-1;
4770 ;;
4771
4772 cygwin* | mingw* | cegcc*)
4773 # On Win9x/ME, this test blows up -- it succeeds, but takes
4774 # about 5 minutes as the teststring grows exponentially.
4775 # Worse, since 9x/ME are not pre-emptively multitasking,
4776 # you end up with a "frozen" computer, even though with patience
4777 # the test eventually succeeds (with a max line length of 256k).
4778 # Instead, let's just punt: use the minimum linelength reported by
4779 # all of the supported platforms: 8192 (on NT/2K/XP).
4780 lt_cv_sys_max_cmd_len=8192;
4781 ;;
4782
4783 mint*)
4784 # On MiNT this can take a long time and run out of memory.
4785 lt_cv_sys_max_cmd_len=8192;
4786 ;;
4787
4788 amigaos*)
4789 # On AmigaOS with pdksh, this test takes hours, literally.
4790 # So we just punt and use a minimum line length of 8192.
4791 lt_cv_sys_max_cmd_len=8192;
4792 ;;
4793
4794 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4795 # This has been around since 386BSD, at least. Likely further.
4796 if test -x /sbin/sysctl; then
4797 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4798 elif test -x /usr/sbin/sysctl; then
4799 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4800 else
4801 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4802 fi
4803 # And add a safety zone
4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4806 ;;
4807
4808 interix*)
4809 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4810 lt_cv_sys_max_cmd_len=196608
4811 ;;
4812
4813 os2*)
4814 # The test takes a long time on OS/2.
4815 lt_cv_sys_max_cmd_len=8192
4816 ;;
4817
4818 osf*)
4819 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4820 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4821 # nice to cause kernel panics so lets avoid the loop below.
4822 # First set a reasonable default.
4823 lt_cv_sys_max_cmd_len=16384
4824 #
4825 if test -x /sbin/sysconfig; then
4826 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4827 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4828 esac
4829 fi
4830 ;;
4831 sco3.2v5*)
4832 lt_cv_sys_max_cmd_len=102400
4833 ;;
4834 sysv5* | sco5v6* | sysv4.2uw2*)
4835 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4836 if test -n "$kargmax"; then
4837 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4838 else
4839 lt_cv_sys_max_cmd_len=32768
4840 fi
4841 ;;
4842 *)
4843 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4844 if test -n "$lt_cv_sys_max_cmd_len" && \
4845 test undefined != "$lt_cv_sys_max_cmd_len"; then
4846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4847 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4848 else
4849 # Make teststring a little bigger before we do anything with it.
4850 # a 1K string should be a reasonable start.
4851 for i in 1 2 3 4 5 6 7 8; do
4852 teststring=$teststring$teststring
4853 done
4854 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4855 # If test is not a shell built-in, we'll probably end up computing a
4856 # maximum length that is only half of the actual maximum length, but
4857 # we can't tell.
4858 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4859 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4860 test 17 != "$i" # 1/2 MB should be enough
4861 do
4862 i=`expr $i + 1`
4863 teststring=$teststring$teststring
4864 done
4865 # Only check the string length outside the loop.
4866 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4867 teststring=
4868 # Add a significant safety factor because C++ compilers can tack on
4869 # massive amounts of additional arguments before passing them to the
4870 # linker. It appears as though 1/2 is a usable value.
4871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4872 fi
4873 ;;
4874 esac
4875
4876 fi
4877
4878 if test -n "$lt_cv_sys_max_cmd_len"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4880 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4883 $as_echo "none" >&6; }
4884 fi
4885 max_cmd_len=$lt_cv_sys_max_cmd_len
4886
4887
4888
4889
4890
4891
4892 : ${CP="cp -f"}
4893 : ${MV="mv -f"}
4894 : ${RM="rm -f"}
4895
4896 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4897 lt_unset=unset
4898 else
4899 lt_unset=false
4900 fi
4901
4902
4903
4904
4905
4906 # test EBCDIC or ASCII
4907 case `echo X|tr X '\101'` in
4908 A) # ASCII based system
4909 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4910 lt_SP2NL='tr \040 \012'
4911 lt_NL2SP='tr \015\012 \040\040'
4912 ;;
4913 *) # EBCDIC based system
4914 lt_SP2NL='tr \100 \n'
4915 lt_NL2SP='tr \r\n \100\100'
4916 ;;
4917 esac
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4928 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4929 if ${lt_cv_to_host_file_cmd+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 case $host in
4933 *-*-mingw* )
4934 case $build in
4935 *-*-mingw* ) # actually msys
4936 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4937 ;;
4938 *-*-cygwin* )
4939 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4940 ;;
4941 * ) # otherwise, assume *nix
4942 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4943 ;;
4944 esac
4945 ;;
4946 *-*-cygwin* )
4947 case $build in
4948 *-*-mingw* ) # actually msys
4949 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4950 ;;
4951 *-*-cygwin* )
4952 lt_cv_to_host_file_cmd=func_convert_file_noop
4953 ;;
4954 * ) # otherwise, assume *nix
4955 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4956 ;;
4957 esac
4958 ;;
4959 * ) # unhandled hosts (and "normal" native builds)
4960 lt_cv_to_host_file_cmd=func_convert_file_noop
4961 ;;
4962 esac
4963
4964 fi
4965
4966 to_host_file_cmd=$lt_cv_to_host_file_cmd
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4968 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4969
4970
4971
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4975 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4976 if ${lt_cv_to_tool_file_cmd+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 #assume ordinary cross tools, or native build.
4980 lt_cv_to_tool_file_cmd=func_convert_file_noop
4981 case $host in
4982 *-*-mingw* )
4983 case $build in
4984 *-*-mingw* ) # actually msys
4985 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4986 ;;
4987 esac
4988 ;;
4989 esac
4990
4991 fi
4992
4993 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4995 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4996
4997
4998
4999
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5002 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5003 if ${lt_cv_ld_reload_flag+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 lt_cv_ld_reload_flag='-r'
5007 fi
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5009 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5010 reload_flag=$lt_cv_ld_reload_flag
5011 case $reload_flag in
5012 "" | " "*) ;;
5013 *) reload_flag=" $reload_flag" ;;
5014 esac
5015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5016 case $host_os in
5017 cygwin* | mingw* | pw32* | cegcc*)
5018 if test yes != "$GCC"; then
5019 reload_cmds=false
5020 fi
5021 ;;
5022 darwin*)
5023 if test yes = "$GCC"; then
5024 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5025 else
5026 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5027 fi
5028 ;;
5029 esac
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$OBJDUMP"; then
5048 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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 OBJDUMP=$ac_cv_prog_OBJDUMP
5068 if test -n "$OBJDUMP"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5070 $as_echo "$OBJDUMP" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 fi
5078 if test -z "$ac_cv_prog_OBJDUMP"; then
5079 ac_ct_OBJDUMP=$OBJDUMP
5080 # Extract the first word of "objdump", so it can be a program name with args.
5081 set dummy objdump; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$ac_ct_OBJDUMP"; then
5088 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5108 if test -n "$ac_ct_OBJDUMP"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5110 $as_echo "$ac_ct_OBJDUMP" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116 if test "x$ac_ct_OBJDUMP" = x; then
5117 OBJDUMP="false"
5118 else
5119 case $cross_compiling:$ac_tool_warned in
5120 yes:)
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5124 esac
5125 OBJDUMP=$ac_ct_OBJDUMP
5126 fi
5127 else
5128 OBJDUMP="$ac_cv_prog_OBJDUMP"
5129 fi
5130
5131 test -z "$OBJDUMP" && OBJDUMP=objdump
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5142 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5143 if ${lt_cv_deplibs_check_method+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 lt_cv_file_magic_cmd='$MAGIC_CMD'
5147 lt_cv_file_magic_test_file=
5148 lt_cv_deplibs_check_method='unknown'
5149 # Need to set the preceding variable on all platforms that support
5150 # interlibrary dependencies.
5151 # 'none' -- dependencies not supported.
5152 # 'unknown' -- same as none, but documents that we really don't know.
5153 # 'pass_all' -- all dependencies passed with no checks.
5154 # 'test_compile' -- check by making test program.
5155 # 'file_magic [[regex]]' -- check by looking for files in library path
5156 # that responds to the $file_magic_cmd with a given extended regex.
5157 # If you have 'file' or equivalent on your system and you're not sure
5158 # whether 'pass_all' will *always* work, you probably want this one.
5159
5160 case $host_os in
5161 aix[4-9]*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165 beos*)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168
5169 bsdi[45]*)
5170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5171 lt_cv_file_magic_cmd='/usr/bin/file -L'
5172 lt_cv_file_magic_test_file=/shlib/libc.so
5173 ;;
5174
5175 cygwin*)
5176 # func_win32_libid is a shell function defined in ltmain.sh
5177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5178 lt_cv_file_magic_cmd='func_win32_libid'
5179 ;;
5180
5181 mingw* | pw32*)
5182 # Base MSYS/MinGW do not provide the 'file' command needed by
5183 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5184 # unless we find 'file', for example because we are cross-compiling.
5185 if ( file / ) >/dev/null 2>&1; then
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5188 else
5189 # Keep this pattern in sync with the one in func_win32_libid.
5190 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5191 lt_cv_file_magic_cmd='$OBJDUMP -f'
5192 fi
5193 ;;
5194
5195 cegcc*)
5196 # use the weaker test based on 'objdump'. See mingw*.
5197 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5198 lt_cv_file_magic_cmd='$OBJDUMP -f'
5199 ;;
5200
5201 darwin* | rhapsody*)
5202 lt_cv_deplibs_check_method=pass_all
5203 ;;
5204
5205 freebsd* | dragonfly*)
5206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5207 case $host_cpu in
5208 i*86 )
5209 # Not sure whether the presence of OpenBSD here was a mistake.
5210 # Let's accept both of them until this is cleared up.
5211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5212 lt_cv_file_magic_cmd=/usr/bin/file
5213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5214 ;;
5215 esac
5216 else
5217 lt_cv_deplibs_check_method=pass_all
5218 fi
5219 ;;
5220
5221 haiku*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 hpux10.20* | hpux11*)
5226 lt_cv_file_magic_cmd=/usr/bin/file
5227 case $host_cpu in
5228 ia64*)
5229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5231 ;;
5232 hppa*64*)
5233 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]'
5234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5235 ;;
5236 *)
5237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5239 ;;
5240 esac
5241 ;;
5242
5243 interix[3-9]*)
5244 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5246 ;;
5247
5248 irix5* | irix6* | nonstopux*)
5249 case $LD in
5250 *-32|*"-32 ") libmagic=32-bit;;
5251 *-n32|*"-n32 ") libmagic=N32;;
5252 *-64|*"-64 ") libmagic=64-bit;;
5253 *) libmagic=never-match;;
5254 esac
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258 # This must be glibc/ELF.
5259 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5260 lt_cv_deplibs_check_method=pass_all
5261 ;;
5262
5263 netbsd* | netbsdelf*-gnu)
5264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5266 else
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5268 fi
5269 ;;
5270
5271 newos6*)
5272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5273 lt_cv_file_magic_cmd=/usr/bin/file
5274 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5275 ;;
5276
5277 *nto* | *qnx*)
5278 lt_cv_deplibs_check_method=pass_all
5279 ;;
5280
5281 openbsd* | bitrig*)
5282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5284 else
5285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5286 fi
5287 ;;
5288
5289 osf3* | osf4* | osf5*)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292
5293 rdos*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296
5297 solaris*)
5298 lt_cv_deplibs_check_method=pass_all
5299 ;;
5300
5301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304
5305 sysv4 | sysv4.3*)
5306 case $host_vendor in
5307 motorola)
5308 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]'
5309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5310 ;;
5311 ncr)
5312 lt_cv_deplibs_check_method=pass_all
5313 ;;
5314 sequent)
5315 lt_cv_file_magic_cmd='/bin/file'
5316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5317 ;;
5318 sni)
5319 lt_cv_file_magic_cmd='/bin/file'
5320 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5321 lt_cv_file_magic_test_file=/lib/libc.so
5322 ;;
5323 siemens)
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326 pc)
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329 esac
5330 ;;
5331
5332 tpf*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335 os2*)
5336 lt_cv_deplibs_check_method=pass_all
5337 ;;
5338 esac
5339
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5342 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5343
5344 file_magic_glob=
5345 want_nocaseglob=no
5346 if test "$build" = "$host"; then
5347 case $host_os in
5348 mingw* | pw32*)
5349 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5350 want_nocaseglob=yes
5351 else
5352 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5353 fi
5354 ;;
5355 esac
5356 fi
5357
5358 file_magic_cmd=$lt_cv_file_magic_cmd
5359 deplibs_check_method=$lt_cv_deplibs_check_method
5360 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 if test -n "$ac_tool_prefix"; then
5384 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5385 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_DLLTOOL+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$DLLTOOL"; then
5392 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5404 fi
5405 done
5406 done
5407 IFS=$as_save_IFS
5408
5409 fi
5410 fi
5411 DLLTOOL=$ac_cv_prog_DLLTOOL
5412 if test -n "$DLLTOOL"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5414 $as_echo "$DLLTOOL" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5418 fi
5419
5420
5421 fi
5422 if test -z "$ac_cv_prog_DLLTOOL"; then
5423 ac_ct_DLLTOOL=$DLLTOOL
5424 # Extract the first word of "dlltool", so it can be a program name with args.
5425 set dummy dlltool; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$ac_ct_DLLTOOL"; then
5432 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445 done
5446 done
5447 IFS=$as_save_IFS
5448
5449 fi
5450 fi
5451 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5452 if test -n "$ac_ct_DLLTOOL"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5454 $as_echo "$ac_ct_DLLTOOL" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460 if test "x$ac_ct_DLLTOOL" = x; then
5461 DLLTOOL="false"
5462 else
5463 case $cross_compiling:$ac_tool_warned in
5464 yes:)
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467 ac_tool_warned=yes ;;
5468 esac
5469 DLLTOOL=$ac_ct_DLLTOOL
5470 fi
5471 else
5472 DLLTOOL="$ac_cv_prog_DLLTOOL"
5473 fi
5474
5475 test -z "$DLLTOOL" && DLLTOOL=dlltool
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5487 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5488 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 lt_cv_sharedlib_from_linklib_cmd='unknown'
5492
5493 case $host_os in
5494 cygwin* | mingw* | pw32* | cegcc*)
5495 # two different shell functions defined in ltmain.sh;
5496 # decide which one to use based on capabilities of $DLLTOOL
5497 case `$DLLTOOL --help 2>&1` in
5498 *--identify-strict*)
5499 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5500 ;;
5501 *)
5502 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5503 ;;
5504 esac
5505 ;;
5506 *)
5507 # fallback: assume linklib IS sharedlib
5508 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5509 ;;
5510 esac
5511
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5514 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5515 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5516 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5517
5518
5519
5520
5521
5522
5523
5524
5525 if test -n "$ac_tool_prefix"; then
5526 for ac_prog in ar
5527 do
5528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_AR+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$AR"; then
5536 ac_cv_prog_AR="$AR" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549 done
5550 done
5551 IFS=$as_save_IFS
5552
5553 fi
5554 fi
5555 AR=$ac_cv_prog_AR
5556 if test -n "$AR"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5558 $as_echo "$AR" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563
5564
5565 test -n "$AR" && break
5566 done
5567 fi
5568 if test -z "$AR"; then
5569 ac_ct_AR=$AR
5570 for ac_prog in ar
5571 do
5572 # Extract the first word of "$ac_prog", so it can be a program name with args.
5573 set dummy $ac_prog; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$ac_ct_AR"; then
5580 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_prog_ac_ct_AR="$ac_prog"
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5592 fi
5593 done
5594 done
5595 IFS=$as_save_IFS
5596
5597 fi
5598 fi
5599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5600 if test -n "$ac_ct_AR"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5602 $as_echo "$ac_ct_AR" >&6; }
5603 else
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608
5609 test -n "$ac_ct_AR" && break
5610 done
5611
5612 if test "x$ac_ct_AR" = x; then
5613 AR="false"
5614 else
5615 case $cross_compiling:$ac_tool_warned in
5616 yes:)
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5619 ac_tool_warned=yes ;;
5620 esac
5621 AR=$ac_ct_AR
5622 fi
5623 fi
5624
5625 : ${AR=ar}
5626 : ${AR_FLAGS=cr}
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5639 $as_echo_n "checking for archiver @FILE support... " >&6; }
5640 if ${lt_cv_ar_at_file+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 lt_cv_ar_at_file=no
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646
5647 int
5648 main ()
5649 {
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 echo conftest.$ac_objext > conftest.lst
5657 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5659 (eval $lt_ar_try) 2>&5
5660 ac_status=$?
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; }
5663 if test 0 -eq "$ac_status"; then
5664 # Ensure the archiver fails upon bogus file names.
5665 rm -f conftest.$ac_objext libconftest.a
5666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5667 (eval $lt_ar_try) 2>&5
5668 ac_status=$?
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; }
5671 if test 0 -ne "$ac_status"; then
5672 lt_cv_ar_at_file=@
5673 fi
5674 fi
5675 rm -f conftest.* libconftest.a
5676
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5682 $as_echo "$lt_cv_ar_at_file" >&6; }
5683
5684 if test no = "$lt_cv_ar_at_file"; then
5685 archiver_list_spec=
5686 else
5687 archiver_list_spec=$lt_cv_ar_at_file
5688 fi
5689
5690
5691
5692
5693
5694
5695
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}strip; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_STRIP+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if test -n "$STRIP"; then
5705 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718 done
5719 done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 STRIP=$ac_cv_prog_STRIP
5725 if test -n "$STRIP"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5727 $as_echo "$STRIP" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733
5734 fi
5735 if test -z "$ac_cv_prog_STRIP"; then
5736 ac_ct_STRIP=$STRIP
5737 # Extract the first word of "strip", so it can be a program name with args.
5738 set dummy strip; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if test -n "$ac_ct_STRIP"; then
5745 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754 ac_cv_prog_ac_ct_STRIP="strip"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 break 2
5757 fi
5758 done
5759 done
5760 IFS=$as_save_IFS
5761
5762 fi
5763 fi
5764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5765 if test -n "$ac_ct_STRIP"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5767 $as_echo "$ac_ct_STRIP" >&6; }
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5771 fi
5772
5773 if test "x$ac_ct_STRIP" = x; then
5774 STRIP=":"
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782 STRIP=$ac_ct_STRIP
5783 fi
5784 else
5785 STRIP="$ac_cv_prog_STRIP"
5786 fi
5787
5788 test -z "$STRIP" && STRIP=:
5789
5790
5791
5792
5793
5794
5795 if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_RANLIB+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if test -n "$RANLIB"; then
5804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821 fi
5822 fi
5823 RANLIB=$ac_cv_prog_RANLIB
5824 if test -n "$RANLIB"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5826 $as_echo "$RANLIB" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831
5832
5833 fi
5834 if test -z "$ac_cv_prog_RANLIB"; then
5835 ac_ct_RANLIB=$RANLIB
5836 # Extract the first word of "ranlib", so it can be a program name with args.
5837 set dummy ranlib; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if test -n "$ac_ct_RANLIB"; then
5844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_ac_ct_RANLIB="ranlib"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5864 if test -n "$ac_ct_RANLIB"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5866 $as_echo "$ac_ct_RANLIB" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872 if test "x$ac_ct_RANLIB" = x; then
5873 RANLIB=":"
5874 else
5875 case $cross_compiling:$ac_tool_warned in
5876 yes:)
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5880 esac
5881 RANLIB=$ac_ct_RANLIB
5882 fi
5883 else
5884 RANLIB="$ac_cv_prog_RANLIB"
5885 fi
5886
5887 test -z "$RANLIB" && RANLIB=:
5888
5889
5890
5891
5892
5893
5894 # Determine commands to create old-style static archives.
5895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5896 old_postinstall_cmds='chmod 644 $oldlib'
5897 old_postuninstall_cmds=
5898
5899 if test -n "$RANLIB"; then
5900 case $host_os in
5901 bitrig* | openbsd*)
5902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5903 ;;
5904 *)
5905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5906 ;;
5907 esac
5908 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5909 fi
5910
5911 case $host_os in
5912 darwin*)
5913 lock_old_archive_extraction=yes ;;
5914 *)
5915 lock_old_archive_extraction=no ;;
5916 esac
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 # If no C compiler was specified, use CC.
5957 LTCC=${LTCC-"$CC"}
5958
5959 # If no C compiler flags were specified, use CFLAGS.
5960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5961
5962 # Allow CC to be a program name with arguments.
5963 compiler=$CC
5964
5965
5966 # Check for command to grab the raw symbol name followed by C symbol from nm.
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5968 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5969 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972
5973 # These are sane defaults that work on at least a few old systems.
5974 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5975
5976 # Character class describing NM global symbol codes.
5977 symcode='[BCDEGRST]'
5978
5979 # Regexp to match symbols that can be accessed directly from C.
5980 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5981
5982 # Define system-specific variables.
5983 case $host_os in
5984 aix*)
5985 symcode='[BCDT]'
5986 ;;
5987 cygwin* | mingw* | pw32* | cegcc*)
5988 symcode='[ABCDGISTW]'
5989 ;;
5990 hpux*)
5991 if test ia64 = "$host_cpu"; then
5992 symcode='[ABCDEGRST]'
5993 fi
5994 ;;
5995 irix* | nonstopux*)
5996 symcode='[BCDEGRST]'
5997 ;;
5998 osf*)
5999 symcode='[BCDEGQRST]'
6000 ;;
6001 solaris*)
6002 symcode='[BDRT]'
6003 ;;
6004 sco3.2v5*)
6005 symcode='[DT]'
6006 ;;
6007 sysv4.2uw2*)
6008 symcode='[DT]'
6009 ;;
6010 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6011 symcode='[ABDT]'
6012 ;;
6013 sysv4)
6014 symcode='[DFNSTU]'
6015 ;;
6016 esac
6017
6018 # If we're using GNU nm, then use its standard symbol codes.
6019 case `$NM -V 2>&1` in
6020 *GNU* | *'with BFD'*)
6021 symcode='[ABCDGIRSTW]' ;;
6022 esac
6023
6024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6025 # Gets list of data symbols to import.
6026 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6027 # Adjust the below global symbol transforms to fixup imported variables.
6028 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6029 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6030 lt_c_name_lib_hook="\
6031 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6032 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6033 else
6034 # Disable hooks by default.
6035 lt_cv_sys_global_symbol_to_import=
6036 lt_cdecl_hook=
6037 lt_c_name_hook=
6038 lt_c_name_lib_hook=
6039 fi
6040
6041 # Transform an extracted symbol line into a proper C declaration.
6042 # Some systems (esp. on ia64) link data and code symbols differently,
6043 # so use this general approach.
6044 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6045 $lt_cdecl_hook\
6046 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6047 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6048
6049 # Transform an extracted symbol line into symbol name and symbol address
6050 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6051 $lt_c_name_hook\
6052 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6053 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6054
6055 # Transform an extracted symbol line into symbol name with lib prefix and
6056 # symbol address.
6057 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6058 $lt_c_name_lib_hook\
6059 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6060 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6061 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6062
6063 # Handle CRLF in mingw tool chain
6064 opt_cr=
6065 case $build_os in
6066 mingw*)
6067 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6068 ;;
6069 esac
6070
6071 # Try without a prefix underscore, then with it.
6072 for ac_symprfx in "" "_"; do
6073
6074 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6075 symxfrm="\\1 $ac_symprfx\\2 \\2"
6076
6077 # Write the raw and C identifiers.
6078 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6079 # Fake it for dumpbin and say T for any non-static function,
6080 # D for any global variable and I for any imported variable.
6081 # Also find C++ and __fastcall symbols from MSVC++,
6082 # which start with @ or ?.
6083 lt_cv_sys_global_symbol_pipe="$AWK '"\
6084 " {last_section=section; section=\$ 3};"\
6085 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6086 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6087 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6088 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6089 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6090 " \$ 0!~/External *\|/{next};"\
6091 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6092 " {if(hide[section]) next};"\
6093 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6094 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6095 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6096 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6097 " ' prfx=^$ac_symprfx"
6098 else
6099 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6100 fi
6101 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6102
6103 # Check to see that the pipe works correctly.
6104 pipe_works=no
6105
6106 rm -f conftest*
6107 cat > conftest.$ac_ext <<_LT_EOF
6108 #ifdef __cplusplus
6109 extern "C" {
6110 #endif
6111 char nm_test_var;
6112 void nm_test_func(void);
6113 void nm_test_func(void){}
6114 #ifdef __cplusplus
6115 }
6116 #endif
6117 int main(){nm_test_var='a';nm_test_func();return(0);}
6118 _LT_EOF
6119
6120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6121 (eval $ac_compile) 2>&5
6122 ac_status=$?
6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124 test $ac_status = 0; }; then
6125 # Now try to grab the symbols.
6126 nlist=conftest.nm
6127 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6128 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6129 # Try sorting and uniquifying the output.
6130 if sort "$nlist" | uniq > "$nlist"T; then
6131 mv -f "$nlist"T "$nlist"
6132 else
6133 rm -f "$nlist"T
6134 fi
6135
6136 # Make sure that we snagged all the symbols we need.
6137 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6138 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6139 cat <<_LT_EOF > conftest.$ac_ext
6140 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6141 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6142 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6143 relocations are performed -- see ld's documentation on pseudo-relocs. */
6144 # define LT_DLSYM_CONST
6145 #elif defined __osf__
6146 /* This system does not cope well with relocations in const data. */
6147 # define LT_DLSYM_CONST
6148 #else
6149 # define LT_DLSYM_CONST const
6150 #endif
6151
6152 #ifdef __cplusplus
6153 extern "C" {
6154 #endif
6155
6156 _LT_EOF
6157 # Now generate the symbol file.
6158 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6159
6160 cat <<_LT_EOF >> conftest.$ac_ext
6161
6162 /* The mapping between symbol names and symbols. */
6163 LT_DLSYM_CONST struct {
6164 const char *name;
6165 void *address;
6166 }
6167 lt__PROGRAM__LTX_preloaded_symbols[] =
6168 {
6169 { "@PROGRAM@", (void *) 0 },
6170 _LT_EOF
6171 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6172 cat <<\_LT_EOF >> conftest.$ac_ext
6173 {0, (void *) 0}
6174 };
6175
6176 /* This works around a problem in FreeBSD linker */
6177 #ifdef FREEBSD_WORKAROUND
6178 static const void *lt_preloaded_setup() {
6179 return lt__PROGRAM__LTX_preloaded_symbols;
6180 }
6181 #endif
6182
6183 #ifdef __cplusplus
6184 }
6185 #endif
6186 _LT_EOF
6187 # Now try linking the two files.
6188 mv conftest.$ac_objext conftstm.$ac_objext
6189 lt_globsym_save_LIBS=$LIBS
6190 lt_globsym_save_CFLAGS=$CFLAGS
6191 LIBS=conftstm.$ac_objext
6192 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6194 (eval $ac_link) 2>&5
6195 ac_status=$?
6196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6198 pipe_works=yes
6199 fi
6200 LIBS=$lt_globsym_save_LIBS
6201 CFLAGS=$lt_globsym_save_CFLAGS
6202 else
6203 echo "cannot find nm_test_func in $nlist" >&5
6204 fi
6205 else
6206 echo "cannot find nm_test_var in $nlist" >&5
6207 fi
6208 else
6209 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6210 fi
6211 else
6212 echo "$progname: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6214 fi
6215 rm -rf conftest* conftst*
6216
6217 # Do not use the global_symbol_pipe unless it works.
6218 if test yes = "$pipe_works"; then
6219 break
6220 else
6221 lt_cv_sys_global_symbol_pipe=
6222 fi
6223 done
6224
6225 fi
6226
6227 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6228 lt_cv_sys_global_symbol_to_cdecl=
6229 fi
6230 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6232 $as_echo "failed" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6235 $as_echo "ok" >&6; }
6236 fi
6237
6238 # Response file support.
6239 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6240 nm_file_list_spec='@'
6241 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6242 nm_file_list_spec='@'
6243 fi
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6282 $as_echo_n "checking for sysroot... " >&6; }
6283
6284 # Check whether --with-sysroot was given.
6285 if test "${with_sysroot+set}" = set; then :
6286 withval=$with_sysroot;
6287 else
6288 with_sysroot=no
6289 fi
6290
6291
6292 lt_sysroot=
6293 case $with_sysroot in #(
6294 yes)
6295 if test yes = "$GCC"; then
6296 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6297 fi
6298 ;; #(
6299 /*)
6300 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6301 ;; #(
6302 no|'')
6303 ;; #(
6304 *)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6306 $as_echo "$with_sysroot" >&6; }
6307 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6308 ;;
6309 esac
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6312 $as_echo "${lt_sysroot:-no}" >&6; }
6313
6314
6315
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6319 $as_echo_n "checking for a working dd... " >&6; }
6320 if ${ac_cv_path_lt_DD+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 printf 0123456789abcdef0123456789abcdef >conftest.i
6324 cat conftest.i conftest.i >conftest2.i
6325 : ${lt_DD:=$DD}
6326 if test -z "$lt_DD"; then
6327 ac_path_lt_DD_found=false
6328 # Loop through the user's path and test for each of PROGNAME-LIST
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_prog in dd; do
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6337 as_fn_executable_p "$ac_path_lt_DD" || continue
6338 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6339 cmp -s conftest.i conftest.out \
6340 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6341 fi
6342 $ac_path_lt_DD_found && break 3
6343 done
6344 done
6345 done
6346 IFS=$as_save_IFS
6347 if test -z "$ac_cv_path_lt_DD"; then
6348 :
6349 fi
6350 else
6351 ac_cv_path_lt_DD=$lt_DD
6352 fi
6353
6354 rm -f conftest.i conftest2.i conftest.out
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6357 $as_echo "$ac_cv_path_lt_DD" >&6; }
6358
6359
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6361 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6362 if ${lt_cv_truncate_bin+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 printf 0123456789abcdef0123456789abcdef >conftest.i
6366 cat conftest.i conftest.i >conftest2.i
6367 lt_cv_truncate_bin=
6368 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6369 cmp -s conftest.i conftest.out \
6370 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6371 fi
6372 rm -f conftest.i conftest2.i conftest.out
6373 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6376 $as_echo "$lt_cv_truncate_bin" >&6; }
6377
6378
6379
6380
6381
6382
6383
6384 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6385 func_cc_basename ()
6386 {
6387 for cc_temp in $*""; do
6388 case $cc_temp in
6389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6391 \-*) ;;
6392 *) break;;
6393 esac
6394 done
6395 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6396 }
6397
6398 # Check whether --enable-libtool-lock was given.
6399 if test "${enable_libtool_lock+set}" = set; then :
6400 enableval=$enable_libtool_lock;
6401 fi
6402
6403 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6404
6405 # Some flags need to be propagated to the compiler or linker for good
6406 # libtool support.
6407 case $host in
6408 ia64-*-hpux*)
6409 # Find out what ABI is being produced by ac_compile, and set mode
6410 # options accordingly.
6411 echo 'int i;' > conftest.$ac_ext
6412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6413 (eval $ac_compile) 2>&5
6414 ac_status=$?
6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 test $ac_status = 0; }; then
6417 case `/usr/bin/file conftest.$ac_objext` in
6418 *ELF-32*)
6419 HPUX_IA64_MODE=32
6420 ;;
6421 *ELF-64*)
6422 HPUX_IA64_MODE=64
6423 ;;
6424 esac
6425 fi
6426 rm -rf conftest*
6427 ;;
6428 *-*-irix6*)
6429 # Find out what ABI is being produced by ac_compile, and set linker
6430 # options accordingly.
6431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; }; then
6437 if test yes = "$lt_cv_prog_gnu_ld"; then
6438 case `/usr/bin/file conftest.$ac_objext` in
6439 *32-bit*)
6440 LD="${LD-ld} -melf32bsmip"
6441 ;;
6442 *N32*)
6443 LD="${LD-ld} -melf32bmipn32"
6444 ;;
6445 *64-bit*)
6446 LD="${LD-ld} -melf64bmip"
6447 ;;
6448 esac
6449 else
6450 case `/usr/bin/file conftest.$ac_objext` in
6451 *32-bit*)
6452 LD="${LD-ld} -32"
6453 ;;
6454 *N32*)
6455 LD="${LD-ld} -n32"
6456 ;;
6457 *64-bit*)
6458 LD="${LD-ld} -64"
6459 ;;
6460 esac
6461 fi
6462 fi
6463 rm -rf conftest*
6464 ;;
6465
6466 mips64*-*linux*)
6467 # Find out what ABI is being produced by ac_compile, and set linker
6468 # options accordingly.
6469 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 emul=elf
6476 case `/usr/bin/file conftest.$ac_objext` in
6477 *32-bit*)
6478 emul="${emul}32"
6479 ;;
6480 *64-bit*)
6481 emul="${emul}64"
6482 ;;
6483 esac
6484 case `/usr/bin/file conftest.$ac_objext` in
6485 *MSB*)
6486 emul="${emul}btsmip"
6487 ;;
6488 *LSB*)
6489 emul="${emul}ltsmip"
6490 ;;
6491 esac
6492 case `/usr/bin/file conftest.$ac_objext` in
6493 *N32*)
6494 emul="${emul}n32"
6495 ;;
6496 esac
6497 LD="${LD-ld} -m $emul"
6498 fi
6499 rm -rf conftest*
6500 ;;
6501
6502 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6503 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6504 # Find out what ABI is being produced by ac_compile, and set linker
6505 # options accordingly. Note that the listed cases only cover the
6506 # situations where additional linker options are needed (such as when
6507 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6508 # vice versa); the common cases where no linker options are needed do
6509 # not appear in the list.
6510 echo 'int i;' > conftest.$ac_ext
6511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6512 (eval $ac_compile) 2>&5
6513 ac_status=$?
6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515 test $ac_status = 0; }; then
6516 case `/usr/bin/file conftest.o` in
6517 *32-bit*)
6518 case $host in
6519 x86_64-*kfreebsd*-gnu)
6520 LD="${LD-ld} -m elf_i386_fbsd"
6521 ;;
6522 x86_64-*linux*)
6523 case `/usr/bin/file conftest.o` in
6524 *x86-64*)
6525 LD="${LD-ld} -m elf32_x86_64"
6526 ;;
6527 *)
6528 LD="${LD-ld} -m elf_i386"
6529 ;;
6530 esac
6531 ;;
6532 powerpc64le-*linux*)
6533 LD="${LD-ld} -m elf32lppclinux"
6534 ;;
6535 powerpc64-*linux*)
6536 LD="${LD-ld} -m elf32ppclinux"
6537 ;;
6538 s390x-*linux*)
6539 LD="${LD-ld} -m elf_s390"
6540 ;;
6541 sparc64-*linux*)
6542 LD="${LD-ld} -m elf32_sparc"
6543 ;;
6544 esac
6545 ;;
6546 *64-bit*)
6547 case $host in
6548 x86_64-*kfreebsd*-gnu)
6549 LD="${LD-ld} -m elf_x86_64_fbsd"
6550 ;;
6551 x86_64-*linux*)
6552 LD="${LD-ld} -m elf_x86_64"
6553 ;;
6554 powerpcle-*linux*)
6555 LD="${LD-ld} -m elf64lppc"
6556 ;;
6557 powerpc-*linux*)
6558 LD="${LD-ld} -m elf64ppc"
6559 ;;
6560 s390*-*linux*|s390*-*tpf*)
6561 LD="${LD-ld} -m elf64_s390"
6562 ;;
6563 sparc*-*linux*)
6564 LD="${LD-ld} -m elf64_sparc"
6565 ;;
6566 esac
6567 ;;
6568 esac
6569 fi
6570 rm -rf conftest*
6571 ;;
6572
6573 *-*-sco3.2v5*)
6574 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6575 SAVE_CFLAGS=$CFLAGS
6576 CFLAGS="$CFLAGS -belf"
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6578 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6579 if ${lt_cv_cc_needs_belf+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 ac_ext=c
6583 ac_cpp='$CPP $CPPFLAGS'
6584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590
6591 int
6592 main ()
6593 {
6594
6595 ;
6596 return 0;
6597 }
6598 _ACEOF
6599 if ac_fn_c_try_link "$LINENO"; then :
6600 lt_cv_cc_needs_belf=yes
6601 else
6602 lt_cv_cc_needs_belf=no
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext \
6605 conftest$ac_exeext conftest.$ac_ext
6606 ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611
6612 fi
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6614 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6615 if test yes != "$lt_cv_cc_needs_belf"; then
6616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6617 CFLAGS=$SAVE_CFLAGS
6618 fi
6619 ;;
6620 *-*solaris*)
6621 # Find out what ABI is being produced by ac_compile, and set linker
6622 # options accordingly.
6623 echo 'int i;' > conftest.$ac_ext
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 case `/usr/bin/file conftest.o` in
6630 *64-bit*)
6631 case $lt_cv_prog_gnu_ld in
6632 yes*)
6633 case $host in
6634 i?86-*-solaris*|x86_64-*-solaris*)
6635 LD="${LD-ld} -m elf_x86_64"
6636 ;;
6637 sparc*-*-solaris*)
6638 LD="${LD-ld} -m elf64_sparc"
6639 ;;
6640 esac
6641 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6642 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6643 LD=${LD-ld}_sol2
6644 fi
6645 ;;
6646 *)
6647 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6648 LD="${LD-ld} -64"
6649 fi
6650 ;;
6651 esac
6652 ;;
6653 esac
6654 fi
6655 rm -rf conftest*
6656 ;;
6657 esac
6658
6659 need_locks=$enable_libtool_lock
6660
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}mt; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$MANIFEST_TOOL"; then
6670 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6690 if test -n "$MANIFEST_TOOL"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6692 $as_echo "$MANIFEST_TOOL" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6701 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6702 # Extract the first word of "mt", so it can be a program name with args.
6703 set dummy mt; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$ac_ct_MANIFEST_TOOL"; then
6710 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6730 if test -n "$ac_ct_MANIFEST_TOOL"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6732 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6739 MANIFEST_TOOL=":"
6740 else
6741 case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6748 fi
6749 else
6750 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6751 fi
6752
6753 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6755 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6756 if ${lt_cv_path_mainfest_tool+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 lt_cv_path_mainfest_tool=no
6760 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6761 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6762 cat conftest.err >&5
6763 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6764 lt_cv_path_mainfest_tool=yes
6765 fi
6766 rm -f conftest*
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6769 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6770 if test yes != "$lt_cv_path_mainfest_tool"; then
6771 MANIFEST_TOOL=:
6772 fi
6773
6774
6775
6776
6777
6778
6779 case $host_os in
6780 rhapsody* | darwin*)
6781 if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 if test -n "$DSYMUTIL"; then
6790 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6810 if test -n "$DSYMUTIL"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6812 $as_echo "$DSYMUTIL" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817
6818
6819 fi
6820 if test -z "$ac_cv_prog_DSYMUTIL"; then
6821 ac_ct_DSYMUTIL=$DSYMUTIL
6822 # Extract the first word of "dsymutil", so it can be a program name with args.
6823 set dummy dsymutil; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$ac_ct_DSYMUTIL"; then
6830 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6850 if test -n "$ac_ct_DSYMUTIL"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6852 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858 if test "x$ac_ct_DSYMUTIL" = x; then
6859 DSYMUTIL=":"
6860 else
6861 case $cross_compiling:$ac_tool_warned in
6862 yes:)
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865 ac_tool_warned=yes ;;
6866 esac
6867 DSYMUTIL=$ac_ct_DSYMUTIL
6868 fi
6869 else
6870 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6871 fi
6872
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_NMEDIT+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$NMEDIT"; then
6882 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 NMEDIT=$ac_cv_prog_NMEDIT
6902 if test -n "$NMEDIT"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6904 $as_echo "$NMEDIT" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910
6911 fi
6912 if test -z "$ac_cv_prog_NMEDIT"; then
6913 ac_ct_NMEDIT=$NMEDIT
6914 # Extract the first word of "nmedit", so it can be a program name with args.
6915 set dummy nmedit; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$ac_ct_NMEDIT"; then
6922 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6942 if test -n "$ac_ct_NMEDIT"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6944 $as_echo "$ac_ct_NMEDIT" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950 if test "x$ac_ct_NMEDIT" = x; then
6951 NMEDIT=":"
6952 else
6953 case $cross_compiling:$ac_tool_warned in
6954 yes:)
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959 NMEDIT=$ac_ct_NMEDIT
6960 fi
6961 else
6962 NMEDIT="$ac_cv_prog_NMEDIT"
6963 fi
6964
6965 if test -n "$ac_tool_prefix"; then
6966 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6967 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_LIPO+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$LIPO"; then
6974 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 LIPO=$ac_cv_prog_LIPO
6994 if test -n "$LIPO"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6996 $as_echo "$LIPO" >&6; }
6997 else
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002
7003 fi
7004 if test -z "$ac_cv_prog_LIPO"; then
7005 ac_ct_LIPO=$LIPO
7006 # Extract the first word of "lipo", so it can be a program name with args.
7007 set dummy lipo; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$ac_ct_LIPO"; then
7014 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_ac_ct_LIPO="lipo"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7034 if test -n "$ac_ct_LIPO"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7036 $as_echo "$ac_ct_LIPO" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042 if test "x$ac_ct_LIPO" = x; then
7043 LIPO=":"
7044 else
7045 case $cross_compiling:$ac_tool_warned in
7046 yes:)
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049 ac_tool_warned=yes ;;
7050 esac
7051 LIPO=$ac_ct_LIPO
7052 fi
7053 else
7054 LIPO="$ac_cv_prog_LIPO"
7055 fi
7056
7057 if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7059 set dummy ${ac_tool_prefix}otool; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_OTOOL+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$OTOOL"; then
7066 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 OTOOL=$ac_cv_prog_OTOOL
7086 if test -n "$OTOOL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7088 $as_echo "$OTOOL" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094
7095 fi
7096 if test -z "$ac_cv_prog_OTOOL"; then
7097 ac_ct_OTOOL=$OTOOL
7098 # Extract the first word of "otool", so it can be a program name with args.
7099 set dummy otool; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$ac_ct_OTOOL"; then
7106 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_OTOOL="otool"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7126 if test -n "$ac_ct_OTOOL"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7128 $as_echo "$ac_ct_OTOOL" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134 if test "x$ac_ct_OTOOL" = x; then
7135 OTOOL=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 OTOOL=$ac_ct_OTOOL
7144 fi
7145 else
7146 OTOOL="$ac_cv_prog_OTOOL"
7147 fi
7148
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_OTOOL64+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$OTOOL64"; then
7158 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 OTOOL64=$ac_cv_prog_OTOOL64
7178 if test -n "$OTOOL64"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7180 $as_echo "$OTOOL64" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186
7187 fi
7188 if test -z "$ac_cv_prog_OTOOL64"; then
7189 ac_ct_OTOOL64=$OTOOL64
7190 # Extract the first word of "otool64", so it can be a program name with args.
7191 set dummy otool64; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$ac_ct_OTOOL64"; then
7198 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_OTOOL64="otool64"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7218 if test -n "$ac_ct_OTOOL64"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7220 $as_echo "$ac_ct_OTOOL64" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225
7226 if test "x$ac_ct_OTOOL64" = x; then
7227 OTOOL64=":"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 OTOOL64=$ac_ct_OTOOL64
7236 fi
7237 else
7238 OTOOL64="$ac_cv_prog_OTOOL64"
7239 fi
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7268 $as_echo_n "checking for -single_module linker flag... " >&6; }
7269 if ${lt_cv_apple_cc_single_mod+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 lt_cv_apple_cc_single_mod=no
7273 if test -z "$LT_MULTI_MODULE"; then
7274 # By default we will add the -single_module flag. You can override
7275 # by either setting the environment variable LT_MULTI_MODULE
7276 # non-empty at configure time, or by adding -multi_module to the
7277 # link flags.
7278 rm -rf libconftest.dylib*
7279 echo "int foo(void){return 1;}" > conftest.c
7280 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7281 -dynamiclib -Wl,-single_module conftest.c" >&5
7282 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7283 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7284 _lt_result=$?
7285 # If there is a non-empty error log, and "single_module"
7286 # appears in it, assume the flag caused a linker warning
7287 if test -s conftest.err && $GREP single_module conftest.err; then
7288 cat conftest.err >&5
7289 # Otherwise, if the output was created with a 0 exit code from
7290 # the compiler, it worked.
7291 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7292 lt_cv_apple_cc_single_mod=yes
7293 else
7294 cat conftest.err >&5
7295 fi
7296 rm -rf libconftest.dylib*
7297 rm -f conftest.*
7298 fi
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7301 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7302
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7304 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7305 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 lt_cv_ld_exported_symbols_list=no
7309 save_LDFLAGS=$LDFLAGS
7310 echo "_main" > conftest.sym
7311 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314
7315 int
7316 main ()
7317 {
7318
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 if ac_fn_c_try_link "$LINENO"; then :
7324 lt_cv_ld_exported_symbols_list=yes
7325 else
7326 lt_cv_ld_exported_symbols_list=no
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext \
7329 conftest$ac_exeext conftest.$ac_ext
7330 LDFLAGS=$save_LDFLAGS
7331
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7334 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7335
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7337 $as_echo_n "checking for -force_load linker flag... " >&6; }
7338 if ${lt_cv_ld_force_load+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 lt_cv_ld_force_load=no
7342 cat > conftest.c << _LT_EOF
7343 int forced_loaded() { return 2;}
7344 _LT_EOF
7345 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7346 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7347 echo "$AR cr libconftest.a conftest.o" >&5
7348 $AR cr libconftest.a conftest.o 2>&5
7349 echo "$RANLIB libconftest.a" >&5
7350 $RANLIB libconftest.a 2>&5
7351 cat > conftest.c << _LT_EOF
7352 int main() { return 0;}
7353 _LT_EOF
7354 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7355 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7356 _lt_result=$?
7357 if test -s conftest.err && $GREP force_load conftest.err; then
7358 cat conftest.err >&5
7359 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7360 lt_cv_ld_force_load=yes
7361 else
7362 cat conftest.err >&5
7363 fi
7364 rm -f conftest.err libconftest.a conftest conftest.c
7365 rm -rf conftest.dSYM
7366
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7369 $as_echo "$lt_cv_ld_force_load" >&6; }
7370 case $host_os in
7371 rhapsody* | darwin1.[012])
7372 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7373 darwin1.*)
7374 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7375 darwin*) # darwin 5.x on
7376 # if running on 10.5 or later, the deployment target defaults
7377 # to the OS version, if on x86, and 10.4, the deployment
7378 # target defaults to 10.4. Don't you love it?
7379 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7380 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7381 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7382 10.[012][,.]*)
7383 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7384 10.*)
7385 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7386 esac
7387 ;;
7388 esac
7389 if test yes = "$lt_cv_apple_cc_single_mod"; then
7390 _lt_dar_single_mod='$single_module'
7391 fi
7392 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7393 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7394 else
7395 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7396 fi
7397 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7398 _lt_dsymutil='~$DSYMUTIL $lib || :'
7399 else
7400 _lt_dsymutil=
7401 fi
7402 ;;
7403 esac
7404
7405 # func_munge_path_list VARIABLE PATH
7406 # -----------------------------------
7407 # VARIABLE is name of variable containing _space_ separated list of
7408 # directories to be munged by the contents of PATH, which is string
7409 # having a format:
7410 # "DIR[:DIR]:"
7411 # string "DIR[ DIR]" will be prepended to VARIABLE
7412 # ":DIR[:DIR]"
7413 # string "DIR[ DIR]" will be appended to VARIABLE
7414 # "DIRP[:DIRP]::[DIRA:]DIRA"
7415 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7416 # "DIRA[ DIRA]" will be appended to VARIABLE
7417 # "DIR[:DIR]"
7418 # VARIABLE will be replaced by "DIR[ DIR]"
7419 func_munge_path_list ()
7420 {
7421 case x$2 in
7422 x)
7423 ;;
7424 *:)
7425 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7426 ;;
7427 x:*)
7428 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7429 ;;
7430 *::*)
7431 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7432 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7433 ;;
7434 *)
7435 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7436 ;;
7437 esac
7438 }
7439
7440 ac_ext=c
7441 ac_cpp='$CPP $CPPFLAGS'
7442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7446 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7447 # On Suns, sometimes $CPP names a directory.
7448 if test -n "$CPP" && test -d "$CPP"; then
7449 CPP=
7450 fi
7451 if test -z "$CPP"; then
7452 if ${ac_cv_prog_CPP+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 # Double quotes because CPP needs to be expanded
7456 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7457 do
7458 ac_preproc_ok=false
7459 for ac_c_preproc_warn_flag in '' yes
7460 do
7461 # Use a header file that comes with gcc, so configuring glibc
7462 # with a fresh cross-compiler works.
7463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7464 # <limits.h> exists even on freestanding compilers.
7465 # On the NeXT, cc -E runs the code through the compiler's parser,
7466 # not just through cpp. "Syntax error" is here to catch this case.
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 #ifdef __STDC__
7470 # include <limits.h>
7471 #else
7472 # include <assert.h>
7473 #endif
7474 Syntax error
7475 _ACEOF
7476 if ac_fn_c_try_cpp "$LINENO"; then :
7477
7478 else
7479 # Broken: fails on valid input.
7480 continue
7481 fi
7482 rm -f conftest.err conftest.i conftest.$ac_ext
7483
7484 # OK, works on sane cases. Now check whether nonexistent headers
7485 # can be detected and how.
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #include <ac_nonexistent.h>
7489 _ACEOF
7490 if ac_fn_c_try_cpp "$LINENO"; then :
7491 # Broken: success on invalid input.
7492 continue
7493 else
7494 # Passes both tests.
7495 ac_preproc_ok=:
7496 break
7497 fi
7498 rm -f conftest.err conftest.i conftest.$ac_ext
7499
7500 done
7501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7502 rm -f conftest.i conftest.err conftest.$ac_ext
7503 if $ac_preproc_ok; then :
7504 break
7505 fi
7506
7507 done
7508 ac_cv_prog_CPP=$CPP
7509
7510 fi
7511 CPP=$ac_cv_prog_CPP
7512 else
7513 ac_cv_prog_CPP=$CPP
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7516 $as_echo "$CPP" >&6; }
7517 ac_preproc_ok=false
7518 for ac_c_preproc_warn_flag in '' yes
7519 do
7520 # Use a header file that comes with gcc, so configuring glibc
7521 # with a fresh cross-compiler works.
7522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7523 # <limits.h> exists even on freestanding compilers.
7524 # On the NeXT, cc -E runs the code through the compiler's parser,
7525 # not just through cpp. "Syntax error" is here to catch this case.
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 #ifdef __STDC__
7529 # include <limits.h>
7530 #else
7531 # include <assert.h>
7532 #endif
7533 Syntax error
7534 _ACEOF
7535 if ac_fn_c_try_cpp "$LINENO"; then :
7536
7537 else
7538 # Broken: fails on valid input.
7539 continue
7540 fi
7541 rm -f conftest.err conftest.i conftest.$ac_ext
7542
7543 # OK, works on sane cases. Now check whether nonexistent headers
7544 # can be detected and how.
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 #include <ac_nonexistent.h>
7548 _ACEOF
7549 if ac_fn_c_try_cpp "$LINENO"; then :
7550 # Broken: success on invalid input.
7551 continue
7552 else
7553 # Passes both tests.
7554 ac_preproc_ok=:
7555 break
7556 fi
7557 rm -f conftest.err conftest.i conftest.$ac_ext
7558
7559 done
7560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7561 rm -f conftest.i conftest.err conftest.$ac_ext
7562 if $ac_preproc_ok; then :
7563
7564 else
7565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7567 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7568 See \`config.log' for more details" "$LINENO" 5; }
7569 fi
7570
7571 ac_ext=c
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576
7577
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7579 $as_echo_n "checking for ANSI C header files... " >&6; }
7580 if ${ac_cv_header_stdc+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 #include <stdlib.h>
7586 #include <stdarg.h>
7587 #include <string.h>
7588 #include <float.h>
7589
7590 int
7591 main ()
7592 {
7593
7594 ;
7595 return 0;
7596 }
7597 _ACEOF
7598 if ac_fn_c_try_compile "$LINENO"; then :
7599 ac_cv_header_stdc=yes
7600 else
7601 ac_cv_header_stdc=no
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604
7605 if test $ac_cv_header_stdc = yes; then
7606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 #include <string.h>
7610
7611 _ACEOF
7612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7613 $EGREP "memchr" >/dev/null 2>&1; then :
7614
7615 else
7616 ac_cv_header_stdc=no
7617 fi
7618 rm -f conftest*
7619
7620 fi
7621
7622 if test $ac_cv_header_stdc = yes; then
7623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 #include <stdlib.h>
7627
7628 _ACEOF
7629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7630 $EGREP "free" >/dev/null 2>&1; then :
7631
7632 else
7633 ac_cv_header_stdc=no
7634 fi
7635 rm -f conftest*
7636
7637 fi
7638
7639 if test $ac_cv_header_stdc = yes; then
7640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7641 if test "$cross_compiling" = yes; then :
7642 :
7643 else
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #include <ctype.h>
7647 #include <stdlib.h>
7648 #if ((' ' & 0x0FF) == 0x020)
7649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7651 #else
7652 # define ISLOWER(c) \
7653 (('a' <= (c) && (c) <= 'i') \
7654 || ('j' <= (c) && (c) <= 'r') \
7655 || ('s' <= (c) && (c) <= 'z'))
7656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7657 #endif
7658
7659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7660 int
7661 main ()
7662 {
7663 int i;
7664 for (i = 0; i < 256; i++)
7665 if (XOR (islower (i), ISLOWER (i))
7666 || toupper (i) != TOUPPER (i))
7667 return 2;
7668 return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_run "$LINENO"; then :
7672
7673 else
7674 ac_cv_header_stdc=no
7675 fi
7676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7677 conftest.$ac_objext conftest.beam conftest.$ac_ext
7678 fi
7679
7680 fi
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7683 $as_echo "$ac_cv_header_stdc" >&6; }
7684 if test $ac_cv_header_stdc = yes; then
7685
7686 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7687
7688 fi
7689
7690 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7691 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7692 inttypes.h stdint.h unistd.h
7693 do :
7694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7696 "
7697 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7698 cat >>confdefs.h <<_ACEOF
7699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7700 _ACEOF
7701
7702 fi
7703
7704 done
7705
7706
7707 for ac_header in dlfcn.h
7708 do :
7709 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7710 "
7711 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7712 cat >>confdefs.h <<_ACEOF
7713 #define HAVE_DLFCN_H 1
7714 _ACEOF
7715
7716 fi
7717
7718 done
7719
7720
7721
7722
7723
7724 # Set options
7725
7726
7727
7728 enable_dlopen=no
7729
7730
7731 enable_win32_dll=no
7732
7733
7734 # Check whether --enable-shared was given.
7735 if test "${enable_shared+set}" = set; then :
7736 enableval=$enable_shared; p=${PACKAGE-default}
7737 case $enableval in
7738 yes) enable_shared=yes ;;
7739 no) enable_shared=no ;;
7740 *)
7741 enable_shared=no
7742 # Look at the argument we got. We use all the common list separators.
7743 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7744 for pkg in $enableval; do
7745 IFS=$lt_save_ifs
7746 if test "X$pkg" = "X$p"; then
7747 enable_shared=yes
7748 fi
7749 done
7750 IFS=$lt_save_ifs
7751 ;;
7752 esac
7753 else
7754 enable_shared=yes
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765 # Check whether --enable-static was given.
7766 if test "${enable_static+set}" = set; then :
7767 enableval=$enable_static; p=${PACKAGE-default}
7768 case $enableval in
7769 yes) enable_static=yes ;;
7770 no) enable_static=no ;;
7771 *)
7772 enable_static=no
7773 # Look at the argument we got. We use all the common list separators.
7774 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7775 for pkg in $enableval; do
7776 IFS=$lt_save_ifs
7777 if test "X$pkg" = "X$p"; then
7778 enable_static=yes
7779 fi
7780 done
7781 IFS=$lt_save_ifs
7782 ;;
7783 esac
7784 else
7785 enable_static=yes
7786 fi
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 # Check whether --with-pic was given.
7798 if test "${with_pic+set}" = set; then :
7799 withval=$with_pic; lt_p=${PACKAGE-default}
7800 case $withval in
7801 yes|no) pic_mode=$withval ;;
7802 *)
7803 pic_mode=default
7804 # Look at the argument we got. We use all the common list separators.
7805 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7806 for lt_pkg in $withval; do
7807 IFS=$lt_save_ifs
7808 if test "X$lt_pkg" = "X$lt_p"; then
7809 pic_mode=yes
7810 fi
7811 done
7812 IFS=$lt_save_ifs
7813 ;;
7814 esac
7815 else
7816 pic_mode=default
7817 fi
7818
7819
7820
7821
7822
7823
7824
7825
7826 # Check whether --enable-fast-install was given.
7827 if test "${enable_fast_install+set}" = set; then :
7828 enableval=$enable_fast_install; p=${PACKAGE-default}
7829 case $enableval in
7830 yes) enable_fast_install=yes ;;
7831 no) enable_fast_install=no ;;
7832 *)
7833 enable_fast_install=no
7834 # Look at the argument we got. We use all the common list separators.
7835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7836 for pkg in $enableval; do
7837 IFS=$lt_save_ifs
7838 if test "X$pkg" = "X$p"; then
7839 enable_fast_install=yes
7840 fi
7841 done
7842 IFS=$lt_save_ifs
7843 ;;
7844 esac
7845 else
7846 enable_fast_install=yes
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855
7856 shared_archive_member_spec=
7857 case $host,$enable_shared in
7858 power*-*-aix[5-9]*,yes)
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7860 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7861
7862 # Check whether --with-aix-soname was given.
7863 if test "${with_aix_soname+set}" = set; then :
7864 withval=$with_aix_soname; case $withval in
7865 aix|svr4|both)
7866 ;;
7867 *)
7868 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7869 ;;
7870 esac
7871 lt_cv_with_aix_soname=$with_aix_soname
7872 else
7873 if ${lt_cv_with_aix_soname+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 lt_cv_with_aix_soname=aix
7877 fi
7878
7879 with_aix_soname=$lt_cv_with_aix_soname
7880 fi
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7883 $as_echo "$with_aix_soname" >&6; }
7884 if test aix != "$with_aix_soname"; then
7885 # For the AIX way of multilib, we name the shared archive member
7886 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7887 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7888 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7889 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7890 if test 64 = "${OBJECT_MODE-32}"; then
7891 shared_archive_member_spec=shr_64
7892 else
7893 shared_archive_member_spec=shr
7894 fi
7895 fi
7896 ;;
7897 *)
7898 with_aix_soname=aix
7899 ;;
7900 esac
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911 # This can be used to rebuild libtool when needed
7912 LIBTOOL_DEPS=$ltmain
7913
7914 # Always use our own libtool.
7915 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946 test -z "$LN_S" && LN_S="ln -s"
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961 if test -n "${ZSH_VERSION+set}"; then
7962 setopt NO_GLOB_SUBST
7963 fi
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7966 $as_echo_n "checking for objdir... " >&6; }
7967 if ${lt_cv_objdir+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 rm -f .libs 2>/dev/null
7971 mkdir .libs 2>/dev/null
7972 if test -d .libs; then
7973 lt_cv_objdir=.libs
7974 else
7975 # MS-DOS does not allow filenames that begin with a dot.
7976 lt_cv_objdir=_libs
7977 fi
7978 rmdir .libs 2>/dev/null
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7981 $as_echo "$lt_cv_objdir" >&6; }
7982 objdir=$lt_cv_objdir
7983
7984
7985
7986
7987
7988 cat >>confdefs.h <<_ACEOF
7989 #define LT_OBJDIR "$lt_cv_objdir/"
7990 _ACEOF
7991
7992
7993
7994
7995 case $host_os in
7996 aix3*)
7997 # AIX sometimes has problems with the GCC collect2 program. For some
7998 # reason, if we set the COLLECT_NAMES environment variable, the problems
7999 # vanish in a puff of smoke.
8000 if test set != "${COLLECT_NAMES+set}"; then
8001 COLLECT_NAMES=
8002 export COLLECT_NAMES
8003 fi
8004 ;;
8005 esac
8006
8007 # Global variables:
8008 ofile=libtool
8009 can_build_shared=yes
8010
8011 # All known linkers require a '.a' archive for static linking (except MSVC,
8012 # which needs '.lib').
8013 libext=a
8014
8015 with_gnu_ld=$lt_cv_prog_gnu_ld
8016
8017 old_CC=$CC
8018 old_CFLAGS=$CFLAGS
8019
8020 # Set sane defaults for various variables
8021 test -z "$CC" && CC=cc
8022 test -z "$LTCC" && LTCC=$CC
8023 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8024 test -z "$LD" && LD=ld
8025 test -z "$ac_objext" && ac_objext=o
8026
8027 func_cc_basename $compiler
8028 cc_basename=$func_cc_basename_result
8029
8030
8031 # Only perform the check for file, if the check method requires it
8032 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8033 case $deplibs_check_method in
8034 file_magic*)
8035 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8037 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 case $MAGIC_CMD in
8042 [\\/*] | ?:[\\/]*)
8043 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8044 ;;
8045 *)
8046 lt_save_MAGIC_CMD=$MAGIC_CMD
8047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8049 for ac_dir in $ac_dummy; do
8050 IFS=$lt_save_ifs
8051 test -z "$ac_dir" && ac_dir=.
8052 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8053 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8054 if test -n "$file_magic_test_file"; then
8055 case $deplibs_check_method in
8056 "file_magic "*)
8057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8060 $EGREP "$file_magic_regex" > /dev/null; then
8061 :
8062 else
8063 cat <<_LT_EOF 1>&2
8064
8065 *** Warning: the command libtool uses to detect shared libraries,
8066 *** $file_magic_cmd, produces output that libtool cannot recognize.
8067 *** The result is that libtool may fail to recognize shared libraries
8068 *** as such. This will affect the creation of libtool libraries that
8069 *** depend on shared libraries, but programs linked with such libtool
8070 *** libraries will work regardless of this problem. Nevertheless, you
8071 *** may want to report the problem to your system manager and/or to
8072 *** [email protected]
8073
8074 _LT_EOF
8075 fi ;;
8076 esac
8077 fi
8078 break
8079 fi
8080 done
8081 IFS=$lt_save_ifs
8082 MAGIC_CMD=$lt_save_MAGIC_CMD
8083 ;;
8084 esac
8085 fi
8086
8087 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8088 if test -n "$MAGIC_CMD"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8090 $as_echo "$MAGIC_CMD" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097
8098
8099
8100 if test -z "$lt_cv_path_MAGIC_CMD"; then
8101 if test -n "$ac_tool_prefix"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8103 $as_echo_n "checking for file... " >&6; }
8104 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 case $MAGIC_CMD in
8108 [\\/*] | ?:[\\/]*)
8109 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8110 ;;
8111 *)
8112 lt_save_MAGIC_CMD=$MAGIC_CMD
8113 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8115 for ac_dir in $ac_dummy; do
8116 IFS=$lt_save_ifs
8117 test -z "$ac_dir" && ac_dir=.
8118 if test -f "$ac_dir/file"; then
8119 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8120 if test -n "$file_magic_test_file"; then
8121 case $deplibs_check_method in
8122 "file_magic "*)
8123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8124 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8126 $EGREP "$file_magic_regex" > /dev/null; then
8127 :
8128 else
8129 cat <<_LT_EOF 1>&2
8130
8131 *** Warning: the command libtool uses to detect shared libraries,
8132 *** $file_magic_cmd, produces output that libtool cannot recognize.
8133 *** The result is that libtool may fail to recognize shared libraries
8134 *** as such. This will affect the creation of libtool libraries that
8135 *** depend on shared libraries, but programs linked with such libtool
8136 *** libraries will work regardless of this problem. Nevertheless, you
8137 *** may want to report the problem to your system manager and/or to
8138 *** [email protected]
8139
8140 _LT_EOF
8141 fi ;;
8142 esac
8143 fi
8144 break
8145 fi
8146 done
8147 IFS=$lt_save_ifs
8148 MAGIC_CMD=$lt_save_MAGIC_CMD
8149 ;;
8150 esac
8151 fi
8152
8153 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8154 if test -n "$MAGIC_CMD"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8156 $as_echo "$MAGIC_CMD" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162
8163 else
8164 MAGIC_CMD=:
8165 fi
8166 fi
8167
8168 fi
8169 ;;
8170 esac
8171
8172 # Use C for the default configuration in the libtool script
8173
8174 lt_save_CC=$CC
8175 ac_ext=c
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181
8182 # Source file extension for C test sources.
8183 ac_ext=c
8184
8185 # Object file extension for compiled C test sources.
8186 objext=o
8187 objext=$objext
8188
8189 # Code to be used in simple compile tests
8190 lt_simple_compile_test_code="int some_variable = 0;"
8191
8192 # Code to be used in simple link tests
8193 lt_simple_link_test_code='int main(){return(0);}'
8194
8195
8196
8197
8198
8199
8200
8201 # If no C compiler was specified, use CC.
8202 LTCC=${LTCC-"$CC"}
8203
8204 # If no C compiler flags were specified, use CFLAGS.
8205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8206
8207 # Allow CC to be a program name with arguments.
8208 compiler=$CC
8209
8210 # Save the default compiler, since it gets overwritten when the other
8211 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8212 compiler_DEFAULT=$CC
8213
8214 # save warnings/boilerplate of simple test code
8215 ac_outfile=conftest.$ac_objext
8216 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8217 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8218 _lt_compiler_boilerplate=`cat conftest.err`
8219 $RM conftest*
8220
8221 ac_outfile=conftest.$ac_objext
8222 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8223 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8224 _lt_linker_boilerplate=`cat conftest.err`
8225 $RM -r conftest*
8226
8227
8228 ## CAVEAT EMPTOR:
8229 ## There is no encapsulation within the following macros, do not change
8230 ## the running order or otherwise move them around unless you know exactly
8231 ## what you are doing...
8232 if test -n "$compiler"; then
8233
8234 lt_prog_compiler_no_builtin_flag=
8235
8236 if test yes = "$GCC"; then
8237 case $cc_basename in
8238 nvcc*)
8239 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8240 *)
8241 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8242 esac
8243
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8245 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8246 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 lt_cv_prog_compiler_rtti_exceptions=no
8250 ac_outfile=conftest.$ac_objext
8251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8252 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8253 # Insert the option either (1) after the last *FLAGS variable, or
8254 # (2) before a word containing "conftest.", or (3) at the end.
8255 # Note that $ac_compile itself does not contain backslashes and begins
8256 # with a dollar sign (not a hyphen), so the echo should work correctly.
8257 # The option is referenced via a variable to avoid confusing sed.
8258 lt_compile=`echo "$ac_compile" | $SED \
8259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8261 -e 's:$: $lt_compiler_flag:'`
8262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8263 (eval "$lt_compile" 2>conftest.err)
8264 ac_status=$?
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 if (exit $ac_status) && test -s "$ac_outfile"; then
8268 # The compiler can only warn and ignore the option if not recognized
8269 # So say no if there are warnings other than the usual output.
8270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8273 lt_cv_prog_compiler_rtti_exceptions=yes
8274 fi
8275 fi
8276 $RM conftest*
8277
8278 fi
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8280 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8281
8282 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8283 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8284 else
8285 :
8286 fi
8287
8288 fi
8289
8290
8291
8292
8293
8294
8295 lt_prog_compiler_wl=
8296 lt_prog_compiler_pic=
8297 lt_prog_compiler_static=
8298
8299
8300 if test yes = "$GCC"; then
8301 lt_prog_compiler_wl='-Wl,'
8302 lt_prog_compiler_static='-static'
8303
8304 case $host_os in
8305 aix*)
8306 # All AIX code is PIC.
8307 if test ia64 = "$host_cpu"; then
8308 # AIX 5 now supports IA64 processor
8309 lt_prog_compiler_static='-Bstatic'
8310 fi
8311 lt_prog_compiler_pic='-fPIC'
8312 ;;
8313
8314 amigaos*)
8315 case $host_cpu in
8316 powerpc)
8317 # see comment about AmigaOS4 .so support
8318 lt_prog_compiler_pic='-fPIC'
8319 ;;
8320 m68k)
8321 # FIXME: we need at least 68020 code to build shared libraries, but
8322 # adding the '-m68020' flag to GCC prevents building anything better,
8323 # like '-m68040'.
8324 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8325 ;;
8326 esac
8327 ;;
8328
8329 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8330 # PIC is the default for these OSes.
8331 ;;
8332
8333 mingw* | cygwin* | pw32* | os2* | cegcc*)
8334 # This hack is so that the source file can tell whether it is being
8335 # built for inclusion in a dll (and should export symbols for example).
8336 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8337 # (--disable-auto-import) libraries
8338 lt_prog_compiler_pic='-DDLL_EXPORT'
8339 case $host_os in
8340 os2*)
8341 lt_prog_compiler_static='$wl-static'
8342 ;;
8343 esac
8344 ;;
8345
8346 darwin* | rhapsody*)
8347 # PIC is the default on this platform
8348 # Common symbols not allowed in MH_DYLIB files
8349 lt_prog_compiler_pic='-fno-common'
8350 ;;
8351
8352 haiku*)
8353 # PIC is the default for Haiku.
8354 # The "-static" flag exists, but is broken.
8355 lt_prog_compiler_static=
8356 ;;
8357
8358 hpux*)
8359 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8360 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8361 # sets the default TLS model and affects inlining.
8362 case $host_cpu in
8363 hppa*64*)
8364 # +Z the default
8365 ;;
8366 *)
8367 lt_prog_compiler_pic='-fPIC'
8368 ;;
8369 esac
8370 ;;
8371
8372 interix[3-9]*)
8373 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8374 # Instead, we relocate shared libraries at runtime.
8375 ;;
8376
8377 msdosdjgpp*)
8378 # Just because we use GCC doesn't mean we suddenly get shared libraries
8379 # on systems that don't support them.
8380 lt_prog_compiler_can_build_shared=no
8381 enable_shared=no
8382 ;;
8383
8384 *nto* | *qnx*)
8385 # QNX uses GNU C++, but need to define -shared option too, otherwise
8386 # it will coredump.
8387 lt_prog_compiler_pic='-fPIC -shared'
8388 ;;
8389
8390 sysv4*MP*)
8391 if test -d /usr/nec; then
8392 lt_prog_compiler_pic=-Kconform_pic
8393 fi
8394 ;;
8395
8396 *)
8397 lt_prog_compiler_pic='-fPIC'
8398 ;;
8399 esac
8400
8401 case $cc_basename in
8402 nvcc*) # Cuda Compiler Driver 2.2
8403 lt_prog_compiler_wl='-Xlinker '
8404 if test -n "$lt_prog_compiler_pic"; then
8405 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8406 fi
8407 ;;
8408 esac
8409 else
8410 # PORTME Check for flag to pass linker flags through the system compiler.
8411 case $host_os in
8412 aix*)
8413 lt_prog_compiler_wl='-Wl,'
8414 if test ia64 = "$host_cpu"; then
8415 # AIX 5 now supports IA64 processor
8416 lt_prog_compiler_static='-Bstatic'
8417 else
8418 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8419 fi
8420 ;;
8421
8422 darwin* | rhapsody*)
8423 # PIC is the default on this platform
8424 # Common symbols not allowed in MH_DYLIB files
8425 lt_prog_compiler_pic='-fno-common'
8426 case $cc_basename in
8427 nagfor*)
8428 # NAG Fortran compiler
8429 lt_prog_compiler_wl='-Wl,-Wl,,'
8430 lt_prog_compiler_pic='-PIC'
8431 lt_prog_compiler_static='-Bstatic'
8432 ;;
8433 esac
8434 ;;
8435
8436 mingw* | cygwin* | pw32* | os2* | cegcc*)
8437 # This hack is so that the source file can tell whether it is being
8438 # built for inclusion in a dll (and should export symbols for example).
8439 lt_prog_compiler_pic='-DDLL_EXPORT'
8440 case $host_os in
8441 os2*)
8442 lt_prog_compiler_static='$wl-static'
8443 ;;
8444 esac
8445 ;;
8446
8447 hpux9* | hpux10* | hpux11*)
8448 lt_prog_compiler_wl='-Wl,'
8449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8450 # not for PA HP-UX.
8451 case $host_cpu in
8452 hppa*64*|ia64*)
8453 # +Z the default
8454 ;;
8455 *)
8456 lt_prog_compiler_pic='+Z'
8457 ;;
8458 esac
8459 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8460 lt_prog_compiler_static='$wl-a ${wl}archive'
8461 ;;
8462
8463 irix5* | irix6* | nonstopux*)
8464 lt_prog_compiler_wl='-Wl,'
8465 # PIC (with -KPIC) is the default.
8466 lt_prog_compiler_static='-non_shared'
8467 ;;
8468
8469 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8470 case $cc_basename in
8471 # old Intel for x86_64, which still supported -KPIC.
8472 ecc*)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='-KPIC'
8475 lt_prog_compiler_static='-static'
8476 ;;
8477 # flang / f18. f95 an alias for gfortran or flang on Debian
8478 flang* | f18* | f95*)
8479 lt_prog_compiler_wl='-Wl,'
8480 lt_prog_compiler_pic='-fPIC'
8481 lt_prog_compiler_static='-static'
8482 ;;
8483 # icc used to be incompatible with GCC.
8484 # ICC 10 doesn't accept -KPIC any more.
8485 icc* | ifort*)
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_pic='-fPIC'
8488 lt_prog_compiler_static='-static'
8489 ;;
8490 # Lahey Fortran 8.1.
8491 lf95*)
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='--shared'
8494 lt_prog_compiler_static='--static'
8495 ;;
8496 nagfor*)
8497 # NAG Fortran compiler
8498 lt_prog_compiler_wl='-Wl,-Wl,,'
8499 lt_prog_compiler_pic='-PIC'
8500 lt_prog_compiler_static='-Bstatic'
8501 ;;
8502 tcc*)
8503 # Fabrice Bellard et al's Tiny C Compiler
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-fPIC'
8506 lt_prog_compiler_static='-static'
8507 ;;
8508 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8509 # Portland Group compilers (*not* the Pentium gcc compiler,
8510 # which looks to be a dead project)
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-fpic'
8513 lt_prog_compiler_static='-Bstatic'
8514 ;;
8515 ccc*)
8516 lt_prog_compiler_wl='-Wl,'
8517 # All Alpha code is PIC.
8518 lt_prog_compiler_static='-non_shared'
8519 ;;
8520 xl* | bgxl* | bgf* | mpixl*)
8521 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='-qpic'
8524 lt_prog_compiler_static='-qstaticlink'
8525 ;;
8526 *)
8527 case `$CC -V 2>&1 | sed 5q` in
8528 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8529 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8530 lt_prog_compiler_pic='-KPIC'
8531 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_wl=''
8533 ;;
8534 *Sun\ F* | *Sun*Fortran*)
8535 lt_prog_compiler_pic='-KPIC'
8536 lt_prog_compiler_static='-Bstatic'
8537 lt_prog_compiler_wl='-Qoption ld '
8538 ;;
8539 *Sun\ C*)
8540 # Sun C 5.9
8541 lt_prog_compiler_pic='-KPIC'
8542 lt_prog_compiler_static='-Bstatic'
8543 lt_prog_compiler_wl='-Wl,'
8544 ;;
8545 *Intel*\ [CF]*Compiler*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-fPIC'
8548 lt_prog_compiler_static='-static'
8549 ;;
8550 *Portland\ Group*)
8551 lt_prog_compiler_wl='-Wl,'
8552 lt_prog_compiler_pic='-fpic'
8553 lt_prog_compiler_static='-Bstatic'
8554 ;;
8555 esac
8556 ;;
8557 esac
8558 ;;
8559
8560 newsos6)
8561 lt_prog_compiler_pic='-KPIC'
8562 lt_prog_compiler_static='-Bstatic'
8563 ;;
8564
8565 *nto* | *qnx*)
8566 # QNX uses GNU C++, but need to define -shared option too, otherwise
8567 # it will coredump.
8568 lt_prog_compiler_pic='-fPIC -shared'
8569 ;;
8570
8571 osf3* | osf4* | osf5*)
8572 lt_prog_compiler_wl='-Wl,'
8573 # All OSF/1 code is PIC.
8574 lt_prog_compiler_static='-non_shared'
8575 ;;
8576
8577 rdos*)
8578 lt_prog_compiler_static='-non_shared'
8579 ;;
8580
8581 solaris*)
8582 lt_prog_compiler_pic='-KPIC'
8583 lt_prog_compiler_static='-Bstatic'
8584 case $cc_basename in
8585 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8586 lt_prog_compiler_wl='-Qoption ld ';;
8587 *)
8588 lt_prog_compiler_wl='-Wl,';;
8589 esac
8590 ;;
8591
8592 sunos4*)
8593 lt_prog_compiler_wl='-Qoption ld '
8594 lt_prog_compiler_pic='-PIC'
8595 lt_prog_compiler_static='-Bstatic'
8596 ;;
8597
8598 sysv4 | sysv4.2uw2* | sysv4.3*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8602 ;;
8603
8604 sysv4*MP*)
8605 if test -d /usr/nec; then
8606 lt_prog_compiler_pic='-Kconform_pic'
8607 lt_prog_compiler_static='-Bstatic'
8608 fi
8609 ;;
8610
8611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8612 lt_prog_compiler_wl='-Wl,'
8613 lt_prog_compiler_pic='-KPIC'
8614 lt_prog_compiler_static='-Bstatic'
8615 ;;
8616
8617 unicos*)
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_can_build_shared=no
8620 ;;
8621
8622 uts4*)
8623 lt_prog_compiler_pic='-pic'
8624 lt_prog_compiler_static='-Bstatic'
8625 ;;
8626
8627 *)
8628 lt_prog_compiler_can_build_shared=no
8629 ;;
8630 esac
8631 fi
8632
8633 case $host_os in
8634 # For platforms that do not support PIC, -DPIC is meaningless:
8635 *djgpp*)
8636 lt_prog_compiler_pic=
8637 ;;
8638 *)
8639 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8640 ;;
8641 esac
8642
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8644 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8645 if ${lt_cv_prog_compiler_pic+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8651 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8652 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8653
8654 #
8655 # Check to make sure the PIC flag actually works.
8656 #
8657 if test -n "$lt_prog_compiler_pic"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8659 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8660 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 lt_cv_prog_compiler_pic_works=no
8664 ac_outfile=conftest.$ac_objext
8665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8666 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8667 # Insert the option either (1) after the last *FLAGS variable, or
8668 # (2) before a word containing "conftest.", or (3) at the end.
8669 # Note that $ac_compile itself does not contain backslashes and begins
8670 # with a dollar sign (not a hyphen), so the echo should work correctly.
8671 # The option is referenced via a variable to avoid confusing sed.
8672 lt_compile=`echo "$ac_compile" | $SED \
8673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8675 -e 's:$: $lt_compiler_flag:'`
8676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8677 (eval "$lt_compile" 2>conftest.err)
8678 ac_status=$?
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 if (exit $ac_status) && test -s "$ac_outfile"; then
8682 # The compiler can only warn and ignore the option if not recognized
8683 # So say no if there are warnings other than the usual output.
8684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8687 lt_cv_prog_compiler_pic_works=yes
8688 fi
8689 fi
8690 $RM conftest*
8691
8692 fi
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8694 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8695
8696 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8697 case $lt_prog_compiler_pic in
8698 "" | " "*) ;;
8699 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8700 esac
8701 else
8702 lt_prog_compiler_pic=
8703 lt_prog_compiler_can_build_shared=no
8704 fi
8705
8706 fi
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 #
8719 # Check to make sure the static flag actually works.
8720 #
8721 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8723 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8724 if ${lt_cv_prog_compiler_static_works+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 lt_cv_prog_compiler_static_works=no
8728 save_LDFLAGS=$LDFLAGS
8729 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8730 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8732 # The linker can only warn and ignore the option if not recognized
8733 # So say no if there are warnings
8734 if test -s conftest.err; then
8735 # Append any errors to the config.log.
8736 cat conftest.err 1>&5
8737 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8739 if diff conftest.exp conftest.er2 >/dev/null; then
8740 lt_cv_prog_compiler_static_works=yes
8741 fi
8742 else
8743 lt_cv_prog_compiler_static_works=yes
8744 fi
8745 fi
8746 $RM -r conftest*
8747 LDFLAGS=$save_LDFLAGS
8748
8749 fi
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8751 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8752
8753 if test yes = "$lt_cv_prog_compiler_static_works"; then
8754 :
8755 else
8756 lt_prog_compiler_static=
8757 fi
8758
8759
8760
8761
8762
8763
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8766 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8767 if ${lt_cv_prog_compiler_c_o+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 lt_cv_prog_compiler_c_o=no
8771 $RM -r conftest 2>/dev/null
8772 mkdir conftest
8773 cd conftest
8774 mkdir out
8775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776
8777 lt_compiler_flag="-o out/conftest2.$ac_objext"
8778 # Insert the option either (1) after the last *FLAGS variable, or
8779 # (2) before a word containing "conftest.", or (3) at the end.
8780 # Note that $ac_compile itself does not contain backslashes and begins
8781 # with a dollar sign (not a hyphen), so the echo should work correctly.
8782 lt_compile=`echo "$ac_compile" | $SED \
8783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8785 -e 's:$: $lt_compiler_flag:'`
8786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8787 (eval "$lt_compile" 2>out/conftest.err)
8788 ac_status=$?
8789 cat out/conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8792 then
8793 # The compiler can only warn and ignore the option if not recognized
8794 # So say no if there are warnings
8795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8798 lt_cv_prog_compiler_c_o=yes
8799 fi
8800 fi
8801 chmod u+w . 2>&5
8802 $RM conftest*
8803 # SGI C++ compiler will create directory out/ii_files/ for
8804 # template instantiation
8805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8806 $RM out/* && rmdir out
8807 cd ..
8808 $RM -r conftest
8809 $RM conftest*
8810
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8813 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8814
8815
8816
8817
8818
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8822 if ${lt_cv_prog_compiler_c_o+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 lt_cv_prog_compiler_c_o=no
8826 $RM -r conftest 2>/dev/null
8827 mkdir conftest
8828 cd conftest
8829 mkdir out
8830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8831
8832 lt_compiler_flag="-o out/conftest2.$ac_objext"
8833 # Insert the option either (1) after the last *FLAGS variable, or
8834 # (2) before a word containing "conftest.", or (3) at the end.
8835 # Note that $ac_compile itself does not contain backslashes and begins
8836 # with a dollar sign (not a hyphen), so the echo should work correctly.
8837 lt_compile=`echo "$ac_compile" | $SED \
8838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8840 -e 's:$: $lt_compiler_flag:'`
8841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8842 (eval "$lt_compile" 2>out/conftest.err)
8843 ac_status=$?
8844 cat out/conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8847 then
8848 # The compiler can only warn and ignore the option if not recognized
8849 # So say no if there are warnings
8850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8853 lt_cv_prog_compiler_c_o=yes
8854 fi
8855 fi
8856 chmod u+w . 2>&5
8857 $RM conftest*
8858 # SGI C++ compiler will create directory out/ii_files/ for
8859 # template instantiation
8860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8861 $RM out/* && rmdir out
8862 cd ..
8863 $RM -r conftest
8864 $RM conftest*
8865
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8868 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8869
8870
8871
8872
8873 hard_links=nottested
8874 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8875 # do not overwrite the value of need_locks provided by the user
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8877 $as_echo_n "checking if we can lock with hard links... " >&6; }
8878 hard_links=yes
8879 $RM conftest*
8880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8881 touch conftest.a
8882 ln conftest.a conftest.b 2>&5 || hard_links=no
8883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8885 $as_echo "$hard_links" >&6; }
8886 if test no = "$hard_links"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8888 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8889 need_locks=warn
8890 fi
8891 else
8892 need_locks=no
8893 fi
8894
8895
8896
8897
8898
8899
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8901 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8902
8903 runpath_var=
8904 allow_undefined_flag=
8905 always_export_symbols=no
8906 archive_cmds=
8907 archive_expsym_cmds=
8908 compiler_needs_object=no
8909 enable_shared_with_static_runtimes=no
8910 export_dynamic_flag_spec=
8911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8912 hardcode_automatic=no
8913 hardcode_direct=no
8914 hardcode_direct_absolute=no
8915 hardcode_libdir_flag_spec=
8916 hardcode_libdir_separator=
8917 hardcode_minus_L=no
8918 hardcode_shlibpath_var=unsupported
8919 inherit_rpath=no
8920 link_all_deplibs=unknown
8921 module_cmds=
8922 module_expsym_cmds=
8923 old_archive_from_new_cmds=
8924 old_archive_from_expsyms_cmds=
8925 thread_safe_flag_spec=
8926 whole_archive_flag_spec=
8927 # include_expsyms should be a list of space-separated symbols to be *always*
8928 # included in the symbol list
8929 include_expsyms=
8930 # exclude_expsyms can be an extended regexp of symbols to exclude
8931 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8932 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8933 # as well as any symbol that contains 'd'.
8934 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8936 # platforms (ab)use it in PIC code, but their linkers get confused if
8937 # the symbol is explicitly referenced. Since portable code cannot
8938 # rely on this symbol name, it's probably fine to never include it in
8939 # preloaded symbol tables.
8940 # Exclude shared library initialization/finalization symbols.
8941 extract_expsyms_cmds=
8942
8943 case $host_os in
8944 cygwin* | mingw* | pw32* | cegcc*)
8945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8946 # When not using gcc, we currently assume that we are using
8947 # Microsoft Visual C++.
8948 if test yes != "$GCC"; then
8949 with_gnu_ld=no
8950 fi
8951 ;;
8952 interix*)
8953 # we just hope/assume this is gcc and not c89 (= MSVC++)
8954 with_gnu_ld=yes
8955 ;;
8956 openbsd* | bitrig*)
8957 with_gnu_ld=no
8958 ;;
8959 linux* | k*bsd*-gnu | gnu*)
8960 link_all_deplibs=no
8961 ;;
8962 esac
8963
8964 ld_shlibs=yes
8965
8966 # On some targets, GNU ld is compatible enough with the native linker
8967 # that we're better off using the native interface for both.
8968 lt_use_gnu_ld_interface=no
8969 if test yes = "$with_gnu_ld"; then
8970 case $host_os in
8971 aix*)
8972 # The AIX port of GNU ld has always aspired to compatibility
8973 # with the native linker. However, as the warning in the GNU ld
8974 # block says, versions before 2.19.5* couldn't really create working
8975 # shared libraries, regardless of the interface used.
8976 case `$LD -v 2>&1` in
8977 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8978 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8979 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8980 *)
8981 lt_use_gnu_ld_interface=yes
8982 ;;
8983 esac
8984 ;;
8985 *)
8986 lt_use_gnu_ld_interface=yes
8987 ;;
8988 esac
8989 fi
8990
8991 if test yes = "$lt_use_gnu_ld_interface"; then
8992 # If archive_cmds runs LD, not CC, wlarc should be empty
8993 wlarc='$wl'
8994
8995 # Set some defaults for GNU ld with shared library support. These
8996 # are reset later if shared libraries are not supported. Putting them
8997 # here allows them to be overridden if necessary.
8998 runpath_var=LD_RUN_PATH
8999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9000 export_dynamic_flag_spec='$wl--export-dynamic'
9001 # ancient GNU ld didn't support --whole-archive et. al.
9002 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9003 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9004 else
9005 whole_archive_flag_spec=
9006 fi
9007 supports_anon_versioning=no
9008 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9009 *GNU\ gold*) supports_anon_versioning=yes ;;
9010 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9011 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9012 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9013 *\ 2.11.*) ;; # other 2.11 versions
9014 *) supports_anon_versioning=yes ;;
9015 esac
9016
9017 # See if GNU ld supports shared libraries.
9018 case $host_os in
9019 aix[3-9]*)
9020 # On AIX/PPC, the GNU linker is very broken
9021 if test ia64 != "$host_cpu"; then
9022 ld_shlibs=no
9023 cat <<_LT_EOF 1>&2
9024
9025 *** Warning: the GNU linker, at least up to release 2.19, is reported
9026 *** to be unable to reliably create shared libraries on AIX.
9027 *** Therefore, libtool is disabling shared libraries support. If you
9028 *** really care for shared libraries, you may want to install binutils
9029 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9030 *** You will then need to restart the configuration process.
9031
9032 _LT_EOF
9033 fi
9034 ;;
9035
9036 amigaos*)
9037 case $host_cpu in
9038 powerpc)
9039 # see comment about AmigaOS4 .so support
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9041 archive_expsym_cmds=''
9042 ;;
9043 m68k)
9044 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)'
9045 hardcode_libdir_flag_spec='-L$libdir'
9046 hardcode_minus_L=yes
9047 ;;
9048 esac
9049 ;;
9050
9051 beos*)
9052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9053 allow_undefined_flag=unsupported
9054 # Joseph Beckenbach <[email protected]> says some releases of gcc
9055 # support --undefined. This deserves some investigation. FIXME
9056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9057 else
9058 ld_shlibs=no
9059 fi
9060 ;;
9061
9062 cygwin* | mingw* | pw32* | cegcc*)
9063 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9064 # as there is no search path for DLLs.
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 export_dynamic_flag_spec='$wl--export-all-symbols'
9067 allow_undefined_flag=unsupported
9068 always_export_symbols=no
9069 enable_shared_with_static_runtimes=yes
9070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9071 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9072
9073 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9075 # If the export-symbols file already is a .def file, use it as
9076 # is; otherwise, prepend EXPORTS...
9077 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9078 cp $export_symbols $output_objdir/$soname.def;
9079 else
9080 echo EXPORTS > $output_objdir/$soname.def;
9081 cat $export_symbols >> $output_objdir/$soname.def;
9082 fi~
9083 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9084 else
9085 ld_shlibs=no
9086 fi
9087 ;;
9088
9089 haiku*)
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9091 link_all_deplibs=yes
9092 ;;
9093
9094 os2*)
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_minus_L=yes
9097 allow_undefined_flag=unsupported
9098 shrext_cmds=.dll
9099 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9100 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9101 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9102 $ECHO EXPORTS >> $output_objdir/$libname.def~
9103 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9104 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9105 emximp -o $lib $output_objdir/$libname.def'
9106 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9107 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9108 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9109 $ECHO EXPORTS >> $output_objdir/$libname.def~
9110 prefix_cmds="$SED"~
9111 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9112 prefix_cmds="$prefix_cmds -e 1d";
9113 fi~
9114 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9115 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9117 emximp -o $lib $output_objdir/$libname.def'
9118 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9119 enable_shared_with_static_runtimes=yes
9120 ;;
9121
9122 interix[3-9]*)
9123 hardcode_direct=no
9124 hardcode_shlibpath_var=no
9125 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9126 export_dynamic_flag_spec='$wl-E'
9127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9128 # Instead, shared libraries are loaded at an image base (0x10000000 by
9129 # default) and relocated if they conflict, which is a slow very memory
9130 # consuming and fragmenting process. To avoid this, we pick a random,
9131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9132 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9134 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'
9135 ;;
9136
9137 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9138 tmp_diet=no
9139 if test linux-dietlibc = "$host_os"; then
9140 case $cc_basename in
9141 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9142 esac
9143 fi
9144 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9145 && test no = "$tmp_diet"
9146 then
9147 tmp_addflag=' $pic_flag'
9148 tmp_sharedflag='-shared'
9149 case $cc_basename,$host_cpu in
9150 pgcc*) # Portland Group C compiler
9151 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'
9152 tmp_addflag=' $pic_flag'
9153 ;;
9154 pgf77* | pgf90* | pgf95* | pgfortran*)
9155 # Portland Group f77 and f90 compilers
9156 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'
9157 tmp_addflag=' $pic_flag -Mnomain' ;;
9158 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9159 tmp_addflag=' -i_dynamic' ;;
9160 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9161 tmp_addflag=' -i_dynamic -nofor_main' ;;
9162 ifc* | ifort*) # Intel Fortran compiler
9163 tmp_addflag=' -nofor_main' ;;
9164 lf95*) # Lahey Fortran 8.1
9165 whole_archive_flag_spec=
9166 tmp_sharedflag='--shared' ;;
9167 nagfor*) # NAGFOR 5.3
9168 tmp_sharedflag='-Wl,-shared' ;;
9169 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9170 tmp_sharedflag='-qmkshrobj'
9171 tmp_addflag= ;;
9172 nvcc*) # Cuda Compiler Driver 2.2
9173 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'
9174 compiler_needs_object=yes
9175 ;;
9176 esac
9177 case `$CC -V 2>&1 | sed 5q` in
9178 *Sun\ C*) # Sun C 5.9
9179 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'
9180 compiler_needs_object=yes
9181 tmp_sharedflag='-G' ;;
9182 *Sun\ F*) # Sun Fortran 8.3
9183 tmp_sharedflag='-G' ;;
9184 esac
9185 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9186
9187 if test yes = "$supports_anon_versioning"; then
9188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9190 echo "local: *; };" >> $output_objdir/$libname.ver~
9191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9192 fi
9193
9194 case $cc_basename in
9195 tcc*)
9196 export_dynamic_flag_spec='-rdynamic'
9197 ;;
9198 xlf* | bgf* | bgxlf* | mpixlf*)
9199 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9200 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9201 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9202 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9203 if test yes = "$supports_anon_versioning"; then
9204 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9206 echo "local: *; };" >> $output_objdir/$libname.ver~
9207 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9208 fi
9209 ;;
9210 esac
9211 else
9212 ld_shlibs=no
9213 fi
9214 ;;
9215
9216 netbsd* | netbsdelf*-gnu)
9217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9218 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9219 wlarc=
9220 else
9221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9222 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9223 fi
9224 ;;
9225
9226 solaris*)
9227 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9228 ld_shlibs=no
9229 cat <<_LT_EOF 1>&2
9230
9231 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9232 *** create shared libraries on Solaris systems. Therefore, libtool
9233 *** is disabling shared libraries support. We urge you to upgrade GNU
9234 *** binutils to release 2.9.1 or newer. Another option is to modify
9235 *** your PATH or compiler configuration so that the native linker is
9236 *** used, and then restart.
9237
9238 _LT_EOF
9239 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9240 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9241 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9242 else
9243 ld_shlibs=no
9244 fi
9245 ;;
9246
9247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9248 case `$LD -v 2>&1` in
9249 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9250 ld_shlibs=no
9251 cat <<_LT_EOF 1>&2
9252
9253 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9254 *** reliably create shared libraries on SCO systems. Therefore, libtool
9255 *** is disabling shared libraries support. We urge you to upgrade GNU
9256 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9257 *** your PATH or compiler configuration so that the native linker is
9258 *** used, and then restart.
9259
9260 _LT_EOF
9261 ;;
9262 *)
9263 # For security reasons, it is highly recommended that you always
9264 # use absolute paths for naming shared libraries, and exclude the
9265 # DT_RUNPATH tag from executables and libraries. But doing so
9266 # requires that you compile everything twice, which is a pain.
9267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9268 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9271 else
9272 ld_shlibs=no
9273 fi
9274 ;;
9275 esac
9276 ;;
9277
9278 sunos4*)
9279 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9280 wlarc=
9281 hardcode_direct=yes
9282 hardcode_shlibpath_var=no
9283 ;;
9284
9285 *)
9286 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9288 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9289 else
9290 ld_shlibs=no
9291 fi
9292 ;;
9293 esac
9294
9295 if test no = "$ld_shlibs"; then
9296 runpath_var=
9297 hardcode_libdir_flag_spec=
9298 export_dynamic_flag_spec=
9299 whole_archive_flag_spec=
9300 fi
9301 else
9302 # PORTME fill in a description of your system's linker (not GNU ld)
9303 case $host_os in
9304 aix3*)
9305 allow_undefined_flag=unsupported
9306 always_export_symbols=yes
9307 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'
9308 # Note: this linker hardcodes the directories in LIBPATH if there
9309 # are no directories specified by -L.
9310 hardcode_minus_L=yes
9311 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9312 # Neither direct hardcoding nor static linking is supported with a
9313 # broken collect2.
9314 hardcode_direct=unsupported
9315 fi
9316 ;;
9317
9318 aix[4-9]*)
9319 if test ia64 = "$host_cpu"; then
9320 # On IA64, the linker does run time linking by default, so we don't
9321 # have to do anything special.
9322 aix_use_runtimelinking=no
9323 exp_sym_flag='-Bexport'
9324 no_entry_flag=
9325 else
9326 # If we're using GNU nm, then we don't want the "-C" option.
9327 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9328 # Without the "-l" option, or with the "-B" option, AIX nm treats
9329 # weak defined symbols like other global defined symbols, whereas
9330 # GNU nm marks them as "W".
9331 # While the 'weak' keyword is ignored in the Export File, we need
9332 # it in the Import File for the 'aix-soname' feature, so we have
9333 # to replace the "-B" option with "-P" for AIX nm.
9334 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9335 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9336 else
9337 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9338 fi
9339 aix_use_runtimelinking=no
9340
9341 # Test if we are trying to use run time linking or normal
9342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9343 # have runtime linking enabled, and use it for executables.
9344 # For shared libraries, we enable/disable runtime linking
9345 # depending on the kind of the shared library created -
9346 # when "with_aix_soname,aix_use_runtimelinking" is:
9347 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9348 # "aix,yes" lib.so shared, rtl:yes, for executables
9349 # lib.a static archive
9350 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9351 # lib.a(lib.so.V) shared, rtl:no, for executables
9352 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9353 # lib.a(lib.so.V) shared, rtl:no
9354 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9355 # lib.a static archive
9356 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9357 for ld_flag in $LDFLAGS; do
9358 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9359 aix_use_runtimelinking=yes
9360 break
9361 fi
9362 done
9363 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9364 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9365 # so we don't have lib.a shared libs to link our executables.
9366 # We have to force runtime linking in this case.
9367 aix_use_runtimelinking=yes
9368 LDFLAGS="$LDFLAGS -Wl,-brtl"
9369 fi
9370 ;;
9371 esac
9372
9373 exp_sym_flag='-bexport'
9374 no_entry_flag='-bnoentry'
9375 fi
9376
9377 # When large executables or shared objects are built, AIX ld can
9378 # have problems creating the table of contents. If linking a library
9379 # or program results in "error TOC overflow" add -mminimal-toc to
9380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9382
9383 archive_cmds=''
9384 hardcode_direct=yes
9385 hardcode_direct_absolute=yes
9386 hardcode_libdir_separator=':'
9387 link_all_deplibs=yes
9388 file_list_spec='$wl-f,'
9389 case $with_aix_soname,$aix_use_runtimelinking in
9390 aix,*) ;; # traditional, no import file
9391 svr4,* | *,yes) # use import file
9392 # The Import File defines what to hardcode.
9393 hardcode_direct=no
9394 hardcode_direct_absolute=no
9395 ;;
9396 esac
9397
9398 if test yes = "$GCC"; then
9399 case $host_os in aix4.[012]|aix4.[012].*)
9400 # We only want to do this on AIX 4.2 and lower, the check
9401 # below for broken collect2 doesn't work under 4.3+
9402 collect2name=`$CC -print-prog-name=collect2`
9403 if test -f "$collect2name" &&
9404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9405 then
9406 # We have reworked collect2
9407 :
9408 else
9409 # We have old collect2
9410 hardcode_direct=unsupported
9411 # It fails to find uninstalled libraries when the uninstalled
9412 # path is not listed in the libpath. Setting hardcode_minus_L
9413 # to unsupported forces relinking
9414 hardcode_minus_L=yes
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_libdir_separator=
9417 fi
9418 ;;
9419 esac
9420 shared_flag='-shared'
9421 if test yes = "$aix_use_runtimelinking"; then
9422 shared_flag="$shared_flag "'$wl-G'
9423 fi
9424 # Need to ensure runtime linking is disabled for the traditional
9425 # shared library, or the linker may eventually find shared libraries
9426 # /with/ Import File - we do not want to mix them.
9427 shared_flag_aix='-shared'
9428 shared_flag_svr4='-shared $wl-G'
9429 else
9430 # not using gcc
9431 if test ia64 = "$host_cpu"; then
9432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9433 # chokes on -Wl,-G. The following line is correct:
9434 shared_flag='-G'
9435 else
9436 if test yes = "$aix_use_runtimelinking"; then
9437 shared_flag='$wl-G'
9438 else
9439 shared_flag='$wl-bM:SRE'
9440 fi
9441 shared_flag_aix='$wl-bM:SRE'
9442 shared_flag_svr4='$wl-G'
9443 fi
9444 fi
9445
9446 export_dynamic_flag_spec='$wl-bexpall'
9447 # It seems that -bexpall does not export symbols beginning with
9448 # underscore (_), so it is better to generate a list of symbols to export.
9449 always_export_symbols=yes
9450 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9451 # Warning - without using the other runtime loading flags (-brtl),
9452 # -berok will link without error, but may produce a broken library.
9453 allow_undefined_flag='-berok'
9454 # Determine the default libpath from the value encoded in an
9455 # empty executable.
9456 if test set = "${lt_cv_aix_libpath+set}"; then
9457 aix_libpath=$lt_cv_aix_libpath
9458 else
9459 if ${lt_cv_aix_libpath_+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464
9465 int
9466 main ()
9467 {
9468
9469 ;
9470 return 0;
9471 }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474
9475 lt_aix_libpath_sed='
9476 /Import File Strings/,/^$/ {
9477 /^0/ {
9478 s/^0 *\([^ ]*\) *$/\1/
9479 p
9480 }
9481 }'
9482 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9483 # Check for a 64-bit object if we didn't find anything.
9484 if test -z "$lt_cv_aix_libpath_"; then
9485 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9486 fi
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 if test -z "$lt_cv_aix_libpath_"; then
9491 lt_cv_aix_libpath_=/usr/lib:/lib
9492 fi
9493
9494 fi
9495
9496 aix_libpath=$lt_cv_aix_libpath_
9497 fi
9498
9499 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9500 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9501 else
9502 if test ia64 = "$host_cpu"; then
9503 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9504 allow_undefined_flag="-z nodefs"
9505 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"
9506 else
9507 # Determine the default libpath from the value encoded in an
9508 # empty executable.
9509 if test set = "${lt_cv_aix_libpath+set}"; then
9510 aix_libpath=$lt_cv_aix_libpath
9511 else
9512 if ${lt_cv_aix_libpath_+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517
9518 int
9519 main ()
9520 {
9521
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 if ac_fn_c_try_link "$LINENO"; then :
9527
9528 lt_aix_libpath_sed='
9529 /Import File Strings/,/^$/ {
9530 /^0/ {
9531 s/^0 *\([^ ]*\) *$/\1/
9532 p
9533 }
9534 }'
9535 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536 # Check for a 64-bit object if we didn't find anything.
9537 if test -z "$lt_cv_aix_libpath_"; then
9538 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9539 fi
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 if test -z "$lt_cv_aix_libpath_"; then
9544 lt_cv_aix_libpath_=/usr/lib:/lib
9545 fi
9546
9547 fi
9548
9549 aix_libpath=$lt_cv_aix_libpath_
9550 fi
9551
9552 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9553 # Warning - without using the other run time loading flags,
9554 # -berok will link without error, but may produce a broken library.
9555 no_undefined_flag=' $wl-bernotok'
9556 allow_undefined_flag=' $wl-berok'
9557 if test yes = "$with_gnu_ld"; then
9558 # We only use this code for GNU lds that support --whole-archive.
9559 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9560 else
9561 # Exported symbols can be pulled into shared objects from archives
9562 whole_archive_flag_spec='$convenience'
9563 fi
9564 archive_cmds_need_lc=yes
9565 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9566 # -brtl affects multiple linker settings, -berok does not and is overridden later
9567 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9568 if test svr4 != "$with_aix_soname"; then
9569 # This is similar to how AIX traditionally builds its shared libraries.
9570 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9571 fi
9572 if test aix != "$with_aix_soname"; then
9573 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9574 else
9575 # used by -dlpreopen to get the symbols
9576 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9577 fi
9578 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9579 fi
9580 fi
9581 ;;
9582
9583 amigaos*)
9584 case $host_cpu in
9585 powerpc)
9586 # see comment about AmigaOS4 .so support
9587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9588 archive_expsym_cmds=''
9589 ;;
9590 m68k)
9591 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)'
9592 hardcode_libdir_flag_spec='-L$libdir'
9593 hardcode_minus_L=yes
9594 ;;
9595 esac
9596 ;;
9597
9598 bsdi[45]*)
9599 export_dynamic_flag_spec=-rdynamic
9600 ;;
9601
9602 cygwin* | mingw* | pw32* | cegcc*)
9603 # When not using gcc, we currently assume that we are using
9604 # Microsoft Visual C++.
9605 # hardcode_libdir_flag_spec is actually meaningless, as there is
9606 # no search path for DLLs.
9607 case $cc_basename in
9608 cl*)
9609 # Native MSVC
9610 hardcode_libdir_flag_spec=' '
9611 allow_undefined_flag=unsupported
9612 always_export_symbols=yes
9613 file_list_spec='@'
9614 # Tell ltmain to make .lib files, not .a files.
9615 libext=lib
9616 # Tell ltmain to make .dll files, not .so files.
9617 shrext_cmds=.dll
9618 # FIXME: Setting linknames here is a bad hack.
9619 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9620 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9621 cp "$export_symbols" "$output_objdir/$soname.def";
9622 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9623 else
9624 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9625 fi~
9626 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9627 linknames='
9628 # The linker will not automatically build a static lib if we build a DLL.
9629 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9630 enable_shared_with_static_runtimes=yes
9631 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9633 # Don't use ranlib
9634 old_postinstall_cmds='chmod 644 $oldlib'
9635 postlink_cmds='lt_outputfile="@OUTPUT@"~
9636 lt_tool_outputfile="@TOOL_OUTPUT@"~
9637 case $lt_outputfile in
9638 *.exe|*.EXE) ;;
9639 *)
9640 lt_outputfile=$lt_outputfile.exe
9641 lt_tool_outputfile=$lt_tool_outputfile.exe
9642 ;;
9643 esac~
9644 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9645 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9646 $RM "$lt_outputfile.manifest";
9647 fi'
9648 ;;
9649 *)
9650 # Assume MSVC wrapper
9651 hardcode_libdir_flag_spec=' '
9652 allow_undefined_flag=unsupported
9653 # Tell ltmain to make .lib files, not .a files.
9654 libext=lib
9655 # Tell ltmain to make .dll files, not .so files.
9656 shrext_cmds=.dll
9657 # FIXME: Setting linknames here is a bad hack.
9658 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9659 # The linker will automatically build a .lib file if we build a DLL.
9660 old_archive_from_new_cmds='true'
9661 # FIXME: Should let the user specify the lib program.
9662 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9663 enable_shared_with_static_runtimes=yes
9664 ;;
9665 esac
9666 ;;
9667
9668 darwin* | rhapsody*)
9669
9670
9671 archive_cmds_need_lc=no
9672 hardcode_direct=no
9673 hardcode_automatic=yes
9674 hardcode_shlibpath_var=unsupported
9675 if test yes = "$lt_cv_ld_force_load"; then
9676 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\"`'
9677
9678 else
9679 whole_archive_flag_spec=''
9680 fi
9681 link_all_deplibs=yes
9682 allow_undefined_flag=$_lt_dar_allow_undefined
9683 case $cc_basename in
9684 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9685 *) _lt_dar_can_shared=$GCC ;;
9686 esac
9687 if test yes = "$_lt_dar_can_shared"; then
9688 output_verbose_link_cmd=func_echo_all
9689 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9690 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9691 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9692 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"
9693
9694 else
9695 ld_shlibs=no
9696 fi
9697
9698 ;;
9699
9700 dgux*)
9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_libdir_flag_spec='-L$libdir'
9703 hardcode_shlibpath_var=no
9704 ;;
9705
9706 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9707 # support. Future versions do this automatically, but an explicit c++rt0.o
9708 # does not break anything, and helps significantly (at the cost of a little
9709 # extra space).
9710 freebsd2.2*)
9711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9712 hardcode_libdir_flag_spec='-R$libdir'
9713 hardcode_direct=yes
9714 hardcode_shlibpath_var=no
9715 ;;
9716
9717 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9718 freebsd2.*)
9719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_direct=yes
9721 hardcode_minus_L=yes
9722 hardcode_shlibpath_var=no
9723 ;;
9724
9725 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9726 freebsd* | dragonfly*)
9727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9728 hardcode_libdir_flag_spec='-R$libdir'
9729 hardcode_direct=yes
9730 hardcode_shlibpath_var=no
9731 ;;
9732
9733 hpux9*)
9734 if test yes = "$GCC"; then
9735 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9736 else
9737 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9738 fi
9739 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9740 hardcode_libdir_separator=:
9741 hardcode_direct=yes
9742
9743 # hardcode_minus_L: Not really in the search PATH,
9744 # but as the default location of the library.
9745 hardcode_minus_L=yes
9746 export_dynamic_flag_spec='$wl-E'
9747 ;;
9748
9749 hpux10*)
9750 if test yes,no = "$GCC,$with_gnu_ld"; then
9751 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9752 else
9753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9754 fi
9755 if test no = "$with_gnu_ld"; then
9756 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9757 hardcode_libdir_separator=:
9758 hardcode_direct=yes
9759 hardcode_direct_absolute=yes
9760 export_dynamic_flag_spec='$wl-E'
9761 # hardcode_minus_L: Not really in the search PATH,
9762 # but as the default location of the library.
9763 hardcode_minus_L=yes
9764 fi
9765 ;;
9766
9767 hpux11*)
9768 if test yes,no = "$GCC,$with_gnu_ld"; then
9769 case $host_cpu in
9770 hppa*64*)
9771 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 ;;
9773 ia64*)
9774 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9775 ;;
9776 *)
9777 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9778 ;;
9779 esac
9780 else
9781 case $host_cpu in
9782 hppa*64*)
9783 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 ;;
9785 ia64*)
9786 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9787 ;;
9788 *)
9789
9790 # Older versions of the 11.00 compiler do not understand -b yet
9791 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9793 $as_echo_n "checking if $CC understands -b... " >&6; }
9794 if ${lt_cv_prog_compiler__b+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 lt_cv_prog_compiler__b=no
9798 save_LDFLAGS=$LDFLAGS
9799 LDFLAGS="$LDFLAGS -b"
9800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9802 # The linker can only warn and ignore the option if not recognized
9803 # So say no if there are warnings
9804 if test -s conftest.err; then
9805 # Append any errors to the config.log.
9806 cat conftest.err 1>&5
9807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9809 if diff conftest.exp conftest.er2 >/dev/null; then
9810 lt_cv_prog_compiler__b=yes
9811 fi
9812 else
9813 lt_cv_prog_compiler__b=yes
9814 fi
9815 fi
9816 $RM -r conftest*
9817 LDFLAGS=$save_LDFLAGS
9818
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9821 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9822
9823 if test yes = "$lt_cv_prog_compiler__b"; then
9824 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9825 else
9826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827 fi
9828
9829 ;;
9830 esac
9831 fi
9832 if test no = "$with_gnu_ld"; then
9833 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9834 hardcode_libdir_separator=:
9835
9836 case $host_cpu in
9837 hppa*64*|ia64*)
9838 hardcode_direct=no
9839 hardcode_shlibpath_var=no
9840 ;;
9841 *)
9842 hardcode_direct=yes
9843 hardcode_direct_absolute=yes
9844 export_dynamic_flag_spec='$wl-E'
9845
9846 # hardcode_minus_L: Not really in the search PATH,
9847 # but as the default location of the library.
9848 hardcode_minus_L=yes
9849 ;;
9850 esac
9851 fi
9852 ;;
9853
9854 irix5* | irix6* | nonstopux*)
9855 if test yes = "$GCC"; then
9856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9857 # Try to use the -exported_symbol ld option, if it does not
9858 # work, assume that -exports_file does not work either and
9859 # implicitly export all symbols.
9860 # This should be the same for all languages, so no per-tag cache variable.
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9862 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9863 if ${lt_cv_irix_exported_symbol+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 save_LDFLAGS=$LDFLAGS
9867 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 int foo (void) { return 0; }
9871 _ACEOF
9872 if ac_fn_c_try_link "$LINENO"; then :
9873 lt_cv_irix_exported_symbol=yes
9874 else
9875 lt_cv_irix_exported_symbol=no
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 LDFLAGS=$save_LDFLAGS
9880 fi
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9882 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9883 if test yes = "$lt_cv_irix_exported_symbol"; then
9884 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9885 fi
9886 link_all_deplibs=no
9887 else
9888 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'
9889 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'
9890 fi
9891 archive_cmds_need_lc='no'
9892 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9893 hardcode_libdir_separator=:
9894 inherit_rpath=yes
9895 link_all_deplibs=yes
9896 ;;
9897
9898 linux*)
9899 case $cc_basename in
9900 tcc*)
9901 # Fabrice Bellard et al's Tiny C Compiler
9902 ld_shlibs=yes
9903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9904 ;;
9905 esac
9906 ;;
9907
9908 netbsd* | netbsdelf*-gnu)
9909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9911 else
9912 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9913 fi
9914 hardcode_libdir_flag_spec='-R$libdir'
9915 hardcode_direct=yes
9916 hardcode_shlibpath_var=no
9917 ;;
9918
9919 newsos6)
9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9921 hardcode_direct=yes
9922 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923 hardcode_libdir_separator=:
9924 hardcode_shlibpath_var=no
9925 ;;
9926
9927 *nto* | *qnx*)
9928 ;;
9929
9930 openbsd* | bitrig*)
9931 if test -f /usr/libexec/ld.so; then
9932 hardcode_direct=yes
9933 hardcode_shlibpath_var=no
9934 hardcode_direct_absolute=yes
9935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9938 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9939 export_dynamic_flag_spec='$wl-E'
9940 else
9941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9942 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9943 fi
9944 else
9945 ld_shlibs=no
9946 fi
9947 ;;
9948
9949 os2*)
9950 hardcode_libdir_flag_spec='-L$libdir'
9951 hardcode_minus_L=yes
9952 allow_undefined_flag=unsupported
9953 shrext_cmds=.dll
9954 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9955 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9956 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9957 $ECHO EXPORTS >> $output_objdir/$libname.def~
9958 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9959 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9960 emximp -o $lib $output_objdir/$libname.def'
9961 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9962 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9963 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9964 $ECHO EXPORTS >> $output_objdir/$libname.def~
9965 prefix_cmds="$SED"~
9966 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9967 prefix_cmds="$prefix_cmds -e 1d";
9968 fi~
9969 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9970 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9971 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9972 emximp -o $lib $output_objdir/$libname.def'
9973 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9974 enable_shared_with_static_runtimes=yes
9975 ;;
9976
9977 osf3*)
9978 if test yes = "$GCC"; then
9979 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9980 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'
9981 else
9982 allow_undefined_flag=' -expect_unresolved \*'
9983 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'
9984 fi
9985 archive_cmds_need_lc='no'
9986 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9987 hardcode_libdir_separator=:
9988 ;;
9989
9990 osf4* | osf5*) # as osf3* with the addition of -msym flag
9991 if test yes = "$GCC"; then
9992 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9993 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9994 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9995 else
9996 allow_undefined_flag=' -expect_unresolved \*'
9997 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'
9998 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~
9999 $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'
10000
10001 # Both c and cxx compiler support -rpath directly
10002 hardcode_libdir_flag_spec='-rpath $libdir'
10003 fi
10004 archive_cmds_need_lc='no'
10005 hardcode_libdir_separator=:
10006 ;;
10007
10008 solaris*)
10009 no_undefined_flag=' -z defs'
10010 if test yes = "$GCC"; then
10011 wlarc='$wl'
10012 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10014 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10015 else
10016 case `$CC -V 2>&1` in
10017 *"Compilers 5.0"*)
10018 wlarc=''
10019 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10021 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10022 ;;
10023 *)
10024 wlarc='$wl'
10025 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10027 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10028 ;;
10029 esac
10030 fi
10031 hardcode_libdir_flag_spec='-R$libdir'
10032 hardcode_shlibpath_var=no
10033 case $host_os in
10034 solaris2.[0-5] | solaris2.[0-5].*) ;;
10035 *)
10036 # The compiler driver will combine and reorder linker options,
10037 # but understands '-z linker_flag'. GCC discards it without '$wl',
10038 # but is careful enough not to reorder.
10039 # Supported since Solaris 2.6 (maybe 2.5.1?)
10040 if test yes = "$GCC"; then
10041 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10042 else
10043 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10044 fi
10045 ;;
10046 esac
10047 link_all_deplibs=yes
10048 ;;
10049
10050 sunos4*)
10051 if test sequent = "$host_vendor"; then
10052 # Use $CC to link under sequent, because it throws in some extra .o
10053 # files that make .init and .fini sections work.
10054 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10055 else
10056 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10057 fi
10058 hardcode_libdir_flag_spec='-L$libdir'
10059 hardcode_direct=yes
10060 hardcode_minus_L=yes
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 sysv4)
10065 case $host_vendor in
10066 sni)
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_direct=yes # is this really true???
10069 ;;
10070 siemens)
10071 ## LD is ld it makes a PLAMLIB
10072 ## CC just makes a GrossModule.
10073 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10074 reload_cmds='$CC -r -o $output$reload_objs'
10075 hardcode_direct=no
10076 ;;
10077 motorola)
10078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10080 ;;
10081 esac
10082 runpath_var='LD_RUN_PATH'
10083 hardcode_shlibpath_var=no
10084 ;;
10085
10086 sysv4.3*)
10087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_shlibpath_var=no
10089 export_dynamic_flag_spec='-Bexport'
10090 ;;
10091
10092 sysv4*MP*)
10093 if test -d /usr/nec; then
10094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095 hardcode_shlibpath_var=no
10096 runpath_var=LD_RUN_PATH
10097 hardcode_runpath_var=yes
10098 ld_shlibs=yes
10099 fi
10100 ;;
10101
10102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10103 no_undefined_flag='$wl-z,text'
10104 archive_cmds_need_lc=no
10105 hardcode_shlibpath_var=no
10106 runpath_var='LD_RUN_PATH'
10107
10108 if test yes = "$GCC"; then
10109 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 else
10112 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 fi
10115 ;;
10116
10117 sysv5* | sco3.2v5* | sco5v6*)
10118 # Note: We CANNOT use -z defs as we might desire, because we do not
10119 # link with -lc, and that would cause any symbols used from libc to
10120 # always be unresolved, which means just about no library would
10121 # ever link correctly. If we're not using GNU ld we use -z text
10122 # though, which does catch some bad symbols but isn't as heavy-handed
10123 # as -z defs.
10124 no_undefined_flag='$wl-z,text'
10125 allow_undefined_flag='$wl-z,nodefs'
10126 archive_cmds_need_lc=no
10127 hardcode_shlibpath_var=no
10128 hardcode_libdir_flag_spec='$wl-R,$libdir'
10129 hardcode_libdir_separator=':'
10130 link_all_deplibs=yes
10131 export_dynamic_flag_spec='$wl-Bexport'
10132 runpath_var='LD_RUN_PATH'
10133
10134 if test yes = "$GCC"; then
10135 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 else
10138 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 fi
10141 ;;
10142
10143 uts4*)
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_libdir_flag_spec='-L$libdir'
10146 hardcode_shlibpath_var=no
10147 ;;
10148
10149 *)
10150 ld_shlibs=no
10151 ;;
10152 esac
10153
10154 if test sni = "$host_vendor"; then
10155 case $host in
10156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10157 export_dynamic_flag_spec='$wl-Blargedynsym'
10158 ;;
10159 esac
10160 fi
10161 fi
10162
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10164 $as_echo "$ld_shlibs" >&6; }
10165 test no = "$ld_shlibs" && can_build_shared=no
10166
10167 with_gnu_ld=$with_gnu_ld
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183 #
10184 # Do we need to explicitly link libc?
10185 #
10186 case "x$archive_cmds_need_lc" in
10187 x|xyes)
10188 # Assume -lc should be added
10189 archive_cmds_need_lc=yes
10190
10191 if test yes,yes = "$GCC,$enable_shared"; then
10192 case $archive_cmds in
10193 *'~'*)
10194 # FIXME: we may have to deal with multi-command sequences.
10195 ;;
10196 '$CC '*)
10197 # Test whether the compiler implicitly links with -lc since on some
10198 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10199 # to ld, don't add -lc before -lgcc.
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10201 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10202 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 $RM conftest*
10206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10207
10208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10209 (eval $ac_compile) 2>&5
10210 ac_status=$?
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; } 2>conftest.err; then
10213 soname=conftest
10214 lib=conftest
10215 libobjs=conftest.$ac_objext
10216 deplibs=
10217 wl=$lt_prog_compiler_wl
10218 pic_flag=$lt_prog_compiler_pic
10219 compiler_flags=-v
10220 linker_flags=-v
10221 verstring=
10222 output_objdir=.
10223 libname=conftest
10224 lt_save_allow_undefined_flag=$allow_undefined_flag
10225 allow_undefined_flag=
10226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10227 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10228 ac_status=$?
10229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10230 test $ac_status = 0; }
10231 then
10232 lt_cv_archive_cmds_need_lc=no
10233 else
10234 lt_cv_archive_cmds_need_lc=yes
10235 fi
10236 allow_undefined_flag=$lt_save_allow_undefined_flag
10237 else
10238 cat conftest.err 1>&5
10239 fi
10240 $RM conftest*
10241
10242 fi
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10244 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10245 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10246 ;;
10247 esac
10248 fi
10249 ;;
10250 esac
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10404 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10405
10406 if test yes = "$GCC"; then
10407 case $host_os in
10408 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10409 *) lt_awk_arg='/^libraries:/' ;;
10410 esac
10411 case $host_os in
10412 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10413 *) lt_sed_strip_eq='s|=/|/|g' ;;
10414 esac
10415 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10416 case $lt_search_path_spec in
10417 *\;*)
10418 # if the path contains ";" then we assume it to be the separator
10419 # otherwise default to the standard path separator (i.e. ":") - it is
10420 # assumed that no part of a normal pathname contains ";" but that should
10421 # okay in the real world where ";" in dirpaths is itself problematic.
10422 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10423 ;;
10424 *)
10425 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10426 ;;
10427 esac
10428 # Ok, now we have the path, separated by spaces, we can step through it
10429 # and add multilib dir if necessary...
10430 lt_tmp_lt_search_path_spec=
10431 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10432 # ...but if some path component already ends with the multilib dir we assume
10433 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10434 case "$lt_multi_os_dir; $lt_search_path_spec " in
10435 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10436 lt_multi_os_dir=
10437 ;;
10438 esac
10439 for lt_sys_path in $lt_search_path_spec; do
10440 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10441 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10442 elif test -n "$lt_multi_os_dir"; then
10443 test -d "$lt_sys_path" && \
10444 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10445 fi
10446 done
10447 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10448 BEGIN {RS = " "; FS = "/|\n";} {
10449 lt_foo = "";
10450 lt_count = 0;
10451 for (lt_i = NF; lt_i > 0; lt_i--) {
10452 if ($lt_i != "" && $lt_i != ".") {
10453 if ($lt_i == "..") {
10454 lt_count++;
10455 } else {
10456 if (lt_count == 0) {
10457 lt_foo = "/" $lt_i lt_foo;
10458 } else {
10459 lt_count--;
10460 }
10461 }
10462 }
10463 }
10464 if (lt_foo != "") { lt_freq[lt_foo]++; }
10465 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10466 }'`
10467 # AWK program above erroneously prepends '/' to C:/dos/paths
10468 # for these hosts.
10469 case $host_os in
10470 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10471 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10472 esac
10473 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10474 else
10475 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10476 fi
10477 library_names_spec=
10478 libname_spec='lib$name'
10479 soname_spec=
10480 shrext_cmds=.so
10481 postinstall_cmds=
10482 postuninstall_cmds=
10483 finish_cmds=
10484 finish_eval=
10485 shlibpath_var=
10486 shlibpath_overrides_runpath=unknown
10487 version_type=none
10488 dynamic_linker="$host_os ld.so"
10489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10490 need_lib_prefix=unknown
10491 hardcode_into_libs=no
10492
10493 # when you set need_version to no, make sure it does not cause -set_version
10494 # flags to be left without arguments
10495 need_version=unknown
10496
10497
10498
10499 case $host_os in
10500 aix3*)
10501 version_type=linux # correct to gnu/linux during the next big refactor
10502 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10503 shlibpath_var=LIBPATH
10504
10505 # AIX 3 has no versioning support, so we append a major version to the name.
10506 soname_spec='$libname$release$shared_ext$major'
10507 ;;
10508
10509 aix[4-9]*)
10510 version_type=linux # correct to gnu/linux during the next big refactor
10511 need_lib_prefix=no
10512 need_version=no
10513 hardcode_into_libs=yes
10514 if test ia64 = "$host_cpu"; then
10515 # AIX 5 supports IA64
10516 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 else
10519 # With GCC up to 2.95.x, collect2 would create an import file
10520 # for dependence libraries. The import file would start with
10521 # the line '#! .'. This would cause the generated library to
10522 # depend on '.', always an invalid library. This was fixed in
10523 # development snapshots of GCC prior to 3.0.
10524 case $host_os in
10525 aix4 | aix4.[01] | aix4.[01].*)
10526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10527 echo ' yes '
10528 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10529 :
10530 else
10531 can_build_shared=no
10532 fi
10533 ;;
10534 esac
10535 # Using Import Files as archive members, it is possible to support
10536 # filename-based versioning of shared library archives on AIX. While
10537 # this would work for both with and without runtime linking, it will
10538 # prevent static linking of such archives. So we do filename-based
10539 # shared library versioning with .so extension only, which is used
10540 # when both runtime linking and shared linking is enabled.
10541 # Unfortunately, runtime linking may impact performance, so we do
10542 # not want this to be the default eventually. Also, we use the
10543 # versioned .so libs for executables only if there is the -brtl
10544 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10545 # To allow for filename-based versioning support, we need to create
10546 # libNAME.so.V as an archive file, containing:
10547 # *) an Import File, referring to the versioned filename of the
10548 # archive as well as the shared archive member, telling the
10549 # bitwidth (32 or 64) of that shared object, and providing the
10550 # list of exported symbols of that shared object, eventually
10551 # decorated with the 'weak' keyword
10552 # *) the shared object with the F_LOADONLY flag set, to really avoid
10553 # it being seen by the linker.
10554 # At run time we better use the real file rather than another symlink,
10555 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10556
10557 case $with_aix_soname,$aix_use_runtimelinking in
10558 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10559 # soname into executable. Probably we can add versioning support to
10560 # collect2, so additional links can be useful in future.
10561 aix,yes) # traditional libtool
10562 dynamic_linker='AIX unversionable lib.so'
10563 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10564 # instead of lib<name>.a to let people know that these are not
10565 # typical AIX shared libraries.
10566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10567 ;;
10568 aix,no) # traditional AIX only
10569 dynamic_linker='AIX lib.a(lib.so.V)'
10570 # We preserve .a as extension for shared libraries through AIX4.2
10571 # and later when we are not doing run time linking.
10572 library_names_spec='$libname$release.a $libname.a'
10573 soname_spec='$libname$release$shared_ext$major'
10574 ;;
10575 svr4,*) # full svr4 only
10576 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10577 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10578 # We do not specify a path in Import Files, so LIBPATH fires.
10579 shlibpath_overrides_runpath=yes
10580 ;;
10581 *,yes) # both, prefer svr4
10582 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10583 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10584 # unpreferred sharedlib libNAME.a needs extra handling
10585 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10586 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10587 # We do not specify a path in Import Files, so LIBPATH fires.
10588 shlibpath_overrides_runpath=yes
10589 ;;
10590 *,no) # both, prefer aix
10591 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10592 library_names_spec='$libname$release.a $libname.a'
10593 soname_spec='$libname$release$shared_ext$major'
10594 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10595 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10596 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10597 ;;
10598 esac
10599 shlibpath_var=LIBPATH
10600 fi
10601 ;;
10602
10603 amigaos*)
10604 case $host_cpu in
10605 powerpc)
10606 # Since July 2007 AmigaOS4 officially supports .so libraries.
10607 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10609 ;;
10610 m68k)
10611 library_names_spec='$libname.ixlibrary $libname.a'
10612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10613 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10614 ;;
10615 esac
10616 ;;
10617
10618 beos*)
10619 library_names_spec='$libname$shared_ext'
10620 dynamic_linker="$host_os ld.so"
10621 shlibpath_var=LIBRARY_PATH
10622 ;;
10623
10624 bsdi[45]*)
10625 version_type=linux # correct to gnu/linux during the next big refactor
10626 need_version=no
10627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10628 soname_spec='$libname$release$shared_ext$major'
10629 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10632 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10633 # the default ld.so.conf also contains /usr/contrib/lib and
10634 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10635 # libtool to hard-code these into programs
10636 ;;
10637
10638 cygwin* | mingw* | pw32* | cegcc*)
10639 version_type=windows
10640 shrext_cmds=.dll
10641 need_version=no
10642 need_lib_prefix=no
10643
10644 case $GCC,$cc_basename in
10645 yes,*)
10646 # gcc
10647 library_names_spec='$libname.dll.a'
10648 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10649 postinstall_cmds='base_file=`basename \$file`~
10650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10651 dldir=$destdir/`dirname \$dlpath`~
10652 test -d \$dldir || mkdir -p \$dldir~
10653 $install_prog $dir/$dlname \$dldir/$dlname~
10654 chmod a+x \$dldir/$dlname~
10655 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10656 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10657 fi'
10658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10659 dlpath=$dir/\$dldll~
10660 $RM \$dlpath'
10661 shlibpath_overrides_runpath=yes
10662
10663 case $host_os in
10664 cygwin*)
10665 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10666 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10667
10668 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10669 ;;
10670 mingw* | cegcc*)
10671 # MinGW DLLs use traditional 'lib' prefix
10672 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10673 ;;
10674 pw32*)
10675 # pw32 DLLs use 'pw' prefix rather than 'lib'
10676 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10677 ;;
10678 esac
10679 dynamic_linker='Win32 ld.exe'
10680 ;;
10681
10682 *,cl*)
10683 # Native MSVC
10684 libname_spec='$name'
10685 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10686 library_names_spec='$libname.dll.lib'
10687
10688 case $build_os in
10689 mingw*)
10690 sys_lib_search_path_spec=
10691 lt_save_ifs=$IFS
10692 IFS=';'
10693 for lt_path in $LIB
10694 do
10695 IFS=$lt_save_ifs
10696 # Let DOS variable expansion print the short 8.3 style file name.
10697 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10698 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10699 done
10700 IFS=$lt_save_ifs
10701 # Convert to MSYS style.
10702 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10703 ;;
10704 cygwin*)
10705 # Convert to unix form, then to dos form, then back to unix form
10706 # but this time dos style (no spaces!) so that the unix form looks
10707 # like /cygdrive/c/PROGRA~1:/cygdr...
10708 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10709 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10710 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10711 ;;
10712 *)
10713 sys_lib_search_path_spec=$LIB
10714 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10715 # It is most probably a Windows format PATH.
10716 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10717 else
10718 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10719 fi
10720 # FIXME: find the short name or the path components, as spaces are
10721 # common. (e.g. "Program Files" -> "PROGRA~1")
10722 ;;
10723 esac
10724
10725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10726 postinstall_cmds='base_file=`basename \$file`~
10727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10728 dldir=$destdir/`dirname \$dlpath`~
10729 test -d \$dldir || mkdir -p \$dldir~
10730 $install_prog $dir/$dlname \$dldir/$dlname'
10731 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10732 dlpath=$dir/\$dldll~
10733 $RM \$dlpath'
10734 shlibpath_overrides_runpath=yes
10735 dynamic_linker='Win32 link.exe'
10736 ;;
10737
10738 *)
10739 # Assume MSVC wrapper
10740 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10741 dynamic_linker='Win32 ld.exe'
10742 ;;
10743 esac
10744 # FIXME: first we should search . and the directory the executable is in
10745 shlibpath_var=PATH
10746 ;;
10747
10748 darwin* | rhapsody*)
10749 dynamic_linker="$host_os dyld"
10750 version_type=darwin
10751 need_lib_prefix=no
10752 need_version=no
10753 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10754 soname_spec='$libname$release$major$shared_ext'
10755 shlibpath_overrides_runpath=yes
10756 shlibpath_var=DYLD_LIBRARY_PATH
10757 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10758
10759 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10761 ;;
10762
10763 dgux*)
10764 version_type=linux # correct to gnu/linux during the next big refactor
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10768 soname_spec='$libname$release$shared_ext$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 ;;
10771
10772 freebsd* | dragonfly*)
10773 # DragonFly does not have aout. When/if they implement a new
10774 # versioning mechanism, adjust this.
10775 if test -x /usr/bin/objformat; then
10776 objformat=`/usr/bin/objformat`
10777 else
10778 case $host_os in
10779 freebsd[23].*) objformat=aout ;;
10780 *) objformat=elf ;;
10781 esac
10782 fi
10783 version_type=freebsd-$objformat
10784 case $version_type in
10785 freebsd-elf*)
10786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10787 soname_spec='$libname$release$shared_ext$major'
10788 need_version=no
10789 need_lib_prefix=no
10790 ;;
10791 freebsd-*)
10792 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10793 need_version=yes
10794 ;;
10795 esac
10796 shlibpath_var=LD_LIBRARY_PATH
10797 case $host_os in
10798 freebsd2.*)
10799 shlibpath_overrides_runpath=yes
10800 ;;
10801 freebsd3.[01]* | freebsdelf3.[01]*)
10802 shlibpath_overrides_runpath=yes
10803 hardcode_into_libs=yes
10804 ;;
10805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10807 shlibpath_overrides_runpath=no
10808 hardcode_into_libs=yes
10809 ;;
10810 *) # from 4.6 on, and DragonFly
10811 shlibpath_overrides_runpath=yes
10812 hardcode_into_libs=yes
10813 ;;
10814 esac
10815 ;;
10816
10817 haiku*)
10818 version_type=linux # correct to gnu/linux during the next big refactor
10819 need_lib_prefix=no
10820 need_version=no
10821 dynamic_linker="$host_os runtime_loader"
10822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10823 soname_spec='$libname$release$shared_ext$major'
10824 shlibpath_var=LIBRARY_PATH
10825 shlibpath_overrides_runpath=no
10826 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10827 hardcode_into_libs=yes
10828 ;;
10829
10830 hpux9* | hpux10* | hpux11*)
10831 # Give a soname corresponding to the major version so that dld.sl refuses to
10832 # link against other versions.
10833 version_type=sunos
10834 need_lib_prefix=no
10835 need_version=no
10836 case $host_cpu in
10837 ia64*)
10838 shrext_cmds='.so'
10839 hardcode_into_libs=yes
10840 dynamic_linker="$host_os dld.so"
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10844 soname_spec='$libname$release$shared_ext$major'
10845 if test 32 = "$HPUX_IA64_MODE"; then
10846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10847 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10848 else
10849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10850 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10851 fi
10852 ;;
10853 hppa*64*)
10854 shrext_cmds='.sl'
10855 hardcode_into_libs=yes
10856 dynamic_linker="$host_os dld.sl"
10857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10860 soname_spec='$libname$release$shared_ext$major'
10861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10863 ;;
10864 *)
10865 shrext_cmds='.sl'
10866 dynamic_linker="$host_os dld.sl"
10867 shlibpath_var=SHLIB_PATH
10868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10870 soname_spec='$libname$release$shared_ext$major'
10871 ;;
10872 esac
10873 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10874 postinstall_cmds='chmod 555 $lib'
10875 # or fails outright, so override atomically:
10876 install_override_mode=555
10877 ;;
10878
10879 interix[3-9]*)
10880 version_type=linux # correct to gnu/linux during the next big refactor
10881 need_lib_prefix=no
10882 need_version=no
10883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10884 soname_spec='$libname$release$shared_ext$major'
10885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=no
10888 hardcode_into_libs=yes
10889 ;;
10890
10891 irix5* | irix6* | nonstopux*)
10892 case $host_os in
10893 nonstopux*) version_type=nonstopux ;;
10894 *)
10895 if test yes = "$lt_cv_prog_gnu_ld"; then
10896 version_type=linux # correct to gnu/linux during the next big refactor
10897 else
10898 version_type=irix
10899 fi ;;
10900 esac
10901 need_lib_prefix=no
10902 need_version=no
10903 soname_spec='$libname$release$shared_ext$major'
10904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10905 case $host_os in
10906 irix5* | nonstopux*)
10907 libsuff= shlibsuff=
10908 ;;
10909 *)
10910 case $LD in # libtool.m4 will add one of these switches to LD
10911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10912 libsuff= shlibsuff= libmagic=32-bit;;
10913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10914 libsuff=32 shlibsuff=N32 libmagic=N32;;
10915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10917 *) libsuff= shlibsuff= libmagic=never-match;;
10918 esac
10919 ;;
10920 esac
10921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10922 shlibpath_overrides_runpath=no
10923 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10924 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10925 hardcode_into_libs=yes
10926 ;;
10927
10928 # No shared lib support for Linux oldld, aout, or coff.
10929 linux*oldld* | linux*aout* | linux*coff*)
10930 dynamic_linker=no
10931 ;;
10932
10933 linux*android*)
10934 version_type=none # Android doesn't support versioned libraries.
10935 need_lib_prefix=no
10936 need_version=no
10937 library_names_spec='$libname$release$shared_ext'
10938 soname_spec='$libname$release$shared_ext'
10939 finish_cmds=
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes
10942
10943 # This implies no fast_install, which is unacceptable.
10944 # Some rework will be needed to allow for fast_install
10945 # before this can be enabled.
10946 hardcode_into_libs=yes
10947
10948 dynamic_linker='Android linker'
10949 # Don't embed -rpath directories since the linker doesn't support them.
10950 hardcode_libdir_flag_spec='-L$libdir'
10951 ;;
10952
10953 # This must be glibc/ELF.
10954 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10955 version_type=linux # correct to gnu/linux during the next big refactor
10956 need_lib_prefix=no
10957 need_version=no
10958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10959 soname_spec='$libname$release$shared_ext$major'
10960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=no
10963
10964 # Some binutils ld are patched to set DT_RUNPATH
10965 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 lt_cv_shlibpath_overrides_runpath=no
10969 save_LDFLAGS=$LDFLAGS
10970 save_libdir=$libdir
10971 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10972 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975
10976 int
10977 main ()
10978 {
10979
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10986 lt_cv_shlibpath_overrides_runpath=yes
10987 fi
10988 fi
10989 rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LDFLAGS=$save_LDFLAGS
10992 libdir=$save_libdir
10993
10994 fi
10995
10996 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10997
10998 # This implies no fast_install, which is unacceptable.
10999 # Some rework will be needed to allow for fast_install
11000 # before this can be enabled.
11001 hardcode_into_libs=yes
11002
11003 # Ideally, we could use ldconfig to report *all* directores which are
11004 # searched for libraries, however this is still not possible. Aside from not
11005 # being certain /sbin/ldconfig is available, command
11006 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11007 # even though it is searched at run-time. Try to do the best guess by
11008 # appending ld.so.conf contents (and includes) to the search path.
11009 if test -f /etc/ld.so.conf; then
11010 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' ' '`
11011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11012 fi
11013
11014 # We used to test for /lib/ld.so.1 and disable shared libraries on
11015 # powerpc, because MkLinux only supported shared libraries with the
11016 # GNU dynamic linker. Since this was broken with cross compilers,
11017 # most powerpc-linux boxes support dynamic linking these days and
11018 # people can always --disable-shared, the test was removed, and we
11019 # assume the GNU/Linux dynamic linker is in use.
11020 dynamic_linker='GNU/Linux ld.so'
11021 ;;
11022
11023 netbsdelf*-gnu)
11024 version_type=linux
11025 need_lib_prefix=no
11026 need_version=no
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=no
11031 hardcode_into_libs=yes
11032 dynamic_linker='NetBSD ld.elf_so'
11033 ;;
11034
11035 netbsd*)
11036 version_type=sunos
11037 need_lib_prefix=no
11038 need_version=no
11039 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11042 dynamic_linker='NetBSD (a.out) ld.so'
11043 else
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045 soname_spec='$libname$release$shared_ext$major'
11046 dynamic_linker='NetBSD ld.elf_so'
11047 fi
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050 hardcode_into_libs=yes
11051 ;;
11052
11053 newsos6)
11054 version_type=linux # correct to gnu/linux during the next big refactor
11055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 ;;
11059
11060 *nto* | *qnx*)
11061 version_type=qnx
11062 need_lib_prefix=no
11063 need_version=no
11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11065 soname_spec='$libname$release$shared_ext$major'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068 hardcode_into_libs=yes
11069 dynamic_linker='ldqnx.so'
11070 ;;
11071
11072 openbsd* | bitrig*)
11073 version_type=sunos
11074 sys_lib_dlsearch_path_spec=/usr/lib
11075 need_lib_prefix=no
11076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11077 need_version=no
11078 else
11079 need_version=yes
11080 fi
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=yes
11085 ;;
11086
11087 os2*)
11088 libname_spec='$name'
11089 version_type=windows
11090 shrext_cmds=.dll
11091 need_version=no
11092 need_lib_prefix=no
11093 # OS/2 can only load a DLL with a base name of 8 characters or less.
11094 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11095 v=$($ECHO $release$versuffix | tr -d .-);
11096 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11097 $ECHO $n$v`$shared_ext'
11098 library_names_spec='${libname}_dll.$libext'
11099 dynamic_linker='OS/2 ld.exe'
11100 shlibpath_var=BEGINLIBPATH
11101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11103 postinstall_cmds='base_file=`basename \$file`~
11104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11105 dldir=$destdir/`dirname \$dlpath`~
11106 test -d \$dldir || mkdir -p \$dldir~
11107 $install_prog $dir/$dlname \$dldir/$dlname~
11108 chmod a+x \$dldir/$dlname~
11109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11111 fi'
11112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11113 dlpath=$dir/\$dldll~
11114 $RM \$dlpath'
11115 ;;
11116
11117 osf3* | osf4* | osf5*)
11118 version_type=osf
11119 need_lib_prefix=no
11120 need_version=no
11121 soname_spec='$libname$release$shared_ext$major'
11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11126 ;;
11127
11128 rdos*)
11129 dynamic_linker=no
11130 ;;
11131
11132 solaris*)
11133 version_type=linux # correct to gnu/linux during the next big refactor
11134 need_lib_prefix=no
11135 need_version=no
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec='$libname$release$shared_ext$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 shlibpath_overrides_runpath=yes
11140 hardcode_into_libs=yes
11141 # ldd complains unless libraries are executable
11142 postinstall_cmds='chmod +x $lib'
11143 ;;
11144
11145 sunos4*)
11146 version_type=sunos
11147 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=yes
11151 if test yes = "$with_gnu_ld"; then
11152 need_lib_prefix=no
11153 fi
11154 need_version=yes
11155 ;;
11156
11157 sysv4 | sysv4.3*)
11158 version_type=linux # correct to gnu/linux during the next big refactor
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11160 soname_spec='$libname$release$shared_ext$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 case $host_vendor in
11163 sni)
11164 shlibpath_overrides_runpath=no
11165 need_lib_prefix=no
11166 runpath_var=LD_RUN_PATH
11167 ;;
11168 siemens)
11169 need_lib_prefix=no
11170 ;;
11171 motorola)
11172 need_lib_prefix=no
11173 need_version=no
11174 shlibpath_overrides_runpath=no
11175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11176 ;;
11177 esac
11178 ;;
11179
11180 sysv4*MP*)
11181 if test -d /usr/nec; then
11182 version_type=linux # correct to gnu/linux during the next big refactor
11183 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11184 soname_spec='$libname$shared_ext.$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 fi
11187 ;;
11188
11189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11190 version_type=sco
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11194 soname_spec='$libname$release$shared_ext$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 hardcode_into_libs=yes
11198 if test yes = "$with_gnu_ld"; then
11199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11200 else
11201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11202 case $host_os in
11203 sco3.2v5*)
11204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11205 ;;
11206 esac
11207 fi
11208 sys_lib_dlsearch_path_spec='/usr/lib'
11209 ;;
11210
11211 tpf*)
11212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11213 version_type=linux # correct to gnu/linux during the next big refactor
11214 need_lib_prefix=no
11215 need_version=no
11216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath=no
11219 hardcode_into_libs=yes
11220 ;;
11221
11222 uts4*)
11223 version_type=linux # correct to gnu/linux during the next big refactor
11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225 soname_spec='$libname$release$shared_ext$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 ;;
11228
11229 *)
11230 dynamic_linker=no
11231 ;;
11232 esac
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11234 $as_echo "$dynamic_linker" >&6; }
11235 test no = "$dynamic_linker" && can_build_shared=no
11236
11237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11238 if test yes = "$GCC"; then
11239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11240 fi
11241
11242 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11243 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11244 fi
11245
11246 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11247 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11248 fi
11249
11250 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11251 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11252
11253 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11254 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11255
11256 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11257 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11356 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11357 hardcode_action=
11358 if test -n "$hardcode_libdir_flag_spec" ||
11359 test -n "$runpath_var" ||
11360 test yes = "$hardcode_automatic"; then
11361
11362 # We can hardcode non-existent directories.
11363 if test no != "$hardcode_direct" &&
11364 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11365 # have to relink, otherwise we might link with an installed library
11366 # when we should be linking with a yet-to-be-installed one
11367 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11368 test no != "$hardcode_minus_L"; then
11369 # Linking always hardcodes the temporary library directory.
11370 hardcode_action=relink
11371 else
11372 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11373 hardcode_action=immediate
11374 fi
11375 else
11376 # We cannot hardcode anything, or else we can only hardcode existing
11377 # directories.
11378 hardcode_action=unsupported
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11381 $as_echo "$hardcode_action" >&6; }
11382
11383 if test relink = "$hardcode_action" ||
11384 test yes = "$inherit_rpath"; then
11385 # Fast installation is not supported
11386 enable_fast_install=no
11387 elif test yes = "$shlibpath_overrides_runpath" ||
11388 test no = "$enable_shared"; then
11389 # Fast installation is not necessary
11390 enable_fast_install=needless
11391 fi
11392
11393
11394
11395
11396
11397
11398 if test yes != "$enable_dlopen"; then
11399 enable_dlopen=unknown
11400 enable_dlopen_self=unknown
11401 enable_dlopen_self_static=unknown
11402 else
11403 lt_cv_dlopen=no
11404 lt_cv_dlopen_libs=
11405
11406 case $host_os in
11407 beos*)
11408 lt_cv_dlopen=load_add_on
11409 lt_cv_dlopen_libs=
11410 lt_cv_dlopen_self=yes
11411 ;;
11412
11413 mingw* | pw32* | cegcc*)
11414 lt_cv_dlopen=LoadLibrary
11415 lt_cv_dlopen_libs=
11416 ;;
11417
11418 cygwin*)
11419 lt_cv_dlopen=dlopen
11420 lt_cv_dlopen_libs=
11421 ;;
11422
11423 darwin*)
11424 # if libdl is installed we need to link against it
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11426 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11427 if ${ac_cv_lib_dl_dlopen+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 ac_check_lib_save_LIBS=$LIBS
11431 LIBS="-ldl $LIBS"
11432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h. */
11434
11435 /* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11438 #ifdef __cplusplus
11439 extern "C"
11440 #endif
11441 char dlopen ();
11442 int
11443 main ()
11444 {
11445 return dlopen ();
11446 ;
11447 return 0;
11448 }
11449 _ACEOF
11450 if ac_fn_c_try_link "$LINENO"; then :
11451 ac_cv_lib_dl_dlopen=yes
11452 else
11453 ac_cv_lib_dl_dlopen=no
11454 fi
11455 rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457 LIBS=$ac_check_lib_save_LIBS
11458 fi
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11460 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11461 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11462 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11463 else
11464
11465 lt_cv_dlopen=dyld
11466 lt_cv_dlopen_libs=
11467 lt_cv_dlopen_self=yes
11468
11469 fi
11470
11471 ;;
11472
11473 tpf*)
11474 # Don't try to run any link tests for TPF. We know it's impossible
11475 # because TPF is a cross-compiler, and we know how we open DSOs.
11476 lt_cv_dlopen=dlopen
11477 lt_cv_dlopen_libs=
11478 lt_cv_dlopen_self=no
11479 ;;
11480
11481 *)
11482 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11483 if test "x$ac_cv_func_shl_load" = xyes; then :
11484 lt_cv_dlopen=shl_load
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11487 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11488 if ${ac_cv_lib_dld_shl_load+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 ac_check_lib_save_LIBS=$LIBS
11492 LIBS="-ldld $LIBS"
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11499 #ifdef __cplusplus
11500 extern "C"
11501 #endif
11502 char shl_load ();
11503 int
11504 main ()
11505 {
11506 return shl_load ();
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 if ac_fn_c_try_link "$LINENO"; then :
11512 ac_cv_lib_dld_shl_load=yes
11513 else
11514 ac_cv_lib_dld_shl_load=no
11515 fi
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_lib_save_LIBS
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11521 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11522 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11523 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11524 else
11525 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11526 if test "x$ac_cv_func_dlopen" = xyes; then :
11527 lt_cv_dlopen=dlopen
11528 else
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11530 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11531 if ${ac_cv_lib_dl_dlopen+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 ac_check_lib_save_LIBS=$LIBS
11535 LIBS="-ldl $LIBS"
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11538
11539 /* Override any GCC internal prototype to avoid an error.
11540 Use char because int might match the return type of a GCC
11541 builtin and then its argument prototype would still apply. */
11542 #ifdef __cplusplus
11543 extern "C"
11544 #endif
11545 char dlopen ();
11546 int
11547 main ()
11548 {
11549 return dlopen ();
11550 ;
11551 return 0;
11552 }
11553 _ACEOF
11554 if ac_fn_c_try_link "$LINENO"; then :
11555 ac_cv_lib_dl_dlopen=yes
11556 else
11557 ac_cv_lib_dl_dlopen=no
11558 fi
11559 rm -f core conftest.err conftest.$ac_objext \
11560 conftest$ac_exeext conftest.$ac_ext
11561 LIBS=$ac_check_lib_save_LIBS
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11564 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11565 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11566 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11569 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11570 if ${ac_cv_lib_svld_dlopen+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-lsvld $LIBS"
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char dlopen ();
11585 int
11586 main ()
11587 {
11588 return dlopen ();
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_svld_dlopen=yes
11595 else
11596 ac_cv_lib_svld_dlopen=no
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11603 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11604 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11605 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11608 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11609 if ${ac_cv_lib_dld_dld_link+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-ldld $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char dld_link ();
11624 int
11625 main ()
11626 {
11627 return dld_link ();
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_dld_dld_link=yes
11634 else
11635 ac_cv_lib_dld_dld_link=no
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11642 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11643 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11644 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11645 fi
11646
11647
11648 fi
11649
11650
11651 fi
11652
11653
11654 fi
11655
11656
11657 fi
11658
11659
11660 fi
11661
11662 ;;
11663 esac
11664
11665 if test no = "$lt_cv_dlopen"; then
11666 enable_dlopen=no
11667 else
11668 enable_dlopen=yes
11669 fi
11670
11671 case $lt_cv_dlopen in
11672 dlopen)
11673 save_CPPFLAGS=$CPPFLAGS
11674 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11675
11676 save_LDFLAGS=$LDFLAGS
11677 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11678
11679 save_LIBS=$LIBS
11680 LIBS="$lt_cv_dlopen_libs $LIBS"
11681
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11683 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11684 if ${lt_cv_dlopen_self+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 if test yes = "$cross_compiling"; then :
11688 lt_cv_dlopen_self=cross
11689 else
11690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11691 lt_status=$lt_dlunknown
11692 cat > conftest.$ac_ext <<_LT_EOF
11693 #line $LINENO "configure"
11694 #include "confdefs.h"
11695
11696 #if HAVE_DLFCN_H
11697 #include <dlfcn.h>
11698 #endif
11699
11700 #include <stdio.h>
11701
11702 #ifdef RTLD_GLOBAL
11703 # define LT_DLGLOBAL RTLD_GLOBAL
11704 #else
11705 # ifdef DL_GLOBAL
11706 # define LT_DLGLOBAL DL_GLOBAL
11707 # else
11708 # define LT_DLGLOBAL 0
11709 # endif
11710 #endif
11711
11712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11713 find out it does not work in some platform. */
11714 #ifndef LT_DLLAZY_OR_NOW
11715 # ifdef RTLD_LAZY
11716 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11717 # else
11718 # ifdef DL_LAZY
11719 # define LT_DLLAZY_OR_NOW DL_LAZY
11720 # else
11721 # ifdef RTLD_NOW
11722 # define LT_DLLAZY_OR_NOW RTLD_NOW
11723 # else
11724 # ifdef DL_NOW
11725 # define LT_DLLAZY_OR_NOW DL_NOW
11726 # else
11727 # define LT_DLLAZY_OR_NOW 0
11728 # endif
11729 # endif
11730 # endif
11731 # endif
11732 #endif
11733
11734 /* When -fvisibility=hidden is used, assume the code has been annotated
11735 correspondingly for the symbols needed. */
11736 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11737 int fnord () __attribute__((visibility("default")));
11738 #endif
11739
11740 int fnord () { return 42; }
11741 int main ()
11742 {
11743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11744 int status = $lt_dlunknown;
11745
11746 if (self)
11747 {
11748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11749 else
11750 {
11751 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11752 else puts (dlerror ());
11753 }
11754 /* dlclose (self); */
11755 }
11756 else
11757 puts (dlerror ());
11758
11759 return status;
11760 }
11761 _LT_EOF
11762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11763 (eval $ac_link) 2>&5
11764 ac_status=$?
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11767 (./conftest; exit; ) >&5 2>/dev/null
11768 lt_status=$?
11769 case x$lt_status in
11770 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11771 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11772 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11773 esac
11774 else :
11775 # compilation failed
11776 lt_cv_dlopen_self=no
11777 fi
11778 fi
11779 rm -fr conftest*
11780
11781
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11784 $as_echo "$lt_cv_dlopen_self" >&6; }
11785
11786 if test yes = "$lt_cv_dlopen_self"; then
11787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11789 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11790 if ${lt_cv_dlopen_self_static+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 if test yes = "$cross_compiling"; then :
11794 lt_cv_dlopen_self_static=cross
11795 else
11796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11797 lt_status=$lt_dlunknown
11798 cat > conftest.$ac_ext <<_LT_EOF
11799 #line $LINENO "configure"
11800 #include "confdefs.h"
11801
11802 #if HAVE_DLFCN_H
11803 #include <dlfcn.h>
11804 #endif
11805
11806 #include <stdio.h>
11807
11808 #ifdef RTLD_GLOBAL
11809 # define LT_DLGLOBAL RTLD_GLOBAL
11810 #else
11811 # ifdef DL_GLOBAL
11812 # define LT_DLGLOBAL DL_GLOBAL
11813 # else
11814 # define LT_DLGLOBAL 0
11815 # endif
11816 #endif
11817
11818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11819 find out it does not work in some platform. */
11820 #ifndef LT_DLLAZY_OR_NOW
11821 # ifdef RTLD_LAZY
11822 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11823 # else
11824 # ifdef DL_LAZY
11825 # define LT_DLLAZY_OR_NOW DL_LAZY
11826 # else
11827 # ifdef RTLD_NOW
11828 # define LT_DLLAZY_OR_NOW RTLD_NOW
11829 # else
11830 # ifdef DL_NOW
11831 # define LT_DLLAZY_OR_NOW DL_NOW
11832 # else
11833 # define LT_DLLAZY_OR_NOW 0
11834 # endif
11835 # endif
11836 # endif
11837 # endif
11838 #endif
11839
11840 /* When -fvisibility=hidden is used, assume the code has been annotated
11841 correspondingly for the symbols needed. */
11842 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11843 int fnord () __attribute__((visibility("default")));
11844 #endif
11845
11846 int fnord () { return 42; }
11847 int main ()
11848 {
11849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11850 int status = $lt_dlunknown;
11851
11852 if (self)
11853 {
11854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11855 else
11856 {
11857 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11858 else puts (dlerror ());
11859 }
11860 /* dlclose (self); */
11861 }
11862 else
11863 puts (dlerror ());
11864
11865 return status;
11866 }
11867 _LT_EOF
11868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11869 (eval $ac_link) 2>&5
11870 ac_status=$?
11871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11872 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11873 (./conftest; exit; ) >&5 2>/dev/null
11874 lt_status=$?
11875 case x$lt_status in
11876 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11877 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11878 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11879 esac
11880 else :
11881 # compilation failed
11882 lt_cv_dlopen_self_static=no
11883 fi
11884 fi
11885 rm -fr conftest*
11886
11887
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11890 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11891 fi
11892
11893 CPPFLAGS=$save_CPPFLAGS
11894 LDFLAGS=$save_LDFLAGS
11895 LIBS=$save_LIBS
11896 ;;
11897 esac
11898
11899 case $lt_cv_dlopen_self in
11900 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11901 *) enable_dlopen_self=unknown ;;
11902 esac
11903
11904 case $lt_cv_dlopen_self_static in
11905 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11906 *) enable_dlopen_self_static=unknown ;;
11907 esac
11908 fi
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926 striplib=
11927 old_striplib=
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11929 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11930 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11931 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11932 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11935 else
11936 # FIXME - insert some real tests, host_os isn't really good enough
11937 case $host_os in
11938 darwin*)
11939 if test -n "$STRIP"; then
11940 striplib="$STRIP -x"
11941 old_striplib="$STRIP -S"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11944 else
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 $as_echo "no" >&6; }
11947 fi
11948 ;;
11949 *)
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11952 ;;
11953 esac
11954 fi
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967 # Report what library types will actually be built
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11969 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11971 $as_echo "$can_build_shared" >&6; }
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11974 $as_echo_n "checking whether to build shared libraries... " >&6; }
11975 test no = "$can_build_shared" && enable_shared=no
11976
11977 # On AIX, shared libraries and static libraries use the same namespace, and
11978 # are all built from PIC.
11979 case $host_os in
11980 aix3*)
11981 test yes = "$enable_shared" && enable_static=no
11982 if test -n "$RANLIB"; then
11983 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11984 postinstall_cmds='$RANLIB $lib'
11985 fi
11986 ;;
11987
11988 aix[4-9]*)
11989 if test ia64 != "$host_cpu"; then
11990 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11991 yes,aix,yes) ;; # shared object as lib.so file only
11992 yes,svr4,*) ;; # shared object as lib.so archive member only
11993 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11994 esac
11995 fi
11996 ;;
11997 esac
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11999 $as_echo "$enable_shared" >&6; }
12000
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12002 $as_echo_n "checking whether to build static libraries... " >&6; }
12003 # Make sure either enable_shared or enable_static is yes.
12004 test yes = "$enable_shared" || enable_static=yes
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12006 $as_echo "$enable_static" >&6; }
12007
12008
12009
12010
12011 fi
12012 ac_ext=c
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12017
12018 CC=$lt_save_CC
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 ac_config_commands="$ac_config_commands libtool"
12035
12036
12037
12038
12039 # Only expand once:
12040
12041
12042
12043 DIEHARDER_LT_VERSION="3:31:1"
12044
12045 DIEHARDER_LIB_VERSION=3.31.1
12046
12047
12048 case "$VERSION" in
12049 *+)
12050 $as_echo "#define RELEASED 0" >>confdefs.h
12051
12052 ;;
12053 *)
12054 $as_echo "#define RELEASED 1" >>confdefs.h
12055
12056 ;;
12057 esac
12058
12059
12060 #==================================================================
12061 # Check for which system.
12062 #==================================================================
12063
12064
12065 #==================================================================
12066 # Checks for programs.
12067 #==================================================================
12068 ac_ext=c
12069 ac_cpp='$CPP $CPPFLAGS'
12070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12073
12074 ac_ext=c
12075 ac_cpp='$CPP $CPPFLAGS'
12076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12079 if test -n "$ac_tool_prefix"; then
12080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if ${ac_cv_prog_CC+:} false; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 if test -n "$CC"; then
12088 ac_cv_prog_CC="$CC" # Let the user override the test.
12089 else
12090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH
12092 do
12093 IFS=$as_save_IFS
12094 test -z "$as_dir" && as_dir=.
12095 for ac_exec_ext in '' $ac_executable_extensions; do
12096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099 break 2
12100 fi
12101 done
12102 done
12103 IFS=$as_save_IFS
12104
12105 fi
12106 fi
12107 CC=$ac_cv_prog_CC
12108 if test -n "$CC"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12110 $as_echo "$CC" >&6; }
12111 else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114 fi
12115
12116
12117 fi
12118 if test -z "$ac_cv_prog_CC"; then
12119 ac_ct_CC=$CC
12120 # Extract the first word of "gcc", so it can be a program name with args.
12121 set dummy gcc; ac_word=$2
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123 $as_echo_n "checking for $ac_word... " >&6; }
12124 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 if test -n "$ac_ct_CC"; then
12128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12129 else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_prog_ac_ct_CC="gcc"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12140 fi
12141 done
12142 done
12143 IFS=$as_save_IFS
12144
12145 fi
12146 fi
12147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12148 if test -n "$ac_ct_CC"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12150 $as_echo "$ac_ct_CC" >&6; }
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 fi
12155
12156 if test "x$ac_ct_CC" = x; then
12157 CC=""
12158 else
12159 case $cross_compiling:$ac_tool_warned in
12160 yes:)
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12163 ac_tool_warned=yes ;;
12164 esac
12165 CC=$ac_ct_CC
12166 fi
12167 else
12168 CC="$ac_cv_prog_CC"
12169 fi
12170
12171 if test -z "$CC"; then
12172 if test -n "$ac_tool_prefix"; then
12173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12174 set dummy ${ac_tool_prefix}cc; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176 $as_echo_n "checking for $ac_word... " >&6; }
12177 if ${ac_cv_prog_CC+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 if test -n "$CC"; then
12181 ac_cv_prog_CC="$CC" # Let the user override the test.
12182 else
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12185 do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_CC="${ac_tool_prefix}cc"
12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 break 2
12193 fi
12194 done
12195 done
12196 IFS=$as_save_IFS
12197
12198 fi
12199 fi
12200 CC=$ac_cv_prog_CC
12201 if test -n "$CC"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12203 $as_echo "$CC" >&6; }
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207 fi
12208
12209
12210 fi
12211 fi
12212 if test -z "$CC"; then
12213 # Extract the first word of "cc", so it can be a program name with args.
12214 set dummy cc; ac_word=$2
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 $as_echo_n "checking for $ac_word... " >&6; }
12217 if ${ac_cv_prog_CC+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 if test -n "$CC"; then
12221 ac_cv_prog_CC="$CC" # Let the user override the test.
12222 else
12223 ac_prog_rejected=no
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227 IFS=$as_save_IFS
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12232 ac_prog_rejected=yes
12233 continue
12234 fi
12235 ac_cv_prog_CC="cc"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12238 fi
12239 done
12240 done
12241 IFS=$as_save_IFS
12242
12243 if test $ac_prog_rejected = yes; then
12244 # We found a bogon in the path, so make sure we never use it.
12245 set dummy $ac_cv_prog_CC
12246 shift
12247 if test $# != 0; then
12248 # We chose a different compiler from the bogus one.
12249 # However, it has the same basename, so the bogon will be chosen
12250 # first if we set CC to just the basename; use the full file name.
12251 shift
12252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12253 fi
12254 fi
12255 fi
12256 fi
12257 CC=$ac_cv_prog_CC
12258 if test -n "$CC"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12260 $as_echo "$CC" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264 fi
12265
12266
12267 fi
12268 if test -z "$CC"; then
12269 if test -n "$ac_tool_prefix"; then
12270 for ac_prog in cl.exe
12271 do
12272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if ${ac_cv_prog_CC+:} false; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 if test -n "$CC"; then
12280 ac_cv_prog_CC="$CC" # Let the user override the test.
12281 else
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12284 do
12285 IFS=$as_save_IFS
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291 break 2
12292 fi
12293 done
12294 done
12295 IFS=$as_save_IFS
12296
12297 fi
12298 fi
12299 CC=$ac_cv_prog_CC
12300 if test -n "$CC"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12302 $as_echo "$CC" >&6; }
12303 else
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12306 fi
12307
12308
12309 test -n "$CC" && break
12310 done
12311 fi
12312 if test -z "$CC"; then
12313 ac_ct_CC=$CC
12314 for ac_prog in cl.exe
12315 do
12316 # Extract the first word of "$ac_prog", so it can be a program name with args.
12317 set dummy $ac_prog; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 if test -n "$ac_ct_CC"; then
12324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12325 else
12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327 for as_dir in $PATH
12328 do
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12333 ac_cv_prog_ac_ct_CC="$ac_prog"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 break 2
12336 fi
12337 done
12338 done
12339 IFS=$as_save_IFS
12340
12341 fi
12342 fi
12343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12344 if test -n "$ac_ct_CC"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12346 $as_echo "$ac_ct_CC" >&6; }
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12350 fi
12351
12352
12353 test -n "$ac_ct_CC" && break
12354 done
12355
12356 if test "x$ac_ct_CC" = x; then
12357 CC=""
12358 else
12359 case $cross_compiling:$ac_tool_warned in
12360 yes:)
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12363 ac_tool_warned=yes ;;
12364 esac
12365 CC=$ac_ct_CC
12366 fi
12367 fi
12368
12369 fi
12370
12371
12372 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12374 as_fn_error $? "no acceptable C compiler found in \$PATH
12375 See \`config.log' for more details" "$LINENO" 5; }
12376
12377 # Provide some information about the compiler.
12378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12379 set X $ac_compile
12380 ac_compiler=$2
12381 for ac_option in --version -v -V -qversion; do
12382 { { ac_try="$ac_compiler $ac_option >&5"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12388 $as_echo "$ac_try_echo"; } >&5
12389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12390 ac_status=$?
12391 if test -s conftest.err; then
12392 sed '10a\
12393 ... rest of stderr output deleted ...
12394 10q' conftest.err >conftest.er1
12395 cat conftest.er1 >&5
12396 fi
12397 rm -f conftest.er1 conftest.err
12398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399 test $ac_status = 0; }
12400 done
12401
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12403 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12404 if ${ac_cv_c_compiler_gnu+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409
12410 int
12411 main ()
12412 {
12413 #ifndef __GNUC__
12414 choke me
12415 #endif
12416
12417 ;
12418 return 0;
12419 }
12420 _ACEOF
12421 if ac_fn_c_try_compile "$LINENO"; then :
12422 ac_compiler_gnu=yes
12423 else
12424 ac_compiler_gnu=no
12425 fi
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12428
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12431 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12432 if test $ac_compiler_gnu = yes; then
12433 GCC=yes
12434 else
12435 GCC=
12436 fi
12437 ac_test_CFLAGS=${CFLAGS+set}
12438 ac_save_CFLAGS=$CFLAGS
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12440 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12441 if ${ac_cv_prog_cc_g+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 ac_save_c_werror_flag=$ac_c_werror_flag
12445 ac_c_werror_flag=yes
12446 ac_cv_prog_cc_g=no
12447 CFLAGS="-g"
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12450
12451 int
12452 main ()
12453 {
12454
12455 ;
12456 return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_c_try_compile "$LINENO"; then :
12460 ac_cv_prog_cc_g=yes
12461 else
12462 CFLAGS=""
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465
12466 int
12467 main ()
12468 {
12469
12470 ;
12471 return 0;
12472 }
12473 _ACEOF
12474 if ac_fn_c_try_compile "$LINENO"; then :
12475
12476 else
12477 ac_c_werror_flag=$ac_save_c_werror_flag
12478 CFLAGS="-g"
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12481
12482 int
12483 main ()
12484 {
12485
12486 ;
12487 return 0;
12488 }
12489 _ACEOF
12490 if ac_fn_c_try_compile "$LINENO"; then :
12491 ac_cv_prog_cc_g=yes
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 fi
12497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 ac_c_werror_flag=$ac_save_c_werror_flag
12499 fi
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12501 $as_echo "$ac_cv_prog_cc_g" >&6; }
12502 if test "$ac_test_CFLAGS" = set; then
12503 CFLAGS=$ac_save_CFLAGS
12504 elif test $ac_cv_prog_cc_g = yes; then
12505 if test "$GCC" = yes; then
12506 CFLAGS="-g -O2"
12507 else
12508 CFLAGS="-g"
12509 fi
12510 else
12511 if test "$GCC" = yes; then
12512 CFLAGS="-O2"
12513 else
12514 CFLAGS=
12515 fi
12516 fi
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12518 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12519 if ${ac_cv_prog_cc_c89+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 ac_cv_prog_cc_c89=no
12523 ac_save_CC=$CC
12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h. */
12526 #include <stdarg.h>
12527 #include <stdio.h>
12528 struct stat;
12529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12530 struct buf { int x; };
12531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12532 static char *e (p, i)
12533 char **p;
12534 int i;
12535 {
12536 return p[i];
12537 }
12538 static char *f (char * (*g) (char **, int), char **p, ...)
12539 {
12540 char *s;
12541 va_list v;
12542 va_start (v,p);
12543 s = g (p, va_arg (v,int));
12544 va_end (v);
12545 return s;
12546 }
12547
12548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12549 function prototypes and stuff, but not '\xHH' hex character constants.
12550 These don't provoke an error unfortunately, instead are silently treated
12551 as 'x'. The following induces an error, until -std is added to get
12552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12553 array size at least. It's necessary to write '\x00'==0 to get something
12554 that's true only with -std. */
12555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12556
12557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12558 inside strings and character constants. */
12559 #define FOO(x) 'x'
12560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12561
12562 int test (int i, double x);
12563 struct s1 {int (*f) (int a);};
12564 struct s2 {int (*f) (double a);};
12565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12566 int argc;
12567 char **argv;
12568 int
12569 main ()
12570 {
12571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12572 ;
12573 return 0;
12574 }
12575 _ACEOF
12576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12578 do
12579 CC="$ac_save_CC $ac_arg"
12580 if ac_fn_c_try_compile "$LINENO"; then :
12581 ac_cv_prog_cc_c89=$ac_arg
12582 fi
12583 rm -f core conftest.err conftest.$ac_objext
12584 test "x$ac_cv_prog_cc_c89" != "xno" && break
12585 done
12586 rm -f conftest.$ac_ext
12587 CC=$ac_save_CC
12588
12589 fi
12590 # AC_CACHE_VAL
12591 case "x$ac_cv_prog_cc_c89" in
12592 x)
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12594 $as_echo "none needed" >&6; } ;;
12595 xno)
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12597 $as_echo "unsupported" >&6; } ;;
12598 *)
12599 CC="$CC $ac_cv_prog_cc_c89"
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12601 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12602 esac
12603 if test "x$ac_cv_prog_cc_c89" != xno; then :
12604
12605 fi
12606
12607 ac_ext=c
12608 ac_cpp='$CPP $CPPFLAGS'
12609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12612
12613 ac_ext=c
12614 ac_cpp='$CPP $CPPFLAGS'
12615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12619 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12620 if ${am_cv_prog_cc_c_o+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625
12626 int
12627 main ()
12628 {
12629
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 # Make sure it works both with $CC and with simple cc.
12635 # Following AC_PROG_CC_C_O, we do the test twice because some
12636 # compilers refuse to overwrite an existing .o file with -o,
12637 # though they will create one.
12638 am_cv_prog_cc_c_o=yes
12639 for am_i in 1 2; do
12640 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12641 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } \
12645 && test -f conftest2.$ac_objext; then
12646 : OK
12647 else
12648 am_cv_prog_cc_c_o=no
12649 break
12650 fi
12651 done
12652 rm -f core conftest*
12653 unset am_i
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12656 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12657 if test "$am_cv_prog_cc_c_o" != yes; then
12658 # Losing compiler, so override with the script.
12659 # FIXME: It is wrong to rewrite CC.
12660 # But if we don't then we get into trouble of one sort or another.
12661 # A longer-term fix would be to have automake use am__CC in this case,
12662 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12663 CC="$am_aux_dir/compile $CC"
12664 fi
12665 ac_ext=c
12666 ac_cpp='$CPP $CPPFLAGS'
12667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12670
12671
12672 depcc="$CC" am_compiler_list=
12673
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12675 $as_echo_n "checking dependency style of $depcc... " >&6; }
12676 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12677 $as_echo_n "(cached) " >&6
12678 else
12679 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12680 # We make a subdir and do the tests there. Otherwise we can end up
12681 # making bogus files that we don't know about and never remove. For
12682 # instance it was reported that on HP-UX the gcc test will end up
12683 # making a dummy file named 'D' -- because '-MD' means "put the output
12684 # in D".
12685 rm -rf conftest.dir
12686 mkdir conftest.dir
12687 # Copy depcomp to subdir because otherwise we won't find it if we're
12688 # using a relative directory.
12689 cp "$am_depcomp" conftest.dir
12690 cd conftest.dir
12691 # We will build objects and dependencies in a subdirectory because
12692 # it helps to detect inapplicable dependency modes. For instance
12693 # both Tru64's cc and ICC support -MD to output dependencies as a
12694 # side effect of compilation, but ICC will put the dependencies in
12695 # the current directory while Tru64 will put them in the object
12696 # directory.
12697 mkdir sub
12698
12699 am_cv_CC_dependencies_compiler_type=none
12700 if test "$am_compiler_list" = ""; then
12701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12702 fi
12703 am__universal=false
12704 case " $depcc " in #(
12705 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12706 esac
12707
12708 for depmode in $am_compiler_list; do
12709 # Setup a source with many dependencies, because some compilers
12710 # like to wrap large dependency lists on column 80 (with \), and
12711 # we should not choose a depcomp mode which is confused by this.
12712 #
12713 # We need to recreate these files for each test, as the compiler may
12714 # overwrite some of them when testing with obscure command lines.
12715 # This happens at least with the AIX C compiler.
12716 : > sub/conftest.c
12717 for i in 1 2 3 4 5 6; do
12718 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12719 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12720 # Solaris 10 /bin/sh.
12721 echo '/* dummy */' > sub/conftst$i.h
12722 done
12723 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12724
12725 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12726 # mode. It turns out that the SunPro C++ compiler does not properly
12727 # handle '-M -o', and we need to detect this. Also, some Intel
12728 # versions had trouble with output in subdirs.
12729 am__obj=sub/conftest.${OBJEXT-o}
12730 am__minus_obj="-o $am__obj"
12731 case $depmode in
12732 gcc)
12733 # This depmode causes a compiler race in universal mode.
12734 test "$am__universal" = false || continue
12735 ;;
12736 nosideeffect)
12737 # After this tag, mechanisms are not by side-effect, so they'll
12738 # only be used when explicitly requested.
12739 if test "x$enable_dependency_tracking" = xyes; then
12740 continue
12741 else
12742 break
12743 fi
12744 ;;
12745 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12746 # This compiler won't grok '-c -o', but also, the minuso test has
12747 # not run yet. These depmodes are late enough in the game, and
12748 # so weak that their functioning should not be impacted.
12749 am__obj=conftest.${OBJEXT-o}
12750 am__minus_obj=
12751 ;;
12752 none) break ;;
12753 esac
12754 if depmode=$depmode \
12755 source=sub/conftest.c object=$am__obj \
12756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12757 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12758 >/dev/null 2>conftest.err &&
12759 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12761 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12763 # icc doesn't choke on unknown options, it will just issue warnings
12764 # or remarks (even with -Werror). So we grep stderr for any message
12765 # that says an option was ignored or not supported.
12766 # When given -MP, icc 7.0 and 7.1 complain thusly:
12767 # icc: Command line warning: ignoring option '-M'; no argument required
12768 # The diagnosis changed in icc 8.0:
12769 # icc: Command line remark: option '-MP' not supported
12770 if (grep 'ignoring option' conftest.err ||
12771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12772 am_cv_CC_dependencies_compiler_type=$depmode
12773 break
12774 fi
12775 fi
12776 done
12777
12778 cd ..
12779 rm -rf conftest.dir
12780 else
12781 am_cv_CC_dependencies_compiler_type=none
12782 fi
12783
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12786 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12787 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12788
12789 if
12790 test "x$enable_dependency_tracking" != xno \
12791 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12792 am__fastdepCC_TRUE=
12793 am__fastdepCC_FALSE='#'
12794 else
12795 am__fastdepCC_TRUE='#'
12796 am__fastdepCC_FALSE=
12797 fi
12798
12799
12800
12801
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12803 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12804 set x ${MAKE-make}
12805 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12806 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 cat >conftest.make <<\_ACEOF
12810 SHELL = /bin/sh
12811 all:
12812 @echo '@@@%%%=$(MAKE)=@@@%%%'
12813 _ACEOF
12814 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12815 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12816 *@@@%%%=?*=@@@%%%*)
12817 eval ac_cv_prog_make_${ac_make}_set=yes;;
12818 *)
12819 eval ac_cv_prog_make_${ac_make}_set=no;;
12820 esac
12821 rm -f conftest.make
12822 fi
12823 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12825 $as_echo "yes" >&6; }
12826 SET_MAKE=
12827 else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 SET_MAKE="MAKE=${MAKE-make}"
12831 fi
12832
12833
12834 #==================================================================
12835 # OK, these five macros prevent my personal path from appearing
12836 # in the default Makefile, and actually should make it work to
12837 # rebuilt itself even if somebody completely blows off running
12838 # ./autogen.sh. And it ALMOST WORKS
12839 #==================================================================
12840 ACLOCAL="${SHELL} ./missing --run aclocal"
12841 ACTAR="${SHELL} ./missing --run tar"
12842 AUTOCONF="${SHELL} ./missing --run autoconf;echo \"Run ./configure\";exit"
12843 AUTOHEADER="${SHELL} ./missing --run autoheader"
12844 AUTOMAKE="${SHELL} ./missing --run automake --add-missing --copy --gnu"
12845
12846
12847
12848
12849
12850
12851
12852 #==================================================================
12853 # Disable unnecessary libtool tests for c++,fortran,java
12854 #==================================================================
12855
12856
12857
12858
12859
12860 #==================================================================
12861 # Check compiler features
12862 #==================================================================
12863 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12864 if test "x$ac_cv_type_size_t" = xyes; then :
12865
12866 else
12867
12868 cat >>confdefs.h <<_ACEOF
12869 #define size_t unsigned int
12870 _ACEOF
12871
12872 fi
12873
12874 # AC_C_CONST
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12876 $as_echo_n "checking for working volatile... " >&6; }
12877 if ${ac_cv_c_volatile+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882
12883 int
12884 main ()
12885 {
12886
12887 volatile int x;
12888 int * volatile y = (int *) 0;
12889 return !x && !y;
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_compile "$LINENO"; then :
12895 ac_cv_c_volatile=yes
12896 else
12897 ac_cv_c_volatile=no
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
12902 $as_echo "$ac_cv_c_volatile" >&6; }
12903 if test $ac_cv_c_volatile = no; then
12904
12905 $as_echo "#define volatile /**/" >>confdefs.h
12906
12907 fi
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12910 $as_echo_n "checking for inline... " >&6; }
12911 if ${ac_cv_c_inline+:} false; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 ac_cv_c_inline=no
12915 for ac_kw in inline __inline__ __inline; do
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #ifndef __cplusplus
12919 typedef int foo_t;
12920 static $ac_kw foo_t static_foo () {return 0; }
12921 $ac_kw foo_t foo () {return 0; }
12922 #endif
12923
12924 _ACEOF
12925 if ac_fn_c_try_compile "$LINENO"; then :
12926 ac_cv_c_inline=$ac_kw
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 test "$ac_cv_c_inline" != no && break
12930 done
12931
12932 fi
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12934 $as_echo "$ac_cv_c_inline" >&6; }
12935
12936 case $ac_cv_c_inline in
12937 inline | yes) ;;
12938 *)
12939 case $ac_cv_c_inline in
12940 no) ac_val=;;
12941 *) ac_val=$ac_cv_c_inline;;
12942 esac
12943 cat >>confdefs.h <<_ACEOF
12944 #ifndef __cplusplus
12945 #define inline $ac_val
12946 #endif
12947 _ACEOF
12948 ;;
12949 esac
12950
12951
12952 DIEHARDER_CFLAGS="-I$includedir"
12953 dieharder_CFLAGS="-std=c99 -Wall -pedantic -I$includedir"
12954 libdieharder_lo_CFLAGS="-Wall -pedantic -I$includedir"
12955 DIEHARDER_LIBS="-L$libdir -ldieharder"
12956 ACLOCAL_AMFLAGS="-I m4"
12957
12958
12959
12960
12961
12962
12963
12964 #==================================================================
12965 # Checks for libraries, and headers. Test for dependency libraries
12966 # FIRST in reverse order that you need -lwhatever to appear on
12967 # compile line as it accumulates libraries to build e.g.
12968 # -lgsl -lgslcblas
12969 # for the SECOND test, required (in that order) to succeed.
12970 #==================================================================
12971 ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_sf_gamma.h" "ac_cv_header_gsl_gsl_sf_gamma_h" "$ac_includes_default"
12972 if test "x$ac_cv_header_gsl_gsl_sf_gamma_h" = xyes; then :
12973
12974 else
12975 as_fn_error $? "Couldn't find GSL headers. Please install the gsl-devel package." "$LINENO" 5
12976 fi
12977
12978
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgslcblas" >&5
12980 $as_echo_n "checking for main in -lgslcblas... " >&6; }
12981 if ${ac_cv_lib_gslcblas_main+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 ac_check_lib_save_LIBS=$LIBS
12985 LIBS="-lgslcblas $LIBS"
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988
12989
12990 int
12991 main ()
12992 {
12993 return main ();
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_c_try_link "$LINENO"; then :
12999 ac_cv_lib_gslcblas_main=yes
13000 else
13001 ac_cv_lib_gslcblas_main=no
13002 fi
13003 rm -f core conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext conftest.$ac_ext
13005 LIBS=$ac_check_lib_save_LIBS
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_main" >&5
13008 $as_echo "$ac_cv_lib_gslcblas_main" >&6; }
13009 if test "x$ac_cv_lib_gslcblas_main" = xyes; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define HAVE_LIBGSLCBLAS 1
13012 _ACEOF
13013
13014 LIBS="-lgslcblas $LIBS"
13015
13016 else
13017 as_fn_error $? "Couldn't find libgsl. Please install the gsl package." "$LINENO" 5
13018 fi
13019
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl_sf_gamma in -lgsl" >&5
13021 $as_echo_n "checking for gsl_sf_gamma in -lgsl... " >&6; }
13022 if ${ac_cv_lib_gsl_gsl_sf_gamma+:} false; then :
13023 $as_echo_n "(cached) " >&6
13024 else
13025 ac_check_lib_save_LIBS=$LIBS
13026 LIBS="-lgsl $LIBS"
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029
13030 /* Override any GCC internal prototype to avoid an error.
13031 Use char because int might match the return type of a GCC
13032 builtin and then its argument prototype would still apply. */
13033 #ifdef __cplusplus
13034 extern "C"
13035 #endif
13036 char gsl_sf_gamma ();
13037 int
13038 main ()
13039 {
13040 return gsl_sf_gamma ();
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_link "$LINENO"; then :
13046 ac_cv_lib_gsl_gsl_sf_gamma=yes
13047 else
13048 ac_cv_lib_gsl_gsl_sf_gamma=no
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 LIBS=$ac_check_lib_save_LIBS
13053 fi
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_sf_gamma" >&5
13055 $as_echo "$ac_cv_lib_gsl_gsl_sf_gamma" >&6; }
13056 if test "x$ac_cv_lib_gsl_gsl_sf_gamma" = xyes; then :
13057 cat >>confdefs.h <<_ACEOF
13058 #define HAVE_LIBGSL 1
13059 _ACEOF
13060
13061 LIBS="-lgsl $LIBS"
13062
13063 fi
13064
13065
13066
13067 #==================================================================
13068 # Check if we're a little-endian or a big-endian system, needed by
13069 # brg_endian.h in the build of rng_threefish. This is a very
13070 # certain test, and therefore is checked FIRST in this header file.
13071 #==================================================================
13072 ## AC_DEFUN([AC_C_ENDIAN],
13073 ## [AC_CACHE_CHECK(for endianness, ac_cv_c_endian,
13074 ## [
13075 ## AC_RUN_IFELSE(
13076 ## [AC_LANG_PROGRAM([], [dnl
13077 ## long val = 1;
13078 ## char *c = (char *) &val;
13079 ## exit(*c == 1);
13080 ## ])
13081 ## ],[
13082 ## ac_cv_c_endian=big
13083 ## ],[
13084 ## ac_cv_c_endian=little
13085 ## ])
13086 ## ])
13087 ## if test $ac_cv_c_endian = big; then
13088 ## AC_SUBST(LITTLE_ENDIAN,0)
13089 ## fi
13090 ## if test $ac_cv_c_endian = little; then
13091 ## AC_SUBST(LITTLE_ENDIAN,1)
13092 ## fi
13093 ## ])
13094 ##
13095 ## AC_C_ENDIAN
13096 #
13097 # Per Debian bug report #946774 we can simply do this instead
13098 #
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13100 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13101 if ${ac_cv_c_bigendian+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 ac_cv_c_bigendian=unknown
13105 # See if we're dealing with a universal compiler.
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #ifndef __APPLE_CC__
13109 not a universal capable compiler
13110 #endif
13111 typedef int dummy;
13112
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"; then :
13115
13116 # Check for potential -arch flags. It is not universal unless
13117 # there are at least two -arch flags with different values.
13118 ac_arch=
13119 ac_prev=
13120 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13121 if test -n "$ac_prev"; then
13122 case $ac_word in
13123 i?86 | x86_64 | ppc | ppc64)
13124 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13125 ac_arch=$ac_word
13126 else
13127 ac_cv_c_bigendian=universal
13128 break
13129 fi
13130 ;;
13131 esac
13132 ac_prev=
13133 elif test "x$ac_word" = "x-arch"; then
13134 ac_prev=arch
13135 fi
13136 done
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139 if test $ac_cv_c_bigendian = unknown; then
13140 # See if sys/param.h defines the BYTE_ORDER macro.
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143 #include <sys/types.h>
13144 #include <sys/param.h>
13145
13146 int
13147 main ()
13148 {
13149 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13150 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13151 && LITTLE_ENDIAN)
13152 bogus endian macros
13153 #endif
13154
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160 # It does; now see whether it defined to BIG_ENDIAN or not.
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13163 #include <sys/types.h>
13164 #include <sys/param.h>
13165
13166 int
13167 main ()
13168 {
13169 #if BYTE_ORDER != BIG_ENDIAN
13170 not big endian
13171 #endif
13172
13173 ;
13174 return 0;
13175 }
13176 _ACEOF
13177 if ac_fn_c_try_compile "$LINENO"; then :
13178 ac_cv_c_bigendian=yes
13179 else
13180 ac_cv_c_bigendian=no
13181 fi
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 fi
13186 if test $ac_cv_c_bigendian = unknown; then
13187 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13190 #include <limits.h>
13191
13192 int
13193 main ()
13194 {
13195 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13196 bogus endian macros
13197 #endif
13198
13199 ;
13200 return 0;
13201 }
13202 _ACEOF
13203 if ac_fn_c_try_compile "$LINENO"; then :
13204 # It does; now see whether it defined to _BIG_ENDIAN or not.
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207 #include <limits.h>
13208
13209 int
13210 main ()
13211 {
13212 #ifndef _BIG_ENDIAN
13213 not big endian
13214 #endif
13215
13216 ;
13217 return 0;
13218 }
13219 _ACEOF
13220 if ac_fn_c_try_compile "$LINENO"; then :
13221 ac_cv_c_bigendian=yes
13222 else
13223 ac_cv_c_bigendian=no
13224 fi
13225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13226 fi
13227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228 fi
13229 if test $ac_cv_c_bigendian = unknown; then
13230 # Compile a test program.
13231 if test "$cross_compiling" = yes; then :
13232 # Try to guess by grepping values from an object file.
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235 short int ascii_mm[] =
13236 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13237 short int ascii_ii[] =
13238 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13239 int use_ascii (int i) {
13240 return ascii_mm[i] + ascii_ii[i];
13241 }
13242 short int ebcdic_ii[] =
13243 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13244 short int ebcdic_mm[] =
13245 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13246 int use_ebcdic (int i) {
13247 return ebcdic_mm[i] + ebcdic_ii[i];
13248 }
13249 extern int foo;
13250
13251 int
13252 main ()
13253 {
13254 return use_ascii (foo) == use_ebcdic (foo);
13255 ;
13256 return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_compile "$LINENO"; then :
13260 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13261 ac_cv_c_bigendian=yes
13262 fi
13263 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13264 if test "$ac_cv_c_bigendian" = unknown; then
13265 ac_cv_c_bigendian=no
13266 else
13267 # finding both strings is unlikely to happen, but who knows?
13268 ac_cv_c_bigendian=unknown
13269 fi
13270 fi
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273 else
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276 $ac_includes_default
13277 int
13278 main ()
13279 {
13280
13281 /* Are we little or big endian? From Harbison&Steele. */
13282 union
13283 {
13284 long int l;
13285 char c[sizeof (long int)];
13286 } u;
13287 u.l = 1;
13288 return u.c[sizeof (long int) - 1] == 1;
13289
13290 ;
13291 return 0;
13292 }
13293 _ACEOF
13294 if ac_fn_c_try_run "$LINENO"; then :
13295 ac_cv_c_bigendian=no
13296 else
13297 ac_cv_c_bigendian=yes
13298 fi
13299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13300 conftest.$ac_objext conftest.beam conftest.$ac_ext
13301 fi
13302
13303 fi
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13306 $as_echo "$ac_cv_c_bigendian" >&6; }
13307 case $ac_cv_c_bigendian in #(
13308 yes)
13309 LITTLE_ENDIAN=0
13310 ;; #(
13311 no)
13312 LITTLE_ENDIAN=1
13313 ;; #(
13314 universal)
13315
13316 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13317
13318 ;; #(
13319 *)
13320 as_fn_error $? "unknown endianness
13321 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13322 esac
13323
13324
13325
13326 #==================================================================
13327 # Checks for typedefs, structures, and compiler characteristics.
13328 #==================================================================
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13330 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13331 if ${ac_cv_c_const+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336
13337 int
13338 main ()
13339 {
13340
13341 #ifndef __cplusplus
13342 /* Ultrix mips cc rejects this sort of thing. */
13343 typedef int charset[2];
13344 const charset cs = { 0, 0 };
13345 /* SunOS 4.1.1 cc rejects this. */
13346 char const *const *pcpcc;
13347 char **ppc;
13348 /* NEC SVR4.0.2 mips cc rejects this. */
13349 struct point {int x, y;};
13350 static struct point const zero = {0,0};
13351 /* AIX XL C 1.02.0.0 rejects this.
13352 It does not let you subtract one const X* pointer from another in
13353 an arm of an if-expression whose if-part is not a constant
13354 expression */
13355 const char *g = "string";
13356 pcpcc = &g + (g ? g-g : 0);
13357 /* HPUX 7.0 cc rejects these. */
13358 ++pcpcc;
13359 ppc = (char**) pcpcc;
13360 pcpcc = (char const *const *) ppc;
13361 { /* SCO 3.2v4 cc rejects this sort of thing. */
13362 char tx;
13363 char *t = &tx;
13364 char const *s = 0 ? (char *) 0 : (char const *) 0;
13365
13366 *t++ = 0;
13367 if (s) return 0;
13368 }
13369 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13370 int x[] = {25, 17};
13371 const int *foo = &x[0];
13372 ++foo;
13373 }
13374 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13375 typedef const int *iptr;
13376 iptr p = 0;
13377 ++p;
13378 }
13379 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13380 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13381 struct s { int j; const int *ap[3]; } bx;
13382 struct s *b = &bx; b->j = 5;
13383 }
13384 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13385 const int foo = 10;
13386 if (!foo) return 0;
13387 }
13388 return !cs[0] && !zero.x;
13389 #endif
13390
13391 ;
13392 return 0;
13393 }
13394 _ACEOF
13395 if ac_fn_c_try_compile "$LINENO"; then :
13396 ac_cv_c_const=yes
13397 else
13398 ac_cv_c_const=no
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13403 $as_echo "$ac_cv_c_const" >&6; }
13404 if test $ac_cv_c_const = no; then
13405
13406 $as_echo "#define const /**/" >>confdefs.h
13407
13408 fi
13409
13410 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13411 if test "x$ac_cv_type_size_t" = xyes; then :
13412
13413 else
13414
13415 cat >>confdefs.h <<_ACEOF
13416 #define size_t unsigned int
13417 _ACEOF
13418
13419 fi
13420
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13422 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13423 if ${ac_cv_header_time+:} false; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13428 #include <sys/types.h>
13429 #include <sys/time.h>
13430 #include <time.h>
13431
13432 int
13433 main ()
13434 {
13435 if ((struct tm *) 0)
13436 return 0;
13437 ;
13438 return 0;
13439 }
13440 _ACEOF
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442 ac_cv_header_time=yes
13443 else
13444 ac_cv_header_time=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13449 $as_echo "$ac_cv_header_time" >&6; }
13450 if test $ac_cv_header_time = yes; then
13451
13452 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13453
13454 fi
13455
13456
13457 #==================================================================
13458 # Files that configure needs to process with this so that they are
13459 # all happy and macro-replaced.
13460 #==================================================================
13461 ac_config_files="$ac_config_files dieharder_version.h dieharder.spec dieharder.html dieharder-config dieharder/Makefile include/Makefile libdieharder/Makefile manual/Makefile manual/macros.tex Makefile"
13462
13463
13464 cat >confcache <<\_ACEOF
13465 # This file is a shell script that caches the results of configure
13466 # tests run on this system so they can be shared between configure
13467 # scripts and configure runs, see configure's option --config-cache.
13468 # It is not useful on other systems. If it contains results you don't
13469 # want to keep, you may remove or edit it.
13470 #
13471 # config.status only pays attention to the cache file if you give it
13472 # the --recheck option to rerun configure.
13473 #
13474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13476 # following values.
13477
13478 _ACEOF
13479
13480 # The following way of writing the cache mishandles newlines in values,
13481 # but we know of no workaround that is simple, portable, and efficient.
13482 # So, we kill variables containing newlines.
13483 # Ultrix sh set writes to stderr and can't be redirected directly,
13484 # and sets the high bit in the cache file unless we assign to the vars.
13485 (
13486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13487 eval ac_val=\$$ac_var
13488 case $ac_val in #(
13489 *${as_nl}*)
13490 case $ac_var in #(
13491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13493 esac
13494 case $ac_var in #(
13495 _ | IFS | as_nl) ;; #(
13496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13497 *) { eval $ac_var=; unset $ac_var;} ;;
13498 esac ;;
13499 esac
13500 done
13501
13502 (set) 2>&1 |
13503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13504 *${as_nl}ac_space=\ *)
13505 # `set' does not quote correctly, so add quotes: double-quote
13506 # substitution turns \\\\ into \\, and sed turns \\ into \.
13507 sed -n \
13508 "s/'/'\\\\''/g;
13509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13510 ;; #(
13511 *)
13512 # `set' quotes correctly as required by POSIX, so do not add quotes.
13513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13514 ;;
13515 esac |
13516 sort
13517 ) |
13518 sed '
13519 /^ac_cv_env_/b end
13520 t clear
13521 :clear
13522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13523 t end
13524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13525 :end' >>confcache
13526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13527 if test -w "$cache_file"; then
13528 if test "x$cache_file" != "x/dev/null"; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13530 $as_echo "$as_me: updating cache $cache_file" >&6;}
13531 if test ! -f "$cache_file" || test -h "$cache_file"; then
13532 cat confcache >"$cache_file"
13533 else
13534 case $cache_file in #(
13535 */* | ?:*)
13536 mv -f confcache "$cache_file"$$ &&
13537 mv -f "$cache_file"$$ "$cache_file" ;; #(
13538 *)
13539 mv -f confcache "$cache_file" ;;
13540 esac
13541 fi
13542 fi
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13546 fi
13547 fi
13548 rm -f confcache
13549
13550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13551 # Let make expand exec_prefix.
13552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13553
13554 DEFS=-DHAVE_CONFIG_H
13555
13556 ac_libobjs=
13557 ac_ltlibobjs=
13558 U=
13559 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13560 # 1. Remove the extension, and $U if already installed.
13561 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13562 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13563 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13564 # will be set to the directory where LIBOBJS objects are built.
13565 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13566 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13567 done
13568 LIBOBJS=$ac_libobjs
13569
13570 LTLIBOBJS=$ac_ltlibobjs
13571
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13574 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13575 if test -n "$am_sleep_pid"; then
13576 # Hide warnings about reused PIDs.
13577 wait $am_sleep_pid 2>/dev/null
13578 fi
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13580 $as_echo "done" >&6; }
13581 if test -n "$EXEEXT"; then
13582 am__EXEEXT_TRUE=
13583 am__EXEEXT_FALSE='#'
13584 else
13585 am__EXEEXT_TRUE='#'
13586 am__EXEEXT_FALSE=
13587 fi
13588
13589 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13590 as_fn_error $? "conditional \"AMDEP\" was never defined.
13591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13592 fi
13593 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13594 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13596 fi
13597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13598 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13600 fi
13601
13602
13603 : "${CONFIG_STATUS=./config.status}"
13604 ac_write_fail=0
13605 ac_clean_files_save=$ac_clean_files
13606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13608 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13609 as_write_fail=0
13610 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13611 #! $SHELL
13612 # Generated by $as_me.
13613 # Run this file to recreate the current configuration.
13614 # Compiler output produced by configure, useful for debugging
13615 # configure, is in config.log if it exists.
13616
13617 debug=false
13618 ac_cs_recheck=false
13619 ac_cs_silent=false
13620
13621 SHELL=\${CONFIG_SHELL-$SHELL}
13622 export SHELL
13623 _ASEOF
13624 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13625 ## -------------------- ##
13626 ## M4sh Initialization. ##
13627 ## -------------------- ##
13628
13629 # Be more Bourne compatible
13630 DUALCASE=1; export DUALCASE # for MKS sh
13631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13632 emulate sh
13633 NULLCMD=:
13634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13635 # is contrary to our usage. Disable this feature.
13636 alias -g '${1+"$@"}'='"$@"'
13637 setopt NO_GLOB_SUBST
13638 else
13639 case `(set -o) 2>/dev/null` in #(
13640 *posix*) :
13641 set -o posix ;; #(
13642 *) :
13643 ;;
13644 esac
13645 fi
13646
13647
13648 as_nl='
13649 '
13650 export as_nl
13651 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13652 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13655 # Prefer a ksh shell builtin over an external printf program on Solaris,
13656 # but without wasting forks for bash or zsh.
13657 if test -z "$BASH_VERSION$ZSH_VERSION" \
13658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13659 as_echo='print -r --'
13660 as_echo_n='print -rn --'
13661 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13662 as_echo='printf %s\n'
13663 as_echo_n='printf %s'
13664 else
13665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13667 as_echo_n='/usr/ucb/echo -n'
13668 else
13669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13670 as_echo_n_body='eval
13671 arg=$1;
13672 case $arg in #(
13673 *"$as_nl"*)
13674 expr "X$arg" : "X\\(.*\\)$as_nl";
13675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13676 esac;
13677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13678 '
13679 export as_echo_n_body
13680 as_echo_n='sh -c $as_echo_n_body as_echo'
13681 fi
13682 export as_echo_body
13683 as_echo='sh -c $as_echo_body as_echo'
13684 fi
13685
13686 # The user is always right.
13687 if test "${PATH_SEPARATOR+set}" != set; then
13688 PATH_SEPARATOR=:
13689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13691 PATH_SEPARATOR=';'
13692 }
13693 fi
13694
13695
13696 # IFS
13697 # We need space, tab and new line, in precisely that order. Quoting is
13698 # there to prevent editors from complaining about space-tab.
13699 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13700 # splitting by setting IFS to empty value.)
13701 IFS=" "" $as_nl"
13702
13703 # Find who we are. Look in the path if we contain no directory separator.
13704 as_myself=
13705 case $0 in #((
13706 *[\\/]* ) as_myself=$0 ;;
13707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708 for as_dir in $PATH
13709 do
13710 IFS=$as_save_IFS
13711 test -z "$as_dir" && as_dir=.
13712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13713 done
13714 IFS=$as_save_IFS
13715
13716 ;;
13717 esac
13718 # We did not find ourselves, most probably we were run as `sh COMMAND'
13719 # in which case we are not to be found in the path.
13720 if test "x$as_myself" = x; then
13721 as_myself=$0
13722 fi
13723 if test ! -f "$as_myself"; then
13724 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13725 exit 1
13726 fi
13727
13728 # Unset variables that we do not need and which cause bugs (e.g. in
13729 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13730 # suppresses any "Segmentation fault" message there. '((' could
13731 # trigger a bug in pdksh 5.2.14.
13732 for as_var in BASH_ENV ENV MAIL MAILPATH
13733 do eval test x\${$as_var+set} = xset \
13734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13735 done
13736 PS1='$ '
13737 PS2='> '
13738 PS4='+ '
13739
13740 # NLS nuisances.
13741 LC_ALL=C
13742 export LC_ALL
13743 LANGUAGE=C
13744 export LANGUAGE
13745
13746 # CDPATH.
13747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13748
13749
13750 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13751 # ----------------------------------------
13752 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13753 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13754 # script with STATUS, using 1 if that was 0.
13755 as_fn_error ()
13756 {
13757 as_status=$1; test $as_status -eq 0 && as_status=1
13758 if test "$4"; then
13759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13760 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13761 fi
13762 $as_echo "$as_me: error: $2" >&2
13763 as_fn_exit $as_status
13764 } # as_fn_error
13765
13766
13767 # as_fn_set_status STATUS
13768 # -----------------------
13769 # Set $? to STATUS, without forking.
13770 as_fn_set_status ()
13771 {
13772 return $1
13773 } # as_fn_set_status
13774
13775 # as_fn_exit STATUS
13776 # -----------------
13777 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13778 as_fn_exit ()
13779 {
13780 set +e
13781 as_fn_set_status $1
13782 exit $1
13783 } # as_fn_exit
13784
13785 # as_fn_unset VAR
13786 # ---------------
13787 # Portably unset VAR.
13788 as_fn_unset ()
13789 {
13790 { eval $1=; unset $1;}
13791 }
13792 as_unset=as_fn_unset
13793 # as_fn_append VAR VALUE
13794 # ----------------------
13795 # Append the text in VALUE to the end of the definition contained in VAR. Take
13796 # advantage of any shell optimizations that allow amortized linear growth over
13797 # repeated appends, instead of the typical quadratic growth present in naive
13798 # implementations.
13799 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13800 eval 'as_fn_append ()
13801 {
13802 eval $1+=\$2
13803 }'
13804 else
13805 as_fn_append ()
13806 {
13807 eval $1=\$$1\$2
13808 }
13809 fi # as_fn_append
13810
13811 # as_fn_arith ARG...
13812 # ------------------
13813 # Perform arithmetic evaluation on the ARGs, and store the result in the
13814 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13815 # must be portable across $(()) and expr.
13816 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13817 eval 'as_fn_arith ()
13818 {
13819 as_val=$(( $* ))
13820 }'
13821 else
13822 as_fn_arith ()
13823 {
13824 as_val=`expr "$@" || test $? -eq 1`
13825 }
13826 fi # as_fn_arith
13827
13828
13829 if expr a : '\(a\)' >/dev/null 2>&1 &&
13830 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13831 as_expr=expr
13832 else
13833 as_expr=false
13834 fi
13835
13836 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13837 as_basename=basename
13838 else
13839 as_basename=false
13840 fi
13841
13842 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13843 as_dirname=dirname
13844 else
13845 as_dirname=false
13846 fi
13847
13848 as_me=`$as_basename -- "$0" ||
13849 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13850 X"$0" : 'X\(//\)$' \| \
13851 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13852 $as_echo X/"$0" |
13853 sed '/^.*\/\([^/][^/]*\)\/*$/{
13854 s//\1/
13855 q
13856 }
13857 /^X\/\(\/\/\)$/{
13858 s//\1/
13859 q
13860 }
13861 /^X\/\(\/\).*/{
13862 s//\1/
13863 q
13864 }
13865 s/.*/./; q'`
13866
13867 # Avoid depending upon Character Ranges.
13868 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13871 as_cr_digits='0123456789'
13872 as_cr_alnum=$as_cr_Letters$as_cr_digits
13873
13874 ECHO_C= ECHO_N= ECHO_T=
13875 case `echo -n x` in #(((((
13876 -n*)
13877 case `echo 'xy\c'` in
13878 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13879 xy) ECHO_C='\c';;
13880 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13881 ECHO_T=' ';;
13882 esac;;
13883 *)
13884 ECHO_N='-n';;
13885 esac
13886
13887 rm -f conf$$ conf$$.exe conf$$.file
13888 if test -d conf$$.dir; then
13889 rm -f conf$$.dir/conf$$.file
13890 else
13891 rm -f conf$$.dir
13892 mkdir conf$$.dir 2>/dev/null
13893 fi
13894 if (echo >conf$$.file) 2>/dev/null; then
13895 if ln -s conf$$.file conf$$ 2>/dev/null; then
13896 as_ln_s='ln -s'
13897 # ... but there are two gotchas:
13898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13900 # In both cases, we have to default to `cp -pR'.
13901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13902 as_ln_s='cp -pR'
13903 elif ln conf$$.file conf$$ 2>/dev/null; then
13904 as_ln_s=ln
13905 else
13906 as_ln_s='cp -pR'
13907 fi
13908 else
13909 as_ln_s='cp -pR'
13910 fi
13911 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13912 rmdir conf$$.dir 2>/dev/null
13913
13914
13915 # as_fn_mkdir_p
13916 # -------------
13917 # Create "$as_dir" as a directory, including parents if necessary.
13918 as_fn_mkdir_p ()
13919 {
13920
13921 case $as_dir in #(
13922 -*) as_dir=./$as_dir;;
13923 esac
13924 test -d "$as_dir" || eval $as_mkdir_p || {
13925 as_dirs=
13926 while :; do
13927 case $as_dir in #(
13928 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13929 *) as_qdir=$as_dir;;
13930 esac
13931 as_dirs="'$as_qdir' $as_dirs"
13932 as_dir=`$as_dirname -- "$as_dir" ||
13933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13934 X"$as_dir" : 'X\(//\)[^/]' \| \
13935 X"$as_dir" : 'X\(//\)$' \| \
13936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13937 $as_echo X"$as_dir" |
13938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13939 s//\1/
13940 q
13941 }
13942 /^X\(\/\/\)[^/].*/{
13943 s//\1/
13944 q
13945 }
13946 /^X\(\/\/\)$/{
13947 s//\1/
13948 q
13949 }
13950 /^X\(\/\).*/{
13951 s//\1/
13952 q
13953 }
13954 s/.*/./; q'`
13955 test -d "$as_dir" && break
13956 done
13957 test -z "$as_dirs" || eval "mkdir $as_dirs"
13958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13959
13960
13961 } # as_fn_mkdir_p
13962 if mkdir -p . 2>/dev/null; then
13963 as_mkdir_p='mkdir -p "$as_dir"'
13964 else
13965 test -d ./-p && rmdir ./-p
13966 as_mkdir_p=false
13967 fi
13968
13969
13970 # as_fn_executable_p FILE
13971 # -----------------------
13972 # Test if FILE is an executable regular file.
13973 as_fn_executable_p ()
13974 {
13975 test -f "$1" && test -x "$1"
13976 } # as_fn_executable_p
13977 as_test_x='test -x'
13978 as_executable_p=as_fn_executable_p
13979
13980 # Sed expression to map a string onto a valid CPP name.
13981 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13982
13983 # Sed expression to map a string onto a valid variable name.
13984 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13985
13986
13987 exec 6>&1
13988 ## ----------------------------------- ##
13989 ## Main body of $CONFIG_STATUS script. ##
13990 ## ----------------------------------- ##
13991 _ASEOF
13992 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13993
13994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13995 # Save the log message, to keep $0 and so on meaningful, and to
13996 # report actual input values of CONFIG_FILES etc. instead of their
13997 # values after options handling.
13998 ac_log="
13999 This file was extended by dieharder $as_me 3.31.1, which was
14000 generated by GNU Autoconf 2.69. Invocation command line was
14001
14002 CONFIG_FILES = $CONFIG_FILES
14003 CONFIG_HEADERS = $CONFIG_HEADERS
14004 CONFIG_LINKS = $CONFIG_LINKS
14005 CONFIG_COMMANDS = $CONFIG_COMMANDS
14006 $ $0 $@
14007
14008 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14009 "
14010
14011 _ACEOF
14012
14013 case $ac_config_files in *"
14014 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14015 esac
14016
14017 case $ac_config_headers in *"
14018 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14019 esac
14020
14021
14022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14023 # Files that config.status was made for.
14024 config_files="$ac_config_files"
14025 config_headers="$ac_config_headers"
14026 config_commands="$ac_config_commands"
14027
14028 _ACEOF
14029
14030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14031 ac_cs_usage="\
14032 \`$as_me' instantiates files and other configuration actions
14033 from templates according to the current configuration. Unless the files
14034 and actions are specified as TAGs, all are instantiated by default.
14035
14036 Usage: $0 [OPTION]... [TAG]...
14037
14038 -h, --help print this help, then exit
14039 -V, --version print version number and configuration settings, then exit
14040 --config print configuration, then exit
14041 -q, --quiet, --silent
14042 do not print progress messages
14043 -d, --debug don't remove temporary files
14044 --recheck update $as_me by reconfiguring in the same conditions
14045 --file=FILE[:TEMPLATE]
14046 instantiate the configuration file FILE
14047 --header=FILE[:TEMPLATE]
14048 instantiate the configuration header FILE
14049
14050 Configuration files:
14051 $config_files
14052
14053 Configuration headers:
14054 $config_headers
14055
14056 Configuration commands:
14057 $config_commands
14058
14059 Report bugs to the package provider."
14060
14061 _ACEOF
14062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14063 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14064 ac_cs_version="\\
14065 dieharder config.status 3.31.1
14066 configured by $0, generated by GNU Autoconf 2.69,
14067 with options \\"\$ac_cs_config\\"
14068
14069 Copyright (C) 2012 Free Software Foundation, Inc.
14070 This config.status script is free software; the Free Software Foundation
14071 gives unlimited permission to copy, distribute and modify it."
14072
14073 ac_pwd='$ac_pwd'
14074 srcdir='$srcdir'
14075 INSTALL='$INSTALL'
14076 MKDIR_P='$MKDIR_P'
14077 AWK='$AWK'
14078 test -n "\$AWK" || AWK=awk
14079 _ACEOF
14080
14081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14082 # The default lists apply if the user does not specify any file.
14083 ac_need_defaults=:
14084 while test $# != 0
14085 do
14086 case $1 in
14087 --*=?*)
14088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14090 ac_shift=:
14091 ;;
14092 --*=)
14093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14094 ac_optarg=
14095 ac_shift=:
14096 ;;
14097 *)
14098 ac_option=$1
14099 ac_optarg=$2
14100 ac_shift=shift
14101 ;;
14102 esac
14103
14104 case $ac_option in
14105 # Handling of the options.
14106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14107 ac_cs_recheck=: ;;
14108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14109 $as_echo "$ac_cs_version"; exit ;;
14110 --config | --confi | --conf | --con | --co | --c )
14111 $as_echo "$ac_cs_config"; exit ;;
14112 --debug | --debu | --deb | --de | --d | -d )
14113 debug=: ;;
14114 --file | --fil | --fi | --f )
14115 $ac_shift
14116 case $ac_optarg in
14117 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14118 '') as_fn_error $? "missing file argument" ;;
14119 esac
14120 as_fn_append CONFIG_FILES " '$ac_optarg'"
14121 ac_need_defaults=false;;
14122 --header | --heade | --head | --hea )
14123 $ac_shift
14124 case $ac_optarg in
14125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14126 esac
14127 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14128 ac_need_defaults=false;;
14129 --he | --h)
14130 # Conflict between --help and --header
14131 as_fn_error $? "ambiguous option: \`$1'
14132 Try \`$0 --help' for more information.";;
14133 --help | --hel | -h )
14134 $as_echo "$ac_cs_usage"; exit ;;
14135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14136 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14137 ac_cs_silent=: ;;
14138
14139 # This is an error.
14140 -*) as_fn_error $? "unrecognized option: \`$1'
14141 Try \`$0 --help' for more information." ;;
14142
14143 *) as_fn_append ac_config_targets " $1"
14144 ac_need_defaults=false ;;
14145
14146 esac
14147 shift
14148 done
14149
14150 ac_configure_extra_args=
14151
14152 if $ac_cs_silent; then
14153 exec 6>/dev/null
14154 ac_configure_extra_args="$ac_configure_extra_args --silent"
14155 fi
14156
14157 _ACEOF
14158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14159 if \$ac_cs_recheck; then
14160 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14161 shift
14162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14163 CONFIG_SHELL='$SHELL'
14164 export CONFIG_SHELL
14165 exec "\$@"
14166 fi
14167
14168 _ACEOF
14169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14170 exec 5>>config.log
14171 {
14172 echo
14173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14174 ## Running $as_me. ##
14175 _ASBOX
14176 $as_echo "$ac_log"
14177 } >&5
14178
14179 _ACEOF
14180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14181 #
14182 # INIT-COMMANDS
14183 #
14184 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14185
14186
14187 # The HP-UX ksh and POSIX shell print the target directory to stdout
14188 # if CDPATH is set.
14189 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14190
14191 sed_quote_subst='$sed_quote_subst'
14192 double_quote_subst='$double_quote_subst'
14193 delay_variable_subst='$delay_variable_subst'
14194 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14195 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14196 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14197 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14198 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14199 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14200 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14201 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14202 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14203 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14204 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14205 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14206 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14207 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14208 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14209 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14210 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14211 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14212 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14213 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14214 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14215 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14216 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14217 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14218 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14219 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14220 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14221 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14222 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14223 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14224 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14225 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14226 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14227 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14228 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14229 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14230 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14231 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14232 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14233 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14234 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14235 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14236 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14237 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14238 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14239 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14240 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14241 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14242 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14243 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14244 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14245 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14246 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14247 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14248 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14249 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14250 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14251 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14252 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"`'
14253 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14254 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14255 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14256 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14257 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14258 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14259 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14260 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14261 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14262 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14263 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14264 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14265 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14266 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14267 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14268 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14269 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14270 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14271 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14272 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14273 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14274 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14275 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14276 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14277 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14278 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14279 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14280 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14281 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14282 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14283 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14284 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14285 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14286 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14287 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14288 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14289 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14290 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14291 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14292 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14293 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14294 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14295 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14296 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14297 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14298 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14299 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14300 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14301 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14302 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14303 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14304 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14305 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14306 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14307 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14308 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14309 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14310 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14311 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14312 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14313 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14314 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14315 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14316 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14317 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14318 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14319 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14320 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14321 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14322 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14323 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14324 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14325 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14326 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14327 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14328 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14329
14330 LTCC='$LTCC'
14331 LTCFLAGS='$LTCFLAGS'
14332 compiler='$compiler_DEFAULT'
14333
14334 # A function that is used when there is no print builtin or printf.
14335 func_fallback_echo ()
14336 {
14337 eval 'cat <<_LTECHO_EOF
14338 \$1
14339 _LTECHO_EOF'
14340 }
14341
14342 # Quote evaled strings.
14343 for var in SHELL \
14344 ECHO \
14345 PATH_SEPARATOR \
14346 SED \
14347 GREP \
14348 EGREP \
14349 FGREP \
14350 LD \
14351 NM \
14352 LN_S \
14353 lt_SP2NL \
14354 lt_NL2SP \
14355 reload_flag \
14356 OBJDUMP \
14357 deplibs_check_method \
14358 file_magic_cmd \
14359 file_magic_glob \
14360 want_nocaseglob \
14361 DLLTOOL \
14362 sharedlib_from_linklib_cmd \
14363 AR \
14364 AR_FLAGS \
14365 archiver_list_spec \
14366 STRIP \
14367 RANLIB \
14368 CC \
14369 CFLAGS \
14370 compiler \
14371 lt_cv_sys_global_symbol_pipe \
14372 lt_cv_sys_global_symbol_to_cdecl \
14373 lt_cv_sys_global_symbol_to_import \
14374 lt_cv_sys_global_symbol_to_c_name_address \
14375 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14376 lt_cv_nm_interface \
14377 nm_file_list_spec \
14378 lt_cv_truncate_bin \
14379 lt_prog_compiler_no_builtin_flag \
14380 lt_prog_compiler_pic \
14381 lt_prog_compiler_wl \
14382 lt_prog_compiler_static \
14383 lt_cv_prog_compiler_c_o \
14384 need_locks \
14385 MANIFEST_TOOL \
14386 DSYMUTIL \
14387 NMEDIT \
14388 LIPO \
14389 OTOOL \
14390 OTOOL64 \
14391 shrext_cmds \
14392 export_dynamic_flag_spec \
14393 whole_archive_flag_spec \
14394 compiler_needs_object \
14395 with_gnu_ld \
14396 allow_undefined_flag \
14397 no_undefined_flag \
14398 hardcode_libdir_flag_spec \
14399 hardcode_libdir_separator \
14400 exclude_expsyms \
14401 include_expsyms \
14402 file_list_spec \
14403 variables_saved_for_relink \
14404 libname_spec \
14405 library_names_spec \
14406 soname_spec \
14407 install_override_mode \
14408 finish_eval \
14409 old_striplib \
14410 striplib; do
14411 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14412 *[\\\\\\\`\\"\\\$]*)
14413 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14414 ;;
14415 *)
14416 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14417 ;;
14418 esac
14419 done
14420
14421 # Double-quote double-evaled strings.
14422 for var in reload_cmds \
14423 old_postinstall_cmds \
14424 old_postuninstall_cmds \
14425 old_archive_cmds \
14426 extract_expsyms_cmds \
14427 old_archive_from_new_cmds \
14428 old_archive_from_expsyms_cmds \
14429 archive_cmds \
14430 archive_expsym_cmds \
14431 module_cmds \
14432 module_expsym_cmds \
14433 export_symbols_cmds \
14434 prelink_cmds \
14435 postlink_cmds \
14436 postinstall_cmds \
14437 postuninstall_cmds \
14438 finish_cmds \
14439 sys_lib_search_path_spec \
14440 configure_time_dlsearch_path \
14441 configure_time_lt_sys_library_path; do
14442 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14443 *[\\\\\\\`\\"\\\$]*)
14444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14445 ;;
14446 *)
14447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14448 ;;
14449 esac
14450 done
14451
14452 ac_aux_dir='$ac_aux_dir'
14453
14454 # See if we are running on zsh, and set the options that allow our
14455 # commands through without removal of \ escapes INIT.
14456 if test -n "\${ZSH_VERSION+set}"; then
14457 setopt NO_GLOB_SUBST
14458 fi
14459
14460
14461 PACKAGE='$PACKAGE'
14462 VERSION='$VERSION'
14463 RM='$RM'
14464 ofile='$ofile'
14465
14466
14467
14468
14469 _ACEOF
14470
14471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14472
14473 # Handling of arguments.
14474 for ac_config_target in $ac_config_targets
14475 do
14476 case $ac_config_target in
14477 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14478 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14479 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14480 "dieharder_version.h") CONFIG_FILES="$CONFIG_FILES dieharder_version.h" ;;
14481 "dieharder.spec") CONFIG_FILES="$CONFIG_FILES dieharder.spec" ;;
14482 "dieharder.html") CONFIG_FILES="$CONFIG_FILES dieharder.html" ;;
14483 "dieharder-config") CONFIG_FILES="$CONFIG_FILES dieharder-config" ;;
14484 "dieharder/Makefile") CONFIG_FILES="$CONFIG_FILES dieharder/Makefile" ;;
14485 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14486 "libdieharder/Makefile") CONFIG_FILES="$CONFIG_FILES libdieharder/Makefile" ;;
14487 "manual/Makefile") CONFIG_FILES="$CONFIG_FILES manual/Makefile" ;;
14488 "manual/macros.tex") CONFIG_FILES="$CONFIG_FILES manual/macros.tex" ;;
14489 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14490
14491 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14492 esac
14493 done
14494
14495
14496 # If the user did not use the arguments to specify the items to instantiate,
14497 # then the envvar interface is used. Set only those that are not.
14498 # We use the long form for the default assignment because of an extremely
14499 # bizarre bug on SunOS 4.1.3.
14500 if $ac_need_defaults; then
14501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14504 fi
14505
14506 # Have a temporary directory for convenience. Make it in the build tree
14507 # simply because there is no reason against having it here, and in addition,
14508 # creating and moving files from /tmp can sometimes cause problems.
14509 # Hook for its removal unless debugging.
14510 # Note that there is a small window in which the directory will not be cleaned:
14511 # after its creation but before its name has been assigned to `$tmp'.
14512 $debug ||
14513 {
14514 tmp= ac_tmp=
14515 trap 'exit_status=$?
14516 : "${ac_tmp:=$tmp}"
14517 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14518 ' 0
14519 trap 'as_fn_exit 1' 1 2 13 15
14520 }
14521 # Create a (secure) tmp directory for tmp files.
14522
14523 {
14524 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14525 test -d "$tmp"
14526 } ||
14527 {
14528 tmp=./conf$$-$RANDOM
14529 (umask 077 && mkdir "$tmp")
14530 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14531 ac_tmp=$tmp
14532
14533 # Set up the scripts for CONFIG_FILES section.
14534 # No need to generate them if there are no CONFIG_FILES.
14535 # This happens for instance with `./config.status config.h'.
14536 if test -n "$CONFIG_FILES"; then
14537
14538
14539 ac_cr=`echo X | tr X '\015'`
14540 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14541 # But we know of no other shell where ac_cr would be empty at this
14542 # point, so we can use a bashism as a fallback.
14543 if test "x$ac_cr" = x; then
14544 eval ac_cr=\$\'\\r\'
14545 fi
14546 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14547 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14548 ac_cs_awk_cr='\\r'
14549 else
14550 ac_cs_awk_cr=$ac_cr
14551 fi
14552
14553 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14554 _ACEOF
14555
14556
14557 {
14558 echo "cat >conf$$subs.awk <<_ACEOF" &&
14559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14560 echo "_ACEOF"
14561 } >conf$$subs.sh ||
14562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14563 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14564 ac_delim='%!_!# '
14565 for ac_last_try in false false false false false :; do
14566 . ./conf$$subs.sh ||
14567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14568
14569 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14570 if test $ac_delim_n = $ac_delim_num; then
14571 break
14572 elif $ac_last_try; then
14573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14574 else
14575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14576 fi
14577 done
14578 rm -f conf$$subs.sh
14579
14580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14581 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14582 _ACEOF
14583 sed -n '
14584 h
14585 s/^/S["/; s/!.*/"]=/
14586 p
14587 g
14588 s/^[^!]*!//
14589 :repl
14590 t repl
14591 s/'"$ac_delim"'$//
14592 t delim
14593 :nl
14594 h
14595 s/\(.\{148\}\)..*/\1/
14596 t more1
14597 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14598 p
14599 n
14600 b repl
14601 :more1
14602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14603 p
14604 g
14605 s/.\{148\}//
14606 t nl
14607 :delim
14608 h
14609 s/\(.\{148\}\)..*/\1/
14610 t more2
14611 s/["\\]/\\&/g; s/^/"/; s/$/"/
14612 p
14613 b
14614 :more2
14615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14616 p
14617 g
14618 s/.\{148\}//
14619 t delim
14620 ' <conf$$subs.awk | sed '
14621 /^[^""]/{
14622 N
14623 s/\n//
14624 }
14625 ' >>$CONFIG_STATUS || ac_write_fail=1
14626 rm -f conf$$subs.awk
14627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14628 _ACAWK
14629 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14630 for (key in S) S_is_set[key] = 1
14631 FS = ""
14632
14633 }
14634 {
14635 line = $ 0
14636 nfields = split(line, field, "@")
14637 substed = 0
14638 len = length(field[1])
14639 for (i = 2; i < nfields; i++) {
14640 key = field[i]
14641 keylen = length(key)
14642 if (S_is_set[key]) {
14643 value = S[key]
14644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14645 len += length(value) + length(field[++i])
14646 substed = 1
14647 } else
14648 len += 1 + keylen
14649 }
14650
14651 print line
14652 }
14653
14654 _ACAWK
14655 _ACEOF
14656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14657 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14659 else
14660 cat
14661 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14662 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14663 _ACEOF
14664
14665 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14666 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14667 # trailing colons and then remove the whole line if VPATH becomes empty
14668 # (actually we leave an empty line to preserve line numbers).
14669 if test "x$srcdir" = x.; then
14670 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14671 h
14672 s///
14673 s/^/:/
14674 s/[ ]*$/:/
14675 s/:\$(srcdir):/:/g
14676 s/:\${srcdir}:/:/g
14677 s/:@srcdir@:/:/g
14678 s/^:*//
14679 s/:*$//
14680 x
14681 s/\(=[ ]*\).*/\1/
14682 G
14683 s/\n//
14684 s/^[^=]*=[ ]*$//
14685 }'
14686 fi
14687
14688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14689 fi # test -n "$CONFIG_FILES"
14690
14691 # Set up the scripts for CONFIG_HEADERS section.
14692 # No need to generate them if there are no CONFIG_HEADERS.
14693 # This happens for instance with `./config.status Makefile'.
14694 if test -n "$CONFIG_HEADERS"; then
14695 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14696 BEGIN {
14697 _ACEOF
14698
14699 # Transform confdefs.h into an awk script `defines.awk', embedded as
14700 # here-document in config.status, that substitutes the proper values into
14701 # config.h.in to produce config.h.
14702
14703 # Create a delimiter string that does not exist in confdefs.h, to ease
14704 # handling of long lines.
14705 ac_delim='%!_!# '
14706 for ac_last_try in false false :; do
14707 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14708 if test -z "$ac_tt"; then
14709 break
14710 elif $ac_last_try; then
14711 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14712 else
14713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14714 fi
14715 done
14716
14717 # For the awk script, D is an array of macro values keyed by name,
14718 # likewise P contains macro parameters if any. Preserve backslash
14719 # newline sequences.
14720
14721 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14722 sed -n '
14723 s/.\{148\}/&'"$ac_delim"'/g
14724 t rset
14725 :rset
14726 s/^[ ]*#[ ]*define[ ][ ]*/ /
14727 t def
14728 d
14729 :def
14730 s/\\$//
14731 t bsnl
14732 s/["\\]/\\&/g
14733 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14734 D["\1"]=" \3"/p
14735 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14736 d
14737 :bsnl
14738 s/["\\]/\\&/g
14739 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14740 D["\1"]=" \3\\\\\\n"\\/p
14741 t cont
14742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14743 t cont
14744 d
14745 :cont
14746 n
14747 s/.\{148\}/&'"$ac_delim"'/g
14748 t clear
14749 :clear
14750 s/\\$//
14751 t bsnlc
14752 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14753 d
14754 :bsnlc
14755 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14756 b cont
14757 ' <confdefs.h | sed '
14758 s/'"$ac_delim"'/"\\\
14759 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14760
14761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14762 for (key in D) D_is_set[key] = 1
14763 FS = ""
14764 }
14765 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14766 line = \$ 0
14767 split(line, arg, " ")
14768 if (arg[1] == "#") {
14769 defundef = arg[2]
14770 mac1 = arg[3]
14771 } else {
14772 defundef = substr(arg[1], 2)
14773 mac1 = arg[2]
14774 }
14775 split(mac1, mac2, "(") #)
14776 macro = mac2[1]
14777 prefix = substr(line, 1, index(line, defundef) - 1)
14778 if (D_is_set[macro]) {
14779 # Preserve the white space surrounding the "#".
14780 print prefix "define", macro P[macro] D[macro]
14781 next
14782 } else {
14783 # Replace #undef with comments. This is necessary, for example,
14784 # in the case of _POSIX_SOURCE, which is predefined and required
14785 # on some systems where configure will not decide to define it.
14786 if (defundef == "undef") {
14787 print "/*", prefix defundef, macro, "*/"
14788 next
14789 }
14790 }
14791 }
14792 { print }
14793 _ACAWK
14794 _ACEOF
14795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14796 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14797 fi # test -n "$CONFIG_HEADERS"
14798
14799
14800 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14801 shift
14802 for ac_tag
14803 do
14804 case $ac_tag in
14805 :[FHLC]) ac_mode=$ac_tag; continue;;
14806 esac
14807 case $ac_mode$ac_tag in
14808 :[FHL]*:*);;
14809 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14810 :[FH]-) ac_tag=-:-;;
14811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14812 esac
14813 ac_save_IFS=$IFS
14814 IFS=:
14815 set x $ac_tag
14816 IFS=$ac_save_IFS
14817 shift
14818 ac_file=$1
14819 shift
14820
14821 case $ac_mode in
14822 :L) ac_source=$1;;
14823 :[FH])
14824 ac_file_inputs=
14825 for ac_f
14826 do
14827 case $ac_f in
14828 -) ac_f="$ac_tmp/stdin";;
14829 *) # Look for the file first in the build tree, then in the source tree
14830 # (if the path is not absolute). The absolute path cannot be DOS-style,
14831 # because $ac_f cannot contain `:'.
14832 test -f "$ac_f" ||
14833 case $ac_f in
14834 [\\/$]*) false;;
14835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14836 esac ||
14837 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14838 esac
14839 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14840 as_fn_append ac_file_inputs " '$ac_f'"
14841 done
14842
14843 # Let's still pretend it is `configure' which instantiates (i.e., don't
14844 # use $as_me), people would be surprised to read:
14845 # /* config.h. Generated by config.status. */
14846 configure_input='Generated from '`
14847 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14848 `' by configure.'
14849 if test x"$ac_file" != x-; then
14850 configure_input="$ac_file. $configure_input"
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14852 $as_echo "$as_me: creating $ac_file" >&6;}
14853 fi
14854 # Neutralize special characters interpreted by sed in replacement strings.
14855 case $configure_input in #(
14856 *\&* | *\|* | *\\* )
14857 ac_sed_conf_input=`$as_echo "$configure_input" |
14858 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14859 *) ac_sed_conf_input=$configure_input;;
14860 esac
14861
14862 case $ac_tag in
14863 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14865 esac
14866 ;;
14867 esac
14868
14869 ac_dir=`$as_dirname -- "$ac_file" ||
14870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14871 X"$ac_file" : 'X\(//\)[^/]' \| \
14872 X"$ac_file" : 'X\(//\)$' \| \
14873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14874 $as_echo X"$ac_file" |
14875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14876 s//\1/
14877 q
14878 }
14879 /^X\(\/\/\)[^/].*/{
14880 s//\1/
14881 q
14882 }
14883 /^X\(\/\/\)$/{
14884 s//\1/
14885 q
14886 }
14887 /^X\(\/\).*/{
14888 s//\1/
14889 q
14890 }
14891 s/.*/./; q'`
14892 as_dir="$ac_dir"; as_fn_mkdir_p
14893 ac_builddir=.
14894
14895 case "$ac_dir" in
14896 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14897 *)
14898 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14899 # A ".." for each directory in $ac_dir_suffix.
14900 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14901 case $ac_top_builddir_sub in
14902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14904 esac ;;
14905 esac
14906 ac_abs_top_builddir=$ac_pwd
14907 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14908 # for backward compatibility:
14909 ac_top_builddir=$ac_top_build_prefix
14910
14911 case $srcdir in
14912 .) # We are building in place.
14913 ac_srcdir=.
14914 ac_top_srcdir=$ac_top_builddir_sub
14915 ac_abs_top_srcdir=$ac_pwd ;;
14916 [\\/]* | ?:[\\/]* ) # Absolute name.
14917 ac_srcdir=$srcdir$ac_dir_suffix;
14918 ac_top_srcdir=$srcdir
14919 ac_abs_top_srcdir=$srcdir ;;
14920 *) # Relative name.
14921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14922 ac_top_srcdir=$ac_top_build_prefix$srcdir
14923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14924 esac
14925 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14926
14927
14928 case $ac_mode in
14929 :F)
14930 #
14931 # CONFIG_FILE
14932 #
14933
14934 case $INSTALL in
14935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14936 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14937 esac
14938 ac_MKDIR_P=$MKDIR_P
14939 case $MKDIR_P in
14940 [\\/$]* | ?:[\\/]* ) ;;
14941 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14942 esac
14943 _ACEOF
14944
14945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14946 # If the template does not know about datarootdir, expand it.
14947 # FIXME: This hack should be removed a few years after 2.60.
14948 ac_datarootdir_hack=; ac_datarootdir_seen=
14949 ac_sed_dataroot='
14950 /datarootdir/ {
14951 p
14952 q
14953 }
14954 /@datadir@/p
14955 /@docdir@/p
14956 /@infodir@/p
14957 /@localedir@/p
14958 /@mandir@/p'
14959 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14960 *datarootdir*) ac_datarootdir_seen=yes;;
14961 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14963 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14964 _ACEOF
14965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14966 ac_datarootdir_hack='
14967 s&@datadir@&$datadir&g
14968 s&@docdir@&$docdir&g
14969 s&@infodir@&$infodir&g
14970 s&@localedir@&$localedir&g
14971 s&@mandir@&$mandir&g
14972 s&\\\${datarootdir}&$datarootdir&g' ;;
14973 esac
14974 _ACEOF
14975
14976 # Neutralize VPATH when `$srcdir' = `.'.
14977 # Shell code in configure.ac might set extrasub.
14978 # FIXME: do we really want to maintain this feature?
14979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14980 ac_sed_extra="$ac_vpsub
14981 $extrasub
14982 _ACEOF
14983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14984 :t
14985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14986 s|@configure_input@|$ac_sed_conf_input|;t t
14987 s&@top_builddir@&$ac_top_builddir_sub&;t t
14988 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14989 s&@srcdir@&$ac_srcdir&;t t
14990 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14991 s&@top_srcdir@&$ac_top_srcdir&;t t
14992 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14993 s&@builddir@&$ac_builddir&;t t
14994 s&@abs_builddir@&$ac_abs_builddir&;t t
14995 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14996 s&@INSTALL@&$ac_INSTALL&;t t
14997 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14998 $ac_datarootdir_hack
14999 "
15000 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15001 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15002
15003 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15004 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15005 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15006 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15008 which seems to be undefined. Please make sure it is defined" >&5
15009 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15010 which seems to be undefined. Please make sure it is defined" >&2;}
15011
15012 rm -f "$ac_tmp/stdin"
15013 case $ac_file in
15014 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15015 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15016 esac \
15017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15018 ;;
15019 :H)
15020 #
15021 # CONFIG_HEADER
15022 #
15023 if test x"$ac_file" != x-; then
15024 {
15025 $as_echo "/* $configure_input */" \
15026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15027 } >"$ac_tmp/config.h" \
15028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15029 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15031 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15032 else
15033 rm -f "$ac_file"
15034 mv "$ac_tmp/config.h" "$ac_file" \
15035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15036 fi
15037 else
15038 $as_echo "/* $configure_input */" \
15039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15040 || as_fn_error $? "could not create -" "$LINENO" 5
15041 fi
15042 # Compute "$ac_file"'s index in $config_headers.
15043 _am_arg="$ac_file"
15044 _am_stamp_count=1
15045 for _am_header in $config_headers :; do
15046 case $_am_header in
15047 $_am_arg | $_am_arg:* )
15048 break ;;
15049 * )
15050 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15051 esac
15052 done
15053 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15054 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15055 X"$_am_arg" : 'X\(//\)[^/]' \| \
15056 X"$_am_arg" : 'X\(//\)$' \| \
15057 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15058 $as_echo X"$_am_arg" |
15059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15060 s//\1/
15061 q
15062 }
15063 /^X\(\/\/\)[^/].*/{
15064 s//\1/
15065 q
15066 }
15067 /^X\(\/\/\)$/{
15068 s//\1/
15069 q
15070 }
15071 /^X\(\/\).*/{
15072 s//\1/
15073 q
15074 }
15075 s/.*/./; q'`/stamp-h$_am_stamp_count
15076 ;;
15077
15078 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15079 $as_echo "$as_me: executing $ac_file commands" >&6;}
15080 ;;
15081 esac
15082
15083
15084 case $ac_file$ac_mode in
15085 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15086 # Older Autoconf quotes --file arguments for eval, but not when files
15087 # are listed without --file. Let's play safe and only enable the eval
15088 # if we detect the quoting.
15089 # TODO: see whether this extra hack can be removed once we start
15090 # requiring Autoconf 2.70 or later.
15091 case $CONFIG_FILES in #(
15092 *\'*) :
15093 eval set x "$CONFIG_FILES" ;; #(
15094 *) :
15095 set x $CONFIG_FILES ;; #(
15096 *) :
15097 ;;
15098 esac
15099 shift
15100 # Used to flag and report bootstrapping failures.
15101 am_rc=0
15102 for am_mf
15103 do
15104 # Strip MF so we end up with the name of the file.
15105 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15106 # Check whether this is an Automake generated Makefile which includes
15107 # dependency-tracking related rules and includes.
15108 # Grep'ing the whole file directly is not great: AIX grep has a line
15109 # limit of 2048, but all sed's we know have understand at least 4000.
15110 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15111 || continue
15112 am_dirpart=`$as_dirname -- "$am_mf" ||
15113 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15114 X"$am_mf" : 'X\(//\)[^/]' \| \
15115 X"$am_mf" : 'X\(//\)$' \| \
15116 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15117 $as_echo X"$am_mf" |
15118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15119 s//\1/
15120 q
15121 }
15122 /^X\(\/\/\)[^/].*/{
15123 s//\1/
15124 q
15125 }
15126 /^X\(\/\/\)$/{
15127 s//\1/
15128 q
15129 }
15130 /^X\(\/\).*/{
15131 s//\1/
15132 q
15133 }
15134 s/.*/./; q'`
15135 am_filepart=`$as_basename -- "$am_mf" ||
15136 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15137 X"$am_mf" : 'X\(//\)$' \| \
15138 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15139 $as_echo X/"$am_mf" |
15140 sed '/^.*\/\([^/][^/]*\)\/*$/{
15141 s//\1/
15142 q
15143 }
15144 /^X\/\(\/\/\)$/{
15145 s//\1/
15146 q
15147 }
15148 /^X\/\(\/\).*/{
15149 s//\1/
15150 q
15151 }
15152 s/.*/./; q'`
15153 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15154 && sed -e '/# am--include-marker/d' "$am_filepart" \
15155 | $MAKE -f - am--depfiles" >&5
15156 (cd "$am_dirpart" \
15157 && sed -e '/# am--include-marker/d' "$am_filepart" \
15158 | $MAKE -f - am--depfiles) >&5 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } || am_rc=$?
15162 done
15163 if test $am_rc -ne 0; then
15164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15166 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15167 for automatic dependency tracking. Try re-running configure with the
15168 '--disable-dependency-tracking' option to at least be able to build
15169 the package (albeit without support for automatic dependency tracking).
15170 See \`config.log' for more details" "$LINENO" 5; }
15171 fi
15172 { am_dirpart=; unset am_dirpart;}
15173 { am_filepart=; unset am_filepart;}
15174 { am_mf=; unset am_mf;}
15175 { am_rc=; unset am_rc;}
15176 rm -f conftest-deps.mk
15177 }
15178 ;;
15179 "libtool":C)
15180
15181 # See if we are running on zsh, and set the options that allow our
15182 # commands through without removal of \ escapes.
15183 if test -n "${ZSH_VERSION+set}"; then
15184 setopt NO_GLOB_SUBST
15185 fi
15186
15187 cfgfile=${ofile}T
15188 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15189 $RM "$cfgfile"
15190
15191 cat <<_LT_EOF >> "$cfgfile"
15192 #! $SHELL
15193 # Generated automatically by $as_me ($PACKAGE) $VERSION
15194 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15195
15196 # Provide generalized library-building support services.
15197 # Written by Gordon Matzigkeit, 1996
15198
15199 # Copyright (C) 2014 Free Software Foundation, Inc.
15200 # This is free software; see the source for copying conditions. There is NO
15201 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15202
15203 # GNU Libtool is free software; you can redistribute it and/or modify
15204 # it under the terms of the GNU General Public License as published by
15205 # the Free Software Foundation; either version 2 of of the License, or
15206 # (at your option) any later version.
15207 #
15208 # As a special exception to the GNU General Public License, if you
15209 # distribute this file as part of a program or library that is built
15210 # using GNU Libtool, you may include this file under the same
15211 # distribution terms that you use for the rest of that program.
15212 #
15213 # GNU Libtool is distributed in the hope that it will be useful, but
15214 # WITHOUT ANY WARRANTY; without even the implied warranty of
15215 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15216 # GNU General Public License for more details.
15217 #
15218 # You should have received a copy of the GNU General Public License
15219 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15220
15221
15222 # The names of the tagged configurations supported by this script.
15223 available_tags=''
15224
15225 # Configured defaults for sys_lib_dlsearch_path munging.
15226 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15227
15228 # ### BEGIN LIBTOOL CONFIG
15229
15230 # Which release of libtool.m4 was used?
15231 macro_version=$macro_version
15232 macro_revision=$macro_revision
15233
15234 # Whether or not to build shared libraries.
15235 build_libtool_libs=$enable_shared
15236
15237 # Whether or not to build static libraries.
15238 build_old_libs=$enable_static
15239
15240 # What type of objects to build.
15241 pic_mode=$pic_mode
15242
15243 # Whether or not to optimize for fast installation.
15244 fast_install=$enable_fast_install
15245
15246 # Shared archive member basename,for filename based shared library versioning on AIX.
15247 shared_archive_member_spec=$shared_archive_member_spec
15248
15249 # Shell to use when invoking shell scripts.
15250 SHELL=$lt_SHELL
15251
15252 # An echo program that protects backslashes.
15253 ECHO=$lt_ECHO
15254
15255 # The PATH separator for the build system.
15256 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15257
15258 # The host system.
15259 host_alias=$host_alias
15260 host=$host
15261 host_os=$host_os
15262
15263 # The build system.
15264 build_alias=$build_alias
15265 build=$build
15266 build_os=$build_os
15267
15268 # A sed program that does not truncate output.
15269 SED=$lt_SED
15270
15271 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15272 Xsed="\$SED -e 1s/^X//"
15273
15274 # A grep program that handles long lines.
15275 GREP=$lt_GREP
15276
15277 # An ERE matcher.
15278 EGREP=$lt_EGREP
15279
15280 # A literal string matcher.
15281 FGREP=$lt_FGREP
15282
15283 # A BSD- or MS-compatible name lister.
15284 NM=$lt_NM
15285
15286 # Whether we need soft or hard links.
15287 LN_S=$lt_LN_S
15288
15289 # What is the maximum length of a command?
15290 max_cmd_len=$max_cmd_len
15291
15292 # Object file suffix (normally "o").
15293 objext=$ac_objext
15294
15295 # Executable file suffix (normally "").
15296 exeext=$exeext
15297
15298 # whether the shell understands "unset".
15299 lt_unset=$lt_unset
15300
15301 # turn spaces into newlines.
15302 SP2NL=$lt_lt_SP2NL
15303
15304 # turn newlines into spaces.
15305 NL2SP=$lt_lt_NL2SP
15306
15307 # convert \$build file names to \$host format.
15308 to_host_file_cmd=$lt_cv_to_host_file_cmd
15309
15310 # convert \$build files to toolchain format.
15311 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15312
15313 # An object symbol dumper.
15314 OBJDUMP=$lt_OBJDUMP
15315
15316 # Method to check whether dependent libraries are shared objects.
15317 deplibs_check_method=$lt_deplibs_check_method
15318
15319 # Command to use when deplibs_check_method = "file_magic".
15320 file_magic_cmd=$lt_file_magic_cmd
15321
15322 # How to find potential files when deplibs_check_method = "file_magic".
15323 file_magic_glob=$lt_file_magic_glob
15324
15325 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15326 want_nocaseglob=$lt_want_nocaseglob
15327
15328 # DLL creation program.
15329 DLLTOOL=$lt_DLLTOOL
15330
15331 # Command to associate shared and link libraries.
15332 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15333
15334 # The archiver.
15335 AR=$lt_AR
15336
15337 # Flags to create an archive.
15338 AR_FLAGS=$lt_AR_FLAGS
15339
15340 # How to feed a file listing to the archiver.
15341 archiver_list_spec=$lt_archiver_list_spec
15342
15343 # A symbol stripping program.
15344 STRIP=$lt_STRIP
15345
15346 # Commands used to install an old-style archive.
15347 RANLIB=$lt_RANLIB
15348 old_postinstall_cmds=$lt_old_postinstall_cmds
15349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15350
15351 # Whether to use a lock for old archive extraction.
15352 lock_old_archive_extraction=$lock_old_archive_extraction
15353
15354 # A C compiler.
15355 LTCC=$lt_CC
15356
15357 # LTCC compiler flags.
15358 LTCFLAGS=$lt_CFLAGS
15359
15360 # Take the output of nm and produce a listing of raw symbols and C names.
15361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15362
15363 # Transform the output of nm in a proper C declaration.
15364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15365
15366 # Transform the output of nm into a list of symbols to manually relocate.
15367 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15368
15369 # Transform the output of nm in a C name address pair.
15370 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15371
15372 # Transform the output of nm in a C name address pair when lib prefix is needed.
15373 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15374
15375 # The name lister interface.
15376 nm_interface=$lt_lt_cv_nm_interface
15377
15378 # Specify filename containing input files for \$NM.
15379 nm_file_list_spec=$lt_nm_file_list_spec
15380
15381 # The root where to search for dependent libraries,and where our libraries should be installed.
15382 lt_sysroot=$lt_sysroot
15383
15384 # Command to truncate a binary pipe.
15385 lt_truncate_bin=$lt_lt_cv_truncate_bin
15386
15387 # The name of the directory that contains temporary libtool files.
15388 objdir=$objdir
15389
15390 # Used to examine libraries when file_magic_cmd begins with "file".
15391 MAGIC_CMD=$MAGIC_CMD
15392
15393 # Must we lock files when doing compilation?
15394 need_locks=$lt_need_locks
15395
15396 # Manifest tool.
15397 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15398
15399 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15400 DSYMUTIL=$lt_DSYMUTIL
15401
15402 # Tool to change global to local symbols on Mac OS X.
15403 NMEDIT=$lt_NMEDIT
15404
15405 # Tool to manipulate fat objects and archives on Mac OS X.
15406 LIPO=$lt_LIPO
15407
15408 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15409 OTOOL=$lt_OTOOL
15410
15411 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15412 OTOOL64=$lt_OTOOL64
15413
15414 # Old archive suffix (normally "a").
15415 libext=$libext
15416
15417 # Shared library suffix (normally ".so").
15418 shrext_cmds=$lt_shrext_cmds
15419
15420 # The commands to extract the exported symbol list from a shared archive.
15421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15422
15423 # Variables whose values should be saved in libtool wrapper scripts and
15424 # restored at link time.
15425 variables_saved_for_relink=$lt_variables_saved_for_relink
15426
15427 # Do we need the "lib" prefix for modules?
15428 need_lib_prefix=$need_lib_prefix
15429
15430 # Do we need a version for libraries?
15431 need_version=$need_version
15432
15433 # Library versioning type.
15434 version_type=$version_type
15435
15436 # Shared library runtime path variable.
15437 runpath_var=$runpath_var
15438
15439 # Shared library path variable.
15440 shlibpath_var=$shlibpath_var
15441
15442 # Is shlibpath searched before the hard-coded library search path?
15443 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15444
15445 # Format of library name prefix.
15446 libname_spec=$lt_libname_spec
15447
15448 # List of archive names. First name is the real one, the rest are links.
15449 # The last name is the one that the linker finds with -lNAME
15450 library_names_spec=$lt_library_names_spec
15451
15452 # The coded name of the library, if different from the real name.
15453 soname_spec=$lt_soname_spec
15454
15455 # Permission mode override for installation of shared libraries.
15456 install_override_mode=$lt_install_override_mode
15457
15458 # Command to use after installation of a shared archive.
15459 postinstall_cmds=$lt_postinstall_cmds
15460
15461 # Command to use after uninstallation of a shared archive.
15462 postuninstall_cmds=$lt_postuninstall_cmds
15463
15464 # Commands used to finish a libtool library installation in a directory.
15465 finish_cmds=$lt_finish_cmds
15466
15467 # As "finish_cmds", except a single script fragment to be evaled but
15468 # not shown.
15469 finish_eval=$lt_finish_eval
15470
15471 # Whether we should hardcode library paths into libraries.
15472 hardcode_into_libs=$hardcode_into_libs
15473
15474 # Compile-time system search path for libraries.
15475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15476
15477 # Detected run-time system search path for libraries.
15478 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15479
15480 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15481 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15482
15483 # Whether dlopen is supported.
15484 dlopen_support=$enable_dlopen
15485
15486 # Whether dlopen of programs is supported.
15487 dlopen_self=$enable_dlopen_self
15488
15489 # Whether dlopen of statically linked programs is supported.
15490 dlopen_self_static=$enable_dlopen_self_static
15491
15492 # Commands to strip libraries.
15493 old_striplib=$lt_old_striplib
15494 striplib=$lt_striplib
15495
15496
15497 # The linker used to build libraries.
15498 LD=$lt_LD
15499
15500 # How to create reloadable object files.
15501 reload_flag=$lt_reload_flag
15502 reload_cmds=$lt_reload_cmds
15503
15504 # Commands used to build an old-style archive.
15505 old_archive_cmds=$lt_old_archive_cmds
15506
15507 # A language specific compiler.
15508 CC=$lt_compiler
15509
15510 # Is the compiler the GNU compiler?
15511 with_gcc=$GCC
15512
15513 # Compiler flag to turn off builtin functions.
15514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15515
15516 # Additional compiler flags for building library objects.
15517 pic_flag=$lt_lt_prog_compiler_pic
15518
15519 # How to pass a linker flag through the compiler.
15520 wl=$lt_lt_prog_compiler_wl
15521
15522 # Compiler flag to prevent dynamic linking.
15523 link_static_flag=$lt_lt_prog_compiler_static
15524
15525 # Does compiler simultaneously support -c and -o options?
15526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15527
15528 # Whether or not to add -lc for building shared libraries.
15529 build_libtool_need_lc=$archive_cmds_need_lc
15530
15531 # Whether or not to disallow shared libs when runtime libs are static.
15532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15533
15534 # Compiler flag to allow reflexive dlopens.
15535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15536
15537 # Compiler flag to generate shared objects directly from archives.
15538 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15539
15540 # Whether the compiler copes with passing no objects directly.
15541 compiler_needs_object=$lt_compiler_needs_object
15542
15543 # Create an old-style archive from a shared archive.
15544 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15545
15546 # Create a temporary old-style archive to link instead of a shared archive.
15547 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15548
15549 # Commands used to build a shared archive.
15550 archive_cmds=$lt_archive_cmds
15551 archive_expsym_cmds=$lt_archive_expsym_cmds
15552
15553 # Commands used to build a loadable module if different from building
15554 # a shared archive.
15555 module_cmds=$lt_module_cmds
15556 module_expsym_cmds=$lt_module_expsym_cmds
15557
15558 # Whether we are building with GNU ld or not.
15559 with_gnu_ld=$lt_with_gnu_ld
15560
15561 # Flag that allows shared libraries with undefined symbols to be built.
15562 allow_undefined_flag=$lt_allow_undefined_flag
15563
15564 # Flag that enforces no undefined symbols.
15565 no_undefined_flag=$lt_no_undefined_flag
15566
15567 # Flag to hardcode \$libdir into a binary during linking.
15568 # This must work even if \$libdir does not exist
15569 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15570
15571 # Whether we need a single "-rpath" flag with a separated argument.
15572 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15573
15574 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15575 # DIR into the resulting binary.
15576 hardcode_direct=$hardcode_direct
15577
15578 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15579 # DIR into the resulting binary and the resulting library dependency is
15580 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15581 # library is relocated.
15582 hardcode_direct_absolute=$hardcode_direct_absolute
15583
15584 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15585 # into the resulting binary.
15586 hardcode_minus_L=$hardcode_minus_L
15587
15588 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15589 # into the resulting binary.
15590 hardcode_shlibpath_var=$hardcode_shlibpath_var
15591
15592 # Set to "yes" if building a shared library automatically hardcodes DIR
15593 # into the library and all subsequent libraries and executables linked
15594 # against it.
15595 hardcode_automatic=$hardcode_automatic
15596
15597 # Set to yes if linker adds runtime paths of dependent libraries
15598 # to runtime path list.
15599 inherit_rpath=$inherit_rpath
15600
15601 # Whether libtool must link a program against all its dependency libraries.
15602 link_all_deplibs=$link_all_deplibs
15603
15604 # Set to "yes" if exported symbols are required.
15605 always_export_symbols=$always_export_symbols
15606
15607 # The commands to list exported symbols.
15608 export_symbols_cmds=$lt_export_symbols_cmds
15609
15610 # Symbols that should not be listed in the preloaded symbols.
15611 exclude_expsyms=$lt_exclude_expsyms
15612
15613 # Symbols that must always be exported.
15614 include_expsyms=$lt_include_expsyms
15615
15616 # Commands necessary for linking programs (against libraries) with templates.
15617 prelink_cmds=$lt_prelink_cmds
15618
15619 # Commands necessary for finishing linking programs.
15620 postlink_cmds=$lt_postlink_cmds
15621
15622 # Specify filename containing input files.
15623 file_list_spec=$lt_file_list_spec
15624
15625 # How to hardcode a shared library path into an executable.
15626 hardcode_action=$hardcode_action
15627
15628 # ### END LIBTOOL CONFIG
15629
15630 _LT_EOF
15631
15632 cat <<'_LT_EOF' >> "$cfgfile"
15633
15634 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15635
15636 # func_munge_path_list VARIABLE PATH
15637 # -----------------------------------
15638 # VARIABLE is name of variable containing _space_ separated list of
15639 # directories to be munged by the contents of PATH, which is string
15640 # having a format:
15641 # "DIR[:DIR]:"
15642 # string "DIR[ DIR]" will be prepended to VARIABLE
15643 # ":DIR[:DIR]"
15644 # string "DIR[ DIR]" will be appended to VARIABLE
15645 # "DIRP[:DIRP]::[DIRA:]DIRA"
15646 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15647 # "DIRA[ DIRA]" will be appended to VARIABLE
15648 # "DIR[:DIR]"
15649 # VARIABLE will be replaced by "DIR[ DIR]"
15650 func_munge_path_list ()
15651 {
15652 case x$2 in
15653 x)
15654 ;;
15655 *:)
15656 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15657 ;;
15658 x:*)
15659 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15660 ;;
15661 *::*)
15662 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15663 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15664 ;;
15665 *)
15666 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15667 ;;
15668 esac
15669 }
15670
15671
15672 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15673 func_cc_basename ()
15674 {
15675 for cc_temp in $*""; do
15676 case $cc_temp in
15677 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15678 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15679 \-*) ;;
15680 *) break;;
15681 esac
15682 done
15683 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15684 }
15685
15686
15687 # ### END FUNCTIONS SHARED WITH CONFIGURE
15688
15689 _LT_EOF
15690
15691 case $host_os in
15692 aix3*)
15693 cat <<\_LT_EOF >> "$cfgfile"
15694 # AIX sometimes has problems with the GCC collect2 program. For some
15695 # reason, if we set the COLLECT_NAMES environment variable, the problems
15696 # vanish in a puff of smoke.
15697 if test set != "${COLLECT_NAMES+set}"; then
15698 COLLECT_NAMES=
15699 export COLLECT_NAMES
15700 fi
15701 _LT_EOF
15702 ;;
15703 esac
15704
15705
15706 ltmain=$ac_aux_dir/ltmain.sh
15707
15708
15709 # We use sed instead of cat because bash on DJGPP gets confused if
15710 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15711 # text mode, it properly converts lines to CR/LF. This bash problem
15712 # is reportedly fixed, but why not run on old versions too?
15713 sed '$q' "$ltmain" >> "$cfgfile" \
15714 || (rm -f "$cfgfile"; exit 1)
15715
15716 mv -f "$cfgfile" "$ofile" ||
15717 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15718 chmod +x "$ofile"
15719
15720 ;;
15721
15722 esac
15723 done # for ac_tag
15724
15725
15726 as_fn_exit 0
15727 _ACEOF
15728 ac_clean_files=$ac_clean_files_save
15729
15730 test $ac_write_fail = 0 ||
15731 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15732
15733
15734 # configure is writing to config.log, and then calls config.status.
15735 # config.status does its own redirection, appending to config.log.
15736 # Unfortunately, on DOS this fails, as config.log is still kept open
15737 # by configure, so config.status won't be able to write to it; its
15738 # output is simply discarded. So we exec the FD to /dev/null,
15739 # effectively closing config.log, so it can be properly (re)opened and
15740 # appended to by config.status. When coming back to configure, we
15741 # need to make the FD available again.
15742 if test "$no_create" != yes; then
15743 ac_cs_success=:
15744 ac_config_status_args=
15745 test "$silent" = yes &&
15746 ac_config_status_args="$ac_config_status_args --quiet"
15747 exec 5>/dev/null
15748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15749 exec 5>>config.log
15750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15751 # would make configure fail if this is the last instruction.
15752 $ac_cs_success || as_fn_exit 1
15753 fi
15754 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15756 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15757 fi
15758