Debian Codegraph @

src/mpl/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for MPL 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [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='MPL'
589 PACKAGE_TARNAME='mpl'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='MPL 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/str/mpl_str.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 SUMMARY_MESSAGE
637 NO_OPT_CFLAGS
638 MPL_CFLAGS
639 MPL_HAVE_HIP_FALSE
640 MPL_HAVE_HIP_TRUE
641 MPL_HAVE_ZE_FALSE
642 MPL_HAVE_ZE_TRUE
643 MPL_HAVE_CUDA_FALSE
644 MPL_HAVE_CUDA_TRUE
645 NVCC
646 GPU_SUPPORT
647 libmpl_so_versionflags
648 COMPILER_TLS
649 MPL_TIMER_TYPE
650 MPL_TIMER_KIND
651 MPL_BUILD_AVX512F_FALSE
652 MPL_BUILD_AVX512F_TRUE
653 MPL_BUILD_AVX_FALSE
654 MPL_BUILD_AVX_TRUE
655 MPL_BUILD_FOR_X86_FALSE
656 MPL_BUILD_FOR_X86_TRUE
657 BUILD_COVERAGE_FALSE
658 BUILD_COVERAGE_TRUE
659 GCOV
660 MPL_EMBEDDED_MODE_FALSE
661 MPL_EMBEDDED_MODE_TRUE
662 RPATHS
663 libmpl_so_version
664 MPLLIBNAME
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 DLLTOOL
674 OBJDUMP
675 LN_S
676 NM
677 ac_ct_DUMPBIN
678 DUMPBIN
679 LD
680 SED
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 LIBTOOL
690 ac_ct_AR
691 AR
692 FGREP
693 EGREP
694 GREP
695 CPP
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 CSCOPE
717 ETAGS
718 CTAGS
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL
780 am__quote'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_silent_rules
785 enable_dependency_tracking
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_aix_soname
791 with_gnu_ld
792 with_sysroot
793 enable_libtool_lock
794 enable_embedded
795 enable_g
796 enable_coverage
797 enable_fast
798 with_valgrind
799 enable_timer_type
800 enable_yield
801 with_thread_package
802 with_posix_mutex
803 with_uti
804 with_uti_include
805 with_uti_lib
806 with_argobots
807 with_argobots_include
808 with_argobots_lib
809 with_qthreads
810 with_qthreads_include
811 with_qthreads_lib
812 with_proc_mutex_package
813 with_mpl_atomic_primitives
814 with_shared_memory
815 enable_versioning
816 with_cuda
817 with_cuda_include
818 with_cuda_lib
819 with_ze
820 with_ze_include
821 with_ze_lib
822 with_hip
823 with_hip_include
824 with_hip_lib
825 with_cacheline
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CPP
836 LT_SYS_LIBRARY_PATH
837 MPLLIBNAME
838 GCOV
839 NVCC'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 # Accept the important Cygnus configure options, so we can diagnose typos.
908
909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
912
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
917
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
932
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
937
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
970
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1006
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1011
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1041
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1058
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1079
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1115
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1135
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1146
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1151
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1156
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1163
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1168
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1171
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1174
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1190
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1206
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1210
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1217
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1224
1225 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1227 ;;
1228
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1238
1239 *)
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245 ;;
1246
1247 esac
1248 done
1249
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $? "missing argument to $ac_option"
1253 fi
1254
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1261 fi
1262
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1268 do
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1283
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1290
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1297 fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\).*/{
1337 s//\1/
1338 q
1339 }
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1344 fi
1345 else
1346 ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1372
1373 #
1374 # Report the --help message.
1375 #
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1379 cat <<_ACEOF
1380 \`configure' configures MPL 0.1 to adapt to many kinds of systems.
1381
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1386
1387 Defaults for the options are specified in brackets.
1388
1389 Configuration:
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 [PREFIX]
1405
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1410
1411 For better control, use the options below.
1412
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/mpl]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1433 _ACEOF
1434
1435 cat <<\_ACEOF
1436
1437 Program names:
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of MPL 0.1:";;
1451 esac
1452 cat <<\_ACEOF
1453
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-dependency-tracking
1461 do not reject slow dependency extractors
1462 --disable-dependency-tracking
1463 speeds up one-time build
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --enable-embedded Build MPL in embedded mode (default is no)
1470 --enable-g=option Control the level of debugging support in MPL.
1471 "option" is a list of comma separated names. Default
1472 is "all". none|no - No debugging log - Enable debug
1473 event logging mem - Enable memory tracing
1474 most|yes|all - All of the above choices (except
1475 "none", obviously)
1476 --enable-coverage Turn on coverage analysis using gcc and gcov
1477 --enable-fast=option - Control the level of fast execution supported by MPL.
1478 alwaysinline - Force compiler to always inline functions with MPL_STATIC_INLINE_PREFIX|SUFFIX
1479 avx - Add -mavx2 in CFLAGS
1480 avx512f - Add -mavx512f in CFLAGS
1481 none - Disable additional fast options (default)
1482
1483 --enable-timer-type=name - Select the timer to use for MPI_Wtime and
1484 internal timestamps.
1485 ppc64_cycle - Powerpc-64bit; returns cycle counts using timebase register
1486 gethrtime - Solaris timer (Solaris systems only)
1487 clock_gettime - Posix timer (where available)
1488 gettimeofday - Most Unix systems
1489 linux86_cycle - Linux x86; returns cycle counts, not time in seconds*
1490 gcc_ia64_cycle - IPF ar.itc timer*
1491 mach_absolute_time - Mach absolute time (alternative to clock_gettime
1492 for OSX)
1493
1494 *Note that the cycle timers are intended to be used by
1495 developers for internal low-level timing. Normal users should
1496 not use these as they are not guaranteed to be accurate in
1497 certain situations.
1498
1499 --enable-yield choose a method to yield the processor in busy
1500 loops. Available methods are: sched_yield, yield,
1501 select, usleep, sleep, nothing
1502 --enable-versioning Enable library versioning
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1508 both]
1509 --with-aix-soname=aix|svr4|both
1510 shared library versioning (aka "SONAME") variant to
1511 provide on AIX, [default=aix].
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1514 compiler's sysroot if not specified).
1515 --without-valgrind to disable valgrind support (such as because of
1516 version issues)
1517 --with-valgrind=PATH use valgrind headers installed in PATH (default is
1518 "yes", use no special path)
1519 --with-thread-package=package Thread package to use. Supported thread packages include:
1520 posix or pthreads - POSIX threads (default, if required)
1521 solaris - Solaris threads (Solaris OS only)
1522 abt or argobots - Argobots threads
1523 win - windows threads
1524 uti - POSIX threads plus Utility Thread Offloading library
1525 none - no threads
1526
1527 --with-posix-mutex=option Posix thread mutex to use. Supported options include:
1528 native - pthread mutex (default)
1529 ticketlock - use ticketlock, a fair lock based on atomics and busyloop
1530
1531 --with-uti=[PATH] specify path where uti include directory and lib
1532 directory can be found. Having this option
1533 explicitly requires the library. When PATH is not
1534 given, it checks the library from system paths.
1535 --with-uti-include=PATH specify path where uti include directory can be
1536 found
1537 --with-uti-lib=PATH specify path where uti lib directory can be found
1538 --with-argobots=[PATH] specify path where argobots include directory and
1539 lib directory can be found. Having this option
1540 explicitly requires the library. When PATH is not
1541 given, it checks the library from system paths.
1542 --with-argobots-include=PATH
1543 specify path where argobots include directory can be
1544 found
1545 --with-argobots-lib=PATH
1546 specify path where argobots lib directory can be
1547 found
1548 --with-qthreads=[PATH] specify path where qthreads include directory and
1549 lib directory can be found. Having this option
1550 explicitly requires the library. When PATH is not
1551 given, it checks the library from system paths.
1552 --with-qthreads-include=PATH
1553 specify path where qthreads include directory can be
1554 found
1555 --with-qthreads-lib=PATH
1556 specify path where qthreads lib directory can be
1557 found
1558 --with-proc-mutex-package=package Interprocess mutex package to use. Supported packages include:
1559 posix or pthreads - POSIX threads (default, if required)
1560 none - no interprocess mutex support
1561
1562 --with-mpl-atomic-primitives=package Atomic primitives to use. The following is include:
1563 auto - Automatically choose the best one (default)
1564 c11 - C11 atomics
1565 gcc_atomic - GCC atomic builtins
1566 gcc_sync - GCC sync builtins
1567 win - Windows builtins
1568 lock - Mutex-based synchronization
1569 no|none - atomic operations are performed without synchronization
1570
1571 --with-shared-memory=auto|sysv|mmap
1572 create shared memory using sysv or mmap (default is
1573 auto)
1574 --with-cuda=[PATH] specify path where cuda include directory and lib
1575 directory can be found. Having this option
1576 explicitly requires the library. When PATH is not
1577 given, it checks the library from system paths.
1578 --with-cuda-include=PATH
1579 specify path where cuda include directory can be
1580 found
1581 --with-cuda-lib=PATH specify path where cuda lib directory can be found
1582 --with-ze=[PATH] specify path where ze include directory and lib
1583 directory can be found. Having this option
1584 explicitly requires the library. When PATH is not
1585 given, it checks the library from system paths.
1586 --with-ze-include=PATH specify path where ze include directory can be found
1587 --with-ze-lib=PATH specify path where ze lib directory can be found
1588 --with-hip=[PATH] specify path where hip include directory and lib
1589 directory can be found. Having this option
1590 explicitly requires the library. When PATH is not
1591 given, it checks the library from system paths.
1592 --with-hip-include=PATH specify path where hip include directory can be
1593 found
1594 --with-hip-lib=PATH specify path where hip lib directory can be found
1595 --with-cacheline=<N>
1596 Define cacheline size (default is 64)
1597
1598 Some influential environment variables:
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
1603 LIBS libraries to pass to the linker, e.g. -l<library>
1604 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1605 you have headers in a nonstandard directory <include dir>
1606 CPP C preprocessor
1607 LT_SYS_LIBRARY_PATH
1608 User-defined run-time library search path.
1609 MPLLIBNAME can be used to override the name of the MPL library (default:
1610 "mpl")
1611 GCOV name/path for the gcov utility
1612 NVCC nvcc compiler to use
1613
1614 Use these variables to override the choices made by `configure' or to help
1615 it to find libraries and programs with nonstandard names/locations.
1616
1617 Report bugs to the package provider.
1618 _ACEOF
1619 ac_status=$?
1620 fi
1621
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
1628 ac_builddir=.
1629
1630 case "$ac_dir" in
1631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *)
1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1634 # A ".." for each directory in $ac_dir_suffix.
1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640 esac
1641 ac_abs_top_builddir=$ac_pwd
1642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643 # for backward compatibility:
1644 ac_top_builddir=$ac_top_build_prefix
1645
1646 case $srcdir in
1647 .) # We are building in place.
1648 ac_srcdir=.
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
1652 ac_srcdir=$srcdir$ac_dir_suffix;
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 esac
1660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for guested configure.
1664 if test -f "$ac_srcdir/configure.gnu"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667 elif test -f "$ac_srcdir/configure"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure" --help=recursive
1670 else
1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 fi || ac_status=$?
1673 cd "$ac_pwd" || { ac_status=$?; break; }
1674 done
1675 fi
1676
1677 test -n "$ac_init_help" && exit $ac_status
1678 if $ac_init_version; then
1679 cat <<\_ACEOF
1680 MPL configure 0.1
1681 generated by GNU Autoconf 2.69
1682
1683 Copyright (C) 2012 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1686 _ACEOF
1687 exit
1688 fi
1689
1690 ## ------------------------ ##
1691 ## Autoconf initialization. ##
1692 ## ------------------------ ##
1693
1694 # ac_fn_c_try_compile LINENO
1695 # --------------------------
1696 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext
1701 if { { ac_try="$ac_compile"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_compile") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest.$ac_objext; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_compile
1731
1732 # ac_fn_c_try_cpp LINENO
1733 # ----------------------
1734 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_cpp ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } > conftest.i && {
1754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763 fi
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_cpp
1768
1769 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772 # the include files in INCLUDES and setting the cache variable VAR
1773 # accordingly.
1774 ac_fn_c_check_header_mongrel ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if eval \${$3+:} false; then :
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 fi
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 else
1787 # Is the header compilable?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789 $as_echo_n "checking $2 usability... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 ac_header_compiler=yes
1797 else
1798 ac_header_compiler=no
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802 $as_echo "$ac_header_compiler" >&6; }
1803
1804 # Is the header present?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806 $as_echo_n "checking $2 presence... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_cpp "$LINENO"; then :
1812 ac_header_preproc=yes
1813 else
1814 ac_header_preproc=no
1815 fi
1816 rm -f conftest.err conftest.i conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818 $as_echo "$ac_header_preproc" >&6; }
1819
1820 # So? What about this header?
1821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 yes:no: )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ;;
1828 no:yes:* )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1832 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1836 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ;;
1840 esac
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 eval "$3=\$ac_header_compiler"
1847 fi
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 fi
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_header_mongrel
1855
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1860 ac_fn_c_try_run ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1881 ac_status=$?
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_retval=$ac_status
1891 fi
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_try_run
1897
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $4
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 eval "$3=yes"
1917 else
1918 eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_header_compile
1928
1929 # ac_fn_c_try_link LINENO
1930 # -----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_c_try_link ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext conftest$ac_exeext
1936 if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1949 fi
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_c_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest$ac_exeext && {
1955 test "$cross_compiling" = yes ||
1956 test -x conftest$ac_exeext
1957 }; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=1
1964 fi
1965 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967 # interfere with the next link command; also delete a directory that is
1968 # left behind by Apple's compiler. We do this before executing the actions.
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1972
1973 } # ac_fn_c_try_link
1974
1975 # ac_fn_c_check_func LINENO FUNC VAR
1976 # ----------------------------------
1977 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1978 ac_fn_c_check_func ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985 else
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1990 #define $2 innocuous_$2
1991
1992 /* System header to define __stub macros and hopefully few prototypes,
1993 which can conflict with char $2 (); below.
1994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1995 <limits.h> exists even on freestanding compilers. */
1996
1997 #ifdef __STDC__
1998 # include <limits.h>
1999 #else
2000 # include <assert.h>
2001 #endif
2002
2003 #undef $2
2004
2005 /* Override any GCC internal prototype to avoid an error.
2006 Use char because int might match the return type of a GCC
2007 builtin and then its argument prototype would still apply. */
2008 #ifdef __cplusplus
2009 extern "C"
2010 #endif
2011 char $2 ();
2012 /* The GNU C library defines this for functions which it implements
2013 to always fail with ENOSYS. Some functions are actually named
2014 something starting with __ and the normal name is an alias. */
2015 #if defined __stub_$2 || defined __stub___$2
2016 choke me
2017 #endif
2018
2019 int
2020 main ()
2021 {
2022 return $2 ();
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_link "$LINENO"; then :
2028 eval "$3=yes"
2029 else
2030 eval "$3=no"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext \
2033 conftest$ac_exeext conftest.$ac_ext
2034 fi
2035 eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_func
2041
2042 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2043 # -------------------------------------------
2044 # Tests whether TYPE exists after having included INCLUDES, setting cache
2045 # variable VAR accordingly.
2046 ac_fn_c_check_type ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 eval "$3=no"
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 int
2059 main ()
2060 {
2061 if (sizeof ($2))
2062 return 0;
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 $4
2071 int
2072 main ()
2073 {
2074 if (sizeof (($2)))
2075 return 0;
2076 ;
2077 return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081
2082 else
2083 eval "$3=yes"
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 fi
2089 eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094 } # ac_fn_c_check_type
2095
2096 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2097 # ---------------------------------------------
2098 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2099 # accordingly.
2100 ac_fn_c_check_decl ()
2101 {
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 as_decl_name=`echo $2|sed 's/ *(.*//'`
2104 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2106 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2107 if eval \${$3+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 $4
2113 int
2114 main ()
2115 {
2116 #ifndef $as_decl_name
2117 #ifdef __cplusplus
2118 (void) $as_decl_use;
2119 #else
2120 (void) $as_decl_name;
2121 #endif
2122 #endif
2123
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 eval "$3=yes"
2130 else
2131 eval "$3=no"
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 fi
2135 eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139
2140 } # ac_fn_c_check_decl
2141
2142 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2143 # --------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 # computed
2147 ac_fn_c_compute_int ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 $4
2155 int
2156 main ()
2157 {
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2159 test_array [0] = 0;
2160 return test_array [0];
2161
2162 ;
2163 return 0;
2164 }
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_lo=0 ac_mid=0
2168 while :; do
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2171 $4
2172 int
2173 main ()
2174 {
2175 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2176 test_array [0] = 0;
2177 return test_array [0];
2178
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=$ac_mid; break
2185 else
2186 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2187 if test $ac_lo -le $ac_mid; then
2188 ac_lo= ac_hi=
2189 break
2190 fi
2191 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 done
2195 else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 $4
2199 int
2200 main ()
2201 {
2202 static int test_array [1 - 2 * !(($2) < 0)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211 ac_hi=-1 ac_mid=-1
2212 while :; do
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $4
2216 int
2217 main ()
2218 {
2219 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2220 test_array [0] = 0;
2221 return test_array [0];
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229 else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2234 fi
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 else
2240 ac_lo= ac_hi=
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 $4
2251 int
2252 main ()
2253 {
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0;
2256 return test_array [0];
2257
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 ac_hi=$ac_mid
2264 else
2265 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 done
2269 case $ac_lo in #((
2270 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2271 '') ac_retval=1 ;;
2272 esac
2273 else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 $4
2277 static long int longval () { return $2; }
2278 static unsigned long int ulongval () { return $2; }
2279 #include <stdio.h>
2280 #include <stdlib.h>
2281 int
2282 main ()
2283 {
2284
2285 FILE *f = fopen ("conftest.val", "w");
2286 if (! f)
2287 return 1;
2288 if (($2) < 0)
2289 {
2290 long int i = longval ();
2291 if (i != ($2))
2292 return 1;
2293 fprintf (f, "%ld", i);
2294 }
2295 else
2296 {
2297 unsigned long int i = ulongval ();
2298 if (i != ($2))
2299 return 1;
2300 fprintf (f, "%lu", i);
2301 }
2302 /* Do not output a trailing newline, as this causes \r\n confusion
2303 on some platforms. */
2304 return ferror (f) || fclose (f) != 0;
2305
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_run "$LINENO"; then :
2311 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2312 else
2313 ac_retval=1
2314 fi
2315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2316 conftest.$ac_objext conftest.beam conftest.$ac_ext
2317 rm -f conftest.val
2318
2319 fi
2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2321 as_fn_set_status $ac_retval
2322
2323 } # ac_fn_c_compute_int
2324
2325 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2326 # ----------------------------------------------------
2327 # Tries to find if the field MEMBER exists in type AGGR, after including
2328 # INCLUDES, setting cache variable VAR accordingly.
2329 ac_fn_c_check_member ()
2330 {
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2333 $as_echo_n "checking for $2.$3... " >&6; }
2334 if eval \${$4+:} false; then :
2335 $as_echo_n "(cached) " >&6
2336 else
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2339 $5
2340 int
2341 main ()
2342 {
2343 static $2 ac_aggr;
2344 if (ac_aggr.$3)
2345 return 0;
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351 eval "$4=yes"
2352 else
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 $5
2356 int
2357 main ()
2358 {
2359 static $2 ac_aggr;
2360 if (sizeof ac_aggr.$3)
2361 return 0;
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_c_try_compile "$LINENO"; then :
2367 eval "$4=yes"
2368 else
2369 eval "$4=no"
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 eval ac_res=\$$4
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2379
2380 } # ac_fn_c_check_member
2381 cat >config.log <<_ACEOF
2382 This file contains any messages produced by compilers while
2383 running configure, to aid debugging if configure makes a mistake.
2384
2385 It was created by MPL $as_me 0.1, which was
2386 generated by GNU Autoconf 2.69. Invocation command line was
2387
2388 $ $0 $@
2389
2390 _ACEOF
2391 exec 5>>config.log
2392 {
2393 cat <<_ASUNAME
2394 ## --------- ##
2395 ## Platform. ##
2396 ## --------- ##
2397
2398 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2399 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2400 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2401 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2402 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2403
2404 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2405 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2406
2407 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2408 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2409 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2410 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2411 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2412 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2413 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2414
2415 _ASUNAME
2416
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 $as_echo "PATH: $as_dir"
2423 done
2424 IFS=$as_save_IFS
2425
2426 } >&5
2427
2428 cat >&5 <<_ACEOF
2429
2430
2431 ## ----------- ##
2432 ## Core tests. ##
2433 ## ----------- ##
2434
2435 _ACEOF
2436
2437
2438 # Keep a trace of the command line.
2439 # Strip out --no-create and --no-recursion so they do not pile up.
2440 # Strip out --silent because we don't want to record it for future runs.
2441 # Also quote any args containing shell meta-characters.
2442 # Make two passes to allow for proper duplicate-argument suppression.
2443 ac_configure_args=
2444 ac_configure_args0=
2445 ac_configure_args1=
2446 ac_must_keep_next=false
2447 for ac_pass in 1 2
2448 do
2449 for ac_arg
2450 do
2451 case $ac_arg in
2452 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2454 | -silent | --silent | --silen | --sile | --sil)
2455 continue ;;
2456 *\'*)
2457 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2458 esac
2459 case $ac_pass in
2460 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2461 2)
2462 as_fn_append ac_configure_args1 " '$ac_arg'"
2463 if test $ac_must_keep_next = true; then
2464 ac_must_keep_next=false # Got value, back to normal.
2465 else
2466 case $ac_arg in
2467 *=* | --config-cache | -C | -disable-* | --disable-* \
2468 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2469 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2470 | -with-* | --with-* | -without-* | --without-* | --x)
2471 case "$ac_configure_args0 " in
2472 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2473 esac
2474 ;;
2475 -* ) ac_must_keep_next=true ;;
2476 esac
2477 fi
2478 as_fn_append ac_configure_args " '$ac_arg'"
2479 ;;
2480 esac
2481 done
2482 done
2483 { ac_configure_args0=; unset ac_configure_args0;}
2484 { ac_configure_args1=; unset ac_configure_args1;}
2485
2486 # When interrupted or exit'd, cleanup temporary files, and complete
2487 # config.log. We remove comments because anyway the quotes in there
2488 # would cause problems or look ugly.
2489 # WARNING: Use '\'' to represent an apostrophe within the trap.
2490 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2491 trap 'exit_status=$?
2492 # Save into config.log some information that might help in debugging.
2493 {
2494 echo
2495
2496 $as_echo "## ---------------- ##
2497 ## Cache variables. ##
2498 ## ---------------- ##"
2499 echo
2500 # The following way of writing the cache mishandles newlines in values,
2501 (
2502 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2503 eval ac_val=\$$ac_var
2504 case $ac_val in #(
2505 *${as_nl}*)
2506 case $ac_var in #(
2507 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2508 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2509 esac
2510 case $ac_var in #(
2511 _ | IFS | as_nl) ;; #(
2512 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2513 *) { eval $ac_var=; unset $ac_var;} ;;
2514 esac ;;
2515 esac
2516 done
2517 (set) 2>&1 |
2518 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2519 *${as_nl}ac_space=\ *)
2520 sed -n \
2521 "s/'\''/'\''\\\\'\'''\''/g;
2522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2523 ;; #(
2524 *)
2525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2526 ;;
2527 esac |
2528 sort
2529 )
2530 echo
2531
2532 $as_echo "## ----------------- ##
2533 ## Output variables. ##
2534 ## ----------------- ##"
2535 echo
2536 for ac_var in $ac_subst_vars
2537 do
2538 eval ac_val=\$$ac_var
2539 case $ac_val in
2540 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2541 esac
2542 $as_echo "$ac_var='\''$ac_val'\''"
2543 done | sort
2544 echo
2545
2546 if test -n "$ac_subst_files"; then
2547 $as_echo "## ------------------- ##
2548 ## File substitutions. ##
2549 ## ------------------- ##"
2550 echo
2551 for ac_var in $ac_subst_files
2552 do
2553 eval ac_val=\$$ac_var
2554 case $ac_val in
2555 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556 esac
2557 $as_echo "$ac_var='\''$ac_val'\''"
2558 done | sort
2559 echo
2560 fi
2561
2562 if test -s confdefs.h; then
2563 $as_echo "## ----------- ##
2564 ## confdefs.h. ##
2565 ## ----------- ##"
2566 echo
2567 cat confdefs.h
2568 echo
2569 fi
2570 test "$ac_signal" != 0 &&
2571 $as_echo "$as_me: caught signal $ac_signal"
2572 $as_echo "$as_me: exit $exit_status"
2573 } >&5
2574 rm -f core *.core core.conftest.* &&
2575 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2576 exit $exit_status
2577 ' 0
2578 for ac_signal in 1 2 13 15; do
2579 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2580 done
2581 ac_signal=0
2582
2583 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2584 rm -f -r conftest* confdefs.h
2585
2586 $as_echo "/* confdefs.h */" > confdefs.h
2587
2588 # Predefined preprocessor variables.
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_NAME "$PACKAGE_NAME"
2592 _ACEOF
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_STRING "$PACKAGE_STRING"
2604 _ACEOF
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2608 _ACEOF
2609
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_URL "$PACKAGE_URL"
2612 _ACEOF
2613
2614
2615 # Let the site file select an alternate cache file if it wants to.
2616 # Prefer an explicitly selected file to automatically selected ones.
2617 ac_site_file1=NONE
2618 ac_site_file2=NONE
2619 if test -n "$CONFIG_SITE"; then
2620 # We do not want a PATH search for config.site.
2621 case $CONFIG_SITE in #((
2622 -*) ac_site_file1=./$CONFIG_SITE;;
2623 */*) ac_site_file1=$CONFIG_SITE;;
2624 *) ac_site_file1=./$CONFIG_SITE;;
2625 esac
2626 elif test "x$prefix" != xNONE; then
2627 ac_site_file1=$prefix/share/config.site
2628 ac_site_file2=$prefix/etc/config.site
2629 else
2630 ac_site_file1=$ac_default_prefix/share/config.site
2631 ac_site_file2=$ac_default_prefix/etc/config.site
2632 fi
2633 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2634 do
2635 test "x$ac_site_file" = xNONE && continue
2636 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2638 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2639 sed 's/^/| /' "$ac_site_file" >&5
2640 . "$ac_site_file" \
2641 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 as_fn_error $? "failed to load site script $ac_site_file
2644 See \`config.log' for more details" "$LINENO" 5; }
2645 fi
2646 done
2647
2648 if test -r "$cache_file"; then
2649 # Some versions of bash will fail to source /dev/null (special files
2650 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2651 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2653 $as_echo "$as_me: loading cache $cache_file" >&6;}
2654 case $cache_file in
2655 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2656 *) . "./$cache_file";;
2657 esac
2658 fi
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2661 $as_echo "$as_me: creating cache $cache_file" >&6;}
2662 >$cache_file
2663 fi
2664
2665 # Check that the precious variables saved in the cache have kept the same
2666 # value.
2667 ac_cache_corrupted=false
2668 for ac_var in $ac_precious_vars; do
2669 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2670 eval ac_new_set=\$ac_env_${ac_var}_set
2671 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2672 eval ac_new_val=\$ac_env_${ac_var}_value
2673 case $ac_old_set,$ac_new_set in
2674 set,)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2676 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2677 ac_cache_corrupted=: ;;
2678 ,set)
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2680 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2682 ,);;
2683 *)
2684 if test "x$ac_old_val" != "x$ac_new_val"; then
2685 # differences in whitespace do not lead to failure.
2686 ac_old_val_w=`echo x $ac_old_val`
2687 ac_new_val_w=`echo x $ac_new_val`
2688 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2690 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2691 ac_cache_corrupted=:
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2694 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2695 eval $ac_var=\$ac_old_val
2696 fi
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2698 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2700 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2701 fi;;
2702 esac
2703 # Pass precious variables to config.status.
2704 if test "$ac_new_set" = set; then
2705 case $ac_new_val in
2706 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2707 *) ac_arg=$ac_var=$ac_new_val ;;
2708 esac
2709 case " $ac_configure_args " in
2710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2711 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2712 esac
2713 fi
2714 done
2715 if $ac_cache_corrupted; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2719 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2720 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2721 fi
2722 ## -------------------- ##
2723 ## Main body of script. ##
2724 ## -------------------- ##
2725
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732
2733
2734 # sanity check that --srcdir was specified correctly
2735
2736
2737 ac_aux_dir=
2738 for ac_dir in confdb "$srcdir"/confdb; do
2739 if test -f "$ac_dir/install-sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2742 break
2743 elif test -f "$ac_dir/install.sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2746 break
2747 elif test -f "$ac_dir/shtool"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 break
2751 fi
2752 done
2753 if test -z "$ac_aux_dir"; then
2754 as_fn_error $? "cannot find install-sh, install.sh, or shtool in confdb \"$srcdir\"/confdb" "$LINENO" 5
2755 fi
2756
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2764
2765
2766
2767 am__api_version='1.16'
2768
2769 # Find a good install program. We prefer a C program (faster),
2770 # so one script is as good as another. But avoid the broken or
2771 # incompatible versions:
2772 # SysV /etc/install, /usr/sbin/install
2773 # SunOS /usr/etc/install
2774 # IRIX /sbin/install
2775 # AIX /bin/install
2776 # AmigaOS /C/install, which installs bootblocks on floppy discs
2777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2780 # OS/2's system install, which has a completely different semantic
2781 # ./install, which can be erroneously created by make from ./install.sh.
2782 # Reject install programs that cannot install multiple files.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2784 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2785 if test -z "$INSTALL"; then
2786 if ${ac_cv_path_install+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 # Account for people who put trailing slashes in PATH elements.
2795 case $as_dir/ in #((
2796 ./ | .// | /[cC]/* | \
2797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2798 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2799 /usr/ucb/* ) ;;
2800 *)
2801 # OSF1 and SCO ODT 3.0 have their own names for install.
2802 # Don't use installbsd from OSF since it installs stuff as root
2803 # by default.
2804 for ac_prog in ginstall scoinst install; do
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2807 if test $ac_prog = install &&
2808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809 # AIX install. It has an incompatible calling convention.
2810 :
2811 elif test $ac_prog = install &&
2812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813 # program-specific install script used by HP pwplus--don't use.
2814 :
2815 else
2816 rm -rf conftest.one conftest.two conftest.dir
2817 echo one > conftest.one
2818 echo two > conftest.two
2819 mkdir conftest.dir
2820 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2821 test -s conftest.one && test -s conftest.two &&
2822 test -s conftest.dir/conftest.one &&
2823 test -s conftest.dir/conftest.two
2824 then
2825 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2826 break 3
2827 fi
2828 fi
2829 fi
2830 done
2831 done
2832 ;;
2833 esac
2834
2835 done
2836 IFS=$as_save_IFS
2837
2838 rm -rf conftest.one conftest.two conftest.dir
2839
2840 fi
2841 if test "${ac_cv_path_install+set}" = set; then
2842 INSTALL=$ac_cv_path_install
2843 else
2844 # As a last resort, use the slow shell script. Don't cache a
2845 # value for INSTALL within a source directory, because that will
2846 # break other packages using the cache if that directory is
2847 # removed, or if the value is a relative name.
2848 INSTALL=$ac_install_sh
2849 fi
2850 fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2852 $as_echo "$INSTALL" >&6; }
2853
2854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2855 # It thinks the first close brace ends the variable substitution.
2856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2857
2858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2859
2860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2863 $as_echo_n "checking whether build environment is sane... " >&6; }
2864 # Reject unsafe characters in $srcdir or the absolute working directory
2865 # name. Accept space and tab only in the latter.
2866 am_lf='
2867 '
2868 case `pwd` in
2869 *[\\\"\#\$\&\'\`$am_lf]*)
2870 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2871 esac
2872 case $srcdir in
2873 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2874 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2875 esac
2876
2877 # Do 'set' in a subshell so we don't clobber the current shell's
2878 # arguments. Must try -L first in case configure is actually a
2879 # symlink; some systems play weird games with the mod time of symlinks
2880 # (eg FreeBSD returns the mod time of the symlink's containing
2881 # directory).
2882 if (
2883 am_has_slept=no
2884 for am_try in 1 2; do
2885 echo "timestamp, slept: $am_has_slept" > conftest.file
2886 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2887 if test "$*" = "X"; then
2888 # -L didn't work.
2889 set X `ls -t "$srcdir/configure" conftest.file`
2890 fi
2891 if test "$*" != "X $srcdir/configure conftest.file" \
2892 && test "$*" != "X conftest.file $srcdir/configure"; then
2893
2894 # If neither matched, then we have a broken ls. This can happen
2895 # if, for instance, CONFIG_SHELL is bash and it inherits a
2896 # broken ls alias from the environment. This has actually
2897 # happened. Such a system could not be considered "sane".
2898 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2899 alias in your environment" "$LINENO" 5
2900 fi
2901 if test "$2" = conftest.file || test $am_try -eq 2; then
2902 break
2903 fi
2904 # Just in case.
2905 sleep 1
2906 am_has_slept=yes
2907 done
2908 test "$2" = conftest.file
2909 )
2910 then
2911 # Ok.
2912 :
2913 else
2914 as_fn_error $? "newly created file is older than distributed files!
2915 Check your system clock" "$LINENO" 5
2916 fi
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2918 $as_echo "yes" >&6; }
2919 # If we didn't sleep, we still need to ensure time stamps of config.status and
2920 # generated files are strictly newer.
2921 am_sleep_pid=
2922 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2923 ( sleep 1 ) &
2924 am_sleep_pid=$!
2925 fi
2926
2927 rm -f conftest.file
2928
2929 test "$program_prefix" != NONE &&
2930 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2931 # Use a double $ so make ignores it.
2932 test "$program_suffix" != NONE &&
2933 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2934 # Double any \ or $.
2935 # By default was `s,x,x', remove it if useless.
2936 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2937 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2938
2939 # Expand $ac_aux_dir to an absolute path.
2940 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2941
2942 if test x"${MISSING+set}" != xset; then
2943 MISSING="\${SHELL} '$am_aux_dir/missing'"
2944 fi
2945 # Use eval to expand $SHELL
2946 if eval "$MISSING --is-lightweight"; then
2947 am_missing_run="$MISSING "
2948 else
2949 am_missing_run=
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2951 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2952 fi
2953
2954 if test x"${install_sh+set}" != xset; then
2955 case $am_aux_dir in
2956 *\ * | *\ *)
2957 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2958 *)
2959 install_sh="\${SHELL} $am_aux_dir/install-sh"
2960 esac
2961 fi
2962
2963 # Installed binaries are usually stripped using 'strip' when the user
2964 # run "make install-strip". However 'strip' might not be the right
2965 # tool to use in cross-compilation environments, therefore Automake
2966 # will honor the 'STRIP' environment variable to overrule this program.
2967 if test "$cross_compiling" != no; then
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}strip; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_STRIP+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 if test -n "$STRIP"; then
2977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 STRIP=$ac_cv_prog_STRIP
2997 if test -n "$STRIP"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2999 $as_echo "$STRIP" >&6; }
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005
3006 fi
3007 if test -z "$ac_cv_prog_STRIP"; then
3008 ac_ct_STRIP=$STRIP
3009 # Extract the first word of "strip", so it can be a program name with args.
3010 set dummy strip; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if test -n "$ac_ct_STRIP"; then
3017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_ac_ct_STRIP="strip"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3037 if test -n "$ac_ct_STRIP"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3039 $as_echo "$ac_ct_STRIP" >&6; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045 if test "x$ac_ct_STRIP" = x; then
3046 STRIP=":"
3047 else
3048 case $cross_compiling:$ac_tool_warned in
3049 yes:)
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned=yes ;;
3053 esac
3054 STRIP=$ac_ct_STRIP
3055 fi
3056 else
3057 STRIP="$ac_cv_prog_STRIP"
3058 fi
3059
3060 fi
3061 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3062
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3064 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3065 if test -z "$MKDIR_P"; then
3066 if ${ac_cv_path_mkdir+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_prog in mkdir gmkdir; do
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3077 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3078 'mkdir (GNU coreutils) '* | \
3079 'mkdir (coreutils) '* | \
3080 'mkdir (fileutils) '4.1*)
3081 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3082 break 3;;
3083 esac
3084 done
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090
3091 test -d ./--version && rmdir ./--version
3092 if test "${ac_cv_path_mkdir+set}" = set; then
3093 MKDIR_P="$ac_cv_path_mkdir -p"
3094 else
3095 # As a last resort, use the slow shell script. Don't cache a
3096 # value for MKDIR_P within a source directory, because that will
3097 # break other packages using the cache if that directory is
3098 # removed, or if the value is a relative name.
3099 MKDIR_P="$ac_install_sh -d"
3100 fi
3101 fi
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3103 $as_echo "$MKDIR_P" >&6; }
3104
3105 for ac_prog in gawk mawk nawk awk
3106 do
3107 # Extract the first word of "$ac_prog", so it can be a program name with args.
3108 set dummy $ac_prog; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_AWK+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$AWK"; then
3115 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_AWK="$ac_prog"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 AWK=$ac_cv_prog_AWK
3135 if test -n "$AWK"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3137 $as_echo "$AWK" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144 test -n "$AWK" && break
3145 done
3146
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3149 set x ${MAKE-make}
3150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3151 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 cat >conftest.make <<\_ACEOF
3155 SHELL = /bin/sh
3156 all:
3157 @echo '@@@%%%=$(MAKE)=@@@%%%'
3158 _ACEOF
3159 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3161 *@@@%%%=?*=@@@%%%*)
3162 eval ac_cv_prog_make_${ac_make}_set=yes;;
3163 *)
3164 eval ac_cv_prog_make_${ac_make}_set=no;;
3165 esac
3166 rm -f conftest.make
3167 fi
3168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3171 SET_MAKE=
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 SET_MAKE="MAKE=${MAKE-make}"
3176 fi
3177
3178 rm -rf .tst 2>/dev/null
3179 mkdir .tst 2>/dev/null
3180 if test -d .tst; then
3181 am__leading_dot=.
3182 else
3183 am__leading_dot=_
3184 fi
3185 rmdir .tst 2>/dev/null
3186
3187 # Check whether --enable-silent-rules was given.
3188 if test "${enable_silent_rules+set}" = set; then :
3189 enableval=$enable_silent_rules;
3190 fi
3191
3192 case $enable_silent_rules in # (((
3193 yes) AM_DEFAULT_VERBOSITY=0;;
3194 no) AM_DEFAULT_VERBOSITY=1;;
3195 *) AM_DEFAULT_VERBOSITY=1;;
3196 esac
3197 am_make=${MAKE-make}
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3199 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3200 if ${am_cv_make_support_nested_variables+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if $as_echo 'TRUE=$(BAR$(V))
3204 BAR0=false
3205 BAR1=true
3206 V=1
3207 am__doit:
3208 @$(TRUE)
3209 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3210 am_cv_make_support_nested_variables=yes
3211 else
3212 am_cv_make_support_nested_variables=no
3213 fi
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3216 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3217 if test $am_cv_make_support_nested_variables = yes; then
3218 AM_V='$(V)'
3219 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3220 else
3221 AM_V=$AM_DEFAULT_VERBOSITY
3222 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3223 fi
3224 AM_BACKSLASH='\'
3225
3226 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3227 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3228 # is not polluted with repeated "-I."
3229 am__isrc=' -I$(srcdir)'
3230 # test to see if srcdir already configured
3231 if test -f $srcdir/config.status; then
3232 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3233 fi
3234 fi
3235
3236 # test whether we have cygpath
3237 if test -z "$CYGPATH_W"; then
3238 if (cygpath --version) >/dev/null 2>/dev/null; then
3239 CYGPATH_W='cygpath -w'
3240 else
3241 CYGPATH_W=echo
3242 fi
3243 fi
3244
3245
3246 # Define the identity of the package.
3247 PACKAGE='mpl'
3248 VERSION='0.1'
3249
3250
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE "$PACKAGE"
3253 _ACEOF
3254
3255
3256 cat >>confdefs.h <<_ACEOF
3257 #define VERSION "$VERSION"
3258 _ACEOF
3259
3260 # Some tools Automake needs.
3261
3262 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3263
3264
3265 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3266
3267
3268 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3269
3270
3271 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3272
3273
3274 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3275
3276 # For better backward compatibility. To be removed once Automake 1.9.x
3277 # dies out for good. For more background, see:
3278 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3279 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3280 mkdir_p='$(MKDIR_P)'
3281
3282 # We need awk for the "check" target (and possibly the TAP driver). The
3283 # system "awk" is bad on some platforms.
3284 # Always define AMTAR for backward compatibility. Yes, it's still used
3285 # in the wild :-( We should find a proper way to deprecate it ...
3286 AMTAR='$${TAR-tar}'
3287
3288
3289 # We'll loop over all known methods to create a tar archive until one works.
3290 _am_tools='gnutar pax cpio none'
3291
3292 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3293
3294
3295
3296
3297
3298 # Variables for tags utilities; see am/tags.am
3299 if test -z "$CTAGS"; then
3300 CTAGS=ctags
3301 fi
3302
3303 if test -z "$ETAGS"; then
3304 ETAGS=etags
3305 fi
3306
3307 if test -z "$CSCOPE"; then
3308 CSCOPE=cscope
3309 fi
3310
3311
3312
3313 # POSIX will say in a future version that running "rm -f" with no argument
3314 # is OK; and we want to be able to make that assumption in our Makefile
3315 # recipes. So use an aggressive probe to check that the usage we want is
3316 # actually supported "in the wild" to an acceptable degree.
3317 # See automake bug#10828.
3318 # To make any issue more visible, cause the running configure to be aborted
3319 # by default if the 'rm' program in use doesn't match our expectations; the
3320 # user can still override this though.
3321 if rm -f && rm -fr && rm -rf; then : OK; else
3322 cat >&2 <<'END'
3323 Oops!
3324
3325 Your 'rm' program seems unable to run without file operands specified
3326 on the command line, even when the '-f' option is present. This is contrary
3327 to the behaviour of most rm programs out there, and not conforming with
3328 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3329
3330 Please tell [email protected] about your system, including the value
3331 of your $PATH and any error possibly output before this message. This
3332 can help us improve future automake versions.
3333
3334 END
3335 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3336 echo 'Configuration will proceed anyway, since you have set the' >&2
3337 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3338 echo >&2
3339 else
3340 cat >&2 <<'END'
3341 Aborting the configuration process, to ensure you take notice of the issue.
3342
3343 You can download and install GNU coreutils to get an 'rm' implementation
3344 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3345
3346 If you want to complete the configuration process using your problematic
3347 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3348 to "yes", and re-run configure.
3349
3350 END
3351 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3352 fi
3353 fi
3354
3355
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399 fi
3400 if test -z "$ac_cv_prog_CC"; then
3401 ac_ct_CC=$CC
3402 # Extract the first word of "gcc", so it can be a program name with args.
3403 set dummy gcc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_ac_ct_CC="gcc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430 if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 $as_echo "$ac_ct_CC" >&6; }
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438 if test "x$ac_ct_CC" = x; then
3439 CC=""
3440 else
3441 case $cross_compiling:$ac_tool_warned in
3442 yes:)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445 ac_tool_warned=yes ;;
3446 esac
3447 CC=$ac_ct_CC
3448 fi
3449 else
3450 CC="$ac_cv_prog_CC"
3451 fi
3452
3453 if test -z "$CC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}cc; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_CC="${ac_tool_prefix}cc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492 fi
3493 fi
3494 if test -z "$CC"; then
3495 # Extract the first word of "cc", so it can be a program name with args.
3496 set dummy cc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 ac_prog_rejected=no
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514 ac_prog_rejected=yes
3515 continue
3516 fi
3517 ac_cv_prog_CC="cc"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 if test $ac_prog_rejected = yes; then
3526 # We found a bogon in the path, so make sure we never use it.
3527 set dummy $ac_cv_prog_CC
3528 shift
3529 if test $# != 0; then
3530 # We chose a different compiler from the bogus one.
3531 # However, it has the same basename, so the bogon will be chosen
3532 # first if we set CC to just the basename; use the full file name.
3533 shift
3534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3535 fi
3536 fi
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549 fi
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 for ac_prog in cl.exe
3553 do
3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575 done
3576 done
3577 IFS=$as_save_IFS
3578
3579 fi
3580 fi
3581 CC=$ac_cv_prog_CC
3582 if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 $as_echo "$CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 fi
3589
3590
3591 test -n "$CC" && break
3592 done
3593 fi
3594 if test -z "$CC"; then
3595 ac_ct_CC=$CC
3596 for ac_prog in cl.exe
3597 do
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599 set dummy $ac_prog; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$ac_ct_CC"; then
3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_ac_ct_CC="$ac_prog"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619 done
3620 done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626 if test -n "$ac_ct_CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628 $as_echo "$ac_ct_CC" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635 test -n "$ac_ct_CC" && break
3636 done
3637
3638 if test "x$ac_ct_CC" = x; then
3639 CC=""
3640 else
3641 case $cross_compiling:$ac_tool_warned in
3642 yes:)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645 ac_tool_warned=yes ;;
3646 esac
3647 CC=$ac_ct_CC
3648 fi
3649 fi
3650
3651 fi
3652
3653
3654 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "no acceptable C compiler found in \$PATH
3657 See \`config.log' for more details" "$LINENO" 5; }
3658
3659 # Provide some information about the compiler.
3660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3661 set X $ac_compile
3662 ac_compiler=$2
3663 for ac_option in --version -v -V -qversion; do
3664 { { ac_try="$ac_compiler $ac_option >&5"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672 ac_status=$?
3673 if test -s conftest.err; then
3674 sed '10a\
3675 ... rest of stderr output deleted ...
3676 10q' conftest.err >conftest.er1
3677 cat conftest.er1 >&5
3678 fi
3679 rm -f conftest.er1 conftest.err
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }
3682 done
3683
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main ()
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 ac_clean_files_save=$ac_clean_files
3696 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3697 # Try to create an executable without -o first, disregard a.out.
3698 # It will help us diagnose broken compilers, and finding out an intuition
3699 # of exeext.
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3701 $as_echo_n "checking whether the C compiler works... " >&6; }
3702 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3703
3704 # The possible output files:
3705 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3706
3707 ac_rmfiles=
3708 for ac_file in $ac_files
3709 do
3710 case $ac_file in
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713 esac
3714 done
3715 rm -f $ac_rmfiles
3716
3717 if { { ac_try="$ac_link_default"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link_default") 2>&5
3725 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
3728 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3729 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3730 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3731 # so that the user can short-circuit this test for compilers unknown to
3732 # Autoconf.
3733 for ac_file in $ac_files ''
3734 do
3735 test -f "$ac_file" || continue
3736 case $ac_file in
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3738 ;;
3739 [ab].out )
3740 # We found the default executable, but exeext='' is most
3741 # certainly right.
3742 break;;
3743 *.* )
3744 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3745 then :; else
3746 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3747 fi
3748 # We set ac_cv_exeext here because the later test for it is not
3749 # safe: cross compilers may not add the suffix if given an `-o'
3750 # argument, so we may need to know it at that point already.
3751 # Even if this section looks crufty: it has the advantage of
3752 # actually working.
3753 break;;
3754 * )
3755 break;;
3756 esac
3757 done
3758 test "$ac_cv_exeext" = no && ac_cv_exeext=
3759
3760 else
3761 ac_file=''
3762 fi
3763 if test -z "$ac_file"; then :
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 $as_echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771 as_fn_error 77 "C compiler cannot create executables
3772 See \`config.log' for more details" "$LINENO" 5; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3775 $as_echo "yes" >&6; }
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3778 $as_echo_n "checking for C compiler default output file name... " >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3780 $as_echo "$ac_file" >&6; }
3781 ac_exeext=$ac_cv_exeext
3782
3783 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3784 ac_clean_files=$ac_clean_files_save
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3786 $as_echo_n "checking for suffix of executables... " >&6; }
3787 if { { ac_try="$ac_link"
3788 case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_link") 2>&5
3795 ac_status=$?
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; then :
3798 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3799 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3800 # work properly (i.e., refer to `conftest.exe'), while it won't with
3801 # `rm'.
3802 for ac_file in conftest.exe conftest conftest.*; do
3803 test -f "$ac_file" || continue
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807 break;;
3808 * ) break;;
3809 esac
3810 done
3811 else
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3815 See \`config.log' for more details" "$LINENO" 5; }
3816 fi
3817 rm -f conftest conftest$ac_cv_exeext
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3819 $as_echo "$ac_cv_exeext" >&6; }
3820
3821 rm -f conftest.$ac_ext
3822 EXEEXT=$ac_cv_exeext
3823 ac_exeext=$EXEEXT
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826 #include <stdio.h>
3827 int
3828 main ()
3829 {
3830 FILE *f = fopen ("conftest.out", "w");
3831 return ferror (f) || fclose (f) != 0;
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 ac_clean_files="$ac_clean_files conftest.out"
3838 # Check that the compiler produces executables we can run. If not, either
3839 # the compiler is broken, or we cross compile.
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3841 $as_echo_n "checking whether we are cross compiling... " >&6; }
3842 if test "$cross_compiling" != yes; then
3843 { { ac_try="$ac_link"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link") 2>&5
3851 ac_status=$?
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }
3854 if { ac_try='./conftest$ac_cv_exeext'
3855 { { case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; }; then
3865 cross_compiling=no
3866 else
3867 if test "$cross_compiling" = maybe; then
3868 cross_compiling=yes
3869 else
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot run C compiled programs.
3873 If you meant to cross compile, use \`--host'.
3874 See \`config.log' for more details" "$LINENO" 5; }
3875 fi
3876 fi
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3879 $as_echo "$cross_compiling" >&6; }
3880
3881 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3882 ac_clean_files=$ac_clean_files_save
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3884 $as_echo_n "checking for suffix of object files... " >&6; }
3885 if ${ac_cv_objext+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891 int
3892 main ()
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 rm -f conftest.o conftest.obj
3900 if { { ac_try="$ac_compile"
3901 case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_compile") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 for ac_file in conftest.o conftest.obj conftest.*; do
3912 test -f "$ac_file" || continue;
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3916 break;;
3917 esac
3918 done
3919 else
3920 $as_echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot compute suffix of object files: cannot compile
3926 See \`config.log' for more details" "$LINENO" 5; }
3927 fi
3928 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3931 $as_echo "$ac_cv_objext" >&6; }
3932 OBJEXT=$ac_cv_objext
3933 ac_objext=$OBJEXT
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3935 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3936 if ${ac_cv_c_compiler_gnu+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941
3942 int
3943 main ()
3944 {
3945 #ifndef __GNUC__
3946 choke me
3947 #endif
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_compiler_gnu=yes
3955 else
3956 ac_compiler_gnu=no
3957 fi
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3960
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3963 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3964 if test $ac_compiler_gnu = yes; then
3965 GCC=yes
3966 else
3967 GCC=
3968 fi
3969 ac_test_CFLAGS=${CFLAGS+set}
3970 ac_save_CFLAGS=$CFLAGS
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3972 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3973 if ${ac_cv_prog_cc_g+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 ac_save_c_werror_flag=$ac_c_werror_flag
3977 ac_c_werror_flag=yes
3978 ac_cv_prog_cc_g=no
3979 CFLAGS="-g"
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982
3983 int
3984 main ()
3985 {
3986
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_g=yes
3993 else
3994 CFLAGS=""
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007
4008 else
4009 ac_c_werror_flag=$ac_save_c_werror_flag
4010 CFLAGS="-g"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013
4014 int
4015 main ()
4016 {
4017
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_g=yes
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_c_werror_flag=$ac_save_c_werror_flag
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4033 $as_echo "$ac_cv_prog_cc_g" >&6; }
4034 if test "$ac_test_CFLAGS" = set; then
4035 CFLAGS=$ac_save_CFLAGS
4036 elif test $ac_cv_prog_cc_g = yes; then
4037 if test "$GCC" = yes; then
4038 CFLAGS="-g -O2"
4039 else
4040 CFLAGS="-g"
4041 fi
4042 else
4043 if test "$GCC" = yes; then
4044 CFLAGS="-O2"
4045 else
4046 CFLAGS=
4047 fi
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4050 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4051 if ${ac_cv_prog_cc_c89+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 ac_cv_prog_cc_c89=no
4055 ac_save_CC=$CC
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #include <stdarg.h>
4059 #include <stdio.h>
4060 struct stat;
4061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4062 struct buf { int x; };
4063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064 static char *e (p, i)
4065 char **p;
4066 int i;
4067 {
4068 return p[i];
4069 }
4070 static char *f (char * (*g) (char **, int), char **p, ...)
4071 {
4072 char *s;
4073 va_list v;
4074 va_start (v,p);
4075 s = g (p, va_arg (v,int));
4076 va_end (v);
4077 return s;
4078 }
4079
4080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4081 function prototypes and stuff, but not '\xHH' hex character constants.
4082 These don't provoke an error unfortunately, instead are silently treated
4083 as 'x'. The following induces an error, until -std is added to get
4084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4085 array size at least. It's necessary to write '\x00'==0 to get something
4086 that's true only with -std. */
4087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4088
4089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090 inside strings and character constants. */
4091 #define FOO(x) 'x'
4092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4093
4094 int test (int i, double x);
4095 struct s1 {int (*f) (int a);};
4096 struct s2 {int (*f) (double a);};
4097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098 int argc;
4099 char **argv;
4100 int
4101 main ()
4102 {
4103 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110 do
4111 CC="$ac_save_CC $ac_arg"
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113 ac_cv_prog_cc_c89=$ac_arg
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext
4116 test "x$ac_cv_prog_cc_c89" != "xno" && break
4117 done
4118 rm -f conftest.$ac_ext
4119 CC=$ac_save_CC
4120
4121 fi
4122 # AC_CACHE_VAL
4123 case "x$ac_cv_prog_cc_c89" in
4124 x)
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4126 $as_echo "none needed" >&6; } ;;
4127 xno)
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129 $as_echo "unsupported" >&6; } ;;
4130 *)
4131 CC="$CC $ac_cv_prog_cc_c89"
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4133 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4134 esac
4135 if test "x$ac_cv_prog_cc_c89" != xno; then :
4136
4137 fi
4138
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145 ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4151 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4152 if ${am_cv_prog_cc_c_o+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157
4158 int
4159 main ()
4160 {
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 # Make sure it works both with $CC and with simple cc.
4167 # Following AC_PROG_CC_C_O, we do the test twice because some
4168 # compilers refuse to overwrite an existing .o file with -o,
4169 # though they will create one.
4170 am_cv_prog_cc_c_o=yes
4171 for am_i in 1 2; do
4172 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4173 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } \
4177 && test -f conftest2.$ac_objext; then
4178 : OK
4179 else
4180 am_cv_prog_cc_c_o=no
4181 break
4182 fi
4183 done
4184 rm -f core conftest*
4185 unset am_i
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4188 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4189 if test "$am_cv_prog_cc_c_o" != yes; then
4190 # Losing compiler, so override with the script.
4191 # FIXME: It is wrong to rewrite CC.
4192 # But if we don't then we get into trouble of one sort or another.
4193 # A longer-term fix would be to have automake use am__CC in this case,
4194 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4195 CC="$am_aux_dir/compile $CC"
4196 fi
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203 DEPDIR="${am__leading_dot}deps"
4204
4205 ac_config_commands="$ac_config_commands depfiles"
4206
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4208 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4209 cat > confinc.mk << 'END'
4210 am__doit:
4211 @echo this is the am__doit target >confinc.out
4212 .PHONY: am__doit
4213 END
4214 am__include="#"
4215 am__quote=
4216 # BSD make does it like this.
4217 echo '.include "confinc.mk" # ignored' > confmf.BSD
4218 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4219 echo 'include confinc.mk # ignored' > confmf.GNU
4220 _am_result=no
4221 for s in GNU BSD; do
4222 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4223 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }
4227 case $?:`cat confinc.out 2>/dev/null` in #(
4228 '0:this is the am__doit target') :
4229 case $s in #(
4230 BSD) :
4231 am__include='.include' am__quote='"' ;; #(
4232 *) :
4233 am__include='include' am__quote='' ;;
4234 esac ;; #(
4235 *) :
4236 ;;
4237 esac
4238 if test "$am__include" != "#"; then
4239 _am_result="yes ($s style)"
4240 break
4241 fi
4242 done
4243 rm -f confinc.* confmf.*
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4245 $as_echo "${_am_result}" >&6; }
4246
4247 # Check whether --enable-dependency-tracking was given.
4248 if test "${enable_dependency_tracking+set}" = set; then :
4249 enableval=$enable_dependency_tracking;
4250 fi
4251
4252 if test "x$enable_dependency_tracking" != xno; then
4253 am_depcomp="$ac_aux_dir/depcomp"
4254 AMDEPBACKSLASH='\'
4255 am__nodep='_no'
4256 fi
4257 if test "x$enable_dependency_tracking" != xno; then
4258 AMDEP_TRUE=
4259 AMDEP_FALSE='#'
4260 else
4261 AMDEP_TRUE='#'
4262 AMDEP_FALSE=
4263 fi
4264
4265
4266
4267 depcc="$CC" am_compiler_list=
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4270 $as_echo_n "checking dependency style of $depcc... " >&6; }
4271 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4275 # We make a subdir and do the tests there. Otherwise we can end up
4276 # making bogus files that we don't know about and never remove. For
4277 # instance it was reported that on HP-UX the gcc test will end up
4278 # making a dummy file named 'D' -- because '-MD' means "put the output
4279 # in D".
4280 rm -rf conftest.dir
4281 mkdir conftest.dir
4282 # Copy depcomp to subdir because otherwise we won't find it if we're
4283 # using a relative directory.
4284 cp "$am_depcomp" conftest.dir
4285 cd conftest.dir
4286 # We will build objects and dependencies in a subdirectory because
4287 # it helps to detect inapplicable dependency modes. For instance
4288 # both Tru64's cc and ICC support -MD to output dependencies as a
4289 # side effect of compilation, but ICC will put the dependencies in
4290 # the current directory while Tru64 will put them in the object
4291 # directory.
4292 mkdir sub
4293
4294 am_cv_CC_dependencies_compiler_type=none
4295 if test "$am_compiler_list" = ""; then
4296 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4297 fi
4298 am__universal=false
4299 case " $depcc " in #(
4300 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4301 esac
4302
4303 for depmode in $am_compiler_list; do
4304 # Setup a source with many dependencies, because some compilers
4305 # like to wrap large dependency lists on column 80 (with \), and
4306 # we should not choose a depcomp mode which is confused by this.
4307 #
4308 # We need to recreate these files for each test, as the compiler may
4309 # overwrite some of them when testing with obscure command lines.
4310 # This happens at least with the AIX C compiler.
4311 : > sub/conftest.c
4312 for i in 1 2 3 4 5 6; do
4313 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4314 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4315 # Solaris 10 /bin/sh.
4316 echo '/* dummy */' > sub/conftst$i.h
4317 done
4318 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4319
4320 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4321 # mode. It turns out that the SunPro C++ compiler does not properly
4322 # handle '-M -o', and we need to detect this. Also, some Intel
4323 # versions had trouble with output in subdirs.
4324 am__obj=sub/conftest.${OBJEXT-o}
4325 am__minus_obj="-o $am__obj"
4326 case $depmode in
4327 gcc)
4328 # This depmode causes a compiler race in universal mode.
4329 test "$am__universal" = false || continue
4330 ;;
4331 nosideeffect)
4332 # After this tag, mechanisms are not by side-effect, so they'll
4333 # only be used when explicitly requested.
4334 if test "x$enable_dependency_tracking" = xyes; then
4335 continue
4336 else
4337 break
4338 fi
4339 ;;
4340 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4341 # This compiler won't grok '-c -o', but also, the minuso test has
4342 # not run yet. These depmodes are late enough in the game, and
4343 # so weak that their functioning should not be impacted.
4344 am__obj=conftest.${OBJEXT-o}
4345 am__minus_obj=
4346 ;;
4347 none) break ;;
4348 esac
4349 if depmode=$depmode \
4350 source=sub/conftest.c object=$am__obj \
4351 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4352 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4353 >/dev/null 2>conftest.err &&
4354 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4355 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4356 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4357 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4358 # icc doesn't choke on unknown options, it will just issue warnings
4359 # or remarks (even with -Werror). So we grep stderr for any message
4360 # that says an option was ignored or not supported.
4361 # When given -MP, icc 7.0 and 7.1 complain thusly:
4362 # icc: Command line warning: ignoring option '-M'; no argument required
4363 # The diagnosis changed in icc 8.0:
4364 # icc: Command line remark: option '-MP' not supported
4365 if (grep 'ignoring option' conftest.err ||
4366 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4367 am_cv_CC_dependencies_compiler_type=$depmode
4368 break
4369 fi
4370 fi
4371 done
4372
4373 cd ..
4374 rm -rf conftest.dir
4375 else
4376 am_cv_CC_dependencies_compiler_type=none
4377 fi
4378
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4381 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4382 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4383
4384 if
4385 test "x$enable_dependency_tracking" != xno \
4386 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4387 am__fastdepCC_TRUE=
4388 am__fastdepCC_FALSE='#'
4389 else
4390 am__fastdepCC_TRUE='#'
4391 am__fastdepCC_FALSE=
4392 fi
4393
4394
4395
4396
4397
4398 ac_ext=c
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4404 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4405 # On Suns, sometimes $CPP names a directory.
4406 if test -n "$CPP" && test -d "$CPP"; then
4407 CPP=
4408 fi
4409 if test -z "$CPP"; then
4410 if ${ac_cv_prog_CPP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 # Double quotes because CPP needs to be expanded
4414 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4415 do
4416 ac_preproc_ok=false
4417 for ac_c_preproc_warn_flag in '' yes
4418 do
4419 # Use a header file that comes with gcc, so configuring glibc
4420 # with a fresh cross-compiler works.
4421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422 # <limits.h> exists even on freestanding compilers.
4423 # On the NeXT, cc -E runs the code through the compiler's parser,
4424 # not just through cpp. "Syntax error" is here to catch this case.
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 #ifdef __STDC__
4428 # include <limits.h>
4429 #else
4430 # include <assert.h>
4431 #endif
4432 Syntax error
4433 _ACEOF
4434 if ac_fn_c_try_cpp "$LINENO"; then :
4435
4436 else
4437 # Broken: fails on valid input.
4438 continue
4439 fi
4440 rm -f conftest.err conftest.i conftest.$ac_ext
4441
4442 # OK, works on sane cases. Now check whether nonexistent headers
4443 # can be detected and how.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <ac_nonexistent.h>
4447 _ACEOF
4448 if ac_fn_c_try_cpp "$LINENO"; then :
4449 # Broken: success on invalid input.
4450 continue
4451 else
4452 # Passes both tests.
4453 ac_preproc_ok=:
4454 break
4455 fi
4456 rm -f conftest.err conftest.i conftest.$ac_ext
4457
4458 done
4459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460 rm -f conftest.i conftest.err conftest.$ac_ext
4461 if $ac_preproc_ok; then :
4462 break
4463 fi
4464
4465 done
4466 ac_cv_prog_CPP=$CPP
4467
4468 fi
4469 CPP=$ac_cv_prog_CPP
4470 else
4471 ac_cv_prog_CPP=$CPP
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4474 $as_echo "$CPP" >&6; }
4475 ac_preproc_ok=false
4476 for ac_c_preproc_warn_flag in '' yes
4477 do
4478 # Use a header file that comes with gcc, so configuring glibc
4479 # with a fresh cross-compiler works.
4480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481 # <limits.h> exists even on freestanding compilers.
4482 # On the NeXT, cc -E runs the code through the compiler's parser,
4483 # not just through cpp. "Syntax error" is here to catch this case.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #ifdef __STDC__
4487 # include <limits.h>
4488 #else
4489 # include <assert.h>
4490 #endif
4491 Syntax error
4492 _ACEOF
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4494
4495 else
4496 # Broken: fails on valid input.
4497 continue
4498 fi
4499 rm -f conftest.err conftest.i conftest.$ac_ext
4500
4501 # OK, works on sane cases. Now check whether nonexistent headers
4502 # can be detected and how.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <ac_nonexistent.h>
4506 _ACEOF
4507 if ac_fn_c_try_cpp "$LINENO"; then :
4508 # Broken: success on invalid input.
4509 continue
4510 else
4511 # Passes both tests.
4512 ac_preproc_ok=:
4513 break
4514 fi
4515 rm -f conftest.err conftest.i conftest.$ac_ext
4516
4517 done
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.i conftest.err conftest.$ac_ext
4520 if $ac_preproc_ok; then :
4521
4522 else
4523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4525 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details" "$LINENO" 5; }
4527 fi
4528
4529 ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if ${ac_cv_path_GREP+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -z "$GREP"; then
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 as_fn_executable_p "$ac_path_GREP" || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4558 *)
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4574 fi
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581 $ac_path_GREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_GREP"; then
4587 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588 fi
4589 else
4590 ac_cv_path_GREP=$GREP
4591 fi
4592
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if ${ac_cv_path_EGREP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605 then ac_cv_path_EGREP="$GREP -E"
4606 else
4607 if test -z "$EGREP"; then
4608 ac_path_EGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 as_fn_executable_p "$ac_path_EGREP" || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4622 *GNU*)
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4624 *)
4625 ac_count=0
4626 $as_echo_n 0123456789 >"conftest.in"
4627 while :
4628 do
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4640 fi
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4643 done
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4646
4647 $ac_path_EGREP_found && break 3
4648 done
4649 done
4650 done
4651 IFS=$as_save_IFS
4652 if test -z "$ac_cv_path_EGREP"; then
4653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654 fi
4655 else
4656 ac_cv_path_EGREP=$EGREP
4657 fi
4658
4659 fi
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4664
4665
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4667 $as_echo_n "checking for ANSI C header files... " >&6; }
4668 if ${ac_cv_header_stdc+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 #include <stdlib.h>
4674 #include <stdarg.h>
4675 #include <string.h>
4676 #include <float.h>
4677
4678 int
4679 main ()
4680 {
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 ac_cv_header_stdc=yes
4688 else
4689 ac_cv_header_stdc=no
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692
4693 if test $ac_cv_header_stdc = yes; then
4694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <string.h>
4698
4699 _ACEOF
4700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701 $EGREP "memchr" >/dev/null 2>&1; then :
4702
4703 else
4704 ac_cv_header_stdc=no
4705 fi
4706 rm -f conftest*
4707
4708 fi
4709
4710 if test $ac_cv_header_stdc = yes; then
4711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 #include <stdlib.h>
4715
4716 _ACEOF
4717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4718 $EGREP "free" >/dev/null 2>&1; then :
4719
4720 else
4721 ac_cv_header_stdc=no
4722 fi
4723 rm -f conftest*
4724
4725 fi
4726
4727 if test $ac_cv_header_stdc = yes; then
4728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4729 if test "$cross_compiling" = yes; then :
4730 :
4731 else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #include <ctype.h>
4735 #include <stdlib.h>
4736 #if ((' ' & 0x0FF) == 0x020)
4737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4739 #else
4740 # define ISLOWER(c) \
4741 (('a' <= (c) && (c) <= 'i') \
4742 || ('j' <= (c) && (c) <= 'r') \
4743 || ('s' <= (c) && (c) <= 'z'))
4744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4745 #endif
4746
4747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4748 int
4749 main ()
4750 {
4751 int i;
4752 for (i = 0; i < 256; i++)
4753 if (XOR (islower (i), ISLOWER (i))
4754 || toupper (i) != TOUPPER (i))
4755 return 2;
4756 return 0;
4757 }
4758 _ACEOF
4759 if ac_fn_c_try_run "$LINENO"; then :
4760
4761 else
4762 ac_cv_header_stdc=no
4763 fi
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4765 conftest.$ac_objext conftest.beam conftest.$ac_ext
4766 fi
4767
4768 fi
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4771 $as_echo "$ac_cv_header_stdc" >&6; }
4772 if test $ac_cv_header_stdc = yes; then
4773
4774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4775
4776 fi
4777
4778 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4779 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4780 inttypes.h stdint.h unistd.h
4781 do :
4782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4783 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4784 "
4785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4786 cat >>confdefs.h <<_ACEOF
4787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 _ACEOF
4789
4790 fi
4791
4792 done
4793
4794
4795
4796 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4797 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4798 MINIX=yes
4799 else
4800 MINIX=
4801 fi
4802
4803
4804 if test "$MINIX" = yes; then
4805
4806 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4807
4808
4809 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4810
4811
4812 $as_echo "#define _MINIX 1" >>confdefs.h
4813
4814 fi
4815
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4818 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4819 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824
4825 # define __EXTENSIONS__ 1
4826 $ac_includes_default
4827 int
4828 main ()
4829 {
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 ac_cv_safe_to_define___extensions__=yes
4837 else
4838 ac_cv_safe_to_define___extensions__=no
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4843 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4844 test $ac_cv_safe_to_define___extensions__ = yes &&
4845 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4846
4847 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4848
4849 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4850
4851 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4852
4853 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4854
4855
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4858 $as_echo_n "checking for fgrep... " >&6; }
4859 if ${ac_cv_path_FGREP+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4863 then ac_cv_path_FGREP="$GREP -F"
4864 else
4865 if test -z "$FGREP"; then
4866 ac_path_FGREP_found=false
4867 # Loop through the user's path and test for each of PROGNAME-LIST
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4870 do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_prog in fgrep; do
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4876 as_fn_executable_p "$ac_path_FGREP" || continue
4877 # Check for GNU ac_path_FGREP and select it if it is found.
4878 # Check for GNU $ac_path_FGREP
4879 case `"$ac_path_FGREP" --version 2>&1` in
4880 *GNU*)
4881 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4882 *)
4883 ac_count=0
4884 $as_echo_n 0123456789 >"conftest.in"
4885 while :
4886 do
4887 cat "conftest.in" "conftest.in" >"conftest.tmp"
4888 mv "conftest.tmp" "conftest.in"
4889 cp "conftest.in" "conftest.nl"
4890 $as_echo 'FGREP' >> "conftest.nl"
4891 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4893 as_fn_arith $ac_count + 1 && ac_count=$as_val
4894 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4895 # Best one so far, save it but keep looking for a better one
4896 ac_cv_path_FGREP="$ac_path_FGREP"
4897 ac_path_FGREP_max=$ac_count
4898 fi
4899 # 10*(2^10) chars as input seems more than enough
4900 test $ac_count -gt 10 && break
4901 done
4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4903 esac
4904
4905 $ac_path_FGREP_found && break 3
4906 done
4907 done
4908 done
4909 IFS=$as_save_IFS
4910 if test -z "$ac_cv_path_FGREP"; then
4911 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4912 fi
4913 else
4914 ac_cv_path_FGREP=$FGREP
4915 fi
4916
4917 fi
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4920 $as_echo "$ac_cv_path_FGREP" >&6; }
4921 FGREP="$ac_cv_path_FGREP"
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fgrep support -w option" >&5
4925 $as_echo_n "checking if fgrep support -w option... " >&6; }
4926 if echo 'ab*c' | $FGREP -w -e 'ab*c' >/dev/null 2>&1 ; then
4927 pac_has_fgrep_word="yes"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_has_fgrep_word" >&5
4929 $as_echo "$pac_has_fgrep_word" >&6; }
4930 else
4931 pac_has_fgrep_word="no"
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_has_fgrep_word" >&5
4933 $as_echo "$pac_has_fgrep_word" >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fgrep does not support -w option, skip flag deduplication" >&5
4935 $as_echo "$as_me: WARNING: fgrep does not support -w option, skip flag deduplication" >&2;}
4936 fi
4937
4938
4939 # Add -fno-common on macos to bypass its bad handling of common symbols
4940 case $host in
4941 *-*-darwin*)
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option -fno-common" >&5
4944 $as_echo_n "checking whether C compiler accepts option -fno-common... " >&6; }
4945 pac_opt="-fno-common"
4946 ac_ext=c
4947 ac_cpp='$CPP $CPPFLAGS'
4948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951
4952 CFLAGS_orig="$CFLAGS"
4953 CFLAGS_opt="$pac_opt $CFLAGS"
4954 pac_result="unknown"
4955
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958
4959 #include <stdio.h>
4960 const char hw[] = "Hello, World\n";
4961 int main(void){
4962 fputs (hw, stdout);
4963 return 0;
4964 }
4965
4966 _ACEOF
4967 CFLAGS="$CFLAGS_orig"
4968 rm -f pac_test1.log
4969
4970
4971 # START of PUSHVAL
4972
4973 if ${pac_stk_ac_link_level+:} false; then :
4974
4975 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
4976
4977 else
4978
4979 pac_stk_ac_link_level=0
4980
4981 fi
4982 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
4983 if test "x$pac_stk_ac_link_level" = x0; then :
4984
4985 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
4986
4987 fi
4988
4989 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
4990
4991
4992 # END of PUSHVAL
4993
4994 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
4995 if ac_fn_c_try_link "$LINENO"; then :
4996
4997
4998 CFLAGS="$CFLAGS_opt"
4999 rm -f pac_test2.log
5000
5001
5002 # START of PUSHVAL
5003
5004 if ${pac_stk_ac_link_level+:} false; then :
5005
5006 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
5007
5008 else
5009
5010 pac_stk_ac_link_level=0
5011
5012 fi
5013 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
5014 if test "x$pac_stk_ac_link_level" = x0; then :
5015
5016 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5017
5018 fi
5019
5020 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5021
5022
5023 # END of PUSHVAL
5024
5025 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
5026 if ac_fn_c_try_link "$LINENO"; then :
5027
5028
5029
5030 pac_TESTLOG="pac_test.log"
5031 rm -f $pac_TESTLOG
5032
5033 if
5034 { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
5035 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
5036 ac_status=$?
5037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 test $ac_status = 0; }; then :
5039
5040
5041 pac_result=yes
5042
5043
5044 else
5045
5046 $as_echo "$as_me: program exited with status $ac_status" >&5
5047
5048 (exit $ac_status)
5049
5050 $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
5051 cat $pac_TESTLOG >&5
5052 pac_result=no
5053
5054
5055
5056
5057 fi
5058
5059 rm -f $pac_TESTLOG
5060
5061
5062
5063 else
5064
5065
5066 pac_result=no
5067
5068
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext
5072
5073 # START of POPVAL
5074
5075 if ${pac_stk_ac_link_level+:} false; then :
5076
5077 if test "x$pac_stk_ac_link_level" = x-1; then :
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
5080 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
5081
5082 else
5083
5084 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5085 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
5086
5087 fi
5088
5089 else
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
5092 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
5093
5094 fi
5095
5096 # END of POPVAL
5097
5098
5099
5100
5101 else
5102
5103
5104 pac_result=no
5105
5106
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext \
5109 conftest$ac_exeext
5110
5111 # START of POPVAL
5112
5113 if ${pac_stk_ac_link_level+:} false; then :
5114
5115 if test "x$pac_stk_ac_link_level" = x-1; then :
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
5118 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
5119
5120 else
5121
5122 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5123 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
5124
5125 fi
5126
5127 else
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
5130 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
5131
5132 fi
5133
5134 # END of POPVAL
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
5138 $as_echo "$pac_result" >&6; }
5139 rm -f conftest.$ac_ext
5140
5141 if test "$pac_result" = "yes" ; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
5143 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
5144 pac_result=unknown
5145 CFLAGS="$CFLAGS_orig"
5146 rm -f pac_test3.log
5147
5148
5149 # START of PUSHVAL
5150
5151 if ${pac_stk_ac_compile_level+:} false; then :
5152
5153 as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
5154
5155 else
5156
5157 pac_stk_ac_compile_level=0
5158
5159 fi
5160 eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
5161 if test "x$pac_stk_ac_compile_level" = x0; then :
5162
5163 eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
5164
5165 fi
5166
5167 eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
5168
5169
5170 # END of PUSHVAL
5171
5172 ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175
5176
5177 int foo(void);
5178 int foo(void){return 0;}
5179
5180
5181 _ACEOF
5182 if ac_fn_c_try_compile "$LINENO"; then :
5183
5184
5185
5186 { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
5187 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
5188 ac_status=$?
5189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 test $ac_status = 0; }
5191 saved_LIBS="$LIBS"
5192 LIBS="pac_conftest.$OBJEXT $LIBS"
5193
5194 rm -f pac_test4.log
5195
5196
5197 # START of PUSHVAL
5198
5199 if ${pac_stk_ac_link_level+:} false; then :
5200
5201 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
5202
5203 else
5204
5205 pac_stk_ac_link_level=0
5206
5207 fi
5208 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
5209 if test "x$pac_stk_ac_link_level" = x0; then :
5210
5211 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5212
5213 fi
5214
5215 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5216
5217
5218 # END of PUSHVAL
5219
5220 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 int main(void){return 0;}
5224 _ACEOF
5225 if ac_fn_c_try_link "$LINENO"; then :
5226
5227
5228 CFLAGS="$CFLAGS_opt"
5229 rm -f pac_test5.log
5230
5231
5232 # START of PUSHVAL
5233
5234 if ${pac_stk_ac_link_level+:} false; then :
5235
5236 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
5237
5238 else
5239
5240 pac_stk_ac_link_level=0
5241
5242 fi
5243 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
5244 if test "x$pac_stk_ac_link_level" = x0; then :
5245
5246 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5247
5248 fi
5249
5250 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5251
5252
5253 # END of PUSHVAL
5254
5255 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258 int main(void){return 0;}
5259 _ACEOF
5260 if ac_fn_c_try_link "$LINENO"; then :
5261
5262
5263
5264 pac_TESTLOG="pac_test.log"
5265 rm -f $pac_TESTLOG
5266
5267 if
5268 { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
5269 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
5270 ac_status=$?
5271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 test $ac_status = 0; }; then :
5273
5274
5275 pac_result=yes
5276
5277
5278 else
5279
5280 $as_echo "$as_me: program exited with status $ac_status" >&5
5281
5282 (exit $ac_status)
5283
5284 $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
5285 cat $pac_TESTLOG >&5
5286 pac_result=no
5287
5288
5289
5290
5291 fi
5292
5293 rm -f $pac_TESTLOG
5294
5295
5296
5297 else
5298
5299
5300 pac_result=no
5301
5302
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext \
5305 conftest$ac_exeext conftest.$ac_ext
5306
5307 # START of POPVAL
5308
5309 if ${pac_stk_ac_link_level+:} false; then :
5310
5311 if test "x$pac_stk_ac_link_level" = x-1; then :
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
5314 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
5315
5316 else
5317
5318 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5319 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
5320
5321 fi
5322
5323 else
5324
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
5326 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
5327
5328 fi
5329
5330 # END of POPVAL
5331
5332
5333
5334
5335 else
5336
5337
5338 pac_result=no
5339
5340
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
5344
5345 # START of POPVAL
5346
5347 if ${pac_stk_ac_link_level+:} false; then :
5348
5349 if test "x$pac_stk_ac_link_level" = x-1; then :
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
5352 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
5353
5354 else
5355
5356 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
5357 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
5358
5359 fi
5360
5361 else
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
5364 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
5365
5366 fi
5367
5368 # END of POPVAL
5369
5370
5371 LIBS="$saved_LIBS"
5372 rm -f pac_conftest.$OBJEXT
5373
5374
5375 else
5376
5377
5378 pac_result=no
5379
5380
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383
5384 # START of POPVAL
5385
5386 if ${pac_stk_ac_compile_level+:} false; then :
5387
5388 if test "x$pac_stk_ac_compile_level" = x-1; then :
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
5391 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
5392
5393 else
5394
5395 eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
5396 as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val
5397
5398 fi
5399
5400 else
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
5403 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
5404
5405 fi
5406
5407 # END of POPVAL
5408
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
5411 $as_echo "$pac_result" >&6; }
5412 rm -f pac_test3.log pac_test4.log pac_test5.log
5413 fi
5414 rm -f pac_test1.log pac_test2.log
5415
5416 CFLAGS="$CFLAGS_orig"
5417 if test "$pac_result" = "yes" ; then
5418
5419
5420
5421 if test x$pac_has_fgrep_word = "xyes"; then
5422 if echo "$CFLAGS" | $FGREP -w -e "-fno-common" >/dev/null 2>&1; then :
5423 echo "CFLAGS(='$CFLAGS') contains '-fno-common', not appending" >&5
5424 else
5425 echo "CFLAGS(='$CFLAGS') does not contain '-fno-common', appending" >&5
5426 CFLAGS="$CFLAGS -fno-common"
5427
5428
5429 fi
5430 else
5431 echo "CFLAGS(='$CFLAGS') does not contain '-fno-common', appending" >&5
5432 CFLAGS="$CFLAGS -fno-common"
5433
5434 fi
5435
5436
5437 else
5438 :
5439 fi
5440 ac_ext=c
5441 ac_cpp='$CPP $CPPFLAGS'
5442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5445
5446
5447 ;;
5448 esac
5449
5450
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in ar lib "link -lib"
5453 do
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_AR+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$AR"; then
5462 ac_cv_prog_AR="$AR" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 AR=$ac_cv_prog_AR
5482 if test -n "$AR"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5484 $as_echo "$AR" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 test -n "$AR" && break
5492 done
5493 fi
5494 if test -z "$AR"; then
5495 ac_ct_AR=$AR
5496 for ac_prog in ar lib "link -lib"
5497 do
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -n "$ac_ct_AR"; then
5506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_ac_ct_AR="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5526 if test -n "$ac_ct_AR"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5528 $as_echo "$ac_ct_AR" >&6; }
5529 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 test -n "$ac_ct_AR" && break
5536 done
5537
5538 if test "x$ac_ct_AR" = x; then
5539 AR="false"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 AR=$ac_ct_AR
5548 fi
5549 fi
5550
5551 : ${AR=ar}
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5554 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5555 if ${am_cv_ar_interface+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 ac_ext=c
5559 ac_cpp='$CPP $CPPFLAGS'
5560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5563
5564 am_cv_ar_interface=ar
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 int some_variable = 0;
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5572 (eval $am_ar_try) 2>&5
5573 ac_status=$?
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; }
5576 if test "$ac_status" -eq 0; then
5577 am_cv_ar_interface=ar
5578 else
5579 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5581 (eval $am_ar_try) 2>&5
5582 ac_status=$?
5583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5584 test $ac_status = 0; }
5585 if test "$ac_status" -eq 0; then
5586 am_cv_ar_interface=lib
5587 else
5588 am_cv_ar_interface=unknown
5589 fi
5590 fi
5591 rm -f conftest.lib libconftest.a
5592
5593 fi
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 ac_ext=c
5596 ac_cpp='$CPP $CPPFLAGS'
5597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5603 $as_echo "$am_cv_ar_interface" >&6; }
5604
5605 case $am_cv_ar_interface in
5606 ar)
5607 ;;
5608 lib)
5609 # Microsoft lib, so override with the ar-lib wrapper script.
5610 # FIXME: It is wrong to rewrite AR.
5611 # But if we don't then we get into trouble of one sort or another.
5612 # A longer-term fix would be to have automake use am__AR in this case,
5613 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5614 # similar.
5615 AR="$am_aux_dir/ar-lib $AR"
5616 ;;
5617 unknown)
5618 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5619 ;;
5620 esac
5621
5622
5623
5624
5625 # Bug in libtool adds -O2 and -g by default
5626
5627 if test -z "${pac_save_CFLAGS_nesting}" ; then
5628 pac_save_CFLAGS_nesting=0
5629 fi
5630 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
5631 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
5632
5633 case `pwd` in
5634 *\ * | *\ *)
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5636 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5637 esac
5638
5639
5640
5641 macro_version='2.4.6'
5642 macro_revision='2.4.6'
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 ltmain=$ac_aux_dir/ltmain.sh
5657
5658 # Make sure we can run config.sub.
5659 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5660 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5661
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5663 $as_echo_n "checking build system type... " >&6; }
5664 if ${ac_cv_build+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 ac_build_alias=$build_alias
5668 test "x$ac_build_alias" = x &&
5669 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5670 test "x$ac_build_alias" = x &&
5671 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5672 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5673 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5674
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5677 $as_echo "$ac_cv_build" >&6; }
5678 case $ac_cv_build in
5679 *-*-*) ;;
5680 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5681 esac
5682 build=$ac_cv_build
5683 ac_save_IFS=$IFS; IFS='-'
5684 set x $ac_cv_build
5685 shift
5686 build_cpu=$1
5687 build_vendor=$2
5688 shift; shift
5689 # Remember, the first character of IFS is used to create $*,
5690 # except with old shells:
5691 build_os=$*
5692 IFS=$ac_save_IFS
5693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5697 $as_echo_n "checking host system type... " >&6; }
5698 if ${ac_cv_host+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test "x$host_alias" = x; then
5702 ac_cv_host=$ac_cv_build
5703 else
5704 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5706 fi
5707
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5710 $as_echo "$ac_cv_host" >&6; }
5711 case $ac_cv_host in
5712 *-*-*) ;;
5713 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5714 esac
5715 host=$ac_cv_host
5716 ac_save_IFS=$IFS; IFS='-'
5717 set x $ac_cv_host
5718 shift
5719 host_cpu=$1
5720 host_vendor=$2
5721 shift; shift
5722 # Remember, the first character of IFS is used to create $*,
5723 # except with old shells:
5724 host_os=$*
5725 IFS=$ac_save_IFS
5726 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5727
5728
5729 # Backslashify metacharacters that are still active within
5730 # double-quoted strings.
5731 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5732
5733 # Same as above, but do not quote variable references.
5734 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5735
5736 # Sed substitution to delay expansion of an escaped shell variable in a
5737 # double_quote_subst'ed string.
5738 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5739
5740 # Sed substitution to delay expansion of an escaped single quote.
5741 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5742
5743 # Sed substitution to avoid accidental globbing in evaled expressions
5744 no_glob_subst='s/\*/\\\*/g'
5745
5746 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5747 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5749
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5751 $as_echo_n "checking how to print strings... " >&6; }
5752 # Test print first, because it will be a builtin if present.
5753 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5754 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5755 ECHO='print -r --'
5756 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5757 ECHO='printf %s\n'
5758 else
5759 # Use this function as a fallback that always works.
5760 func_fallback_echo ()
5761 {
5762 eval 'cat <<_LTECHO_EOF
5763 $1
5764 _LTECHO_EOF'
5765 }
5766 ECHO='func_fallback_echo'
5767 fi
5768
5769 # func_echo_all arg...
5770 # Invoke $ECHO with all args, space-separated.
5771 func_echo_all ()
5772 {
5773 $ECHO ""
5774 }
5775
5776 case $ECHO in
5777 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5778 $as_echo "printf" >&6; } ;;
5779 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5780 $as_echo "print -r" >&6; } ;;
5781 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5782 $as_echo "cat" >&6; } ;;
5783 esac
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5799 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5800 if ${ac_cv_path_SED+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5804 for ac_i in 1 2 3 4 5 6 7; do
5805 ac_script="$ac_script$as_nl$ac_script"
5806 done
5807 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5808 { ac_script=; unset ac_script;}
5809 if test -z "$SED"; then
5810 ac_path_SED_found=false
5811 # Loop through the user's path and test for each of PROGNAME-LIST
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_prog in sed gsed; do
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5820 as_fn_executable_p "$ac_path_SED" || continue
5821 # Check for GNU ac_path_SED and select it if it is found.
5822 # Check for GNU $ac_path_SED
5823 case `"$ac_path_SED" --version 2>&1` in
5824 *GNU*)
5825 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5826 *)
5827 ac_count=0
5828 $as_echo_n 0123456789 >"conftest.in"
5829 while :
5830 do
5831 cat "conftest.in" "conftest.in" >"conftest.tmp"
5832 mv "conftest.tmp" "conftest.in"
5833 cp "conftest.in" "conftest.nl"
5834 $as_echo '' >> "conftest.nl"
5835 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5837 as_fn_arith $ac_count + 1 && ac_count=$as_val
5838 if test $ac_count -gt ${ac_path_SED_max-0}; then
5839 # Best one so far, save it but keep looking for a better one
5840 ac_cv_path_SED="$ac_path_SED"
5841 ac_path_SED_max=$ac_count
5842 fi
5843 # 10*(2^10) chars as input seems more than enough
5844 test $ac_count -gt 10 && break
5845 done
5846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5847 esac
5848
5849 $ac_path_SED_found && break 3
5850 done
5851 done
5852 done
5853 IFS=$as_save_IFS
5854 if test -z "$ac_cv_path_SED"; then
5855 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5856 fi
5857 else
5858 ac_cv_path_SED=$SED
5859 fi
5860
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5863 $as_echo "$ac_cv_path_SED" >&6; }
5864 SED="$ac_cv_path_SED"
5865 rm -f conftest.sed
5866
5867 test -z "$SED" && SED=sed
5868 Xsed="$SED -e 1s/^X//"
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 test -z "$GREP" && GREP=grep
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 # Check whether --with-gnu-ld was given.
5901 if test "${with_gnu_ld+set}" = set; then :
5902 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5903 else
5904 with_gnu_ld=no
5905 fi
5906
5907 ac_prog=ld
5908 if test yes = "$GCC"; then
5909 # Check if gcc -print-prog-name=ld gives a path.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5911 $as_echo_n "checking for ld used by $CC... " >&6; }
5912 case $host in
5913 *-*-mingw*)
5914 # gcc leaves a trailing carriage return, which upsets mingw
5915 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5916 *)
5917 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5918 esac
5919 case $ac_prog in
5920 # Accept absolute paths.
5921 [\\/]* | ?:[\\/]*)
5922 re_direlt='/[^/][^/]*/\.\./'
5923 # Canonicalize the pathname of ld
5924 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5925 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5926 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5927 done
5928 test -z "$LD" && LD=$ac_prog
5929 ;;
5930 "")
5931 # If it fails, then pretend we aren't using GCC.
5932 ac_prog=ld
5933 ;;
5934 *)
5935 # If it is relative, then search for the first ld in PATH.
5936 with_gnu_ld=unknown
5937 ;;
5938 esac
5939 elif test yes = "$with_gnu_ld"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5941 $as_echo_n "checking for GNU ld... " >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5944 $as_echo_n "checking for non-GNU ld... " >&6; }
5945 fi
5946 if ${lt_cv_path_LD+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -z "$LD"; then
5950 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5951 for ac_dir in $PATH; do
5952 IFS=$lt_save_ifs
5953 test -z "$ac_dir" && ac_dir=.
5954 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5955 lt_cv_path_LD=$ac_dir/$ac_prog
5956 # Check to see if the program is GNU ld. I'd rather use --version,
5957 # but apparently some variants of GNU ld only accept -v.
5958 # Break only if it was the GNU/non-GNU ld that we prefer.
5959 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5960 *GNU* | *'with BFD'*)
5961 test no != "$with_gnu_ld" && break
5962 ;;
5963 *)
5964 test yes != "$with_gnu_ld" && break
5965 ;;
5966 esac
5967 fi
5968 done
5969 IFS=$lt_save_ifs
5970 else
5971 lt_cv_path_LD=$LD # Let the user override the test with a path.
5972 fi
5973 fi
5974
5975 LD=$lt_cv_path_LD
5976 if test -n "$LD"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5978 $as_echo "$LD" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5985 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5986 if ${lt_cv_prog_gnu_ld+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5990 case `$LD -v 2>&1 </dev/null` in
5991 *GNU* | *'with BFD'*)
5992 lt_cv_prog_gnu_ld=yes
5993 ;;
5994 *)
5995 lt_cv_prog_gnu_ld=no
5996 ;;
5997 esac
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6000 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6001 with_gnu_ld=$lt_cv_prog_gnu_ld
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6012 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6013 if ${lt_cv_path_NM+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test -n "$NM"; then
6017 # Let the user override the test.
6018 lt_cv_path_NM=$NM
6019 else
6020 lt_nm_to_check=${ac_tool_prefix}nm
6021 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6022 lt_nm_to_check="$lt_nm_to_check nm"
6023 fi
6024 for lt_tmp_nm in $lt_nm_to_check; do
6025 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6026 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6027 IFS=$lt_save_ifs
6028 test -z "$ac_dir" && ac_dir=.
6029 tmp_nm=$ac_dir/$lt_tmp_nm
6030 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6031 # Check to see if the nm accepts a BSD-compat flag.
6032 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6033 # nm: unknown option "B" ignored
6034 # Tru64's nm complains that /dev/null is an invalid object file
6035 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6036 case $build_os in
6037 mingw*) lt_bad_file=conftest.nm/nofile ;;
6038 *) lt_bad_file=/dev/null ;;
6039 esac
6040 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6041 *$lt_bad_file* | *'Invalid file or object type'*)
6042 lt_cv_path_NM="$tmp_nm -B"
6043 break 2
6044 ;;
6045 *)
6046 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6047 */dev/null*)
6048 lt_cv_path_NM="$tmp_nm -p"
6049 break 2
6050 ;;
6051 *)
6052 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6053 continue # so that we can try to find one that supports BSD flags
6054 ;;
6055 esac
6056 ;;
6057 esac
6058 fi
6059 done
6060 IFS=$lt_save_ifs
6061 done
6062 : ${lt_cv_path_NM=no}
6063 fi
6064 fi
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6066 $as_echo "$lt_cv_path_NM" >&6; }
6067 if test no != "$lt_cv_path_NM"; then
6068 NM=$lt_cv_path_NM
6069 else
6070 # Didn't find any BSD compatible name lister, look for dumpbin.
6071 if test -n "$DUMPBIN"; then :
6072 # Let the user override the test.
6073 else
6074 if test -n "$ac_tool_prefix"; then
6075 for ac_prog in dumpbin "link -dump"
6076 do
6077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_DUMPBIN+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 if test -n "$DUMPBIN"; then
6085 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098 done
6099 done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 DUMPBIN=$ac_cv_prog_DUMPBIN
6105 if test -n "$DUMPBIN"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6107 $as_echo "$DUMPBIN" >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113
6114 test -n "$DUMPBIN" && break
6115 done
6116 fi
6117 if test -z "$DUMPBIN"; then
6118 ac_ct_DUMPBIN=$DUMPBIN
6119 for ac_prog in dumpbin "link -dump"
6120 do
6121 # Extract the first word of "$ac_prog", so it can be a program name with args.
6122 set dummy $ac_prog; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$ac_ct_DUMPBIN"; then
6129 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142 done
6143 done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6149 if test -n "$ac_ct_DUMPBIN"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6151 $as_echo "$ac_ct_DUMPBIN" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157
6158 test -n "$ac_ct_DUMPBIN" && break
6159 done
6160
6161 if test "x$ac_ct_DUMPBIN" = x; then
6162 DUMPBIN=":"
6163 else
6164 case $cross_compiling:$ac_tool_warned in
6165 yes:)
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168 ac_tool_warned=yes ;;
6169 esac
6170 DUMPBIN=$ac_ct_DUMPBIN
6171 fi
6172 fi
6173
6174 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6175 *COFF*)
6176 DUMPBIN="$DUMPBIN -symbols -headers"
6177 ;;
6178 *)
6179 DUMPBIN=:
6180 ;;
6181 esac
6182 fi
6183
6184 if test : != "$DUMPBIN"; then
6185 NM=$DUMPBIN
6186 fi
6187 fi
6188 test -z "$NM" && NM=nm
6189
6190
6191
6192
6193
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6196 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6197 if ${lt_cv_nm_interface+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 lt_cv_nm_interface="BSD nm"
6201 echo "int some_variable = 0;" > conftest.$ac_ext
6202 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6203 (eval "$ac_compile" 2>conftest.err)
6204 cat conftest.err >&5
6205 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6206 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6207 cat conftest.err >&5
6208 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6209 cat conftest.out >&5
6210 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6211 lt_cv_nm_interface="MS dumpbin"
6212 fi
6213 rm -f conftest*
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6216 $as_echo "$lt_cv_nm_interface" >&6; }
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6219 $as_echo_n "checking whether ln -s works... " >&6; }
6220 LN_S=$as_ln_s
6221 if test "$LN_S" = "ln -s"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6223 $as_echo "yes" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6226 $as_echo "no, using $LN_S" >&6; }
6227 fi
6228
6229 # find the maximum length of command line arguments
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6231 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6232 if ${lt_cv_sys_max_cmd_len+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 i=0
6236 teststring=ABCD
6237
6238 case $build_os in
6239 msdosdjgpp*)
6240 # On DJGPP, this test can blow up pretty badly due to problems in libc
6241 # (any single argument exceeding 2000 bytes causes a buffer overrun
6242 # during glob expansion). Even if it were fixed, the result of this
6243 # check would be larger than it should be.
6244 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6245 ;;
6246
6247 gnu*)
6248 # Under GNU Hurd, this test is not required because there is
6249 # no limit to the length of command line arguments.
6250 # Libtool will interpret -1 as no limit whatsoever
6251 lt_cv_sys_max_cmd_len=-1;
6252 ;;
6253
6254 cygwin* | mingw* | cegcc*)
6255 # On Win9x/ME, this test blows up -- it succeeds, but takes
6256 # about 5 minutes as the teststring grows exponentially.
6257 # Worse, since 9x/ME are not pre-emptively multitasking,
6258 # you end up with a "frozen" computer, even though with patience
6259 # the test eventually succeeds (with a max line length of 256k).
6260 # Instead, let's just punt: use the minimum linelength reported by
6261 # all of the supported platforms: 8192 (on NT/2K/XP).
6262 lt_cv_sys_max_cmd_len=8192;
6263 ;;
6264
6265 mint*)
6266 # On MiNT this can take a long time and run out of memory.
6267 lt_cv_sys_max_cmd_len=8192;
6268 ;;
6269
6270 amigaos*)
6271 # On AmigaOS with pdksh, this test takes hours, literally.
6272 # So we just punt and use a minimum line length of 8192.
6273 lt_cv_sys_max_cmd_len=8192;
6274 ;;
6275
6276 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6277 # This has been around since 386BSD, at least. Likely further.
6278 if test -x /sbin/sysctl; then
6279 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6280 elif test -x /usr/sbin/sysctl; then
6281 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6282 else
6283 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6284 fi
6285 # And add a safety zone
6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6288 ;;
6289
6290 interix*)
6291 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6292 lt_cv_sys_max_cmd_len=196608
6293 ;;
6294
6295 os2*)
6296 # The test takes a long time on OS/2.
6297 lt_cv_sys_max_cmd_len=8192
6298 ;;
6299
6300 osf*)
6301 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6302 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6303 # nice to cause kernel panics so lets avoid the loop below.
6304 # First set a reasonable default.
6305 lt_cv_sys_max_cmd_len=16384
6306 #
6307 if test -x /sbin/sysconfig; then
6308 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6309 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6310 esac
6311 fi
6312 ;;
6313 sco3.2v5*)
6314 lt_cv_sys_max_cmd_len=102400
6315 ;;
6316 sysv5* | sco5v6* | sysv4.2uw2*)
6317 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6318 if test -n "$kargmax"; then
6319 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6320 else
6321 lt_cv_sys_max_cmd_len=32768
6322 fi
6323 ;;
6324 *)
6325 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6326 if test -n "$lt_cv_sys_max_cmd_len" && \
6327 test undefined != "$lt_cv_sys_max_cmd_len"; then
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6330 else
6331 # Make teststring a little bigger before we do anything with it.
6332 # a 1K string should be a reasonable start.
6333 for i in 1 2 3 4 5 6 7 8; do
6334 teststring=$teststring$teststring
6335 done
6336 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6337 # If test is not a shell built-in, we'll probably end up computing a
6338 # maximum length that is only half of the actual maximum length, but
6339 # we can't tell.
6340 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6341 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6342 test 17 != "$i" # 1/2 MB should be enough
6343 do
6344 i=`expr $i + 1`
6345 teststring=$teststring$teststring
6346 done
6347 # Only check the string length outside the loop.
6348 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6349 teststring=
6350 # Add a significant safety factor because C++ compilers can tack on
6351 # massive amounts of additional arguments before passing them to the
6352 # linker. It appears as though 1/2 is a usable value.
6353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6354 fi
6355 ;;
6356 esac
6357
6358 fi
6359
6360 if test -n "$lt_cv_sys_max_cmd_len"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6362 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6365 $as_echo "none" >&6; }
6366 fi
6367 max_cmd_len=$lt_cv_sys_max_cmd_len
6368
6369
6370
6371
6372
6373
6374 : ${CP="cp -f"}
6375 : ${MV="mv -f"}
6376 : ${RM="rm -f"}
6377
6378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6379 lt_unset=unset
6380 else
6381 lt_unset=false
6382 fi
6383
6384
6385
6386
6387
6388 # test EBCDIC or ASCII
6389 case `echo X|tr X '\101'` in
6390 A) # ASCII based system
6391 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6392 lt_SP2NL='tr \040 \012'
6393 lt_NL2SP='tr \015\012 \040\040'
6394 ;;
6395 *) # EBCDIC based system
6396 lt_SP2NL='tr \100 \n'
6397 lt_NL2SP='tr \r\n \100\100'
6398 ;;
6399 esac
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6410 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6411 if ${lt_cv_to_host_file_cmd+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 case $host in
6415 *-*-mingw* )
6416 case $build in
6417 *-*-mingw* ) # actually msys
6418 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6419 ;;
6420 *-*-cygwin* )
6421 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6422 ;;
6423 * ) # otherwise, assume *nix
6424 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6425 ;;
6426 esac
6427 ;;
6428 *-*-cygwin* )
6429 case $build in
6430 *-*-mingw* ) # actually msys
6431 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6432 ;;
6433 *-*-cygwin* )
6434 lt_cv_to_host_file_cmd=func_convert_file_noop
6435 ;;
6436 * ) # otherwise, assume *nix
6437 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6438 ;;
6439 esac
6440 ;;
6441 * ) # unhandled hosts (and "normal" native builds)
6442 lt_cv_to_host_file_cmd=func_convert_file_noop
6443 ;;
6444 esac
6445
6446 fi
6447
6448 to_host_file_cmd=$lt_cv_to_host_file_cmd
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6450 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6451
6452
6453
6454
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6457 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6458 if ${lt_cv_to_tool_file_cmd+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 #assume ordinary cross tools, or native build.
6462 lt_cv_to_tool_file_cmd=func_convert_file_noop
6463 case $host in
6464 *-*-mingw* )
6465 case $build in
6466 *-*-mingw* ) # actually msys
6467 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6468 ;;
6469 esac
6470 ;;
6471 esac
6472
6473 fi
6474
6475 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6477 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6478
6479
6480
6481
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6484 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6485 if ${lt_cv_ld_reload_flag+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 lt_cv_ld_reload_flag='-r'
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6491 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6492 reload_flag=$lt_cv_ld_reload_flag
6493 case $reload_flag in
6494 "" | " "*) ;;
6495 *) reload_flag=" $reload_flag" ;;
6496 esac
6497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6498 case $host_os in
6499 cygwin* | mingw* | pw32* | cegcc*)
6500 if test yes != "$GCC"; then
6501 reload_cmds=false
6502 fi
6503 ;;
6504 darwin*)
6505 if test yes = "$GCC"; then
6506 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6507 else
6508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6509 fi
6510 ;;
6511 esac
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_OBJDUMP+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$OBJDUMP"; then
6530 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 OBJDUMP=$ac_cv_prog_OBJDUMP
6550 if test -n "$OBJDUMP"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6552 $as_echo "$OBJDUMP" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_OBJDUMP"; then
6561 ac_ct_OBJDUMP=$OBJDUMP
6562 # Extract the first word of "objdump", so it can be a program name with args.
6563 set dummy objdump; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$ac_ct_OBJDUMP"; then
6570 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6590 if test -n "$ac_ct_OBJDUMP"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6592 $as_echo "$ac_ct_OBJDUMP" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598 if test "x$ac_ct_OBJDUMP" = x; then
6599 OBJDUMP="false"
6600 else
6601 case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607 OBJDUMP=$ac_ct_OBJDUMP
6608 fi
6609 else
6610 OBJDUMP="$ac_cv_prog_OBJDUMP"
6611 fi
6612
6613 test -z "$OBJDUMP" && OBJDUMP=objdump
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6624 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6625 if ${lt_cv_deplibs_check_method+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 lt_cv_file_magic_cmd='$MAGIC_CMD'
6629 lt_cv_file_magic_test_file=
6630 lt_cv_deplibs_check_method='unknown'
6631 # Need to set the preceding variable on all platforms that support
6632 # interlibrary dependencies.
6633 # 'none' -- dependencies not supported.
6634 # 'unknown' -- same as none, but documents that we really don't know.
6635 # 'pass_all' -- all dependencies passed with no checks.
6636 # 'test_compile' -- check by making test program.
6637 # 'file_magic [[regex]]' -- check by looking for files in library path
6638 # that responds to the $file_magic_cmd with a given extended regex.
6639 # If you have 'file' or equivalent on your system and you're not sure
6640 # whether 'pass_all' will *always* work, you probably want this one.
6641
6642 case $host_os in
6643 aix[4-9]*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647 beos*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651 bsdi[45]*)
6652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6653 lt_cv_file_magic_cmd='/usr/bin/file -L'
6654 lt_cv_file_magic_test_file=/shlib/libc.so
6655 ;;
6656
6657 cygwin*)
6658 # func_win32_libid is a shell function defined in ltmain.sh
6659 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6660 lt_cv_file_magic_cmd='func_win32_libid'
6661 ;;
6662
6663 mingw* | pw32*)
6664 # Base MSYS/MinGW do not provide the 'file' command needed by
6665 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6666 # unless we find 'file', for example because we are cross-compiling.
6667 if ( file / ) >/dev/null 2>&1; then
6668 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6669 lt_cv_file_magic_cmd='func_win32_libid'
6670 else
6671 # Keep this pattern in sync with the one in func_win32_libid.
6672 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6673 lt_cv_file_magic_cmd='$OBJDUMP -f'
6674 fi
6675 ;;
6676
6677 cegcc*)
6678 # use the weaker test based on 'objdump'. See mingw*.
6679 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6680 lt_cv_file_magic_cmd='$OBJDUMP -f'
6681 ;;
6682
6683 darwin* | rhapsody*)
6684 lt_cv_deplibs_check_method=pass_all
6685 ;;
6686
6687 freebsd* | dragonfly*)
6688 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6689 case $host_cpu in
6690 i*86 )
6691 # Not sure whether the presence of OpenBSD here was a mistake.
6692 # Let's accept both of them until this is cleared up.
6693 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6694 lt_cv_file_magic_cmd=/usr/bin/file
6695 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6696 ;;
6697 esac
6698 else
6699 lt_cv_deplibs_check_method=pass_all
6700 fi
6701 ;;
6702
6703 haiku*)
6704 lt_cv_deplibs_check_method=pass_all
6705 ;;
6706
6707 hpux10.20* | hpux11*)
6708 lt_cv_file_magic_cmd=/usr/bin/file
6709 case $host_cpu in
6710 ia64*)
6711 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6712 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6713 ;;
6714 hppa*64*)
6715 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]'
6716 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6717 ;;
6718 *)
6719 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6720 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6721 ;;
6722 esac
6723 ;;
6724
6725 interix[3-9]*)
6726 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6728 ;;
6729
6730 irix5* | irix6* | nonstopux*)
6731 case $LD in
6732 *-32|*"-32 ") libmagic=32-bit;;
6733 *-n32|*"-n32 ") libmagic=N32;;
6734 *-64|*"-64 ") libmagic=64-bit;;
6735 *) libmagic=never-match;;
6736 esac
6737 lt_cv_deplibs_check_method=pass_all
6738 ;;
6739
6740 # This must be glibc/ELF.
6741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6742 lt_cv_deplibs_check_method=pass_all
6743 ;;
6744
6745 netbsd*)
6746 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6748 else
6749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6750 fi
6751 ;;
6752
6753 newos6*)
6754 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6755 lt_cv_file_magic_cmd=/usr/bin/file
6756 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6757 ;;
6758
6759 *nto* | *qnx*)
6760 lt_cv_deplibs_check_method=pass_all
6761 ;;
6762
6763 openbsd* | bitrig*)
6764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6766 else
6767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6768 fi
6769 ;;
6770
6771 osf3* | osf4* | osf5*)
6772 lt_cv_deplibs_check_method=pass_all
6773 ;;
6774
6775 rdos*)
6776 lt_cv_deplibs_check_method=pass_all
6777 ;;
6778
6779 solaris*)
6780 lt_cv_deplibs_check_method=pass_all
6781 ;;
6782
6783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6784 lt_cv_deplibs_check_method=pass_all
6785 ;;
6786
6787 sysv4 | sysv4.3*)
6788 case $host_vendor in
6789 motorola)
6790 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]'
6791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6792 ;;
6793 ncr)
6794 lt_cv_deplibs_check_method=pass_all
6795 ;;
6796 sequent)
6797 lt_cv_file_magic_cmd='/bin/file'
6798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6799 ;;
6800 sni)
6801 lt_cv_file_magic_cmd='/bin/file'
6802 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6803 lt_cv_file_magic_test_file=/lib/libc.so
6804 ;;
6805 siemens)
6806 lt_cv_deplibs_check_method=pass_all
6807 ;;
6808 pc)
6809 lt_cv_deplibs_check_method=pass_all
6810 ;;
6811 esac
6812 ;;
6813
6814 tpf*)
6815 lt_cv_deplibs_check_method=pass_all
6816 ;;
6817 os2*)
6818 lt_cv_deplibs_check_method=pass_all
6819 ;;
6820 esac
6821
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6824 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6825
6826 file_magic_glob=
6827 want_nocaseglob=no
6828 if test "$build" = "$host"; then
6829 case $host_os in
6830 mingw* | pw32*)
6831 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6832 want_nocaseglob=yes
6833 else
6834 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6835 fi
6836 ;;
6837 esac
6838 fi
6839
6840 file_magic_cmd=$lt_cv_file_magic_cmd
6841 deplibs_check_method=$lt_cv_deplibs_check_method
6842 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865 if test -n "$ac_tool_prefix"; then
6866 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6867 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_DLLTOOL+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$DLLTOOL"; then
6874 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 DLLTOOL=$ac_cv_prog_DLLTOOL
6894 if test -n "$DLLTOOL"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6896 $as_echo "$DLLTOOL" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902
6903 fi
6904 if test -z "$ac_cv_prog_DLLTOOL"; then
6905 ac_ct_DLLTOOL=$DLLTOOL
6906 # Extract the first word of "dlltool", so it can be a program name with args.
6907 set dummy dlltool; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 if test -n "$ac_ct_DLLTOOL"; then
6914 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6934 if test -n "$ac_ct_DLLTOOL"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6936 $as_echo "$ac_ct_DLLTOOL" >&6; }
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942 if test "x$ac_ct_DLLTOOL" = x; then
6943 DLLTOOL="false"
6944 else
6945 case $cross_compiling:$ac_tool_warned in
6946 yes:)
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951 DLLTOOL=$ac_ct_DLLTOOL
6952 fi
6953 else
6954 DLLTOOL="$ac_cv_prog_DLLTOOL"
6955 fi
6956
6957 test -z "$DLLTOOL" && DLLTOOL=dlltool
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6969 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6970 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 lt_cv_sharedlib_from_linklib_cmd='unknown'
6974
6975 case $host_os in
6976 cygwin* | mingw* | pw32* | cegcc*)
6977 # two different shell functions defined in ltmain.sh;
6978 # decide which one to use based on capabilities of $DLLTOOL
6979 case `$DLLTOOL --help 2>&1` in
6980 *--identify-strict*)
6981 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6982 ;;
6983 *)
6984 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6985 ;;
6986 esac
6987 ;;
6988 *)
6989 # fallback: assume linklib IS sharedlib
6990 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6991 ;;
6992 esac
6993
6994 fi
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6996 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6997 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6998 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6999
7000
7001
7002
7003
7004
7005
7006 if test -n "$ac_tool_prefix"; then
7007 for ac_prog in ar
7008 do
7009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_AR+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 if test -n "$AR"; then
7017 ac_cv_prog_AR="$AR" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7029 fi
7030 done
7031 done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 AR=$ac_cv_prog_AR
7037 if test -n "$AR"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7039 $as_echo "$AR" >&6; }
7040 else
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7043 fi
7044
7045
7046 test -n "$AR" && break
7047 done
7048 fi
7049 if test -z "$AR"; then
7050 ac_ct_AR=$AR
7051 for ac_prog in ar
7052 do
7053 # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test -n "$ac_ct_AR"; then
7061 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_ac_ct_AR="$ac_prog"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074 done
7075 done
7076 IFS=$as_save_IFS
7077
7078 fi
7079 fi
7080 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7081 if test -n "$ac_ct_AR"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7083 $as_echo "$ac_ct_AR" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7087 fi
7088
7089
7090 test -n "$ac_ct_AR" && break
7091 done
7092
7093 if test "x$ac_ct_AR" = x; then
7094 AR="false"
7095 else
7096 case $cross_compiling:$ac_tool_warned in
7097 yes:)
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100 ac_tool_warned=yes ;;
7101 esac
7102 AR=$ac_ct_AR
7103 fi
7104 fi
7105
7106 : ${AR=ar}
7107 : ${AR_FLAGS=cru}
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7120 $as_echo_n "checking for archiver @FILE support... " >&6; }
7121 if ${lt_cv_ar_at_file+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 lt_cv_ar_at_file=no
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127
7128 int
7129 main ()
7130 {
7131
7132 ;
7133 return 0;
7134 }
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 echo conftest.$ac_objext > conftest.lst
7138 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7140 (eval $lt_ar_try) 2>&5
7141 ac_status=$?
7142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143 test $ac_status = 0; }
7144 if test 0 -eq "$ac_status"; then
7145 # Ensure the archiver fails upon bogus file names.
7146 rm -f conftest.$ac_objext libconftest.a
7147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7148 (eval $lt_ar_try) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; }
7152 if test 0 -ne "$ac_status"; then
7153 lt_cv_ar_at_file=@
7154 fi
7155 fi
7156 rm -f conftest.* libconftest.a
7157
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160
7161 fi
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7163 $as_echo "$lt_cv_ar_at_file" >&6; }
7164
7165 if test no = "$lt_cv_ar_at_file"; then
7166 archiver_list_spec=
7167 else
7168 archiver_list_spec=$lt_cv_ar_at_file
7169 fi
7170
7171
7172
7173
7174
7175
7176
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}strip; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_STRIP+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$STRIP"; then
7186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 STRIP=$ac_cv_prog_STRIP
7206 if test -n "$STRIP"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7208 $as_echo "$STRIP" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214
7215 fi
7216 if test -z "$ac_cv_prog_STRIP"; then
7217 ac_ct_STRIP=$STRIP
7218 # Extract the first word of "strip", so it can be a program name with args.
7219 set dummy strip; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$ac_ct_STRIP"; then
7226 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_ac_ct_STRIP="strip"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7246 if test -n "$ac_ct_STRIP"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7248 $as_echo "$ac_ct_STRIP" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254 if test "x$ac_ct_STRIP" = x; then
7255 STRIP=":"
7256 else
7257 case $cross_compiling:$ac_tool_warned in
7258 yes:)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263 STRIP=$ac_ct_STRIP
7264 fi
7265 else
7266 STRIP="$ac_cv_prog_STRIP"
7267 fi
7268
7269 test -z "$STRIP" && STRIP=:
7270
7271
7272
7273
7274
7275
7276 if test -n "$ac_tool_prefix"; then
7277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_RANLIB+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 if test -n "$RANLIB"; then
7285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298 done
7299 done
7300 IFS=$as_save_IFS
7301
7302 fi
7303 fi
7304 RANLIB=$ac_cv_prog_RANLIB
7305 if test -n "$RANLIB"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7307 $as_echo "$RANLIB" >&6; }
7308 else
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313
7314 fi
7315 if test -z "$ac_cv_prog_RANLIB"; then
7316 ac_ct_RANLIB=$RANLIB
7317 # Extract the first word of "ranlib", so it can be a program name with args.
7318 set dummy ranlib; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 if test -n "$ac_ct_RANLIB"; then
7325 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_ac_ct_RANLIB="ranlib"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7337 fi
7338 done
7339 done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7345 if test -n "$ac_ct_RANLIB"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7347 $as_echo "$ac_ct_RANLIB" >&6; }
7348 else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353 if test "x$ac_ct_RANLIB" = x; then
7354 RANLIB=":"
7355 else
7356 case $cross_compiling:$ac_tool_warned in
7357 yes:)
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362 RANLIB=$ac_ct_RANLIB
7363 fi
7364 else
7365 RANLIB="$ac_cv_prog_RANLIB"
7366 fi
7367
7368 test -z "$RANLIB" && RANLIB=:
7369
7370
7371
7372
7373
7374
7375 # Determine commands to create old-style static archives.
7376 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7377 old_postinstall_cmds='chmod 644 $oldlib'
7378 old_postuninstall_cmds=
7379
7380 if test -n "$RANLIB"; then
7381 case $host_os in
7382 bitrig* | openbsd*)
7383 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7384 ;;
7385 *)
7386 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7387 ;;
7388 esac
7389 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7390 fi
7391
7392 case $host_os in
7393 darwin*)
7394 lock_old_archive_extraction=yes ;;
7395 *)
7396 lock_old_archive_extraction=no ;;
7397 esac
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 # If no C compiler was specified, use CC.
7438 LTCC=${LTCC-"$CC"}
7439
7440 # If no C compiler flags were specified, use CFLAGS.
7441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7442
7443 # Allow CC to be a program name with arguments.
7444 compiler=$CC
7445
7446
7447 # Check for command to grab the raw symbol name followed by C symbol from nm.
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7449 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7450 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453
7454 # These are sane defaults that work on at least a few old systems.
7455 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7456
7457 # Character class describing NM global symbol codes.
7458 symcode='[BCDEGRST]'
7459
7460 # Regexp to match symbols that can be accessed directly from C.
7461 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7462
7463 # Define system-specific variables.
7464 case $host_os in
7465 aix*)
7466 symcode='[BCDT]'
7467 ;;
7468 cygwin* | mingw* | pw32* | cegcc*)
7469 symcode='[ABCDGISTW]'
7470 ;;
7471 hpux*)
7472 if test ia64 = "$host_cpu"; then
7473 symcode='[ABCDEGRST]'
7474 fi
7475 ;;
7476 irix* | nonstopux*)
7477 symcode='[BCDEGRST]'
7478 ;;
7479 osf*)
7480 symcode='[BCDEGQRST]'
7481 ;;
7482 solaris*)
7483 symcode='[BDRT]'
7484 ;;
7485 sco3.2v5*)
7486 symcode='[DT]'
7487 ;;
7488 sysv4.2uw2*)
7489 symcode='[DT]'
7490 ;;
7491 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7492 symcode='[ABDT]'
7493 ;;
7494 sysv4)
7495 symcode='[DFNSTU]'
7496 ;;
7497 esac
7498
7499 # If we're using GNU nm, then use its standard symbol codes.
7500 case `$NM -V 2>&1` in
7501 *GNU* | *'with BFD'*)
7502 symcode='[ABCDGIRSTW]' ;;
7503 esac
7504
7505 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7506 # Gets list of data symbols to import.
7507 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7508 # Adjust the below global symbol transforms to fixup imported variables.
7509 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7510 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7511 lt_c_name_lib_hook="\
7512 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7513 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7514 else
7515 # Disable hooks by default.
7516 lt_cv_sys_global_symbol_to_import=
7517 lt_cdecl_hook=
7518 lt_c_name_hook=
7519 lt_c_name_lib_hook=
7520 fi
7521
7522 # Transform an extracted symbol line into a proper C declaration.
7523 # Some systems (esp. on ia64) link data and code symbols differently,
7524 # so use this general approach.
7525 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7526 $lt_cdecl_hook\
7527 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7528 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7529
7530 # Transform an extracted symbol line into symbol name and symbol address
7531 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7532 $lt_c_name_hook\
7533 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7534 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7535
7536 # Transform an extracted symbol line into symbol name with lib prefix and
7537 # symbol address.
7538 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7539 $lt_c_name_lib_hook\
7540 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7541 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7542 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7543
7544 # Handle CRLF in mingw tool chain
7545 opt_cr=
7546 case $build_os in
7547 mingw*)
7548 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7549 ;;
7550 esac
7551
7552 # Try without a prefix underscore, then with it.
7553 for ac_symprfx in "" "_"; do
7554
7555 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7556 symxfrm="\\1 $ac_symprfx\\2 \\2"
7557
7558 # Write the raw and C identifiers.
7559 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7560 # Fake it for dumpbin and say T for any non-static function,
7561 # D for any global variable and I for any imported variable.
7562 # Also find C++ and __fastcall symbols from MSVC++,
7563 # which start with @ or ?.
7564 lt_cv_sys_global_symbol_pipe="$AWK '"\
7565 " {last_section=section; section=\$ 3};"\
7566 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7567 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7568 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7569 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7570 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7571 " \$ 0!~/External *\|/{next};"\
7572 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7573 " {if(hide[section]) next};"\
7574 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7575 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7576 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7577 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7578 " ' prfx=^$ac_symprfx"
7579 else
7580 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7581 fi
7582 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7583
7584 # Check to see that the pipe works correctly.
7585 pipe_works=no
7586
7587 rm -f conftest*
7588 cat > conftest.$ac_ext <<_LT_EOF
7589 #ifdef __cplusplus
7590 extern "C" {
7591 #endif
7592 char nm_test_var;
7593 void nm_test_func(void);
7594 void nm_test_func(void){}
7595 #ifdef __cplusplus
7596 }
7597 #endif
7598 int main(){nm_test_var='a';nm_test_func();return(0);}
7599 _LT_EOF
7600
7601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7602 (eval $ac_compile) 2>&5
7603 ac_status=$?
7604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7605 test $ac_status = 0; }; then
7606 # Now try to grab the symbols.
7607 nlist=conftest.nm
7608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7609 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7610 ac_status=$?
7611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612 test $ac_status = 0; } && test -s "$nlist"; then
7613 # Try sorting and uniquifying the output.
7614 if sort "$nlist" | uniq > "$nlist"T; then
7615 mv -f "$nlist"T "$nlist"
7616 else
7617 rm -f "$nlist"T
7618 fi
7619
7620 # Make sure that we snagged all the symbols we need.
7621 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7622 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7623 cat <<_LT_EOF > conftest.$ac_ext
7624 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7625 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7626 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7627 relocations are performed -- see ld's documentation on pseudo-relocs. */
7628 # define LT_DLSYM_CONST
7629 #elif defined __osf__
7630 /* This system does not cope well with relocations in const data. */
7631 # define LT_DLSYM_CONST
7632 #else
7633 # define LT_DLSYM_CONST const
7634 #endif
7635
7636 #ifdef __cplusplus
7637 extern "C" {
7638 #endif
7639
7640 _LT_EOF
7641 # Now generate the symbol file.
7642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7643
7644 cat <<_LT_EOF >> conftest.$ac_ext
7645
7646 /* The mapping between symbol names and symbols. */
7647 LT_DLSYM_CONST struct {
7648 const char *name;
7649 void *address;
7650 }
7651 lt__PROGRAM__LTX_preloaded_symbols[] =
7652 {
7653 { "@PROGRAM@", (void *) 0 },
7654 _LT_EOF
7655 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7656 cat <<\_LT_EOF >> conftest.$ac_ext
7657 {0, (void *) 0}
7658 };
7659
7660 /* This works around a problem in FreeBSD linker */
7661 #ifdef FREEBSD_WORKAROUND
7662 static const void *lt_preloaded_setup() {
7663 return lt__PROGRAM__LTX_preloaded_symbols;
7664 }
7665 #endif
7666
7667 #ifdef __cplusplus
7668 }
7669 #endif
7670 _LT_EOF
7671 # Now try linking the two files.
7672 mv conftest.$ac_objext conftstm.$ac_objext
7673 lt_globsym_save_LIBS=$LIBS
7674 lt_globsym_save_CFLAGS=$CFLAGS
7675 LIBS=conftstm.$ac_objext
7676 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7678 (eval $ac_link) 2>&5
7679 ac_status=$?
7680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7682 pipe_works=yes
7683 fi
7684 LIBS=$lt_globsym_save_LIBS
7685 CFLAGS=$lt_globsym_save_CFLAGS
7686 else
7687 echo "cannot find nm_test_func in $nlist" >&5
7688 fi
7689 else
7690 echo "cannot find nm_test_var in $nlist" >&5
7691 fi
7692 else
7693 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7694 fi
7695 else
7696 echo "$progname: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7698 fi
7699 rm -rf conftest* conftst*
7700
7701 # Do not use the global_symbol_pipe unless it works.
7702 if test yes = "$pipe_works"; then
7703 break
7704 else
7705 lt_cv_sys_global_symbol_pipe=
7706 fi
7707 done
7708
7709 fi
7710
7711 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7712 lt_cv_sys_global_symbol_to_cdecl=
7713 fi
7714 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7716 $as_echo "failed" >&6; }
7717 else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7719 $as_echo "ok" >&6; }
7720 fi
7721
7722 # Response file support.
7723 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7724 nm_file_list_spec='@'
7725 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7726 nm_file_list_spec='@'
7727 fi
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7766 $as_echo_n "checking for sysroot... " >&6; }
7767
7768 # Check whether --with-sysroot was given.
7769 if test "${with_sysroot+set}" = set; then :
7770 withval=$with_sysroot;
7771 else
7772 with_sysroot=no
7773 fi
7774
7775
7776 lt_sysroot=
7777 case $with_sysroot in #(
7778 yes)
7779 if test yes = "$GCC"; then
7780 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7781 fi
7782 ;; #(
7783 /*)
7784 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7785 ;; #(
7786 no|'')
7787 ;; #(
7788 *)
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7790 $as_echo "$with_sysroot" >&6; }
7791 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7792 ;;
7793 esac
7794
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7796 $as_echo "${lt_sysroot:-no}" >&6; }
7797
7798
7799
7800
7801
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7803 $as_echo_n "checking for a working dd... " >&6; }
7804 if ${ac_cv_path_lt_DD+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 printf 0123456789abcdef0123456789abcdef >conftest.i
7808 cat conftest.i conftest.i >conftest2.i
7809 : ${lt_DD:=$DD}
7810 if test -z "$lt_DD"; then
7811 ac_path_lt_DD_found=false
7812 # Loop through the user's path and test for each of PROGNAME-LIST
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_prog in dd; do
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7821 as_fn_executable_p "$ac_path_lt_DD" || continue
7822 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7823 cmp -s conftest.i conftest.out \
7824 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7825 fi
7826 $ac_path_lt_DD_found && break 3
7827 done
7828 done
7829 done
7830 IFS=$as_save_IFS
7831 if test -z "$ac_cv_path_lt_DD"; then
7832 :
7833 fi
7834 else
7835 ac_cv_path_lt_DD=$lt_DD
7836 fi
7837
7838 rm -f conftest.i conftest2.i conftest.out
7839 fi
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7841 $as_echo "$ac_cv_path_lt_DD" >&6; }
7842
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7845 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7846 if ${lt_cv_truncate_bin+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 printf 0123456789abcdef0123456789abcdef >conftest.i
7850 cat conftest.i conftest.i >conftest2.i
7851 lt_cv_truncate_bin=
7852 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7853 cmp -s conftest.i conftest.out \
7854 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7855 fi
7856 rm -f conftest.i conftest2.i conftest.out
7857 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7860 $as_echo "$lt_cv_truncate_bin" >&6; }
7861
7862
7863
7864
7865
7866
7867
7868 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7869 func_cc_basename ()
7870 {
7871 for cc_temp in $*""; do
7872 case $cc_temp in
7873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7875 \-*) ;;
7876 *) break;;
7877 esac
7878 done
7879 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7880 }
7881
7882 # Check whether --enable-libtool-lock was given.
7883 if test "${enable_libtool_lock+set}" = set; then :
7884 enableval=$enable_libtool_lock;
7885 fi
7886
7887 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7888
7889 # Some flags need to be propagated to the compiler or linker for good
7890 # libtool support.
7891 case $host in
7892 ia64-*-hpux*)
7893 # Find out what ABI is being produced by ac_compile, and set mode
7894 # options accordingly.
7895 echo 'int i;' > conftest.$ac_ext
7896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7897 (eval $ac_compile) 2>&5
7898 ac_status=$?
7899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900 test $ac_status = 0; }; then
7901 case `/usr/bin/file conftest.$ac_objext` in
7902 *ELF-32*)
7903 HPUX_IA64_MODE=32
7904 ;;
7905 *ELF-64*)
7906 HPUX_IA64_MODE=64
7907 ;;
7908 esac
7909 fi
7910 rm -rf conftest*
7911 ;;
7912 *-*-irix6*)
7913 # Find out what ABI is being produced by ac_compile, and set linker
7914 # options accordingly.
7915 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7917 (eval $ac_compile) 2>&5
7918 ac_status=$?
7919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920 test $ac_status = 0; }; then
7921 if test yes = "$lt_cv_prog_gnu_ld"; then
7922 case `/usr/bin/file conftest.$ac_objext` in
7923 *32-bit*)
7924 LD="${LD-ld} -melf32bsmip"
7925 ;;
7926 *N32*)
7927 LD="${LD-ld} -melf32bmipn32"
7928 ;;
7929 *64-bit*)
7930 LD="${LD-ld} -melf64bmip"
7931 ;;
7932 esac
7933 else
7934 case `/usr/bin/file conftest.$ac_objext` in
7935 *32-bit*)
7936 LD="${LD-ld} -32"
7937 ;;
7938 *N32*)
7939 LD="${LD-ld} -n32"
7940 ;;
7941 *64-bit*)
7942 LD="${LD-ld} -64"
7943 ;;
7944 esac
7945 fi
7946 fi
7947 rm -rf conftest*
7948 ;;
7949
7950 mips64*-*linux*)
7951 # Find out what ABI is being produced by ac_compile, and set linker
7952 # options accordingly.
7953 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7955 (eval $ac_compile) 2>&5
7956 ac_status=$?
7957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958 test $ac_status = 0; }; then
7959 emul=elf
7960 case `/usr/bin/file conftest.$ac_objext` in
7961 *32-bit*)
7962 emul="${emul}32"
7963 ;;
7964 *64-bit*)
7965 emul="${emul}64"
7966 ;;
7967 esac
7968 case `/usr/bin/file conftest.$ac_objext` in
7969 *MSB*)
7970 emul="${emul}btsmip"
7971 ;;
7972 *LSB*)
7973 emul="${emul}ltsmip"
7974 ;;
7975 esac
7976 case `/usr/bin/file conftest.$ac_objext` in
7977 *N32*)
7978 emul="${emul}n32"
7979 ;;
7980 esac
7981 LD="${LD-ld} -m $emul"
7982 fi
7983 rm -rf conftest*
7984 ;;
7985
7986 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7987 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7988 # Find out what ABI is being produced by ac_compile, and set linker
7989 # options accordingly. Note that the listed cases only cover the
7990 # situations where additional linker options are needed (such as when
7991 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7992 # vice versa); the common cases where no linker options are needed do
7993 # not appear in the list.
7994 echo 'int i;' > conftest.$ac_ext
7995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7996 (eval $ac_compile) 2>&5
7997 ac_status=$?
7998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7999 test $ac_status = 0; }; then
8000 case `/usr/bin/file conftest.o` in
8001 *32-bit*)
8002 case $host in
8003 x86_64-*kfreebsd*-gnu)
8004 LD="${LD-ld} -m elf_i386_fbsd"
8005 ;;
8006 x86_64-*linux*)
8007 case `/usr/bin/file conftest.o` in
8008 *x86-64*)
8009 LD="${LD-ld} -m elf32_x86_64"
8010 ;;
8011 *)
8012 LD="${LD-ld} -m elf_i386"
8013 ;;
8014 esac
8015 ;;
8016 powerpc64le-*linux*)
8017 LD="${LD-ld} -m elf32lppclinux"
8018 ;;
8019 powerpc64-*linux*)
8020 LD="${LD-ld} -m elf32ppclinux"
8021 ;;
8022 s390x-*linux*)
8023 LD="${LD-ld} -m elf_s390"
8024 ;;
8025 sparc64-*linux*)
8026 LD="${LD-ld} -m elf32_sparc"
8027 ;;
8028 esac
8029 ;;
8030 *64-bit*)
8031 case $host in
8032 x86_64-*kfreebsd*-gnu)
8033 LD="${LD-ld} -m elf_x86_64_fbsd"
8034 ;;
8035 x86_64-*linux*)
8036 LD="${LD-ld} -m elf_x86_64"
8037 ;;
8038 powerpcle-*linux*)
8039 LD="${LD-ld} -m elf64lppc"
8040 ;;
8041 powerpc-*linux*)
8042 LD="${LD-ld} -m elf64ppc"
8043 ;;
8044 s390*-*linux*|s390*-*tpf*)
8045 LD="${LD-ld} -m elf64_s390"
8046 ;;
8047 sparc*-*linux*)
8048 LD="${LD-ld} -m elf64_sparc"
8049 ;;
8050 esac
8051 ;;
8052 esac
8053 fi
8054 rm -rf conftest*
8055 ;;
8056
8057 *-*-sco3.2v5*)
8058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8059 SAVE_CFLAGS=$CFLAGS
8060 CFLAGS="$CFLAGS -belf"
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8062 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8063 if ${lt_cv_cc_needs_belf+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 ac_ext=c
8067 ac_cpp='$CPP $CPPFLAGS'
8068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074
8075 int
8076 main ()
8077 {
8078
8079 ;
8080 return 0;
8081 }
8082 _ACEOF
8083 if ac_fn_c_try_link "$LINENO"; then :
8084 lt_cv_cc_needs_belf=yes
8085 else
8086 lt_cv_cc_needs_belf=no
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8090 ac_ext=c
8091 ac_cpp='$CPP $CPPFLAGS'
8092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8098 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8099 if test yes != "$lt_cv_cc_needs_belf"; then
8100 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8101 CFLAGS=$SAVE_CFLAGS
8102 fi
8103 ;;
8104 *-*solaris*)
8105 # Find out what ABI is being produced by ac_compile, and set linker
8106 # options accordingly.
8107 echo 'int i;' > conftest.$ac_ext
8108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8109 (eval $ac_compile) 2>&5
8110 ac_status=$?
8111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8112 test $ac_status = 0; }; then
8113 case `/usr/bin/file conftest.o` in
8114 *64-bit*)
8115 case $lt_cv_prog_gnu_ld in
8116 yes*)
8117 case $host in
8118 i?86-*-solaris*|x86_64-*-solaris*)
8119 LD="${LD-ld} -m elf_x86_64"
8120 ;;
8121 sparc*-*-solaris*)
8122 LD="${LD-ld} -m elf64_sparc"
8123 ;;
8124 esac
8125 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8126 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8127 LD=${LD-ld}_sol2
8128 fi
8129 ;;
8130 *)
8131 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8132 LD="${LD-ld} -64"
8133 fi
8134 ;;
8135 esac
8136 ;;
8137 esac
8138 fi
8139 rm -rf conftest*
8140 ;;
8141 esac
8142
8143 need_locks=$enable_libtool_lock
8144
8145 if test -n "$ac_tool_prefix"; then
8146 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8147 set dummy ${ac_tool_prefix}mt; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 if test -n "$MANIFEST_TOOL"; then
8154 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8166 fi
8167 done
8168 done
8169 IFS=$as_save_IFS
8170
8171 fi
8172 fi
8173 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8174 if test -n "$MANIFEST_TOOL"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8176 $as_echo "$MANIFEST_TOOL" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8180 fi
8181
8182
8183 fi
8184 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8185 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8186 # Extract the first word of "mt", so it can be a program name with args.
8187 set dummy mt; ac_word=$2
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189 $as_echo_n "checking for $ac_word... " >&6; }
8190 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 if test -n "$ac_ct_MANIFEST_TOOL"; then
8194 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8195 else
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8198 do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8203 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8206 fi
8207 done
8208 done
8209 IFS=$as_save_IFS
8210
8211 fi
8212 fi
8213 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8214 if test -n "$ac_ct_MANIFEST_TOOL"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8216 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8217 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221
8222 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8223 MANIFEST_TOOL=":"
8224 else
8225 case $cross_compiling:$ac_tool_warned in
8226 yes:)
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8229 ac_tool_warned=yes ;;
8230 esac
8231 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8232 fi
8233 else
8234 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8235 fi
8236
8237 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8239 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8240 if ${lt_cv_path_mainfest_tool+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 lt_cv_path_mainfest_tool=no
8244 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8245 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8246 cat conftest.err >&5
8247 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8248 lt_cv_path_mainfest_tool=yes
8249 fi
8250 rm -f conftest*
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8253 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8254 if test yes != "$lt_cv_path_mainfest_tool"; then
8255 MANIFEST_TOOL=:
8256 fi
8257
8258
8259
8260
8261
8262
8263 case $host_os in
8264 rhapsody* | darwin*)
8265 if test -n "$ac_tool_prefix"; then
8266 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 if test -n "$DSYMUTIL"; then
8274 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8286 fi
8287 done
8288 done
8289 IFS=$as_save_IFS
8290
8291 fi
8292 fi
8293 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8294 if test -n "$DSYMUTIL"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8296 $as_echo "$DSYMUTIL" >&6; }
8297 else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8300 fi
8301
8302
8303 fi
8304 if test -z "$ac_cv_prog_DSYMUTIL"; then
8305 ac_ct_DSYMUTIL=$DSYMUTIL
8306 # Extract the first word of "dsymutil", so it can be a program name with args.
8307 set dummy dsymutil; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 if test -n "$ac_ct_DSYMUTIL"; then
8314 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8326 fi
8327 done
8328 done
8329 IFS=$as_save_IFS
8330
8331 fi
8332 fi
8333 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8334 if test -n "$ac_ct_DSYMUTIL"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8336 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8337 else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342 if test "x$ac_ct_DSYMUTIL" = x; then
8343 DSYMUTIL=":"
8344 else
8345 case $cross_compiling:$ac_tool_warned in
8346 yes:)
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8349 ac_tool_warned=yes ;;
8350 esac
8351 DSYMUTIL=$ac_ct_DSYMUTIL
8352 fi
8353 else
8354 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8355 fi
8356
8357 if test -n "$ac_tool_prefix"; then
8358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8359 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if ${ac_cv_prog_NMEDIT+:} false; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 if test -n "$NMEDIT"; then
8366 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8367 else
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371 IFS=$as_save_IFS
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 break 2
8378 fi
8379 done
8380 done
8381 IFS=$as_save_IFS
8382
8383 fi
8384 fi
8385 NMEDIT=$ac_cv_prog_NMEDIT
8386 if test -n "$NMEDIT"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8388 $as_echo "$NMEDIT" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8392 fi
8393
8394
8395 fi
8396 if test -z "$ac_cv_prog_NMEDIT"; then
8397 ac_ct_NMEDIT=$NMEDIT
8398 # Extract the first word of "nmedit", so it can be a program name with args.
8399 set dummy nmedit; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 if test -n "$ac_ct_NMEDIT"; then
8406 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8415 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 break 2
8418 fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8426 if test -n "$ac_ct_NMEDIT"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8428 $as_echo "$ac_ct_NMEDIT" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8432 fi
8433
8434 if test "x$ac_ct_NMEDIT" = x; then
8435 NMEDIT=":"
8436 else
8437 case $cross_compiling:$ac_tool_warned in
8438 yes:)
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8441 ac_tool_warned=yes ;;
8442 esac
8443 NMEDIT=$ac_ct_NMEDIT
8444 fi
8445 else
8446 NMEDIT="$ac_cv_prog_NMEDIT"
8447 fi
8448
8449 if test -n "$ac_tool_prefix"; then
8450 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8451 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if ${ac_cv_prog_LIPO+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 if test -n "$LIPO"; then
8458 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8470 fi
8471 done
8472 done
8473 IFS=$as_save_IFS
8474
8475 fi
8476 fi
8477 LIPO=$ac_cv_prog_LIPO
8478 if test -n "$LIPO"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8480 $as_echo "$LIPO" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8484 fi
8485
8486
8487 fi
8488 if test -z "$ac_cv_prog_LIPO"; then
8489 ac_ct_LIPO=$LIPO
8490 # Extract the first word of "lipo", so it can be a program name with args.
8491 set dummy lipo; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$ac_ct_LIPO"; then
8498 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_ac_ct_LIPO="lipo"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511 done
8512 done
8513 IFS=$as_save_IFS
8514
8515 fi
8516 fi
8517 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8518 if test -n "$ac_ct_LIPO"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8520 $as_echo "$ac_ct_LIPO" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8524 fi
8525
8526 if test "x$ac_ct_LIPO" = x; then
8527 LIPO=":"
8528 else
8529 case $cross_compiling:$ac_tool_warned in
8530 yes:)
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8533 ac_tool_warned=yes ;;
8534 esac
8535 LIPO=$ac_ct_LIPO
8536 fi
8537 else
8538 LIPO="$ac_cv_prog_LIPO"
8539 fi
8540
8541 if test -n "$ac_tool_prefix"; then
8542 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8543 set dummy ${ac_tool_prefix}otool; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if ${ac_cv_prog_OTOOL+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 if test -n "$OTOOL"; then
8550 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555 IFS=$as_save_IFS
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 break 2
8562 fi
8563 done
8564 done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 OTOOL=$ac_cv_prog_OTOOL
8570 if test -n "$OTOOL"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8572 $as_echo "$OTOOL" >&6; }
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578
8579 fi
8580 if test -z "$ac_cv_prog_OTOOL"; then
8581 ac_ct_OTOOL=$OTOOL
8582 # Extract the first word of "otool", so it can be a program name with args.
8583 set dummy otool; ac_word=$2
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 $as_echo_n "checking for $ac_word... " >&6; }
8586 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 if test -n "$ac_ct_OTOOL"; then
8590 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8591 else
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8599 ac_cv_prog_ac_ct_OTOOL="otool"
8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 break 2
8602 fi
8603 done
8604 done
8605 IFS=$as_save_IFS
8606
8607 fi
8608 fi
8609 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8610 if test -n "$ac_ct_OTOOL"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8612 $as_echo "$ac_ct_OTOOL" >&6; }
8613 else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 fi
8617
8618 if test "x$ac_ct_OTOOL" = x; then
8619 OTOOL=":"
8620 else
8621 case $cross_compiling:$ac_tool_warned in
8622 yes:)
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8625 ac_tool_warned=yes ;;
8626 esac
8627 OTOOL=$ac_ct_OTOOL
8628 fi
8629 else
8630 OTOOL="$ac_cv_prog_OTOOL"
8631 fi
8632
8633 if test -n "$ac_tool_prefix"; then
8634 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8635 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_prog_OTOOL64+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 if test -n "$OTOOL64"; then
8642 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8646 do
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8654 fi
8655 done
8656 done
8657 IFS=$as_save_IFS
8658
8659 fi
8660 fi
8661 OTOOL64=$ac_cv_prog_OTOOL64
8662 if test -n "$OTOOL64"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8664 $as_echo "$OTOOL64" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8668 fi
8669
8670
8671 fi
8672 if test -z "$ac_cv_prog_OTOOL64"; then
8673 ac_ct_OTOOL64=$OTOOL64
8674 # Extract the first word of "otool64", so it can be a program name with args.
8675 set dummy otool64; ac_word=$2
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 $as_echo_n "checking for $ac_word... " >&6; }
8678 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 if test -n "$ac_ct_OTOOL64"; then
8682 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8683 else
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in $PATH
8686 do
8687 IFS=$as_save_IFS
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691 ac_cv_prog_ac_ct_OTOOL64="otool64"
8692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 break 2
8694 fi
8695 done
8696 done
8697 IFS=$as_save_IFS
8698
8699 fi
8700 fi
8701 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8702 if test -n "$ac_ct_OTOOL64"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8704 $as_echo "$ac_ct_OTOOL64" >&6; }
8705 else
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8708 fi
8709
8710 if test "x$ac_ct_OTOOL64" = x; then
8711 OTOOL64=":"
8712 else
8713 case $cross_compiling:$ac_tool_warned in
8714 yes:)
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8717 ac_tool_warned=yes ;;
8718 esac
8719 OTOOL64=$ac_ct_OTOOL64
8720 fi
8721 else
8722 OTOOL64="$ac_cv_prog_OTOOL64"
8723 fi
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8752 $as_echo_n "checking for -single_module linker flag... " >&6; }
8753 if ${lt_cv_apple_cc_single_mod+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 lt_cv_apple_cc_single_mod=no
8757 if test -z "$LT_MULTI_MODULE"; then
8758 # By default we will add the -single_module flag. You can override
8759 # by either setting the environment variable LT_MULTI_MODULE
8760 # non-empty at configure time, or by adding -multi_module to the
8761 # link flags.
8762 rm -rf libconftest.dylib*
8763 echo "int foo(void){return 1;}" > conftest.c
8764 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8765 -dynamiclib -Wl,-single_module conftest.c" >&5
8766 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8767 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8768 _lt_result=$?
8769 # If there is a non-empty error log, and "single_module"
8770 # appears in it, assume the flag caused a linker warning
8771 if test -s conftest.err && $GREP single_module conftest.err; then
8772 cat conftest.err >&5
8773 # Otherwise, if the output was created with a 0 exit code from
8774 # the compiler, it worked.
8775 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8776 lt_cv_apple_cc_single_mod=yes
8777 else
8778 cat conftest.err >&5
8779 fi
8780 rm -rf libconftest.dylib*
8781 rm -f conftest.*
8782 fi
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8785 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8788 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8789 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 lt_cv_ld_exported_symbols_list=no
8793 save_LDFLAGS=$LDFLAGS
8794 echo "_main" > conftest.sym
8795 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798
8799 int
8800 main ()
8801 {
8802
8803 ;
8804 return 0;
8805 }
8806 _ACEOF
8807 if ac_fn_c_try_link "$LINENO"; then :
8808 lt_cv_ld_exported_symbols_list=yes
8809 else
8810 lt_cv_ld_exported_symbols_list=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814 LDFLAGS=$save_LDFLAGS
8815
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8818 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8821 $as_echo_n "checking for -force_load linker flag... " >&6; }
8822 if ${lt_cv_ld_force_load+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 lt_cv_ld_force_load=no
8826 cat > conftest.c << _LT_EOF
8827 int forced_loaded() { return 2;}
8828 _LT_EOF
8829 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8830 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8831 echo "$AR cru libconftest.a conftest.o" >&5
8832 $AR cru libconftest.a conftest.o 2>&5
8833 echo "$RANLIB libconftest.a" >&5
8834 $RANLIB libconftest.a 2>&5
8835 cat > conftest.c << _LT_EOF
8836 int main() { return 0;}
8837 _LT_EOF
8838 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8839 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8840 _lt_result=$?
8841 if test -s conftest.err && $GREP force_load conftest.err; then
8842 cat conftest.err >&5
8843 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8844 lt_cv_ld_force_load=yes
8845 else
8846 cat conftest.err >&5
8847 fi
8848 rm -f conftest.err libconftest.a conftest conftest.c
8849 rm -rf conftest.dSYM
8850
8851 fi
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8853 $as_echo "$lt_cv_ld_force_load" >&6; }
8854 case $host_os in
8855 rhapsody* | darwin1.[012])
8856 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8857 darwin1.*)
8858 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8859 darwin*) # darwin 5.x on
8860 # if running on 10.5 or later, the deployment target defaults
8861 # to the OS version, if on x86, and 10.4, the deployment
8862 # target defaults to 10.4. Don't you love it?
8863 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8864 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8865 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8866 10.[012][,.]*)
8867 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8868 10.*)
8869 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8870 esac
8871 ;;
8872 esac
8873 if test yes = "$lt_cv_apple_cc_single_mod"; then
8874 _lt_dar_single_mod='$single_module'
8875 fi
8876 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8877 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8878 else
8879 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8880 fi
8881 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8882 _lt_dsymutil='~$DSYMUTIL $lib || :'
8883 else
8884 _lt_dsymutil=
8885 fi
8886 ;;
8887 esac
8888
8889 # func_munge_path_list VARIABLE PATH
8890 # -----------------------------------
8891 # VARIABLE is name of variable containing _space_ separated list of
8892 # directories to be munged by the contents of PATH, which is string
8893 # having a format:
8894 # "DIR[:DIR]:"
8895 # string "DIR[ DIR]" will be prepended to VARIABLE
8896 # ":DIR[:DIR]"
8897 # string "DIR[ DIR]" will be appended to VARIABLE
8898 # "DIRP[:DIRP]::[DIRA:]DIRA"
8899 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8900 # "DIRA[ DIRA]" will be appended to VARIABLE
8901 # "DIR[:DIR]"
8902 # VARIABLE will be replaced by "DIR[ DIR]"
8903 func_munge_path_list ()
8904 {
8905 case x$2 in
8906 x)
8907 ;;
8908 *:)
8909 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8910 ;;
8911 x:*)
8912 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8913 ;;
8914 *::*)
8915 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8916 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8917 ;;
8918 *)
8919 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8920 ;;
8921 esac
8922 }
8923
8924 for ac_header in dlfcn.h
8925 do :
8926 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8927 "
8928 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8929 cat >>confdefs.h <<_ACEOF
8930 #define HAVE_DLFCN_H 1
8931 _ACEOF
8932
8933 fi
8934
8935 done
8936
8937
8938
8939
8940
8941 # Set options
8942
8943
8944
8945 enable_dlopen=no
8946
8947
8948 enable_win32_dll=no
8949
8950
8951 # Check whether --enable-shared was given.
8952 if test "${enable_shared+set}" = set; then :
8953 enableval=$enable_shared; p=${PACKAGE-default}
8954 case $enableval in
8955 yes) enable_shared=yes ;;
8956 no) enable_shared=no ;;
8957 *)
8958 enable_shared=no
8959 # Look at the argument we got. We use all the common list separators.
8960 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8961 for pkg in $enableval; do
8962 IFS=$lt_save_ifs
8963 if test "X$pkg" = "X$p"; then
8964 enable_shared=yes
8965 fi
8966 done
8967 IFS=$lt_save_ifs
8968 ;;
8969 esac
8970 else
8971 enable_shared=yes
8972 fi
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982 # Check whether --enable-static was given.
8983 if test "${enable_static+set}" = set; then :
8984 enableval=$enable_static; p=${PACKAGE-default}
8985 case $enableval in
8986 yes) enable_static=yes ;;
8987 no) enable_static=no ;;
8988 *)
8989 enable_static=no
8990 # Look at the argument we got. We use all the common list separators.
8991 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8992 for pkg in $enableval; do
8993 IFS=$lt_save_ifs
8994 if test "X$pkg" = "X$p"; then
8995 enable_static=yes
8996 fi
8997 done
8998 IFS=$lt_save_ifs
8999 ;;
9000 esac
9001 else
9002 enable_static=yes
9003 fi
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014 # Check whether --with-pic was given.
9015 if test "${with_pic+set}" = set; then :
9016 withval=$with_pic; lt_p=${PACKAGE-default}
9017 case $withval in
9018 yes|no) pic_mode=$withval ;;
9019 *)
9020 pic_mode=default
9021 # Look at the argument we got. We use all the common list separators.
9022 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9023 for lt_pkg in $withval; do
9024 IFS=$lt_save_ifs
9025 if test "X$lt_pkg" = "X$lt_p"; then
9026 pic_mode=yes
9027 fi
9028 done
9029 IFS=$lt_save_ifs
9030 ;;
9031 esac
9032 else
9033 pic_mode=default
9034 fi
9035
9036
9037
9038
9039
9040
9041
9042
9043 # Check whether --enable-fast-install was given.
9044 if test "${enable_fast_install+set}" = set; then :
9045 enableval=$enable_fast_install; p=${PACKAGE-default}
9046 case $enableval in
9047 yes) enable_fast_install=yes ;;
9048 no) enable_fast_install=no ;;
9049 *)
9050 enable_fast_install=no
9051 # Look at the argument we got. We use all the common list separators.
9052 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9053 for pkg in $enableval; do
9054 IFS=$lt_save_ifs
9055 if test "X$pkg" = "X$p"; then
9056 enable_fast_install=yes
9057 fi
9058 done
9059 IFS=$lt_save_ifs
9060 ;;
9061 esac
9062 else
9063 enable_fast_install=yes
9064 fi
9065
9066
9067
9068
9069
9070
9071
9072
9073 shared_archive_member_spec=
9074 case $host,$enable_shared in
9075 power*-*-aix[5-9]*,yes)
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9077 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9078
9079 # Check whether --with-aix-soname was given.
9080 if test "${with_aix_soname+set}" = set; then :
9081 withval=$with_aix_soname; case $withval in
9082 aix|svr4|both)
9083 ;;
9084 *)
9085 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9086 ;;
9087 esac
9088 lt_cv_with_aix_soname=$with_aix_soname
9089 else
9090 if ${lt_cv_with_aix_soname+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 lt_cv_with_aix_soname=aix
9094 fi
9095
9096 with_aix_soname=$lt_cv_with_aix_soname
9097 fi
9098
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9100 $as_echo "$with_aix_soname" >&6; }
9101 if test aix != "$with_aix_soname"; then
9102 # For the AIX way of multilib, we name the shared archive member
9103 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9104 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9105 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9106 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9107 if test 64 = "${OBJECT_MODE-32}"; then
9108 shared_archive_member_spec=shr_64
9109 else
9110 shared_archive_member_spec=shr
9111 fi
9112 fi
9113 ;;
9114 *)
9115 with_aix_soname=aix
9116 ;;
9117 esac
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128 # This can be used to rebuild libtool when needed
9129 LIBTOOL_DEPS=$ltmain
9130
9131 # Always use our own libtool.
9132 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163 test -z "$LN_S" && LN_S="ln -s"
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178 if test -n "${ZSH_VERSION+set}"; then
9179 setopt NO_GLOB_SUBST
9180 fi
9181
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9183 $as_echo_n "checking for objdir... " >&6; }
9184 if ${lt_cv_objdir+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 rm -f .libs 2>/dev/null
9188 mkdir .libs 2>/dev/null
9189 if test -d .libs; then
9190 lt_cv_objdir=.libs
9191 else
9192 # MS-DOS does not allow filenames that begin with a dot.
9193 lt_cv_objdir=_libs
9194 fi
9195 rmdir .libs 2>/dev/null
9196 fi
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9198 $as_echo "$lt_cv_objdir" >&6; }
9199 objdir=$lt_cv_objdir
9200
9201
9202
9203
9204
9205 cat >>confdefs.h <<_ACEOF
9206 #define LT_OBJDIR "$lt_cv_objdir/"
9207 _ACEOF
9208
9209
9210
9211
9212 case $host_os in
9213 aix3*)
9214 # AIX sometimes has problems with the GCC collect2 program. For some
9215 # reason, if we set the COLLECT_NAMES environment variable, the problems
9216 # vanish in a puff of smoke.
9217 if test set != "${COLLECT_NAMES+set}"; then
9218 COLLECT_NAMES=
9219 export COLLECT_NAMES
9220 fi
9221 ;;
9222 esac
9223
9224 # Global variables:
9225 ofile=libtool
9226 can_build_shared=yes
9227
9228 # All known linkers require a '.a' archive for static linking (except MSVC,
9229 # which needs '.lib').
9230 libext=a
9231
9232 with_gnu_ld=$lt_cv_prog_gnu_ld
9233
9234 old_CC=$CC
9235 old_CFLAGS=$CFLAGS
9236
9237 # Set sane defaults for various variables
9238 test -z "$CC" && CC=cc
9239 test -z "$LTCC" && LTCC=$CC
9240 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9241 test -z "$LD" && LD=ld
9242 test -z "$ac_objext" && ac_objext=o
9243
9244 func_cc_basename $compiler
9245 cc_basename=$func_cc_basename_result
9246
9247
9248 # Only perform the check for file, if the check method requires it
9249 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9250 case $deplibs_check_method in
9251 file_magic*)
9252 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9254 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9255 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 case $MAGIC_CMD in
9259 [\\/*] | ?:[\\/]*)
9260 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9261 ;;
9262 *)
9263 lt_save_MAGIC_CMD=$MAGIC_CMD
9264 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9265 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9266 for ac_dir in $ac_dummy; do
9267 IFS=$lt_save_ifs
9268 test -z "$ac_dir" && ac_dir=.
9269 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9270 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9271 if test -n "$file_magic_test_file"; then
9272 case $deplibs_check_method in
9273 "file_magic "*)
9274 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9275 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9276 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9277 $EGREP "$file_magic_regex" > /dev/null; then
9278 :
9279 else
9280 cat <<_LT_EOF 1>&2
9281
9282 *** Warning: the command libtool uses to detect shared libraries,
9283 *** $file_magic_cmd, produces output that libtool cannot recognize.
9284 *** The result is that libtool may fail to recognize shared libraries
9285 *** as such. This will affect the creation of libtool libraries that
9286 *** depend on shared libraries, but programs linked with such libtool
9287 *** libraries will work regardless of this problem. Nevertheless, you
9288 *** may want to report the problem to your system manager and/or to
9289 *** [email protected]
9290
9291 _LT_EOF
9292 fi ;;
9293 esac
9294 fi
9295 break
9296 fi
9297 done
9298 IFS=$lt_save_ifs
9299 MAGIC_CMD=$lt_save_MAGIC_CMD
9300 ;;
9301 esac
9302 fi
9303
9304 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9305 if test -n "$MAGIC_CMD"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9307 $as_echo "$MAGIC_CMD" >&6; }
9308 else
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9311 fi
9312
9313
9314
9315
9316
9317 if test -z "$lt_cv_path_MAGIC_CMD"; then
9318 if test -n "$ac_tool_prefix"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9320 $as_echo_n "checking for file... " >&6; }
9321 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 case $MAGIC_CMD in
9325 [\\/*] | ?:[\\/]*)
9326 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9327 ;;
9328 *)
9329 lt_save_MAGIC_CMD=$MAGIC_CMD
9330 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9331 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9332 for ac_dir in $ac_dummy; do
9333 IFS=$lt_save_ifs
9334 test -z "$ac_dir" && ac_dir=.
9335 if test -f "$ac_dir/file"; then
9336 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9337 if test -n "$file_magic_test_file"; then
9338 case $deplibs_check_method in
9339 "file_magic "*)
9340 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9341 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9342 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9343 $EGREP "$file_magic_regex" > /dev/null; then
9344 :
9345 else
9346 cat <<_LT_EOF 1>&2
9347
9348 *** Warning: the command libtool uses to detect shared libraries,
9349 *** $file_magic_cmd, produces output that libtool cannot recognize.
9350 *** The result is that libtool may fail to recognize shared libraries
9351 *** as such. This will affect the creation of libtool libraries that
9352 *** depend on shared libraries, but programs linked with such libtool
9353 *** libraries will work regardless of this problem. Nevertheless, you
9354 *** may want to report the problem to your system manager and/or to
9355 *** [email protected]
9356
9357 _LT_EOF
9358 fi ;;
9359 esac
9360 fi
9361 break
9362 fi
9363 done
9364 IFS=$lt_save_ifs
9365 MAGIC_CMD=$lt_save_MAGIC_CMD
9366 ;;
9367 esac
9368 fi
9369
9370 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9371 if test -n "$MAGIC_CMD"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9373 $as_echo "$MAGIC_CMD" >&6; }
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9377 fi
9378
9379
9380 else
9381 MAGIC_CMD=:
9382 fi
9383 fi
9384
9385 fi
9386 ;;
9387 esac
9388
9389 # Use C for the default configuration in the libtool script
9390
9391 lt_save_CC=$CC
9392 ac_ext=c
9393 ac_cpp='$CPP $CPPFLAGS'
9394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9397
9398
9399 # Source file extension for C test sources.
9400 ac_ext=c
9401
9402 # Object file extension for compiled C test sources.
9403 objext=o
9404 objext=$objext
9405
9406 # Code to be used in simple compile tests
9407 lt_simple_compile_test_code="int some_variable = 0;"
9408
9409 # Code to be used in simple link tests
9410 lt_simple_link_test_code='int main(){return(0);}'
9411
9412
9413
9414
9415
9416
9417
9418 # If no C compiler was specified, use CC.
9419 LTCC=${LTCC-"$CC"}
9420
9421 # If no C compiler flags were specified, use CFLAGS.
9422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9423
9424 # Allow CC to be a program name with arguments.
9425 compiler=$CC
9426
9427 # Save the default compiler, since it gets overwritten when the other
9428 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9429 compiler_DEFAULT=$CC
9430
9431 # save warnings/boilerplate of simple test code
9432 ac_outfile=conftest.$ac_objext
9433 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9434 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9435 _lt_compiler_boilerplate=`cat conftest.err`
9436 $RM conftest*
9437
9438 ac_outfile=conftest.$ac_objext
9439 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9440 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9441 _lt_linker_boilerplate=`cat conftest.err`
9442 $RM -r conftest*
9443
9444
9445 ## CAVEAT EMPTOR:
9446 ## There is no encapsulation within the following macros, do not change
9447 ## the running order or otherwise move them around unless you know exactly
9448 ## what you are doing...
9449 if test -n "$compiler"; then
9450
9451 lt_prog_compiler_no_builtin_flag=
9452
9453 if test yes = "$GCC"; then
9454 case $cc_basename in
9455 nvcc*)
9456 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9457 *)
9458 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9459 esac
9460
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9462 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9463 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 lt_cv_prog_compiler_rtti_exceptions=no
9467 ac_outfile=conftest.$ac_objext
9468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9469 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9470 # Insert the option either (1) after the last *FLAGS variable, or
9471 # (2) before a word containing "conftest.", or (3) at the end.
9472 # Note that $ac_compile itself does not contain backslashes and begins
9473 # with a dollar sign (not a hyphen), so the echo should work correctly.
9474 # The option is referenced via a variable to avoid confusing sed.
9475 lt_compile=`echo "$ac_compile" | $SED \
9476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9478 -e 's:$: $lt_compiler_flag:'`
9479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9480 (eval "$lt_compile" 2>conftest.err)
9481 ac_status=$?
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 if (exit $ac_status) && test -s "$ac_outfile"; then
9485 # The compiler can only warn and ignore the option if not recognized
9486 # So say no if there are warnings other than the usual output.
9487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9490 lt_cv_prog_compiler_rtti_exceptions=yes
9491 fi
9492 fi
9493 $RM conftest*
9494
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9497 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9498
9499 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9500 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9501 else
9502 :
9503 fi
9504
9505 fi
9506
9507
9508
9509
9510
9511
9512 lt_prog_compiler_wl=
9513 lt_prog_compiler_pic=
9514 lt_prog_compiler_static=
9515
9516
9517 if test yes = "$GCC"; then
9518 lt_prog_compiler_wl='-Wl,'
9519 lt_prog_compiler_static='-static'
9520
9521 case $host_os in
9522 aix*)
9523 # All AIX code is PIC.
9524 if test ia64 = "$host_cpu"; then
9525 # AIX 5 now supports IA64 processor
9526 lt_prog_compiler_static='-Bstatic'
9527 fi
9528 lt_prog_compiler_pic='-fPIC'
9529 ;;
9530
9531 amigaos*)
9532 case $host_cpu in
9533 powerpc)
9534 # see comment about AmigaOS4 .so support
9535 lt_prog_compiler_pic='-fPIC'
9536 ;;
9537 m68k)
9538 # FIXME: we need at least 68020 code to build shared libraries, but
9539 # adding the '-m68020' flag to GCC prevents building anything better,
9540 # like '-m68040'.
9541 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9542 ;;
9543 esac
9544 ;;
9545
9546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9547 # PIC is the default for these OSes.
9548 ;;
9549
9550 mingw* | cygwin* | pw32* | os2* | cegcc*)
9551 # This hack is so that the source file can tell whether it is being
9552 # built for inclusion in a dll (and should export symbols for example).
9553 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9554 # (--disable-auto-import) libraries
9555 lt_prog_compiler_pic='-DDLL_EXPORT'
9556 case $host_os in
9557 os2*)
9558 lt_prog_compiler_static='$wl-static'
9559 ;;
9560 esac
9561 ;;
9562
9563 darwin* | rhapsody*)
9564 # PIC is the default on this platform
9565 # Common symbols not allowed in MH_DYLIB files
9566 lt_prog_compiler_pic='-fno-common'
9567 ;;
9568
9569 haiku*)
9570 # PIC is the default for Haiku.
9571 # The "-static" flag exists, but is broken.
9572 lt_prog_compiler_static=
9573 ;;
9574
9575 hpux*)
9576 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9577 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9578 # sets the default TLS model and affects inlining.
9579 case $host_cpu in
9580 hppa*64*)
9581 # +Z the default
9582 ;;
9583 *)
9584 lt_prog_compiler_pic='-fPIC'
9585 ;;
9586 esac
9587 ;;
9588
9589 interix[3-9]*)
9590 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9591 # Instead, we relocate shared libraries at runtime.
9592 ;;
9593
9594 msdosdjgpp*)
9595 # Just because we use GCC doesn't mean we suddenly get shared libraries
9596 # on systems that don't support them.
9597 lt_prog_compiler_can_build_shared=no
9598 enable_shared=no
9599 ;;
9600
9601 *nto* | *qnx*)
9602 # QNX uses GNU C++, but need to define -shared option too, otherwise
9603 # it will coredump.
9604 lt_prog_compiler_pic='-fPIC -shared'
9605 ;;
9606
9607 sysv4*MP*)
9608 if test -d /usr/nec; then
9609 lt_prog_compiler_pic=-Kconform_pic
9610 fi
9611 ;;
9612
9613 *)
9614 lt_prog_compiler_pic='-fPIC'
9615 ;;
9616 esac
9617
9618 case $cc_basename in
9619 nvcc*) # Cuda Compiler Driver 2.2
9620 lt_prog_compiler_wl='-Xlinker '
9621 if test -n "$lt_prog_compiler_pic"; then
9622 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9623 fi
9624 ;;
9625 esac
9626 else
9627 # PORTME Check for flag to pass linker flags through the system compiler.
9628 case $host_os in
9629 aix*)
9630 lt_prog_compiler_wl='-Wl,'
9631 if test ia64 = "$host_cpu"; then
9632 # AIX 5 now supports IA64 processor
9633 lt_prog_compiler_static='-Bstatic'
9634 else
9635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9636 fi
9637 ;;
9638
9639 darwin* | rhapsody*)
9640 # PIC is the default on this platform
9641 # Common symbols not allowed in MH_DYLIB files
9642 lt_prog_compiler_pic='-fno-common'
9643 case $cc_basename in
9644 nagfor*)
9645 # NAG Fortran compiler
9646 lt_prog_compiler_wl='-Wl,-Wl,,'
9647 lt_prog_compiler_pic='-PIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 ;;
9650 esac
9651 ;;
9652
9653 mingw* | cygwin* | pw32* | os2* | cegcc*)
9654 # This hack is so that the source file can tell whether it is being
9655 # built for inclusion in a dll (and should export symbols for example).
9656 lt_prog_compiler_pic='-DDLL_EXPORT'
9657 case $host_os in
9658 os2*)
9659 lt_prog_compiler_static='$wl-static'
9660 ;;
9661 esac
9662 ;;
9663
9664 hpux9* | hpux10* | hpux11*)
9665 lt_prog_compiler_wl='-Wl,'
9666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9667 # not for PA HP-UX.
9668 case $host_cpu in
9669 hppa*64*|ia64*)
9670 # +Z the default
9671 ;;
9672 *)
9673 lt_prog_compiler_pic='+Z'
9674 ;;
9675 esac
9676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9677 lt_prog_compiler_static='$wl-a ${wl}archive'
9678 ;;
9679
9680 irix5* | irix6* | nonstopux*)
9681 lt_prog_compiler_wl='-Wl,'
9682 # PIC (with -KPIC) is the default.
9683 lt_prog_compiler_static='-non_shared'
9684 ;;
9685
9686 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9687 case $cc_basename in
9688 # old Intel for x86_64, which still supported -KPIC.
9689 ecc*)
9690 lt_prog_compiler_wl='-Wl,'
9691 lt_prog_compiler_pic='-KPIC'
9692 lt_prog_compiler_static='-static'
9693 ;;
9694 # icc used to be incompatible with GCC.
9695 # ICC 10 doesn't accept -KPIC any more.
9696 icc* | ifort*)
9697 lt_prog_compiler_wl='-Wl,'
9698 lt_prog_compiler_pic='-fPIC'
9699 lt_prog_compiler_static='-static'
9700 ;;
9701 # Lahey Fortran 8.1.
9702 lf95*)
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_pic='--shared'
9705 lt_prog_compiler_static='--static'
9706 ;;
9707 nagfor*)
9708 # NAG Fortran compiler
9709 lt_prog_compiler_wl='-Wl,-Wl,,'
9710 lt_prog_compiler_pic='-PIC'
9711 lt_prog_compiler_static='-Bstatic'
9712 ;;
9713 tcc*)
9714 # Fabrice Bellard et al's Tiny C Compiler
9715 lt_prog_compiler_wl='-Wl,'
9716 lt_prog_compiler_pic='-fPIC'
9717 lt_prog_compiler_static='-static'
9718 ;;
9719 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9720 # Portland Group compilers (*not* the Pentium gcc compiler,
9721 # which looks to be a dead project)
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-fpic'
9724 lt_prog_compiler_static='-Bstatic'
9725 ;;
9726 ccc*)
9727 lt_prog_compiler_wl='-Wl,'
9728 # All Alpha code is PIC.
9729 lt_prog_compiler_static='-non_shared'
9730 ;;
9731 xl* | bgxl* | bgf* | mpixl*)
9732 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9733 lt_prog_compiler_wl='-Wl,'
9734 lt_prog_compiler_pic='-qpic'
9735 lt_prog_compiler_static='-qstaticlink'
9736 ;;
9737 *)
9738 case `$CC -V 2>&1 | sed 5q` in
9739 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9740 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9741 lt_prog_compiler_pic='-KPIC'
9742 lt_prog_compiler_static='-Bstatic'
9743 lt_prog_compiler_wl=''
9744 ;;
9745 *Sun\ F* | *Sun*Fortran*)
9746 lt_prog_compiler_pic='-KPIC'
9747 lt_prog_compiler_static='-Bstatic'
9748 lt_prog_compiler_wl='-Qoption ld '
9749 ;;
9750 *Sun\ C*)
9751 # Sun C 5.9
9752 lt_prog_compiler_pic='-KPIC'
9753 lt_prog_compiler_static='-Bstatic'
9754 lt_prog_compiler_wl='-Wl,'
9755 ;;
9756 *Intel*\ [CF]*Compiler*)
9757 lt_prog_compiler_wl='-Wl,'
9758 lt_prog_compiler_pic='-fPIC'
9759 lt_prog_compiler_static='-static'
9760 ;;
9761 *Portland\ Group*)
9762 lt_prog_compiler_wl='-Wl,'
9763 lt_prog_compiler_pic='-fpic'
9764 lt_prog_compiler_static='-Bstatic'
9765 ;;
9766 esac
9767 ;;
9768 esac
9769 ;;
9770
9771 newsos6)
9772 lt_prog_compiler_pic='-KPIC'
9773 lt_prog_compiler_static='-Bstatic'
9774 ;;
9775
9776 *nto* | *qnx*)
9777 # QNX uses GNU C++, but need to define -shared option too, otherwise
9778 # it will coredump.
9779 lt_prog_compiler_pic='-fPIC -shared'
9780 ;;
9781
9782 osf3* | osf4* | osf5*)
9783 lt_prog_compiler_wl='-Wl,'
9784 # All OSF/1 code is PIC.
9785 lt_prog_compiler_static='-non_shared'
9786 ;;
9787
9788 rdos*)
9789 lt_prog_compiler_static='-non_shared'
9790 ;;
9791
9792 solaris*)
9793 lt_prog_compiler_pic='-KPIC'
9794 lt_prog_compiler_static='-Bstatic'
9795 case $cc_basename in
9796 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9797 lt_prog_compiler_wl='-Qoption ld ';;
9798 *)
9799 lt_prog_compiler_wl='-Wl,';;
9800 esac
9801 ;;
9802
9803 sunos4*)
9804 lt_prog_compiler_wl='-Qoption ld '
9805 lt_prog_compiler_pic='-PIC'
9806 lt_prog_compiler_static='-Bstatic'
9807 ;;
9808
9809 sysv4 | sysv4.2uw2* | sysv4.3*)
9810 lt_prog_compiler_wl='-Wl,'
9811 lt_prog_compiler_pic='-KPIC'
9812 lt_prog_compiler_static='-Bstatic'
9813 ;;
9814
9815 sysv4*MP*)
9816 if test -d /usr/nec; then
9817 lt_prog_compiler_pic='-Kconform_pic'
9818 lt_prog_compiler_static='-Bstatic'
9819 fi
9820 ;;
9821
9822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9823 lt_prog_compiler_wl='-Wl,'
9824 lt_prog_compiler_pic='-KPIC'
9825 lt_prog_compiler_static='-Bstatic'
9826 ;;
9827
9828 unicos*)
9829 lt_prog_compiler_wl='-Wl,'
9830 lt_prog_compiler_can_build_shared=no
9831 ;;
9832
9833 uts4*)
9834 lt_prog_compiler_pic='-pic'
9835 lt_prog_compiler_static='-Bstatic'
9836 ;;
9837
9838 *)
9839 lt_prog_compiler_can_build_shared=no
9840 ;;
9841 esac
9842 fi
9843
9844 case $host_os in
9845 # For platforms that do not support PIC, -DPIC is meaningless:
9846 *djgpp*)
9847 lt_prog_compiler_pic=
9848 ;;
9849 *)
9850 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9851 ;;
9852 esac
9853
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9855 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9856 if ${lt_cv_prog_compiler_pic+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9860 fi
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9862 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9863 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9864
9865 #
9866 # Check to make sure the PIC flag actually works.
9867 #
9868 if test -n "$lt_prog_compiler_pic"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9871 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 lt_cv_prog_compiler_pic_works=no
9875 ac_outfile=conftest.$ac_objext
9876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9877 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9878 # Insert the option either (1) after the last *FLAGS variable, or
9879 # (2) before a word containing "conftest.", or (3) at the end.
9880 # Note that $ac_compile itself does not contain backslashes and begins
9881 # with a dollar sign (not a hyphen), so the echo should work correctly.
9882 # The option is referenced via a variable to avoid confusing sed.
9883 lt_compile=`echo "$ac_compile" | $SED \
9884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886 -e 's:$: $lt_compiler_flag:'`
9887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9888 (eval "$lt_compile" 2>conftest.err)
9889 ac_status=$?
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 if (exit $ac_status) && test -s "$ac_outfile"; then
9893 # The compiler can only warn and ignore the option if not recognized
9894 # So say no if there are warnings other than the usual output.
9895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9898 lt_cv_prog_compiler_pic_works=yes
9899 fi
9900 fi
9901 $RM conftest*
9902
9903 fi
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9905 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9906
9907 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9908 case $lt_prog_compiler_pic in
9909 "" | " "*) ;;
9910 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9911 esac
9912 else
9913 lt_prog_compiler_pic=
9914 lt_prog_compiler_can_build_shared=no
9915 fi
9916
9917 fi
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929 #
9930 # Check to make sure the static flag actually works.
9931 #
9932 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9934 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9935 if ${lt_cv_prog_compiler_static_works+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 lt_cv_prog_compiler_static_works=no
9939 save_LDFLAGS=$LDFLAGS
9940 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9941 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9943 # The linker can only warn and ignore the option if not recognized
9944 # So say no if there are warnings
9945 if test -s conftest.err; then
9946 # Append any errors to the config.log.
9947 cat conftest.err 1>&5
9948 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9950 if diff conftest.exp conftest.er2 >/dev/null; then
9951 lt_cv_prog_compiler_static_works=yes
9952 fi
9953 else
9954 lt_cv_prog_compiler_static_works=yes
9955 fi
9956 fi
9957 $RM -r conftest*
9958 LDFLAGS=$save_LDFLAGS
9959
9960 fi
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9962 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9963
9964 if test yes = "$lt_cv_prog_compiler_static_works"; then
9965 :
9966 else
9967 lt_prog_compiler_static=
9968 fi
9969
9970
9971
9972
9973
9974
9975
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9977 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9978 if ${lt_cv_prog_compiler_c_o+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 lt_cv_prog_compiler_c_o=no
9982 $RM -r conftest 2>/dev/null
9983 mkdir conftest
9984 cd conftest
9985 mkdir out
9986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9987
9988 lt_compiler_flag="-o out/conftest2.$ac_objext"
9989 # Insert the option either (1) after the last *FLAGS variable, or
9990 # (2) before a word containing "conftest.", or (3) at the end.
9991 # Note that $ac_compile itself does not contain backslashes and begins
9992 # with a dollar sign (not a hyphen), so the echo should work correctly.
9993 lt_compile=`echo "$ac_compile" | $SED \
9994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9996 -e 's:$: $lt_compiler_flag:'`
9997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9998 (eval "$lt_compile" 2>out/conftest.err)
9999 ac_status=$?
10000 cat out/conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10003 then
10004 # The compiler can only warn and ignore the option if not recognized
10005 # So say no if there are warnings
10006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10009 lt_cv_prog_compiler_c_o=yes
10010 fi
10011 fi
10012 chmod u+w . 2>&5
10013 $RM conftest*
10014 # SGI C++ compiler will create directory out/ii_files/ for
10015 # template instantiation
10016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10017 $RM out/* && rmdir out
10018 cd ..
10019 $RM -r conftest
10020 $RM conftest*
10021
10022 fi
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10024 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10025
10026
10027
10028
10029
10030
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10033 if ${lt_cv_prog_compiler_c_o+:} false; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 lt_cv_prog_compiler_c_o=no
10037 $RM -r conftest 2>/dev/null
10038 mkdir conftest
10039 cd conftest
10040 mkdir out
10041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10042
10043 lt_compiler_flag="-o out/conftest2.$ac_objext"
10044 # Insert the option either (1) after the last *FLAGS variable, or
10045 # (2) before a word containing "conftest.", or (3) at the end.
10046 # Note that $ac_compile itself does not contain backslashes and begins
10047 # with a dollar sign (not a hyphen), so the echo should work correctly.
10048 lt_compile=`echo "$ac_compile" | $SED \
10049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10051 -e 's:$: $lt_compiler_flag:'`
10052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10053 (eval "$lt_compile" 2>out/conftest.err)
10054 ac_status=$?
10055 cat out/conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10058 then
10059 # The compiler can only warn and ignore the option if not recognized
10060 # So say no if there are warnings
10061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10064 lt_cv_prog_compiler_c_o=yes
10065 fi
10066 fi
10067 chmod u+w . 2>&5
10068 $RM conftest*
10069 # SGI C++ compiler will create directory out/ii_files/ for
10070 # template instantiation
10071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10072 $RM out/* && rmdir out
10073 cd ..
10074 $RM -r conftest
10075 $RM conftest*
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10079 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10080
10081
10082
10083
10084 hard_links=nottested
10085 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10086 # do not overwrite the value of need_locks provided by the user
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10088 $as_echo_n "checking if we can lock with hard links... " >&6; }
10089 hard_links=yes
10090 $RM conftest*
10091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10092 touch conftest.a
10093 ln conftest.a conftest.b 2>&5 || hard_links=no
10094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10096 $as_echo "$hard_links" >&6; }
10097 if test no = "$hard_links"; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10099 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10100 need_locks=warn
10101 fi
10102 else
10103 need_locks=no
10104 fi
10105
10106
10107
10108
10109
10110
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10112 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10113
10114 runpath_var=
10115 allow_undefined_flag=
10116 always_export_symbols=no
10117 archive_cmds=
10118 archive_expsym_cmds=
10119 compiler_needs_object=no
10120 enable_shared_with_static_runtimes=no
10121 export_dynamic_flag_spec=
10122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10123 hardcode_automatic=no
10124 hardcode_direct=no
10125 hardcode_direct_absolute=no
10126 hardcode_libdir_flag_spec=
10127 hardcode_libdir_separator=
10128 hardcode_minus_L=no
10129 hardcode_shlibpath_var=unsupported
10130 inherit_rpath=no
10131 link_all_deplibs=unknown
10132 module_cmds=
10133 module_expsym_cmds=
10134 old_archive_from_new_cmds=
10135 old_archive_from_expsyms_cmds=
10136 thread_safe_flag_spec=
10137 whole_archive_flag_spec=
10138 # include_expsyms should be a list of space-separated symbols to be *always*
10139 # included in the symbol list
10140 include_expsyms=
10141 # exclude_expsyms can be an extended regexp of symbols to exclude
10142 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10143 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10144 # as well as any symbol that contains 'd'.
10145 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10146 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10147 # platforms (ab)use it in PIC code, but their linkers get confused if
10148 # the symbol is explicitly referenced. Since portable code cannot
10149 # rely on this symbol name, it's probably fine to never include it in
10150 # preloaded symbol tables.
10151 # Exclude shared library initialization/finalization symbols.
10152 extract_expsyms_cmds=
10153
10154 case $host_os in
10155 cygwin* | mingw* | pw32* | cegcc*)
10156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10157 # When not using gcc, we currently assume that we are using
10158 # Microsoft Visual C++.
10159 if test yes != "$GCC"; then
10160 with_gnu_ld=no
10161 fi
10162 ;;
10163 interix*)
10164 # we just hope/assume this is gcc and not c89 (= MSVC++)
10165 with_gnu_ld=yes
10166 ;;
10167 openbsd* | bitrig*)
10168 with_gnu_ld=no
10169 ;;
10170 esac
10171
10172 ld_shlibs=yes
10173
10174 # On some targets, GNU ld is compatible enough with the native linker
10175 # that we're better off using the native interface for both.
10176 lt_use_gnu_ld_interface=no
10177 if test yes = "$with_gnu_ld"; then
10178 case $host_os in
10179 aix*)
10180 # The AIX port of GNU ld has always aspired to compatibility
10181 # with the native linker. However, as the warning in the GNU ld
10182 # block says, versions before 2.19.5* couldn't really create working
10183 # shared libraries, regardless of the interface used.
10184 case `$LD -v 2>&1` in
10185 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10186 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10187 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10188 *)
10189 lt_use_gnu_ld_interface=yes
10190 ;;
10191 esac
10192 ;;
10193 *)
10194 lt_use_gnu_ld_interface=yes
10195 ;;
10196 esac
10197 fi
10198
10199 if test yes = "$lt_use_gnu_ld_interface"; then
10200 # If archive_cmds runs LD, not CC, wlarc should be empty
10201 wlarc='$wl'
10202
10203 # Set some defaults for GNU ld with shared library support. These
10204 # are reset later if shared libraries are not supported. Putting them
10205 # here allows them to be overridden if necessary.
10206 runpath_var=LD_RUN_PATH
10207 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10208 export_dynamic_flag_spec='$wl--export-dynamic'
10209 # ancient GNU ld didn't support --whole-archive et. al.
10210 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10211 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10212 else
10213 whole_archive_flag_spec=
10214 fi
10215 supports_anon_versioning=no
10216 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10217 *GNU\ gold*) supports_anon_versioning=yes ;;
10218 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10219 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10220 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10221 *\ 2.11.*) ;; # other 2.11 versions
10222 *) supports_anon_versioning=yes ;;
10223 esac
10224
10225 # See if GNU ld supports shared libraries.
10226 case $host_os in
10227 aix[3-9]*)
10228 # On AIX/PPC, the GNU linker is very broken
10229 if test ia64 != "$host_cpu"; then
10230 ld_shlibs=no
10231 cat <<_LT_EOF 1>&2
10232
10233 *** Warning: the GNU linker, at least up to release 2.19, is reported
10234 *** to be unable to reliably create shared libraries on AIX.
10235 *** Therefore, libtool is disabling shared libraries support. If you
10236 *** really care for shared libraries, you may want to install binutils
10237 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10238 *** You will then need to restart the configuration process.
10239
10240 _LT_EOF
10241 fi
10242 ;;
10243
10244 amigaos*)
10245 case $host_cpu in
10246 powerpc)
10247 # see comment about AmigaOS4 .so support
10248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10249 archive_expsym_cmds=''
10250 ;;
10251 m68k)
10252 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)'
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_minus_L=yes
10255 ;;
10256 esac
10257 ;;
10258
10259 beos*)
10260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261 allow_undefined_flag=unsupported
10262 # Joseph Beckenbach <[email protected]> says some releases of gcc
10263 # support --undefined. This deserves some investigation. FIXME
10264 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10265 else
10266 ld_shlibs=no
10267 fi
10268 ;;
10269
10270 cygwin* | mingw* | pw32* | cegcc*)
10271 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10272 # as there is no search path for DLLs.
10273 hardcode_libdir_flag_spec='-L$libdir'
10274 export_dynamic_flag_spec='$wl--export-all-symbols'
10275 allow_undefined_flag=unsupported
10276 always_export_symbols=no
10277 enable_shared_with_static_runtimes=yes
10278 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'
10279 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10280
10281 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10283 # If the export-symbols file already is a .def file, use it as
10284 # is; otherwise, prepend EXPORTS...
10285 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10286 cp $export_symbols $output_objdir/$soname.def;
10287 else
10288 echo EXPORTS > $output_objdir/$soname.def;
10289 cat $export_symbols >> $output_objdir/$soname.def;
10290 fi~
10291 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10292 else
10293 ld_shlibs=no
10294 fi
10295 ;;
10296
10297 haiku*)
10298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10299 link_all_deplibs=yes
10300 ;;
10301
10302 os2*)
10303 hardcode_libdir_flag_spec='-L$libdir'
10304 hardcode_minus_L=yes
10305 allow_undefined_flag=unsupported
10306 shrext_cmds=.dll
10307 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10308 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10309 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10310 $ECHO EXPORTS >> $output_objdir/$libname.def~
10311 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10313 emximp -o $lib $output_objdir/$libname.def'
10314 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10315 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10316 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10317 $ECHO EXPORTS >> $output_objdir/$libname.def~
10318 prefix_cmds="$SED"~
10319 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10320 prefix_cmds="$prefix_cmds -e 1d";
10321 fi~
10322 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10323 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10324 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10325 emximp -o $lib $output_objdir/$libname.def'
10326 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10327 enable_shared_with_static_runtimes=yes
10328 ;;
10329
10330 interix[3-9]*)
10331 hardcode_direct=no
10332 hardcode_shlibpath_var=no
10333 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10334 export_dynamic_flag_spec='$wl-E'
10335 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10336 # Instead, shared libraries are loaded at an image base (0x10000000 by
10337 # default) and relocated if they conflict, which is a slow very memory
10338 # consuming and fragmenting process. To avoid this, we pick a random,
10339 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10340 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10342 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'
10343 ;;
10344
10345 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10346 tmp_diet=no
10347 if test linux-dietlibc = "$host_os"; then
10348 case $cc_basename in
10349 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10350 esac
10351 fi
10352 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10353 && test no = "$tmp_diet"
10354 then
10355 tmp_addflag=' $pic_flag'
10356 tmp_sharedflag='-shared'
10357 case $cc_basename,$host_cpu in
10358 pgcc*) # Portland Group C compiler
10359 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'
10360 tmp_addflag=' $pic_flag'
10361 ;;
10362 pgf77* | pgf90* | pgf95* | pgfortran*)
10363 # Portland Group f77 and f90 compilers
10364 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'
10365 tmp_addflag=' $pic_flag -Mnomain' ;;
10366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10367 tmp_addflag=' -i_dynamic' ;;
10368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10369 tmp_addflag=' -i_dynamic -nofor_main' ;;
10370 ifc* | ifort*) # Intel Fortran compiler
10371 tmp_addflag=' -nofor_main' ;;
10372 lf95*) # Lahey Fortran 8.1
10373 whole_archive_flag_spec=
10374 tmp_sharedflag='--shared' ;;
10375 nagfor*) # NAGFOR 5.3
10376 tmp_sharedflag='-Wl,-shared' ;;
10377 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10378 tmp_sharedflag='-qmkshrobj'
10379 tmp_addflag= ;;
10380 nvcc*) # Cuda Compiler Driver 2.2
10381 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'
10382 compiler_needs_object=yes
10383 ;;
10384 esac
10385 case `$CC -V 2>&1 | sed 5q` in
10386 *Sun\ C*) # Sun C 5.9
10387 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'
10388 compiler_needs_object=yes
10389 tmp_sharedflag='-G' ;;
10390 *Sun\ F*) # Sun Fortran 8.3
10391 tmp_sharedflag='-G' ;;
10392 esac
10393 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10394
10395 if test yes = "$supports_anon_versioning"; then
10396 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10398 echo "local: *; };" >> $output_objdir/$libname.ver~
10399 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10400 fi
10401
10402 case $cc_basename in
10403 tcc*)
10404 export_dynamic_flag_spec='-rdynamic'
10405 ;;
10406 xlf* | bgf* | bgxlf* | mpixlf*)
10407 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10408 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10409 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10410 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10411 if test yes = "$supports_anon_versioning"; then
10412 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10413 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10414 echo "local: *; };" >> $output_objdir/$libname.ver~
10415 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10416 fi
10417 ;;
10418 esac
10419 else
10420 ld_shlibs=no
10421 fi
10422 ;;
10423
10424 netbsd*)
10425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10426 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10427 wlarc=
10428 else
10429 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10430 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10431 fi
10432 ;;
10433
10434 solaris*)
10435 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10436 ld_shlibs=no
10437 cat <<_LT_EOF 1>&2
10438
10439 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10440 *** create shared libraries on Solaris systems. Therefore, libtool
10441 *** is disabling shared libraries support. We urge you to upgrade GNU
10442 *** binutils to release 2.9.1 or newer. Another option is to modify
10443 *** your PATH or compiler configuration so that the native linker is
10444 *** used, and then restart.
10445
10446 _LT_EOF
10447 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10449 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10450 else
10451 ld_shlibs=no
10452 fi
10453 ;;
10454
10455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10456 case `$LD -v 2>&1` in
10457 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10458 ld_shlibs=no
10459 cat <<_LT_EOF 1>&2
10460
10461 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10462 *** reliably create shared libraries on SCO systems. Therefore, libtool
10463 *** is disabling shared libraries support. We urge you to upgrade GNU
10464 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10465 *** your PATH or compiler configuration so that the native linker is
10466 *** used, and then restart.
10467
10468 _LT_EOF
10469 ;;
10470 *)
10471 # For security reasons, it is highly recommended that you always
10472 # use absolute paths for naming shared libraries, and exclude the
10473 # DT_RUNPATH tag from executables and libraries. But doing so
10474 # requires that you compile everything twice, which is a pain.
10475 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10476 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10479 else
10480 ld_shlibs=no
10481 fi
10482 ;;
10483 esac
10484 ;;
10485
10486 sunos4*)
10487 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10488 wlarc=
10489 hardcode_direct=yes
10490 hardcode_shlibpath_var=no
10491 ;;
10492
10493 *)
10494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10496 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10497 else
10498 ld_shlibs=no
10499 fi
10500 ;;
10501 esac
10502
10503 if test no = "$ld_shlibs"; then
10504 runpath_var=
10505 hardcode_libdir_flag_spec=
10506 export_dynamic_flag_spec=
10507 whole_archive_flag_spec=
10508 fi
10509 else
10510 # PORTME fill in a description of your system's linker (not GNU ld)
10511 case $host_os in
10512 aix3*)
10513 allow_undefined_flag=unsupported
10514 always_export_symbols=yes
10515 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'
10516 # Note: this linker hardcodes the directories in LIBPATH if there
10517 # are no directories specified by -L.
10518 hardcode_minus_L=yes
10519 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10520 # Neither direct hardcoding nor static linking is supported with a
10521 # broken collect2.
10522 hardcode_direct=unsupported
10523 fi
10524 ;;
10525
10526 aix[4-9]*)
10527 if test ia64 = "$host_cpu"; then
10528 # On IA64, the linker does run time linking by default, so we don't
10529 # have to do anything special.
10530 aix_use_runtimelinking=no
10531 exp_sym_flag='-Bexport'
10532 no_entry_flag=
10533 else
10534 # If we're using GNU nm, then we don't want the "-C" option.
10535 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10536 # Without the "-l" option, or with the "-B" option, AIX nm treats
10537 # weak defined symbols like other global defined symbols, whereas
10538 # GNU nm marks them as "W".
10539 # While the 'weak' keyword is ignored in the Export File, we need
10540 # it in the Import File for the 'aix-soname' feature, so we have
10541 # to replace the "-B" option with "-P" for AIX nm.
10542 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10543 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'
10544 else
10545 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'
10546 fi
10547 aix_use_runtimelinking=no
10548
10549 # Test if we are trying to use run time linking or normal
10550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10551 # have runtime linking enabled, and use it for executables.
10552 # For shared libraries, we enable/disable runtime linking
10553 # depending on the kind of the shared library created -
10554 # when "with_aix_soname,aix_use_runtimelinking" is:
10555 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10556 # "aix,yes" lib.so shared, rtl:yes, for executables
10557 # lib.a static archive
10558 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10559 # lib.a(lib.so.V) shared, rtl:no, for executables
10560 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10561 # lib.a(lib.so.V) shared, rtl:no
10562 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10563 # lib.a static archive
10564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10565 for ld_flag in $LDFLAGS; do
10566 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10567 aix_use_runtimelinking=yes
10568 break
10569 fi
10570 done
10571 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10572 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10573 # so we don't have lib.a shared libs to link our executables.
10574 # We have to force runtime linking in this case.
10575 aix_use_runtimelinking=yes
10576 LDFLAGS="$LDFLAGS -Wl,-brtl"
10577 fi
10578 ;;
10579 esac
10580
10581 exp_sym_flag='-bexport'
10582 no_entry_flag='-bnoentry'
10583 fi
10584
10585 # When large executables or shared objects are built, AIX ld can
10586 # have problems creating the table of contents. If linking a library
10587 # or program results in "error TOC overflow" add -mminimal-toc to
10588 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10589 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10590
10591 archive_cmds=''
10592 hardcode_direct=yes
10593 hardcode_direct_absolute=yes
10594 hardcode_libdir_separator=':'
10595 link_all_deplibs=yes
10596 file_list_spec='$wl-f,'
10597 case $with_aix_soname,$aix_use_runtimelinking in
10598 aix,*) ;; # traditional, no import file
10599 svr4,* | *,yes) # use import file
10600 # The Import File defines what to hardcode.
10601 hardcode_direct=no
10602 hardcode_direct_absolute=no
10603 ;;
10604 esac
10605
10606 if test yes = "$GCC"; then
10607 case $host_os in aix4.[012]|aix4.[012].*)
10608 # We only want to do this on AIX 4.2 and lower, the check
10609 # below for broken collect2 doesn't work under 4.3+
10610 collect2name=`$CC -print-prog-name=collect2`
10611 if test -f "$collect2name" &&
10612 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10613 then
10614 # We have reworked collect2
10615 :
10616 else
10617 # We have old collect2
10618 hardcode_direct=unsupported
10619 # It fails to find uninstalled libraries when the uninstalled
10620 # path is not listed in the libpath. Setting hardcode_minus_L
10621 # to unsupported forces relinking
10622 hardcode_minus_L=yes
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_libdir_separator=
10625 fi
10626 ;;
10627 esac
10628 shared_flag='-shared'
10629 if test yes = "$aix_use_runtimelinking"; then
10630 shared_flag="$shared_flag "'$wl-G'
10631 fi
10632 # Need to ensure runtime linking is disabled for the traditional
10633 # shared library, or the linker may eventually find shared libraries
10634 # /with/ Import File - we do not want to mix them.
10635 shared_flag_aix='-shared'
10636 shared_flag_svr4='-shared $wl-G'
10637 else
10638 # not using gcc
10639 if test ia64 = "$host_cpu"; then
10640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10641 # chokes on -Wl,-G. The following line is correct:
10642 shared_flag='-G'
10643 else
10644 if test yes = "$aix_use_runtimelinking"; then
10645 shared_flag='$wl-G'
10646 else
10647 shared_flag='$wl-bM:SRE'
10648 fi
10649 shared_flag_aix='$wl-bM:SRE'
10650 shared_flag_svr4='$wl-G'
10651 fi
10652 fi
10653
10654 export_dynamic_flag_spec='$wl-bexpall'
10655 # It seems that -bexpall does not export symbols beginning with
10656 # underscore (_), so it is better to generate a list of symbols to export.
10657 always_export_symbols=yes
10658 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10659 # Warning - without using the other runtime loading flags (-brtl),
10660 # -berok will link without error, but may produce a broken library.
10661 allow_undefined_flag='-berok'
10662 # Determine the default libpath from the value encoded in an
10663 # empty executable.
10664 if test set = "${lt_cv_aix_libpath+set}"; then
10665 aix_libpath=$lt_cv_aix_libpath
10666 else
10667 if ${lt_cv_aix_libpath_+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672
10673 int
10674 main ()
10675 {
10676
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682
10683 lt_aix_libpath_sed='
10684 /Import File Strings/,/^$/ {
10685 /^0/ {
10686 s/^0 *\([^ ]*\) *$/\1/
10687 p
10688 }
10689 }'
10690 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10691 # Check for a 64-bit object if we didn't find anything.
10692 if test -z "$lt_cv_aix_libpath_"; then
10693 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10694 fi
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10698 if test -z "$lt_cv_aix_libpath_"; then
10699 lt_cv_aix_libpath_=/usr/lib:/lib
10700 fi
10701
10702 fi
10703
10704 aix_libpath=$lt_cv_aix_libpath_
10705 fi
10706
10707 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10708 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
10709 else
10710 if test ia64 = "$host_cpu"; then
10711 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10712 allow_undefined_flag="-z nodefs"
10713 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"
10714 else
10715 # Determine the default libpath from the value encoded in an
10716 # empty executable.
10717 if test set = "${lt_cv_aix_libpath+set}"; then
10718 aix_libpath=$lt_cv_aix_libpath
10719 else
10720 if ${lt_cv_aix_libpath_+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725
10726 int
10727 main ()
10728 {
10729
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735
10736 lt_aix_libpath_sed='
10737 /Import File Strings/,/^$/ {
10738 /^0/ {
10739 s/^0 *\([^ ]*\) *$/\1/
10740 p
10741 }
10742 }'
10743 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10744 # Check for a 64-bit object if we didn't find anything.
10745 if test -z "$lt_cv_aix_libpath_"; then
10746 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10747 fi
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 if test -z "$lt_cv_aix_libpath_"; then
10752 lt_cv_aix_libpath_=/usr/lib:/lib
10753 fi
10754
10755 fi
10756
10757 aix_libpath=$lt_cv_aix_libpath_
10758 fi
10759
10760 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10761 # Warning - without using the other run time loading flags,
10762 # -berok will link without error, but may produce a broken library.
10763 no_undefined_flag=' $wl-bernotok'
10764 allow_undefined_flag=' $wl-berok'
10765 if test yes = "$with_gnu_ld"; then
10766 # We only use this code for GNU lds that support --whole-archive.
10767 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10768 else
10769 # Exported symbols can be pulled into shared objects from archives
10770 whole_archive_flag_spec='$convenience'
10771 fi
10772 archive_cmds_need_lc=yes
10773 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10774 # -brtl affects multiple linker settings, -berok does not and is overridden later
10775 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10776 if test svr4 != "$with_aix_soname"; then
10777 # This is similar to how AIX traditionally builds its shared libraries.
10778 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'
10779 fi
10780 if test aix != "$with_aix_soname"; then
10781 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'
10782 else
10783 # used by -dlpreopen to get the symbols
10784 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10785 fi
10786 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10787 fi
10788 fi
10789 ;;
10790
10791 amigaos*)
10792 case $host_cpu in
10793 powerpc)
10794 # see comment about AmigaOS4 .so support
10795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10796 archive_expsym_cmds=''
10797 ;;
10798 m68k)
10799 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)'
10800 hardcode_libdir_flag_spec='-L$libdir'
10801 hardcode_minus_L=yes
10802 ;;
10803 esac
10804 ;;
10805
10806 bsdi[45]*)
10807 export_dynamic_flag_spec=-rdynamic
10808 ;;
10809
10810 cygwin* | mingw* | pw32* | cegcc*)
10811 # When not using gcc, we currently assume that we are using
10812 # Microsoft Visual C++.
10813 # hardcode_libdir_flag_spec is actually meaningless, as there is
10814 # no search path for DLLs.
10815 case $cc_basename in
10816 cl*)
10817 # Native MSVC
10818 hardcode_libdir_flag_spec=' '
10819 allow_undefined_flag=unsupported
10820 always_export_symbols=yes
10821 file_list_spec='@'
10822 # Tell ltmain to make .lib files, not .a files.
10823 libext=lib
10824 # Tell ltmain to make .dll files, not .so files.
10825 shrext_cmds=.dll
10826 # FIXME: Setting linknames here is a bad hack.
10827 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10828 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10829 cp "$export_symbols" "$output_objdir/$soname.def";
10830 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10831 else
10832 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10833 fi~
10834 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10835 linknames='
10836 # The linker will not automatically build a static lib if we build a DLL.
10837 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10838 enable_shared_with_static_runtimes=yes
10839 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10841 # Don't use ranlib
10842 old_postinstall_cmds='chmod 644 $oldlib'
10843 postlink_cmds='lt_outputfile="@OUTPUT@"~
10844 lt_tool_outputfile="@TOOL_OUTPUT@"~
10845 case $lt_outputfile in
10846 *.exe|*.EXE) ;;
10847 *)
10848 lt_outputfile=$lt_outputfile.exe
10849 lt_tool_outputfile=$lt_tool_outputfile.exe
10850 ;;
10851 esac~
10852 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10853 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10854 $RM "$lt_outputfile.manifest";
10855 fi'
10856 ;;
10857 *)
10858 # Assume MSVC wrapper
10859 hardcode_libdir_flag_spec=' '
10860 allow_undefined_flag=unsupported
10861 # Tell ltmain to make .lib files, not .a files.
10862 libext=lib
10863 # Tell ltmain to make .dll files, not .so files.
10864 shrext_cmds=.dll
10865 # FIXME: Setting linknames here is a bad hack.
10866 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10867 # The linker will automatically build a .lib file if we build a DLL.
10868 old_archive_from_new_cmds='true'
10869 # FIXME: Should let the user specify the lib program.
10870 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10871 enable_shared_with_static_runtimes=yes
10872 ;;
10873 esac
10874 ;;
10875
10876 darwin* | rhapsody*)
10877
10878
10879 archive_cmds_need_lc=no
10880 hardcode_direct=no
10881 hardcode_automatic=yes
10882 hardcode_shlibpath_var=unsupported
10883 if test yes = "$lt_cv_ld_force_load"; then
10884 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\"`'
10885
10886 else
10887 whole_archive_flag_spec=''
10888 fi
10889 link_all_deplibs=yes
10890 allow_undefined_flag=$_lt_dar_allow_undefined
10891 case $cc_basename in
10892 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10893 *) _lt_dar_can_shared=$GCC ;;
10894 esac
10895 if test yes = "$_lt_dar_can_shared"; then
10896 output_verbose_link_cmd=func_echo_all
10897 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10898 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10899 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"
10900 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"
10901
10902 else
10903 ld_shlibs=no
10904 fi
10905
10906 ;;
10907
10908 dgux*)
10909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 hardcode_libdir_flag_spec='-L$libdir'
10911 hardcode_shlibpath_var=no
10912 ;;
10913
10914 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10915 # support. Future versions do this automatically, but an explicit c++rt0.o
10916 # does not break anything, and helps significantly (at the cost of a little
10917 # extra space).
10918 freebsd2.2*)
10919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10920 hardcode_libdir_flag_spec='-R$libdir'
10921 hardcode_direct=yes
10922 hardcode_shlibpath_var=no
10923 ;;
10924
10925 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10926 freebsd2.*)
10927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_direct=yes
10929 hardcode_minus_L=yes
10930 hardcode_shlibpath_var=no
10931 ;;
10932
10933 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10934 freebsd* | dragonfly*)
10935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10936 hardcode_libdir_flag_spec='-R$libdir'
10937 hardcode_direct=yes
10938 hardcode_shlibpath_var=no
10939 ;;
10940
10941 hpux9*)
10942 if test yes = "$GCC"; then
10943 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'
10944 else
10945 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'
10946 fi
10947 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10948 hardcode_libdir_separator=:
10949 hardcode_direct=yes
10950
10951 # hardcode_minus_L: Not really in the search PATH,
10952 # but as the default location of the library.
10953 hardcode_minus_L=yes
10954 export_dynamic_flag_spec='$wl-E'
10955 ;;
10956
10957 hpux10*)
10958 if test yes,no = "$GCC,$with_gnu_ld"; then
10959 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10960 else
10961 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10962 fi
10963 if test no = "$with_gnu_ld"; then
10964 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10965 hardcode_libdir_separator=:
10966 hardcode_direct=yes
10967 hardcode_direct_absolute=yes
10968 export_dynamic_flag_spec='$wl-E'
10969 # hardcode_minus_L: Not really in the search PATH,
10970 # but as the default location of the library.
10971 hardcode_minus_L=yes
10972 fi
10973 ;;
10974
10975 hpux11*)
10976 if test yes,no = "$GCC,$with_gnu_ld"; then
10977 case $host_cpu in
10978 hppa*64*)
10979 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10980 ;;
10981 ia64*)
10982 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10983 ;;
10984 *)
10985 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10986 ;;
10987 esac
10988 else
10989 case $host_cpu in
10990 hppa*64*)
10991 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10992 ;;
10993 ia64*)
10994 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10995 ;;
10996 *)
10997
10998 # Older versions of the 11.00 compiler do not understand -b yet
10999 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11001 $as_echo_n "checking if $CC understands -b... " >&6; }
11002 if ${lt_cv_prog_compiler__b+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 lt_cv_prog_compiler__b=no
11006 save_LDFLAGS=$LDFLAGS
11007 LDFLAGS="$LDFLAGS -b"
11008 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11010 # The linker can only warn and ignore the option if not recognized
11011 # So say no if there are warnings
11012 if test -s conftest.err; then
11013 # Append any errors to the config.log.
11014 cat conftest.err 1>&5
11015 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11017 if diff conftest.exp conftest.er2 >/dev/null; then
11018 lt_cv_prog_compiler__b=yes
11019 fi
11020 else
11021 lt_cv_prog_compiler__b=yes
11022 fi
11023 fi
11024 $RM -r conftest*
11025 LDFLAGS=$save_LDFLAGS
11026
11027 fi
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11029 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11030
11031 if test yes = "$lt_cv_prog_compiler__b"; then
11032 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11033 else
11034 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11035 fi
11036
11037 ;;
11038 esac
11039 fi
11040 if test no = "$with_gnu_ld"; then
11041 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11042 hardcode_libdir_separator=:
11043
11044 case $host_cpu in
11045 hppa*64*|ia64*)
11046 hardcode_direct=no
11047 hardcode_shlibpath_var=no
11048 ;;
11049 *)
11050 hardcode_direct=yes
11051 hardcode_direct_absolute=yes
11052 export_dynamic_flag_spec='$wl-E'
11053
11054 # hardcode_minus_L: Not really in the search PATH,
11055 # but as the default location of the library.
11056 hardcode_minus_L=yes
11057 ;;
11058 esac
11059 fi
11060 ;;
11061
11062 irix5* | irix6* | nonstopux*)
11063 if test yes = "$GCC"; then
11064 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'
11065 # Try to use the -exported_symbol ld option, if it does not
11066 # work, assume that -exports_file does not work either and
11067 # implicitly export all symbols.
11068 # This should be the same for all languages, so no per-tag cache variable.
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11070 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11071 if ${lt_cv_irix_exported_symbol+:} false; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 save_LDFLAGS=$LDFLAGS
11075 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11078 int foo (void) { return 0; }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081 lt_cv_irix_exported_symbol=yes
11082 else
11083 lt_cv_irix_exported_symbol=no
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LDFLAGS=$save_LDFLAGS
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11090 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11091 if test yes = "$lt_cv_irix_exported_symbol"; then
11092 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'
11093 fi
11094 else
11095 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'
11096 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'
11097 fi
11098 archive_cmds_need_lc='no'
11099 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11100 hardcode_libdir_separator=:
11101 inherit_rpath=yes
11102 link_all_deplibs=yes
11103 ;;
11104
11105 linux*)
11106 case $cc_basename in
11107 tcc*)
11108 # Fabrice Bellard et al's Tiny C Compiler
11109 ld_shlibs=yes
11110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11111 ;;
11112 esac
11113 ;;
11114
11115 netbsd*)
11116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11118 else
11119 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11120 fi
11121 hardcode_libdir_flag_spec='-R$libdir'
11122 hardcode_direct=yes
11123 hardcode_shlibpath_var=no
11124 ;;
11125
11126 newsos6)
11127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11128 hardcode_direct=yes
11129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11130 hardcode_libdir_separator=:
11131 hardcode_shlibpath_var=no
11132 ;;
11133
11134 *nto* | *qnx*)
11135 ;;
11136
11137 openbsd* | bitrig*)
11138 if test -f /usr/libexec/ld.so; then
11139 hardcode_direct=yes
11140 hardcode_shlibpath_var=no
11141 hardcode_direct_absolute=yes
11142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11144 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11145 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11146 export_dynamic_flag_spec='$wl-E'
11147 else
11148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11149 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11150 fi
11151 else
11152 ld_shlibs=no
11153 fi
11154 ;;
11155
11156 os2*)
11157 hardcode_libdir_flag_spec='-L$libdir'
11158 hardcode_minus_L=yes
11159 allow_undefined_flag=unsupported
11160 shrext_cmds=.dll
11161 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11162 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11163 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11164 $ECHO EXPORTS >> $output_objdir/$libname.def~
11165 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11166 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11167 emximp -o $lib $output_objdir/$libname.def'
11168 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11169 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11170 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11171 $ECHO EXPORTS >> $output_objdir/$libname.def~
11172 prefix_cmds="$SED"~
11173 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11174 prefix_cmds="$prefix_cmds -e 1d";
11175 fi~
11176 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11177 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11178 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11179 emximp -o $lib $output_objdir/$libname.def'
11180 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11181 enable_shared_with_static_runtimes=yes
11182 ;;
11183
11184 osf3*)
11185 if test yes = "$GCC"; then
11186 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11187 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'
11188 else
11189 allow_undefined_flag=' -expect_unresolved \*'
11190 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'
11191 fi
11192 archive_cmds_need_lc='no'
11193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11194 hardcode_libdir_separator=:
11195 ;;
11196
11197 osf4* | osf5*) # as osf3* with the addition of -msym flag
11198 if test yes = "$GCC"; then
11199 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11200 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'
11201 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11202 else
11203 allow_undefined_flag=' -expect_unresolved \*'
11204 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'
11205 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~
11206 $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'
11207
11208 # Both c and cxx compiler support -rpath directly
11209 hardcode_libdir_flag_spec='-rpath $libdir'
11210 fi
11211 archive_cmds_need_lc='no'
11212 hardcode_libdir_separator=:
11213 ;;
11214
11215 solaris*)
11216 no_undefined_flag=' -z defs'
11217 if test yes = "$GCC"; then
11218 wlarc='$wl'
11219 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11221 $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'
11222 else
11223 case `$CC -V 2>&1` in
11224 *"Compilers 5.0"*)
11225 wlarc=''
11226 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11228 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11229 ;;
11230 *)
11231 wlarc='$wl'
11232 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11233 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11234 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11235 ;;
11236 esac
11237 fi
11238 hardcode_libdir_flag_spec='-R$libdir'
11239 hardcode_shlibpath_var=no
11240 case $host_os in
11241 solaris2.[0-5] | solaris2.[0-5].*) ;;
11242 *)
11243 # The compiler driver will combine and reorder linker options,
11244 # but understands '-z linker_flag'. GCC discards it without '$wl',
11245 # but is careful enough not to reorder.
11246 # Supported since Solaris 2.6 (maybe 2.5.1?)
11247 if test yes = "$GCC"; then
11248 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11249 else
11250 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11251 fi
11252 ;;
11253 esac
11254 link_all_deplibs=yes
11255 ;;
11256
11257 sunos4*)
11258 if test sequent = "$host_vendor"; then
11259 # Use $CC to link under sequent, because it throws in some extra .o
11260 # files that make .init and .fini sections work.
11261 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11262 else
11263 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11264 fi
11265 hardcode_libdir_flag_spec='-L$libdir'
11266 hardcode_direct=yes
11267 hardcode_minus_L=yes
11268 hardcode_shlibpath_var=no
11269 ;;
11270
11271 sysv4)
11272 case $host_vendor in
11273 sni)
11274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11275 hardcode_direct=yes # is this really true???
11276 ;;
11277 siemens)
11278 ## LD is ld it makes a PLAMLIB
11279 ## CC just makes a GrossModule.
11280 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11281 reload_cmds='$CC -r -o $output$reload_objs'
11282 hardcode_direct=no
11283 ;;
11284 motorola)
11285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11286 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11287 ;;
11288 esac
11289 runpath_var='LD_RUN_PATH'
11290 hardcode_shlibpath_var=no
11291 ;;
11292
11293 sysv4.3*)
11294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11295 hardcode_shlibpath_var=no
11296 export_dynamic_flag_spec='-Bexport'
11297 ;;
11298
11299 sysv4*MP*)
11300 if test -d /usr/nec; then
11301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302 hardcode_shlibpath_var=no
11303 runpath_var=LD_RUN_PATH
11304 hardcode_runpath_var=yes
11305 ld_shlibs=yes
11306 fi
11307 ;;
11308
11309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11310 no_undefined_flag='$wl-z,text'
11311 archive_cmds_need_lc=no
11312 hardcode_shlibpath_var=no
11313 runpath_var='LD_RUN_PATH'
11314
11315 if test yes = "$GCC"; then
11316 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11318 else
11319 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11320 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 fi
11322 ;;
11323
11324 sysv5* | sco3.2v5* | sco5v6*)
11325 # Note: We CANNOT use -z defs as we might desire, because we do not
11326 # link with -lc, and that would cause any symbols used from libc to
11327 # always be unresolved, which means just about no library would
11328 # ever link correctly. If we're not using GNU ld we use -z text
11329 # though, which does catch some bad symbols but isn't as heavy-handed
11330 # as -z defs.
11331 no_undefined_flag='$wl-z,text'
11332 allow_undefined_flag='$wl-z,nodefs'
11333 archive_cmds_need_lc=no
11334 hardcode_shlibpath_var=no
11335 hardcode_libdir_flag_spec='$wl-R,$libdir'
11336 hardcode_libdir_separator=':'
11337 link_all_deplibs=yes
11338 export_dynamic_flag_spec='$wl-Bexport'
11339 runpath_var='LD_RUN_PATH'
11340
11341 if test yes = "$GCC"; then
11342 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11343 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11344 else
11345 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11346 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11347 fi
11348 ;;
11349
11350 uts4*)
11351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11352 hardcode_libdir_flag_spec='-L$libdir'
11353 hardcode_shlibpath_var=no
11354 ;;
11355
11356 *)
11357 ld_shlibs=no
11358 ;;
11359 esac
11360
11361 if test sni = "$host_vendor"; then
11362 case $host in
11363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11364 export_dynamic_flag_spec='$wl-Blargedynsym'
11365 ;;
11366 esac
11367 fi
11368 fi
11369
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11371 $as_echo "$ld_shlibs" >&6; }
11372 test no = "$ld_shlibs" && can_build_shared=no
11373
11374 with_gnu_ld=$with_gnu_ld
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390 #
11391 # Do we need to explicitly link libc?
11392 #
11393 case "x$archive_cmds_need_lc" in
11394 x|xyes)
11395 # Assume -lc should be added
11396 archive_cmds_need_lc=yes
11397
11398 if test yes,yes = "$GCC,$enable_shared"; then
11399 case $archive_cmds in
11400 *'~'*)
11401 # FIXME: we may have to deal with multi-command sequences.
11402 ;;
11403 '$CC '*)
11404 # Test whether the compiler implicitly links with -lc since on some
11405 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11406 # to ld, don't add -lc before -lgcc.
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11408 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11409 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 $RM conftest*
11413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11414
11415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11416 (eval $ac_compile) 2>&5
11417 ac_status=$?
11418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419 test $ac_status = 0; } 2>conftest.err; then
11420 soname=conftest
11421 lib=conftest
11422 libobjs=conftest.$ac_objext
11423 deplibs=
11424 wl=$lt_prog_compiler_wl
11425 pic_flag=$lt_prog_compiler_pic
11426 compiler_flags=-v
11427 linker_flags=-v
11428 verstring=
11429 output_objdir=.
11430 libname=conftest
11431 lt_save_allow_undefined_flag=$allow_undefined_flag
11432 allow_undefined_flag=
11433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11434 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11435 ac_status=$?
11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; }
11438 then
11439 lt_cv_archive_cmds_need_lc=no
11440 else
11441 lt_cv_archive_cmds_need_lc=yes
11442 fi
11443 allow_undefined_flag=$lt_save_allow_undefined_flag
11444 else
11445 cat conftest.err 1>&5
11446 fi
11447 $RM conftest*
11448
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11451 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11452 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11453 ;;
11454 esac
11455 fi
11456 ;;
11457 esac
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11611 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11612
11613 if test yes = "$GCC"; then
11614 case $host_os in
11615 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11616 *) lt_awk_arg='/^libraries:/' ;;
11617 esac
11618 case $host_os in
11619 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11620 *) lt_sed_strip_eq='s|=/|/|g' ;;
11621 esac
11622 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11623 case $lt_search_path_spec in
11624 *\;*)
11625 # if the path contains ";" then we assume it to be the separator
11626 # otherwise default to the standard path separator (i.e. ":") - it is
11627 # assumed that no part of a normal pathname contains ";" but that should
11628 # okay in the real world where ";" in dirpaths is itself problematic.
11629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11630 ;;
11631 *)
11632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11633 ;;
11634 esac
11635 # Ok, now we have the path, separated by spaces, we can step through it
11636 # and add multilib dir if necessary...
11637 lt_tmp_lt_search_path_spec=
11638 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11639 # ...but if some path component already ends with the multilib dir we assume
11640 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11641 case "$lt_multi_os_dir; $lt_search_path_spec " in
11642 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11643 lt_multi_os_dir=
11644 ;;
11645 esac
11646 for lt_sys_path in $lt_search_path_spec; do
11647 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11648 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11649 elif test -n "$lt_multi_os_dir"; then
11650 test -d "$lt_sys_path" && \
11651 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11652 fi
11653 done
11654 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11655 BEGIN {RS = " "; FS = "/|\n";} {
11656 lt_foo = "";
11657 lt_count = 0;
11658 for (lt_i = NF; lt_i > 0; lt_i--) {
11659 if ($lt_i != "" && $lt_i != ".") {
11660 if ($lt_i == "..") {
11661 lt_count++;
11662 } else {
11663 if (lt_count == 0) {
11664 lt_foo = "/" $lt_i lt_foo;
11665 } else {
11666 lt_count--;
11667 }
11668 }
11669 }
11670 }
11671 if (lt_foo != "") { lt_freq[lt_foo]++; }
11672 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11673 }'`
11674 # AWK program above erroneously prepends '/' to C:/dos/paths
11675 # for these hosts.
11676 case $host_os in
11677 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11678 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11679 esac
11680 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11681 else
11682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11683 fi
11684 library_names_spec=
11685 libname_spec='lib$name'
11686 soname_spec=
11687 shrext_cmds=.so
11688 postinstall_cmds=
11689 postuninstall_cmds=
11690 finish_cmds=
11691 finish_eval=
11692 shlibpath_var=
11693 shlibpath_overrides_runpath=unknown
11694 version_type=none
11695 dynamic_linker="$host_os ld.so"
11696 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11697 need_lib_prefix=unknown
11698 hardcode_into_libs=no
11699
11700 # when you set need_version to no, make sure it does not cause -set_version
11701 # flags to be left without arguments
11702 need_version=unknown
11703
11704
11705
11706 case $host_os in
11707 aix3*)
11708 version_type=linux # correct to gnu/linux during the next big refactor
11709 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11710 shlibpath_var=LIBPATH
11711
11712 # AIX 3 has no versioning support, so we append a major version to the name.
11713 soname_spec='$libname$release$shared_ext$major'
11714 ;;
11715
11716 aix[4-9]*)
11717 version_type=linux # correct to gnu/linux during the next big refactor
11718 need_lib_prefix=no
11719 need_version=no
11720 hardcode_into_libs=yes
11721 if test ia64 = "$host_cpu"; then
11722 # AIX 5 supports IA64
11723 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 else
11726 # With GCC up to 2.95.x, collect2 would create an import file
11727 # for dependence libraries. The import file would start with
11728 # the line '#! .'. This would cause the generated library to
11729 # depend on '.', always an invalid library. This was fixed in
11730 # development snapshots of GCC prior to 3.0.
11731 case $host_os in
11732 aix4 | aix4.[01] | aix4.[01].*)
11733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11734 echo ' yes '
11735 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11736 :
11737 else
11738 can_build_shared=no
11739 fi
11740 ;;
11741 esac
11742 # Using Import Files as archive members, it is possible to support
11743 # filename-based versioning of shared library archives on AIX. While
11744 # this would work for both with and without runtime linking, it will
11745 # prevent static linking of such archives. So we do filename-based
11746 # shared library versioning with .so extension only, which is used
11747 # when both runtime linking and shared linking is enabled.
11748 # Unfortunately, runtime linking may impact performance, so we do
11749 # not want this to be the default eventually. Also, we use the
11750 # versioned .so libs for executables only if there is the -brtl
11751 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11752 # To allow for filename-based versioning support, we need to create
11753 # libNAME.so.V as an archive file, containing:
11754 # *) an Import File, referring to the versioned filename of the
11755 # archive as well as the shared archive member, telling the
11756 # bitwidth (32 or 64) of that shared object, and providing the
11757 # list of exported symbols of that shared object, eventually
11758 # decorated with the 'weak' keyword
11759 # *) the shared object with the F_LOADONLY flag set, to really avoid
11760 # it being seen by the linker.
11761 # At run time we better use the real file rather than another symlink,
11762 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11763
11764 case $with_aix_soname,$aix_use_runtimelinking in
11765 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11766 # soname into executable. Probably we can add versioning support to
11767 # collect2, so additional links can be useful in future.
11768 aix,yes) # traditional libtool
11769 dynamic_linker='AIX unversionable lib.so'
11770 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11771 # instead of lib<name>.a to let people know that these are not
11772 # typical AIX shared libraries.
11773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11774 ;;
11775 aix,no) # traditional AIX only
11776 dynamic_linker='AIX lib.a(lib.so.V)'
11777 # We preserve .a as extension for shared libraries through AIX4.2
11778 # and later when we are not doing run time linking.
11779 library_names_spec='$libname$release.a $libname.a'
11780 soname_spec='$libname$release$shared_ext$major'
11781 ;;
11782 svr4,*) # full svr4 only
11783 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11784 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11785 # We do not specify a path in Import Files, so LIBPATH fires.
11786 shlibpath_overrides_runpath=yes
11787 ;;
11788 *,yes) # both, prefer svr4
11789 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11790 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11791 # unpreferred sharedlib libNAME.a needs extra handling
11792 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"'
11793 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"'
11794 # We do not specify a path in Import Files, so LIBPATH fires.
11795 shlibpath_overrides_runpath=yes
11796 ;;
11797 *,no) # both, prefer aix
11798 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11799 library_names_spec='$libname$release.a $libname.a'
11800 soname_spec='$libname$release$shared_ext$major'
11801 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11802 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)'
11803 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"'
11804 ;;
11805 esac
11806 shlibpath_var=LIBPATH
11807 fi
11808 ;;
11809
11810 amigaos*)
11811 case $host_cpu in
11812 powerpc)
11813 # Since July 2007 AmigaOS4 officially supports .so libraries.
11814 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11816 ;;
11817 m68k)
11818 library_names_spec='$libname.ixlibrary $libname.a'
11819 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11820 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'
11821 ;;
11822 esac
11823 ;;
11824
11825 beos*)
11826 library_names_spec='$libname$shared_ext'
11827 dynamic_linker="$host_os ld.so"
11828 shlibpath_var=LIBRARY_PATH
11829 ;;
11830
11831 bsdi[45]*)
11832 version_type=linux # correct to gnu/linux during the next big refactor
11833 need_version=no
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11835 soname_spec='$libname$release$shared_ext$major'
11836 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11839 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11840 # the default ld.so.conf also contains /usr/contrib/lib and
11841 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11842 # libtool to hard-code these into programs
11843 ;;
11844
11845 cygwin* | mingw* | pw32* | cegcc*)
11846 version_type=windows
11847 shrext_cmds=.dll
11848 need_version=no
11849 need_lib_prefix=no
11850
11851 case $GCC,$cc_basename in
11852 yes,*)
11853 # gcc
11854 library_names_spec='$libname.dll.a'
11855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11856 postinstall_cmds='base_file=`basename \$file`~
11857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11858 dldir=$destdir/`dirname \$dlpath`~
11859 test -d \$dldir || mkdir -p \$dldir~
11860 $install_prog $dir/$dlname \$dldir/$dlname~
11861 chmod a+x \$dldir/$dlname~
11862 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11863 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11864 fi'
11865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11866 dlpath=$dir/\$dldll~
11867 $RM \$dlpath'
11868 shlibpath_overrides_runpath=yes
11869
11870 case $host_os in
11871 cygwin*)
11872 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11873 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11874
11875 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11876 ;;
11877 mingw* | cegcc*)
11878 # MinGW DLLs use traditional 'lib' prefix
11879 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11880 ;;
11881 pw32*)
11882 # pw32 DLLs use 'pw' prefix rather than 'lib'
11883 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11884 ;;
11885 esac
11886 dynamic_linker='Win32 ld.exe'
11887 ;;
11888
11889 *,cl*)
11890 # Native MSVC
11891 libname_spec='$name'
11892 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11893 library_names_spec='$libname.dll.lib'
11894
11895 case $build_os in
11896 mingw*)
11897 sys_lib_search_path_spec=
11898 lt_save_ifs=$IFS
11899 IFS=';'
11900 for lt_path in $LIB
11901 do
11902 IFS=$lt_save_ifs
11903 # Let DOS variable expansion print the short 8.3 style file name.
11904 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11905 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11906 done
11907 IFS=$lt_save_ifs
11908 # Convert to MSYS style.
11909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11910 ;;
11911 cygwin*)
11912 # Convert to unix form, then to dos form, then back to unix form
11913 # but this time dos style (no spaces!) so that the unix form looks
11914 # like /cygdrive/c/PROGRA~1:/cygdr...
11915 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11916 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11917 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11918 ;;
11919 *)
11920 sys_lib_search_path_spec=$LIB
11921 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11922 # It is most probably a Windows format PATH.
11923 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11924 else
11925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11926 fi
11927 # FIXME: find the short name or the path components, as spaces are
11928 # common. (e.g. "Program Files" -> "PROGRA~1")
11929 ;;
11930 esac
11931
11932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11933 postinstall_cmds='base_file=`basename \$file`~
11934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11935 dldir=$destdir/`dirname \$dlpath`~
11936 test -d \$dldir || mkdir -p \$dldir~
11937 $install_prog $dir/$dlname \$dldir/$dlname'
11938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11939 dlpath=$dir/\$dldll~
11940 $RM \$dlpath'
11941 shlibpath_overrides_runpath=yes
11942 dynamic_linker='Win32 link.exe'
11943 ;;
11944
11945 *)
11946 # Assume MSVC wrapper
11947 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11948 dynamic_linker='Win32 ld.exe'
11949 ;;
11950 esac
11951 # FIXME: first we should search . and the directory the executable is in
11952 shlibpath_var=PATH
11953 ;;
11954
11955 darwin* | rhapsody*)
11956 dynamic_linker="$host_os dyld"
11957 version_type=darwin
11958 need_lib_prefix=no
11959 need_version=no
11960 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11961 soname_spec='$libname$release$major$shared_ext'
11962 shlibpath_overrides_runpath=yes
11963 shlibpath_var=DYLD_LIBRARY_PATH
11964 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11965
11966 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11967 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11968 ;;
11969
11970 dgux*)
11971 version_type=linux # correct to gnu/linux during the next big refactor
11972 need_lib_prefix=no
11973 need_version=no
11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11975 soname_spec='$libname$release$shared_ext$major'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 ;;
11978
11979 freebsd* | dragonfly*)
11980 # DragonFly does not have aout. When/if they implement a new
11981 # versioning mechanism, adjust this.
11982 if test -x /usr/bin/objformat; then
11983 objformat=`/usr/bin/objformat`
11984 else
11985 case $host_os in
11986 freebsd[23].*) objformat=aout ;;
11987 *) objformat=elf ;;
11988 esac
11989 fi
11990 version_type=freebsd-$objformat
11991 case $version_type in
11992 freebsd-elf*)
11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994 soname_spec='$libname$release$shared_ext$major'
11995 need_version=no
11996 need_lib_prefix=no
11997 ;;
11998 freebsd-*)
11999 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12000 need_version=yes
12001 ;;
12002 esac
12003 shlibpath_var=LD_LIBRARY_PATH
12004 case $host_os in
12005 freebsd2.*)
12006 shlibpath_overrides_runpath=yes
12007 ;;
12008 freebsd3.[01]* | freebsdelf3.[01]*)
12009 shlibpath_overrides_runpath=yes
12010 hardcode_into_libs=yes
12011 ;;
12012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12014 shlibpath_overrides_runpath=no
12015 hardcode_into_libs=yes
12016 ;;
12017 *) # from 4.6 on, and DragonFly
12018 shlibpath_overrides_runpath=yes
12019 hardcode_into_libs=yes
12020 ;;
12021 esac
12022 ;;
12023
12024 haiku*)
12025 version_type=linux # correct to gnu/linux during the next big refactor
12026 need_lib_prefix=no
12027 need_version=no
12028 dynamic_linker="$host_os runtime_loader"
12029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030 soname_spec='$libname$release$shared_ext$major'
12031 shlibpath_var=LIBRARY_PATH
12032 shlibpath_overrides_runpath=no
12033 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12034 hardcode_into_libs=yes
12035 ;;
12036
12037 hpux9* | hpux10* | hpux11*)
12038 # Give a soname corresponding to the major version so that dld.sl refuses to
12039 # link against other versions.
12040 version_type=sunos
12041 need_lib_prefix=no
12042 need_version=no
12043 case $host_cpu in
12044 ia64*)
12045 shrext_cmds='.so'
12046 hardcode_into_libs=yes
12047 dynamic_linker="$host_os dld.so"
12048 shlibpath_var=LD_LIBRARY_PATH
12049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12051 soname_spec='$libname$release$shared_ext$major'
12052 if test 32 = "$HPUX_IA64_MODE"; then
12053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12054 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12055 else
12056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12057 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12058 fi
12059 ;;
12060 hppa*64*)
12061 shrext_cmds='.sl'
12062 hardcode_into_libs=yes
12063 dynamic_linker="$host_os dld.sl"
12064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12067 soname_spec='$libname$release$shared_ext$major'
12068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12070 ;;
12071 *)
12072 shrext_cmds='.sl'
12073 dynamic_linker="$host_os dld.sl"
12074 shlibpath_var=SHLIB_PATH
12075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077 soname_spec='$libname$release$shared_ext$major'
12078 ;;
12079 esac
12080 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12081 postinstall_cmds='chmod 555 $lib'
12082 # or fails outright, so override atomically:
12083 install_override_mode=555
12084 ;;
12085
12086 interix[3-9]*)
12087 version_type=linux # correct to gnu/linux during the next big refactor
12088 need_lib_prefix=no
12089 need_version=no
12090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12091 soname_spec='$libname$release$shared_ext$major'
12092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12093 shlibpath_var=LD_LIBRARY_PATH
12094 shlibpath_overrides_runpath=no
12095 hardcode_into_libs=yes
12096 ;;
12097
12098 irix5* | irix6* | nonstopux*)
12099 case $host_os in
12100 nonstopux*) version_type=nonstopux ;;
12101 *)
12102 if test yes = "$lt_cv_prog_gnu_ld"; then
12103 version_type=linux # correct to gnu/linux during the next big refactor
12104 else
12105 version_type=irix
12106 fi ;;
12107 esac
12108 need_lib_prefix=no
12109 need_version=no
12110 soname_spec='$libname$release$shared_ext$major'
12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12112 case $host_os in
12113 irix5* | nonstopux*)
12114 libsuff= shlibsuff=
12115 ;;
12116 *)
12117 case $LD in # libtool.m4 will add one of these switches to LD
12118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12119 libsuff= shlibsuff= libmagic=32-bit;;
12120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12121 libsuff=32 shlibsuff=N32 libmagic=N32;;
12122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12124 *) libsuff= shlibsuff= libmagic=never-match;;
12125 esac
12126 ;;
12127 esac
12128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12129 shlibpath_overrides_runpath=no
12130 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12131 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12132 hardcode_into_libs=yes
12133 ;;
12134
12135 # No shared lib support for Linux oldld, aout, or coff.
12136 linux*oldld* | linux*aout* | linux*coff*)
12137 dynamic_linker=no
12138 ;;
12139
12140 linux*android*)
12141 version_type=none # Android doesn't support versioned libraries.
12142 need_lib_prefix=no
12143 need_version=no
12144 library_names_spec='$libname$release$shared_ext'
12145 soname_spec='$libname$release$shared_ext'
12146 finish_cmds=
12147 shlibpath_var=LD_LIBRARY_PATH
12148 shlibpath_overrides_runpath=yes
12149
12150 # This implies no fast_install, which is unacceptable.
12151 # Some rework will be needed to allow for fast_install
12152 # before this can be enabled.
12153 hardcode_into_libs=yes
12154
12155 dynamic_linker='Android linker'
12156 # Don't embed -rpath directories since the linker doesn't support them.
12157 hardcode_libdir_flag_spec='-L$libdir'
12158 ;;
12159
12160 # This must be glibc/ELF.
12161 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12162 version_type=linux # correct to gnu/linux during the next big refactor
12163 need_lib_prefix=no
12164 need_version=no
12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12166 soname_spec='$libname$release$shared_ext$major'
12167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 shlibpath_overrides_runpath=no
12170
12171 # Some binutils ld are patched to set DT_RUNPATH
12172 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 lt_cv_shlibpath_overrides_runpath=no
12176 save_LDFLAGS=$LDFLAGS
12177 save_libdir=$libdir
12178 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12179 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182
12183 int
12184 main ()
12185 {
12186
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12193 lt_cv_shlibpath_overrides_runpath=yes
12194 fi
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LDFLAGS=$save_LDFLAGS
12199 libdir=$save_libdir
12200
12201 fi
12202
12203 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12204
12205 # This implies no fast_install, which is unacceptable.
12206 # Some rework will be needed to allow for fast_install
12207 # before this can be enabled.
12208 hardcode_into_libs=yes
12209
12210 # Ideally, we could use ldconfig to report *all* directores which are
12211 # searched for libraries, however this is still not possible. Aside from not
12212 # being certain /sbin/ldconfig is available, command
12213 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12214 # even though it is searched at run-time. Try to do the best guess by
12215 # appending ld.so.conf contents (and includes) to the search path.
12216 if test -f /etc/ld.so.conf; then
12217 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' ' '`
12218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12219 fi
12220
12221 # We used to test for /lib/ld.so.1 and disable shared libraries on
12222 # powerpc, because MkLinux only supported shared libraries with the
12223 # GNU dynamic linker. Since this was broken with cross compilers,
12224 # most powerpc-linux boxes support dynamic linking these days and
12225 # people can always --disable-shared, the test was removed, and we
12226 # assume the GNU/Linux dynamic linker is in use.
12227 dynamic_linker='GNU/Linux ld.so'
12228 ;;
12229
12230 netbsd*)
12231 version_type=sunos
12232 need_lib_prefix=no
12233 need_version=no
12234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12237 dynamic_linker='NetBSD (a.out) ld.so'
12238 else
12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240 soname_spec='$libname$release$shared_ext$major'
12241 dynamic_linker='NetBSD ld.elf_so'
12242 fi
12243 shlibpath_var=LD_LIBRARY_PATH
12244 shlibpath_overrides_runpath=yes
12245 hardcode_into_libs=yes
12246 ;;
12247
12248 newsos6)
12249 version_type=linux # correct to gnu/linux during the next big refactor
12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=yes
12253 ;;
12254
12255 *nto* | *qnx*)
12256 version_type=qnx
12257 need_lib_prefix=no
12258 need_version=no
12259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12260 soname_spec='$libname$release$shared_ext$major'
12261 shlibpath_var=LD_LIBRARY_PATH
12262 shlibpath_overrides_runpath=no
12263 hardcode_into_libs=yes
12264 dynamic_linker='ldqnx.so'
12265 ;;
12266
12267 openbsd* | bitrig*)
12268 version_type=sunos
12269 sys_lib_dlsearch_path_spec=/usr/lib
12270 need_lib_prefix=no
12271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12272 need_version=no
12273 else
12274 need_version=yes
12275 fi
12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=yes
12280 ;;
12281
12282 os2*)
12283 libname_spec='$name'
12284 version_type=windows
12285 shrext_cmds=.dll
12286 need_version=no
12287 need_lib_prefix=no
12288 # OS/2 can only load a DLL with a base name of 8 characters or less.
12289 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12290 v=$($ECHO $release$versuffix | tr -d .-);
12291 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12292 $ECHO $n$v`$shared_ext'
12293 library_names_spec='${libname}_dll.$libext'
12294 dynamic_linker='OS/2 ld.exe'
12295 shlibpath_var=BEGINLIBPATH
12296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12298 postinstall_cmds='base_file=`basename \$file`~
12299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12300 dldir=$destdir/`dirname \$dlpath`~
12301 test -d \$dldir || mkdir -p \$dldir~
12302 $install_prog $dir/$dlname \$dldir/$dlname~
12303 chmod a+x \$dldir/$dlname~
12304 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12305 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12306 fi'
12307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12308 dlpath=$dir/\$dldll~
12309 $RM \$dlpath'
12310 ;;
12311
12312 osf3* | osf4* | osf5*)
12313 version_type=osf
12314 need_lib_prefix=no
12315 need_version=no
12316 soname_spec='$libname$release$shared_ext$major'
12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12321 ;;
12322
12323 rdos*)
12324 dynamic_linker=no
12325 ;;
12326
12327 solaris*)
12328 version_type=linux # correct to gnu/linux during the next big refactor
12329 need_lib_prefix=no
12330 need_version=no
12331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12332 soname_spec='$libname$release$shared_ext$major'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 shlibpath_overrides_runpath=yes
12335 hardcode_into_libs=yes
12336 # ldd complains unless libraries are executable
12337 postinstall_cmds='chmod +x $lib'
12338 ;;
12339
12340 sunos4*)
12341 version_type=sunos
12342 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=yes
12346 if test yes = "$with_gnu_ld"; then
12347 need_lib_prefix=no
12348 fi
12349 need_version=yes
12350 ;;
12351
12352 sysv4 | sysv4.3*)
12353 version_type=linux # correct to gnu/linux during the next big refactor
12354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12355 soname_spec='$libname$release$shared_ext$major'
12356 shlibpath_var=LD_LIBRARY_PATH
12357 case $host_vendor in
12358 sni)
12359 shlibpath_overrides_runpath=no
12360 need_lib_prefix=no
12361 runpath_var=LD_RUN_PATH
12362 ;;
12363 siemens)
12364 need_lib_prefix=no
12365 ;;
12366 motorola)
12367 need_lib_prefix=no
12368 need_version=no
12369 shlibpath_overrides_runpath=no
12370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12371 ;;
12372 esac
12373 ;;
12374
12375 sysv4*MP*)
12376 if test -d /usr/nec; then
12377 version_type=linux # correct to gnu/linux during the next big refactor
12378 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12379 soname_spec='$libname$shared_ext.$major'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 fi
12382 ;;
12383
12384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12385 version_type=sco
12386 need_lib_prefix=no
12387 need_version=no
12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12389 soname_spec='$libname$release$shared_ext$major'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=yes
12392 hardcode_into_libs=yes
12393 if test yes = "$with_gnu_ld"; then
12394 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12395 else
12396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12397 case $host_os in
12398 sco3.2v5*)
12399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12400 ;;
12401 esac
12402 fi
12403 sys_lib_dlsearch_path_spec='/usr/lib'
12404 ;;
12405
12406 tpf*)
12407 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12408 version_type=linux # correct to gnu/linux during the next big refactor
12409 need_lib_prefix=no
12410 need_version=no
12411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12412 shlibpath_var=LD_LIBRARY_PATH
12413 shlibpath_overrides_runpath=no
12414 hardcode_into_libs=yes
12415 ;;
12416
12417 uts4*)
12418 version_type=linux # correct to gnu/linux during the next big refactor
12419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12420 soname_spec='$libname$release$shared_ext$major'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 ;;
12423
12424 *)
12425 dynamic_linker=no
12426 ;;
12427 esac
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12429 $as_echo "$dynamic_linker" >&6; }
12430 test no = "$dynamic_linker" && can_build_shared=no
12431
12432 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12433 if test yes = "$GCC"; then
12434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12435 fi
12436
12437 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12438 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12439 fi
12440
12441 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12442 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12443 fi
12444
12445 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12446 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12447
12448 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12449 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12450
12451 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12452 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12551 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12552 hardcode_action=
12553 if test -n "$hardcode_libdir_flag_spec" ||
12554 test -n "$runpath_var" ||
12555 test yes = "$hardcode_automatic"; then
12556
12557 # We can hardcode non-existent directories.
12558 if test no != "$hardcode_direct" &&
12559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12560 # have to relink, otherwise we might link with an installed library
12561 # when we should be linking with a yet-to-be-installed one
12562 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12563 test no != "$hardcode_minus_L"; then
12564 # Linking always hardcodes the temporary library directory.
12565 hardcode_action=relink
12566 else
12567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12568 hardcode_action=immediate
12569 fi
12570 else
12571 # We cannot hardcode anything, or else we can only hardcode existing
12572 # directories.
12573 hardcode_action=unsupported
12574 fi
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12576 $as_echo "$hardcode_action" >&6; }
12577
12578 if test relink = "$hardcode_action" ||
12579 test yes = "$inherit_rpath"; then
12580 # Fast installation is not supported
12581 enable_fast_install=no
12582 elif test yes = "$shlibpath_overrides_runpath" ||
12583 test no = "$enable_shared"; then
12584 # Fast installation is not necessary
12585 enable_fast_install=needless
12586 fi
12587
12588
12589
12590
12591
12592
12593 if test yes != "$enable_dlopen"; then
12594 enable_dlopen=unknown
12595 enable_dlopen_self=unknown
12596 enable_dlopen_self_static=unknown
12597 else
12598 lt_cv_dlopen=no
12599 lt_cv_dlopen_libs=
12600
12601 case $host_os in
12602 beos*)
12603 lt_cv_dlopen=load_add_on
12604 lt_cv_dlopen_libs=
12605 lt_cv_dlopen_self=yes
12606 ;;
12607
12608 mingw* | pw32* | cegcc*)
12609 lt_cv_dlopen=LoadLibrary
12610 lt_cv_dlopen_libs=
12611 ;;
12612
12613 cygwin*)
12614 lt_cv_dlopen=dlopen
12615 lt_cv_dlopen_libs=
12616 ;;
12617
12618 darwin*)
12619 # if libdl is installed we need to link against it
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12622 if ${ac_cv_lib_dl_dlopen+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 ac_check_lib_save_LIBS=$LIBS
12626 LIBS="-ldl $LIBS"
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12629
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 char dlopen ();
12637 int
12638 main ()
12639 {
12640 return dlopen ();
12641 ;
12642 return 0;
12643 }
12644 _ACEOF
12645 if ac_fn_c_try_link "$LINENO"; then :
12646 ac_cv_lib_dl_dlopen=yes
12647 else
12648 ac_cv_lib_dl_dlopen=no
12649 fi
12650 rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12655 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12656 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12657 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12658 else
12659
12660 lt_cv_dlopen=dyld
12661 lt_cv_dlopen_libs=
12662 lt_cv_dlopen_self=yes
12663
12664 fi
12665
12666 ;;
12667
12668 tpf*)
12669 # Don't try to run any link tests for TPF. We know it's impossible
12670 # because TPF is a cross-compiler, and we know how we open DSOs.
12671 lt_cv_dlopen=dlopen
12672 lt_cv_dlopen_libs=
12673 lt_cv_dlopen_self=no
12674 ;;
12675
12676 *)
12677 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12678 if test "x$ac_cv_func_shl_load" = xyes; then :
12679 lt_cv_dlopen=shl_load
12680 else
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12682 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12683 if ${ac_cv_lib_dld_shl_load+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 ac_check_lib_save_LIBS=$LIBS
12687 LIBS="-ldld $LIBS"
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12690
12691 /* Override any GCC internal prototype to avoid an error.
12692 Use char because int might match the return type of a GCC
12693 builtin and then its argument prototype would still apply. */
12694 #ifdef __cplusplus
12695 extern "C"
12696 #endif
12697 char shl_load ();
12698 int
12699 main ()
12700 {
12701 return shl_load ();
12702 ;
12703 return 0;
12704 }
12705 _ACEOF
12706 if ac_fn_c_try_link "$LINENO"; then :
12707 ac_cv_lib_dld_shl_load=yes
12708 else
12709 ac_cv_lib_dld_shl_load=no
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12716 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12717 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12718 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12719 else
12720 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12721 if test "x$ac_cv_func_dlopen" = xyes; then :
12722 lt_cv_dlopen=dlopen
12723 else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12726 if ${ac_cv_lib_dl_dlopen+:} false; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 ac_check_lib_save_LIBS=$LIBS
12730 LIBS="-ldl $LIBS"
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char dlopen ();
12741 int
12742 main ()
12743 {
12744 return dlopen ();
12745 ;
12746 return 0;
12747 }
12748 _ACEOF
12749 if ac_fn_c_try_link "$LINENO"; then :
12750 ac_cv_lib_dl_dlopen=yes
12751 else
12752 ac_cv_lib_dl_dlopen=no
12753 fi
12754 rm -f core conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12756 LIBS=$ac_check_lib_save_LIBS
12757 fi
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12761 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12764 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12765 if ${ac_cv_lib_svld_dlopen+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 ac_check_lib_save_LIBS=$LIBS
12769 LIBS="-lsvld $LIBS"
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772
12773 /* Override any GCC internal prototype to avoid an error.
12774 Use char because int might match the return type of a GCC
12775 builtin and then its argument prototype would still apply. */
12776 #ifdef __cplusplus
12777 extern "C"
12778 #endif
12779 char dlopen ();
12780 int
12781 main ()
12782 {
12783 return dlopen ();
12784 ;
12785 return 0;
12786 }
12787 _ACEOF
12788 if ac_fn_c_try_link "$LINENO"; then :
12789 ac_cv_lib_svld_dlopen=yes
12790 else
12791 ac_cv_lib_svld_dlopen=no
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext \
12794 conftest$ac_exeext conftest.$ac_ext
12795 LIBS=$ac_check_lib_save_LIBS
12796 fi
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12798 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12799 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12800 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12801 else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12803 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12804 if ${ac_cv_lib_dld_dld_link+:} false; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807 ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-ldld $LIBS"
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811
12812 /* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12815 #ifdef __cplusplus
12816 extern "C"
12817 #endif
12818 char dld_link ();
12819 int
12820 main ()
12821 {
12822 return dld_link ();
12823 ;
12824 return 0;
12825 }
12826 _ACEOF
12827 if ac_fn_c_try_link "$LINENO"; then :
12828 ac_cv_lib_dld_dld_link=yes
12829 else
12830 ac_cv_lib_dld_dld_link=no
12831 fi
12832 rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12835 fi
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12837 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12838 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12839 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12840 fi
12841
12842
12843 fi
12844
12845
12846 fi
12847
12848
12849 fi
12850
12851
12852 fi
12853
12854
12855 fi
12856
12857 ;;
12858 esac
12859
12860 if test no = "$lt_cv_dlopen"; then
12861 enable_dlopen=no
12862 else
12863 enable_dlopen=yes
12864 fi
12865
12866 case $lt_cv_dlopen in
12867 dlopen)
12868 save_CPPFLAGS=$CPPFLAGS
12869 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12870
12871 save_LDFLAGS=$LDFLAGS
12872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12873
12874 save_LIBS=$LIBS
12875 LIBS="$lt_cv_dlopen_libs $LIBS"
12876
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12878 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12879 if ${lt_cv_dlopen_self+:} false; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 if test yes = "$cross_compiling"; then :
12883 lt_cv_dlopen_self=cross
12884 else
12885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12886 lt_status=$lt_dlunknown
12887 cat > conftest.$ac_ext <<_LT_EOF
12888 #line $LINENO "configure"
12889 #include "confdefs.h"
12890
12891 #if HAVE_DLFCN_H
12892 #include <dlfcn.h>
12893 #endif
12894
12895 #include <stdio.h>
12896
12897 #ifdef RTLD_GLOBAL
12898 # define LT_DLGLOBAL RTLD_GLOBAL
12899 #else
12900 # ifdef DL_GLOBAL
12901 # define LT_DLGLOBAL DL_GLOBAL
12902 # else
12903 # define LT_DLGLOBAL 0
12904 # endif
12905 #endif
12906
12907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12908 find out it does not work in some platform. */
12909 #ifndef LT_DLLAZY_OR_NOW
12910 # ifdef RTLD_LAZY
12911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12912 # else
12913 # ifdef DL_LAZY
12914 # define LT_DLLAZY_OR_NOW DL_LAZY
12915 # else
12916 # ifdef RTLD_NOW
12917 # define LT_DLLAZY_OR_NOW RTLD_NOW
12918 # else
12919 # ifdef DL_NOW
12920 # define LT_DLLAZY_OR_NOW DL_NOW
12921 # else
12922 # define LT_DLLAZY_OR_NOW 0
12923 # endif
12924 # endif
12925 # endif
12926 # endif
12927 #endif
12928
12929 /* When -fvisibility=hidden is used, assume the code has been annotated
12930 correspondingly for the symbols needed. */
12931 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12932 int fnord () __attribute__((visibility("default")));
12933 #endif
12934
12935 int fnord () { return 42; }
12936 int main ()
12937 {
12938 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12939 int status = $lt_dlunknown;
12940
12941 if (self)
12942 {
12943 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12944 else
12945 {
12946 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12947 else puts (dlerror ());
12948 }
12949 /* dlclose (self); */
12950 }
12951 else
12952 puts (dlerror ());
12953
12954 return status;
12955 }
12956 _LT_EOF
12957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12958 (eval $ac_link) 2>&5
12959 ac_status=$?
12960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12961 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12962 (./conftest; exit; ) >&5 2>/dev/null
12963 lt_status=$?
12964 case x$lt_status in
12965 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12966 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12967 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12968 esac
12969 else :
12970 # compilation failed
12971 lt_cv_dlopen_self=no
12972 fi
12973 fi
12974 rm -fr conftest*
12975
12976
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12979 $as_echo "$lt_cv_dlopen_self" >&6; }
12980
12981 if test yes = "$lt_cv_dlopen_self"; then
12982 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12984 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12985 if ${lt_cv_dlopen_self_static+:} false; then :
12986 $as_echo_n "(cached) " >&6
12987 else
12988 if test yes = "$cross_compiling"; then :
12989 lt_cv_dlopen_self_static=cross
12990 else
12991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12992 lt_status=$lt_dlunknown
12993 cat > conftest.$ac_ext <<_LT_EOF
12994 #line $LINENO "configure"
12995 #include "confdefs.h"
12996
12997 #if HAVE_DLFCN_H
12998 #include <dlfcn.h>
12999 #endif
13000
13001 #include <stdio.h>
13002
13003 #ifdef RTLD_GLOBAL
13004 # define LT_DLGLOBAL RTLD_GLOBAL
13005 #else
13006 # ifdef DL_GLOBAL
13007 # define LT_DLGLOBAL DL_GLOBAL
13008 # else
13009 # define LT_DLGLOBAL 0
13010 # endif
13011 #endif
13012
13013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13014 find out it does not work in some platform. */
13015 #ifndef LT_DLLAZY_OR_NOW
13016 # ifdef RTLD_LAZY
13017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13018 # else
13019 # ifdef DL_LAZY
13020 # define LT_DLLAZY_OR_NOW DL_LAZY
13021 # else
13022 # ifdef RTLD_NOW
13023 # define LT_DLLAZY_OR_NOW RTLD_NOW
13024 # else
13025 # ifdef DL_NOW
13026 # define LT_DLLAZY_OR_NOW DL_NOW
13027 # else
13028 # define LT_DLLAZY_OR_NOW 0
13029 # endif
13030 # endif
13031 # endif
13032 # endif
13033 #endif
13034
13035 /* When -fvisibility=hidden is used, assume the code has been annotated
13036 correspondingly for the symbols needed. */
13037 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13038 int fnord () __attribute__((visibility("default")));
13039 #endif
13040
13041 int fnord () { return 42; }
13042 int main ()
13043 {
13044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13045 int status = $lt_dlunknown;
13046
13047 if (self)
13048 {
13049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13050 else
13051 {
13052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13053 else puts (dlerror ());
13054 }
13055 /* dlclose (self); */
13056 }
13057 else
13058 puts (dlerror ());
13059
13060 return status;
13061 }
13062 _LT_EOF
13063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13064 (eval $ac_link) 2>&5
13065 ac_status=$?
13066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13067 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13068 (./conftest; exit; ) >&5 2>/dev/null
13069 lt_status=$?
13070 case x$lt_status in
13071 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13072 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13073 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13074 esac
13075 else :
13076 # compilation failed
13077 lt_cv_dlopen_self_static=no
13078 fi
13079 fi
13080 rm -fr conftest*
13081
13082
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13085 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13086 fi
13087
13088 CPPFLAGS=$save_CPPFLAGS
13089 LDFLAGS=$save_LDFLAGS
13090 LIBS=$save_LIBS
13091 ;;
13092 esac
13093
13094 case $lt_cv_dlopen_self in
13095 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13096 *) enable_dlopen_self=unknown ;;
13097 esac
13098
13099 case $lt_cv_dlopen_self_static in
13100 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13101 *) enable_dlopen_self_static=unknown ;;
13102 esac
13103 fi
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121 striplib=
13122 old_striplib=
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13124 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13125 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13126 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13127 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13129 $as_echo "yes" >&6; }
13130 else
13131 # FIXME - insert some real tests, host_os isn't really good enough
13132 case $host_os in
13133 darwin*)
13134 if test -n "$STRIP"; then
13135 striplib="$STRIP -x"
13136 old_striplib="$STRIP -S"
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138 $as_echo "yes" >&6; }
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13142 fi
13143 ;;
13144 *)
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13147 ;;
13148 esac
13149 fi
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162 # Report what library types will actually be built
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13164 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13166 $as_echo "$can_build_shared" >&6; }
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13169 $as_echo_n "checking whether to build shared libraries... " >&6; }
13170 test no = "$can_build_shared" && enable_shared=no
13171
13172 # On AIX, shared libraries and static libraries use the same namespace, and
13173 # are all built from PIC.
13174 case $host_os in
13175 aix3*)
13176 test yes = "$enable_shared" && enable_static=no
13177 if test -n "$RANLIB"; then
13178 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13179 postinstall_cmds='$RANLIB $lib'
13180 fi
13181 ;;
13182
13183 aix[4-9]*)
13184 if test ia64 != "$host_cpu"; then
13185 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13186 yes,aix,yes) ;; # shared object as lib.so file only
13187 yes,svr4,*) ;; # shared object as lib.so archive member only
13188 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13189 esac
13190 fi
13191 ;;
13192 esac
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13194 $as_echo "$enable_shared" >&6; }
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13197 $as_echo_n "checking whether to build static libraries... " >&6; }
13198 # Make sure either enable_shared or enable_static is yes.
13199 test yes = "$enable_shared" || enable_static=yes
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13201 $as_echo "$enable_static" >&6; }
13202
13203
13204
13205
13206 fi
13207 ac_ext=c
13208 ac_cpp='$CPP $CPPFLAGS'
13209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13212
13213 CC=$lt_save_CC
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229 ac_config_commands="$ac_config_commands libtool"
13230
13231
13232
13233
13234 # Only expand once:
13235
13236
13237
13238 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
13239 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
13240 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
13241
13242 PARENT_CFLAGS=${CFLAGS}
13243
13244 # ----------------------------------------------------------------------------
13245 # Set default library names if names haven't already been provided
13246
13247 MPLLIBNAME=${MPLLIBNAME:-"mpl"}
13248
13249 export MPLLIBNAME
13250
13251 if test -s "$srcdir/VERSION" ; then
13252 . $srcdir/VERSION
13253
13254 else
13255 as_fn_error $? "Version information not found. Configuration aborted." "$LINENO" 5
13256 fi
13257
13258 ac_config_headers="$ac_config_headers include/config.h"
13259
13260 ac_config_commands="$ac_config_commands prefix-config"
13261
13262
13263 # Non-verbose make
13264 # Check whether --enable-silent-rules was given.
13265 if test "${enable_silent_rules+set}" = set; then :
13266 enableval=$enable_silent_rules;
13267 fi
13268
13269 case $enable_silent_rules in # (((
13270 yes) AM_DEFAULT_VERBOSITY=0;;
13271 no) AM_DEFAULT_VERBOSITY=1;;
13272 *) AM_DEFAULT_VERBOSITY=0;;
13273 esac
13274 am_make=${MAKE-make}
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13276 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13277 if ${am_cv_make_support_nested_variables+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if $as_echo 'TRUE=$(BAR$(V))
13281 BAR0=false
13282 BAR1=true
13283 V=1
13284 am__doit:
13285 @$(TRUE)
13286 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13287 am_cv_make_support_nested_variables=yes
13288 else
13289 am_cv_make_support_nested_variables=no
13290 fi
13291 fi
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13293 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13294 if test $am_cv_make_support_nested_variables = yes; then
13295 AM_V='$(V)'
13296 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13297 else
13298 AM_V=$AM_DEFAULT_VERBOSITY
13299 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13300 fi
13301 AM_BACKSLASH='\'
13302
13303
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13305 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13306 if ${ac_cv_c_const+:} false; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13311
13312 int
13313 main ()
13314 {
13315
13316 #ifndef __cplusplus
13317 /* Ultrix mips cc rejects this sort of thing. */
13318 typedef int charset[2];
13319 const charset cs = { 0, 0 };
13320 /* SunOS 4.1.1 cc rejects this. */
13321 char const *const *pcpcc;
13322 char **ppc;
13323 /* NEC SVR4.0.2 mips cc rejects this. */
13324 struct point {int x, y;};
13325 static struct point const zero = {0,0};
13326 /* AIX XL C 1.02.0.0 rejects this.
13327 It does not let you subtract one const X* pointer from another in
13328 an arm of an if-expression whose if-part is not a constant
13329 expression */
13330 const char *g = "string";
13331 pcpcc = &g + (g ? g-g : 0);
13332 /* HPUX 7.0 cc rejects these. */
13333 ++pcpcc;
13334 ppc = (char**) pcpcc;
13335 pcpcc = (char const *const *) ppc;
13336 { /* SCO 3.2v4 cc rejects this sort of thing. */
13337 char tx;
13338 char *t = &tx;
13339 char const *s = 0 ? (char *) 0 : (char const *) 0;
13340
13341 *t++ = 0;
13342 if (s) return 0;
13343 }
13344 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13345 int x[] = {25, 17};
13346 const int *foo = &x[0];
13347 ++foo;
13348 }
13349 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13350 typedef const int *iptr;
13351 iptr p = 0;
13352 ++p;
13353 }
13354 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13355 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13356 struct s { int j; const int *ap[3]; } bx;
13357 struct s *b = &bx; b->j = 5;
13358 }
13359 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13360 const int foo = 10;
13361 if (!foo) return 0;
13362 }
13363 return !cs[0] && !zero.x;
13364 #endif
13365
13366 ;
13367 return 0;
13368 }
13369 _ACEOF
13370 if ac_fn_c_try_compile "$LINENO"; then :
13371 ac_cv_c_const=yes
13372 else
13373 ac_cv_c_const=no
13374 fi
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13378 $as_echo "$ac_cv_c_const" >&6; }
13379 if test $ac_cv_c_const = no; then
13380
13381 $as_echo "#define const /**/" >>confdefs.h
13382
13383 fi
13384
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13386 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
13387 if ${ac_cv_c_restrict+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 ac_cv_c_restrict=no
13391 # The order here caters to the fact that C++ does not require restrict.
13392 for ac_kw in __restrict __restrict__ _Restrict restrict; do
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 typedef int * int_ptr;
13396 int foo (int_ptr $ac_kw ip) {
13397 return ip[0];
13398 }
13399 int
13400 main ()
13401 {
13402 int s[1];
13403 int * $ac_kw t = s;
13404 t[0] = 0;
13405 return foo(t)
13406 ;
13407 return 0;
13408 }
13409 _ACEOF
13410 if ac_fn_c_try_compile "$LINENO"; then :
13411 ac_cv_c_restrict=$ac_kw
13412 fi
13413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414 test "$ac_cv_c_restrict" != no && break
13415 done
13416
13417 fi
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13419 $as_echo "$ac_cv_c_restrict" >&6; }
13420
13421 case $ac_cv_c_restrict in
13422 restrict) ;;
13423 no) $as_echo "#define restrict /**/" >>confdefs.h
13424 ;;
13425 *) cat >>confdefs.h <<_ACEOF
13426 #define restrict $ac_cv_c_restrict
13427 _ACEOF
13428 ;;
13429 esac
13430
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13432 $as_echo_n "checking for inline... " >&6; }
13433 if ${ac_cv_c_inline+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 ac_cv_c_inline=no
13437 for ac_kw in inline __inline__ __inline; do
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440 #ifndef __cplusplus
13441 typedef int foo_t;
13442 static $ac_kw foo_t static_foo () {return 0; }
13443 $ac_kw foo_t foo () {return 0; }
13444 #endif
13445
13446 _ACEOF
13447 if ac_fn_c_try_compile "$LINENO"; then :
13448 ac_cv_c_inline=$ac_kw
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 test "$ac_cv_c_inline" != no && break
13452 done
13453
13454 fi
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13456 $as_echo "$ac_cv_c_inline" >&6; }
13457
13458 case $ac_cv_c_inline in
13459 inline | yes) ;;
13460 *)
13461 case $ac_cv_c_inline in
13462 no) ac_val=;;
13463 *) ac_val=$ac_cv_c_inline;;
13464 esac
13465 cat >>confdefs.h <<_ACEOF
13466 #ifndef __cplusplus
13467 #define inline $ac_val
13468 #endif
13469 _ACEOF
13470 ;;
13471 esac
13472
13473
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable argument list macro functionality" >&5
13476 $as_echo_n "checking for variable argument list macro functionality... " >&6; }
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479
13480 #include <stdio.h>
13481 #define conftest_va_arg_macro(...) printf(__VA_ARGS__)
13482
13483 int
13484 main ()
13485 {
13486 conftest_va_arg_macro("a test %d", 3);
13487 ;
13488 return 0;
13489 }
13490 _ACEOF
13491 if ac_fn_c_try_link "$LINENO"; then :
13492
13493 $as_echo "#define HAVE_MACRO_VA_ARGS 1" >>confdefs.h
13494
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13496 $as_echo "yes" >&6; }
13497 else
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13500 fi
13501 rm -f core conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13503
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports __builtin_expect" >&5
13506 $as_echo_n "checking if C compiler supports __builtin_expect... " >&6; }
13507
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510
13511 int
13512 main ()
13513 {
13514
13515 return __builtin_expect(1, 1) ? 1 : 0
13516
13517 ;
13518 return 0;
13519 }
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522
13523 have_builtin_expect=yes
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13525 $as_echo "yes" >&6; }
13526
13527 else
13528
13529 have_builtin_expect=no
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13532
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
13536 if test x$have_builtin_expect = xyes ; then
13537
13538 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
13539
13540 fi
13541
13542
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports __builtin_clz" >&5
13544 $as_echo_n "checking if C compiler supports __builtin_clz... " >&6; }
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547
13548 int
13549 main ()
13550 {
13551
13552 return __builtin_clz(0)
13553
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559
13560
13561 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
13562
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13564 $as_echo "yes" >&6; }
13565
13566 else
13567
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569 $as_echo "no" >&6; }
13570
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext \
13573 conftest$ac_exeext conftest.$ac_ext
13574
13575
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports __builtin_popcount" >&5
13577 $as_echo_n "checking if C compiler supports __builtin_popcount... " >&6; }
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580
13581 int
13582 main ()
13583 {
13584
13585 return __builtin_popcount(0)
13586
13587 ;
13588 return 0;
13589 }
13590 _ACEOF
13591 if ac_fn_c_try_link "$LINENO"; then :
13592
13593
13594 $as_echo "#define HAVE_BUILTIN_POPCOUNT 1" >>confdefs.h
13595
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13597 $as_echo "yes" >&6; }
13598
13599 else
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607
13608
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 _Static_assert functionality" >&5
13610 $as_echo_n "checking for C11 _Static_assert functionality... " >&6; }
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613
13614 int main(){
13615 _Static_assert(1, "The impossible happened!");
13616 return 0;
13617 }
13618
13619 _ACEOF
13620 if ac_fn_c_try_link "$LINENO"; then :
13621
13622
13623 $as_echo "#define HAVE_C11__STATIC_ASSERT 1" >>confdefs.h
13624
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626 $as_echo "yes" >&6; }
13627
13628 else
13629
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 $as_echo "no" >&6; }
13632
13633 fi
13634 rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13636
13637
13638 # we need add rpaths of dependency libraries
13639 RPATHS=
13640
13641
13642 # Check whether --enable-embedded was given.
13643 if test "${enable_embedded+set}" = set; then :
13644 enableval=$enable_embedded; embedded=yes
13645 else
13646 embedded=no
13647 fi
13648
13649 if test "x${embedded}" = "xyes"; then
13650 MPL_EMBEDDED_MODE_TRUE=
13651 MPL_EMBEDDED_MODE_FALSE='#'
13652 else
13653 MPL_EMBEDDED_MODE_TRUE='#'
13654 MPL_EMBEDDED_MODE_FALSE=
13655 fi
13656
13657
13658 # Check whether --enable-g was given.
13659 if test "${enable_g+set}" = set; then :
13660 enableval=$enable_g;
13661 else
13662 enable_g=none
13663 fi
13664
13665
13666 # enable-g
13667 # strip off multiple options, separated by commas
13668
13669 if test -z "${pac_save_IFS_nesting}" ; then
13670 pac_save_IFS_nesting=0
13671 fi
13672 eval pac_save_IFS_${pac_save_IFS_nesting}='"$IFS"'
13673 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} + 1`
13674
13675 # Change IFS to process enable_g values; save for use after AC_MSG_WARN
13676 # below to provide single point of maintenance
13677 enable_g_IFS=","
13678 IFS="$enable_g_IFS"
13679 for option in $enable_g ; do
13680 case "$option" in
13681 log)
13682 enable_g_log=yes
13683 ;;
13684
13685 mem|memarena)
13686 enable_g_mem=yes
13687 ;;
13688
13689 most|yes|all)
13690 enable_g_log=yes
13691 enable_g_mem=yes
13692 ;;
13693
13694 no|none)
13695 ;;
13696
13697 *)
13698 # Default IFS required by AC_MSG_WARN
13699
13700 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} - 1`
13701 eval IFS="\$pac_save_IFS_${pac_save_IFS_nesting}"
13702 eval pac_save_IFS_${pac_save_IFS_nesting}=""
13703
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $option for enable-g" >&5
13705 $as_echo "$as_me: WARNING: Unknown value $option for enable-g" >&2;}
13706 # Restore previous IFS to process any remaining enable_g values
13707
13708 if test -z "${pac_save_IFS_nesting}" ; then
13709 pac_save_IFS_nesting=0
13710 fi
13711 eval pac_save_IFS_${pac_save_IFS_nesting}='"$IFS"'
13712 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} + 1`
13713
13714 IFS="$enable_g_IFS"
13715 ;;
13716 esac
13717 done
13718
13719 pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} - 1`
13720 eval IFS="\$pac_save_IFS_${pac_save_IFS_nesting}"
13721 eval pac_save_IFS_${pac_save_IFS_nesting}=""
13722
13723
13724 if test "$enable_g_log" = "yes" ; then
13725
13726 $as_echo "#define USE_DBG_LOGGING 1" >>confdefs.h
13727
13728 fi
13729
13730 if test "$enable_g_mem" = "yes" ; then
13731
13732 $as_echo "#define USE_MEMORY_TRACING 1" >>confdefs.h
13733
13734 fi
13735
13736
13737 # support gcov test coverage information
13738
13739
13740
13741 for ac_prog in gcov
13742 do
13743 # Extract the first word of "$ac_prog", so it can be a program name with args.
13744 set dummy $ac_prog; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; }
13747 if ${ac_cv_prog_GCOV+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 if test -n "$GCOV"; then
13751 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
13752 else
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13755 do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760 ac_cv_prog_GCOV="$ac_prog"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13763 fi
13764 done
13765 done
13766 IFS=$as_save_IFS
13767
13768 fi
13769 fi
13770 GCOV=$ac_cv_prog_GCOV
13771 if test -n "$GCOV"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
13773 $as_echo "$GCOV" >&6; }
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13777 fi
13778
13779
13780 test -n "$GCOV" && break
13781 done
13782
13783
13784 # Check whether --enable-coverage was given.
13785 if test "${enable_coverage+set}" = set; then :
13786 enableval=$enable_coverage;
13787 else
13788 enable_coverage=no
13789 fi
13790
13791
13792 if test "$enable_coverage" = "yes" ; then
13793 if test "$ac_cv_c_compiler_gnu" = "yes" ; then
13794 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
13795 LIBS="$LIBS -lgcov"
13796 if test ${WRAPPER_CFLAGS+set} = set ; then
13797 WRAPPER_CFLAGS="$WRAPPER_CFLAGS -fprofile-arcs -ftest-coverage"
13798 fi
13799 else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GCC" >&5
13801 $as_echo "$as_me: WARNING: --enable-coverage only supported for GCC" >&2;}
13802 fi
13803 if test "$enable_cxx" = "yes" ; then
13804 if test "$ac_cv_cxx_compiler_gnu" = "yes" ; then
13805 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
13806 LIBS="$LIBS -lgcov"
13807 if test ${WRAPPER_CXXFLAGS+set} = set ; then
13808 WRAPPER_CXXFLAGS="$WRAPPER_CXXFLAGS -fprofile-arcs -ftest-coverage"
13809 fi
13810 else
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GCC" >&5
13812 $as_echo "$as_me: WARNING: --enable-coverage only supported for GCC" >&2;}
13813 fi
13814 fi
13815 # Add similar options for g77 so that the Fortran tests will also
13816 #
13817 if test "$enable_f77" = yes ; then
13818 if test "$ac_cv_f77_compiler_gnu" = "yes" ; then
13819 FFLAGS="$FFLAGS -fprofile-arcs -ftest-coverage"
13820 LIBS="$LIBS -lgcov"
13821 if test ${WRAPPER_FFLAGS+set} = set ; then
13822 WRAPPER_FFLAGS="$WRAPPER_FFLAGS -fprofile-arcs -ftest-coverage"
13823 fi
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for G77/GFORTRAN" >&5
13826 $as_echo "$as_me: WARNING: --enable-coverage only supported for G77/GFORTRAN" >&2;}
13827 fi
13828 fi
13829 if test "$enable_fc" = yes ; then
13830 if test "$ac_cv_fc_compiler_gnu" = "yes" ; then
13831 FCFLAGS="$FCFLAGS -fprofile-arcs -ftest-coverage"
13832 LIBS="$LIBS -lgcov"
13833 if test ${WRAPPER_FCFLAGS+set} = set ; then
13834 WRAPPER_FCFLAGS="$WRAPPER_FCFLAGS -fprofile-arcs -ftest-coverage"
13835 fi
13836 else
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GFORTRAN" >&5
13838 $as_echo "$as_me: WARNING: --enable-coverage only supported for GFORTRAN" >&2;}
13839 fi
13840 fi
13841 # On some platforms (e.g., Mac Darwin), we must also *link*
13842 # with the -fprofile-args -ftest-coverage option.
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compilation with coverage analysis enabled works" >&5
13844 $as_echo_n "checking whether compilation with coverage analysis enabled works... " >&6; }
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13847 int main(int argc, char **argv){return 1;}
13848 _ACEOF
13849 if ac_fn_c_try_link "$LINENO"; then :
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13851 $as_echo "yes" >&6; }
13852 else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13855 as_fn_error $? "Unable to link programs when coverage analysis enabled" "$LINENO" 5
13856 fi
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859
13860 # Test for the routines that we need to use to ensure that the
13861 # data files are (usually) written out
13862 # FIXME: Some versions of Linux provide usleep, but it rounds times
13863 # up to the next second (!)
13864 for ac_func in usleep
13865 do :
13866 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13867 if test "x$ac_cv_func_usleep" = xyes; then :
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_USLEEP 1
13870 _ACEOF
13871
13872 fi
13873 done
13874
13875
13876 # NOTE: using a "pac_cv_" prefix but not caching because of xFLAGS "side effects"
13877 pac_cv_use_coverage=yes
13878
13879 $as_echo "#define USE_COVERAGE 1" >>confdefs.h
13880
13881 fi
13882 if test "X$pac_cv_use_coverage" = "Xyes"; then
13883 BUILD_COVERAGE_TRUE=
13884 BUILD_COVERAGE_FALSE='#'
13885 else
13886 BUILD_COVERAGE_TRUE='#'
13887 BUILD_COVERAGE_FALSE=
13888 fi
13889
13890
13891
13892 # check for compiler support for the __typeof() extension
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __typeof(variable)" >&5
13894 $as_echo_n "checking whether the compiler supports __typeof(variable)... " >&6; }
13895 if ${pac_cv_have___typeof+:} false; then :
13896 $as_echo_n "(cached) " >&6
13897 else
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900
13901 int
13902 main ()
13903 {
13904 double foo = 0.0; __typeof(foo) bar = 1.0;
13905 ;
13906 return 0;
13907 }
13908 _ACEOF
13909 if ac_fn_c_try_compile "$LINENO"; then :
13910 pac_cv_have___typeof=yes
13911 else
13912 pac_cv_have___typeof=no
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915
13916 fi
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have___typeof" >&5
13918 $as_echo "$pac_cv_have___typeof" >&6; }
13919 if test "$pac_cv_have___typeof" = "yes" ; then
13920
13921 $as_echo "#define HAVE___TYPEOF 1" >>confdefs.h
13922
13923 fi
13924
13925 for ac_header in stdio.h stdlib.h string.h stdarg.h ctype.h sys/types.h sys/uio.h execinfo.h unistd.h errno.h windows.h sys/mman.h
13926 do :
13927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13930 cat >>confdefs.h <<_ACEOF
13931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13932 _ACEOF
13933
13934 fi
13935
13936 done
13937
13938
13939 # A C99 compliant compiler should have inttypes.h for fixed-size int types
13940 for ac_header in inttypes.h stdint.h
13941 do :
13942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13943 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13944 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13945 cat >>confdefs.h <<_ACEOF
13946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13947 _ACEOF
13948
13949 fi
13950
13951 done
13952
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13954 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13955 if ${ac_cv_header_stdbool_h+:} false; then :
13956 $as_echo_n "(cached) " >&6
13957 else
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960
13961 #include <stdbool.h>
13962 #ifndef bool
13963 "error: bool is not defined"
13964 #endif
13965 #ifndef false
13966 "error: false is not defined"
13967 #endif
13968 #if false
13969 "error: false is not 0"
13970 #endif
13971 #ifndef true
13972 "error: true is not defined"
13973 #endif
13974 #if true != 1
13975 "error: true is not 1"
13976 #endif
13977 #ifndef __bool_true_false_are_defined
13978 "error: __bool_true_false_are_defined is not defined"
13979 #endif
13980
13981 struct s { _Bool s: 1; _Bool t; } s;
13982
13983 char a[true == 1 ? 1 : -1];
13984 char b[false == 0 ? 1 : -1];
13985 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13986 char d[(bool) 0.5 == true ? 1 : -1];
13987 /* See body of main program for 'e'. */
13988 char f[(_Bool) 0.0 == false ? 1 : -1];
13989 char g[true];
13990 char h[sizeof (_Bool)];
13991 char i[sizeof s.t];
13992 enum { j = false, k = true, l = false * true, m = true * 256 };
13993 /* The following fails for
13994 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13995 _Bool n[m];
13996 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13997 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13998 /* Catch a bug in an HP-UX C compiler. See
13999 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14000 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14001 */
14002 _Bool q = true;
14003 _Bool *pq = &q;
14004
14005 int
14006 main ()
14007 {
14008
14009 bool e = &s;
14010 *pq |= q;
14011 *pq |= ! q;
14012 /* Refer to every declared value, to avoid compiler optimizations. */
14013 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14014 + !m + !n + !o + !p + !q + !pq);
14015
14016 ;
14017 return 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_compile "$LINENO"; then :
14021 ac_cv_header_stdbool_h=yes
14022 else
14023 ac_cv_header_stdbool_h=no
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14028 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14029 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14030 if test "x$ac_cv_type__Bool" = xyes; then :
14031
14032 cat >>confdefs.h <<_ACEOF
14033 #define HAVE__BOOL 1
14034 _ACEOF
14035
14036
14037 fi
14038
14039
14040 if test $ac_cv_header_stdbool_h = yes; then
14041
14042 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14043
14044 fi
14045
14046
14047
14048
14049 case "$host_cpu" in
14050 i*86 | x86_64)
14051 build_for_x86="yes"
14052 SUMMARY_MESSAGE="Runtime checking of AVX2/AVX512F is enabled for selected functions in libmpi.so"
14053 ;;
14054 esac
14055 if test "x$build_for_x86" = "xyes"; then
14056 MPL_BUILD_FOR_X86_TRUE=
14057 MPL_BUILD_FOR_X86_FALSE='#'
14058 else
14059 MPL_BUILD_FOR_X86_TRUE='#'
14060 MPL_BUILD_FOR_X86_FALSE=
14061 fi
14062
14063
14064 # Check whether --enable-fast was given.
14065 if test "${enable_fast+set}" = set; then :
14066 enableval=$enable_fast;
14067 else
14068 enable_fast=none
14069 fi
14070
14071
14072 # enable-fast can have multiple options, need break down options
14073 # transferred from MPICH separated by commas
14074 enable_fast_alwaysinline=no
14075
14076 # Instruction specific options (avx, avx512f) are for users to explicitly request for
14077 # corresponding instruction sets.
14078 # If set, we will add the corresponding flags if supported by the compiler. This will enable
14079 # AVX and AVX512F for the entire MPICH code base.
14080 force_enable_avx=no
14081 force_enable_avx512f=no
14082
14083 save_IFS="$IFS"
14084 IFS=","
14085 for option in $enable_fast ; do
14086 case "$option" in
14087 alwaysinline)
14088 enable_fast_alwaysinline=yes
14089 ;;
14090 avx)
14091 force_enable_avx=yes
14092 SUMMARY_MESSAGE="--enable-fast=avx enables AVX2 for the entire libmpi.so"
14093 ;;
14094 avx512f)
14095 force_enable_avx512f=yes
14096 SUMMARY_MESSAGE="--enable-fast=avx512f enables AVX512F for the entire libmpi.so"
14097 ;;
14098 *) # do not change default value (no) for other fast options
14099 ;;
14100 esac
14101 done
14102 IFS="$save_IFS"
14103
14104 if test "$enable_fast_alwaysinline" = "yes"; then
14105
14106 $as_echo "#define ENABLE_ALWAYS_INLINE 1" >>confdefs.h
14107
14108 fi
14109
14110 # check if compiler supports avx, avx512f
14111 # also check if the building machine can run them if not force enabled
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mavx2 is supported" >&5
14113 $as_echo_n "checking whether -mavx2 is supported... " >&6; }
14114 if ${pac_cv_found_avx+:} false; then :
14115 $as_echo_n "(cached) " >&6
14116 else
14117
14118
14119 if test -z "${pac_save_CFLAGS_nesting}" ; then
14120 pac_save_CFLAGS_nesting=0
14121 fi
14122 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
14123 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
14124
14125
14126
14127
14128 if test x$pac_has_fgrep_word = "xyes"; then
14129 if echo "$CFLAGS" | $FGREP -w -e "-mavx2" >/dev/null 2>&1; then :
14130 echo "CFLAGS(='$CFLAGS') contains '-mavx2', not appending" >&5
14131 else
14132 echo "CFLAGS(='$CFLAGS') does not contain '-mavx2', appending" >&5
14133 CFLAGS="$CFLAGS -mavx2"
14134
14135
14136 fi
14137 else
14138 echo "CFLAGS(='$CFLAGS') does not contain '-mavx2', appending" >&5
14139 CFLAGS="$CFLAGS -mavx2"
14140
14141 fi
14142
14143
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <immintrin.h>
14147 int
14148 main ()
14149 {
14150
14151 const void *src;
14152 void *dest;
14153 __m256i ymm = _mm256_loadu_si256(src);
14154 _mm256_stream_si256(dest, ymm);
14155
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161 pac_cv_found_avx=yes
14162 else
14163 pac_cv_found_avx=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166
14167 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
14168 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
14169 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
14170
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_found_avx" >&5
14173 $as_echo "$pac_cv_found_avx" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mavx512f is supported" >&5
14175 $as_echo_n "checking whether -mavx512f is supported... " >&6; }
14176 if ${pac_cv_found_avx512f+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179
14180
14181 if test -z "${pac_save_CFLAGS_nesting}" ; then
14182 pac_save_CFLAGS_nesting=0
14183 fi
14184 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
14185 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
14186
14187
14188
14189
14190 if test x$pac_has_fgrep_word = "xyes"; then
14191 if echo "$CFLAGS" | $FGREP -w -e "-mavx512f" >/dev/null 2>&1; then :
14192 echo "CFLAGS(='$CFLAGS') contains '-mavx512f', not appending" >&5
14193 else
14194 echo "CFLAGS(='$CFLAGS') does not contain '-mavx512f', appending" >&5
14195 CFLAGS="$CFLAGS -mavx512f"
14196
14197
14198 fi
14199 else
14200 echo "CFLAGS(='$CFLAGS') does not contain '-mavx512f', appending" >&5
14201 CFLAGS="$CFLAGS -mavx512f"
14202
14203 fi
14204
14205
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 #include <immintrin.h>
14209 int
14210 main ()
14211 {
14212
14213 const void *src;
14214 void *dest;
14215 __m512i zmm = _mm512_loadu_si512(src);
14216 _mm512_stream_si512(dest, zmm);
14217
14218 ;
14219 return 0;
14220 }
14221 _ACEOF
14222 if ac_fn_c_try_compile "$LINENO"; then :
14223 pac_cv_found_avx512f=yes
14224 else
14225 pac_cv_found_avx512f=no
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228
14229 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
14230 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
14231 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
14232
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_found_avx512f" >&5
14235 $as_echo "$pac_cv_found_avx512f" >&6; }
14236
14237 if test "x$pac_cv_found_avx" = "xyes"; then
14238 MPL_BUILD_AVX_TRUE=
14239 MPL_BUILD_AVX_FALSE='#'
14240 else
14241 MPL_BUILD_AVX_TRUE='#'
14242 MPL_BUILD_AVX_FALSE=
14243 fi
14244
14245 if test "x$pac_cv_found_avx" = "xyes"; then
14246
14247 $as_echo "#define HAVE_AVX 1" >>confdefs.h
14248
14249
14250 if test "$force_enable_avx" = "yes"; then
14251
14252
14253
14254 if test x$pac_has_fgrep_word = "xyes"; then
14255 if echo "$CFLAGS" | $FGREP -w -e "-mavx2" >/dev/null 2>&1; then :
14256 echo "CFLAGS(='$CFLAGS') contains '-mavx2', not appending" >&5
14257 else
14258 echo "CFLAGS(='$CFLAGS') does not contain '-mavx2', appending" >&5
14259 CFLAGS="$CFLAGS -mavx2"
14260
14261
14262 fi
14263 else
14264 echo "CFLAGS(='$CFLAGS') does not contain '-mavx2', appending" >&5
14265 CFLAGS="$CFLAGS -mavx2"
14266
14267 fi
14268
14269
14270
14271 $as_echo "#define FORCE_AVX 1" >>confdefs.h
14272
14273 fi
14274 fi
14275
14276 if test "x$pac_cv_found_avx512f" = "xyes"; then
14277 MPL_BUILD_AVX512F_TRUE=
14278 MPL_BUILD_AVX512F_FALSE='#'
14279 else
14280 MPL_BUILD_AVX512F_TRUE='#'
14281 MPL_BUILD_AVX512F_FALSE=
14282 fi
14283
14284 if test "x$pac_cv_found_avx512f" = "xyes"; then
14285
14286 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
14287
14288
14289 if test "$force_enable_avx512f" = "yes"; then
14290
14291
14292
14293 if test x$pac_has_fgrep_word = "xyes"; then
14294 if echo "$CFLAGS" | $FGREP -w -e "-mavx512f" >/dev/null 2>&1; then :
14295 echo "CFLAGS(='$CFLAGS') contains '-mavx512f', not appending" >&5
14296 else
14297 echo "CFLAGS(='$CFLAGS') does not contain '-mavx512f', appending" >&5
14298 CFLAGS="$CFLAGS -mavx512f"
14299
14300
14301 fi
14302 else
14303 echo "CFLAGS(='$CFLAGS') does not contain '-mavx512f', appending" >&5
14304 CFLAGS="$CFLAGS -mavx512f"
14305
14306 fi
14307
14308
14309
14310 $as_echo "#define FORCE_AVX512F 1" >>confdefs.h
14311
14312 fi
14313 fi
14314
14315 # Check for __builtin_cpu_init and __builtin_cpu_supports
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_cpu_init and __builtin_cpu_supports are available" >&5
14317 $as_echo_n "checking whether __builtin_cpu_init and __builtin_cpu_supports are available... " >&6; }
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320
14321 int main() {
14322 __builtin_cpu_init();
14323 return __builtin_cpu_supports("avx");
14324 }
14325
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"; then :
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14329 $as_echo "yes" >&6; }
14330
14331 $as_echo "#define HAVE_BUILTIN_CPU_SUPPORTS 1" >>confdefs.h
14332
14333 else
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14336
14337 fi
14338 rm -f core conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340
14341 # Check for __builtin_cpu_supports("avx512f")
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_cpu_supports(\"avx512f\") is available" >&5
14343 $as_echo_n "checking whether __builtin_cpu_supports(\"avx512f\") is available... " >&6; }
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346
14347 int main() {
14348 __builtin_cpu_init();
14349 return __builtin_cpu_supports("avx512f");
14350 }
14351
14352 _ACEOF
14353 if ac_fn_c_try_link "$LINENO"; then :
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355 $as_echo "yes" >&6; }
14356
14357 $as_echo "#define HAVE_BUILTIN_CPU_SUPPORTS_AVX512F 1" >>confdefs.h
14358
14359 else
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361 $as_echo "no" >&6; }
14362
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366
14367 #######################################################################
14368 # valgrind support
14369
14370 # Check whether --with-valgrind was given.
14371 if test "${with_valgrind+set}" = set; then :
14372 withval=$with_valgrind;
14373 else
14374 with_valgrind=yes
14375 fi
14376
14377 if test "$with_valgrind" != "no" ; then
14378 savedCPPFLAGS="$CPPFLAGS"
14379 if test "$with_valgrind" != "yes" ; then
14380 # Clients of MPL will either need to respect the localdefs file (as in
14381 # MPICH) or add this entry to their own CPPFLAGS-equivalent.
14382 # (TODO: a pkg-config file would help with this)
14383
14384
14385
14386 if test x$pac_has_fgrep_word = "xyes"; then
14387 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_valgrind}" >/dev/null 2>&1; then :
14388 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_valgrind}', not appending" >&5
14389 else
14390 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_valgrind}', appending" >&5
14391 CPPFLAGS="$CPPFLAGS -I${with_valgrind}"
14392
14393
14394 fi
14395 else
14396 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_valgrind}', appending" >&5
14397 CPPFLAGS="$CPPFLAGS -I${with_valgrind}"
14398
14399 fi
14400
14401
14402 fi
14403 # headers for valgrind client requests
14404 for ac_header in valgrind.h memcheck.h valgrind/valgrind.h valgrind/memcheck.h
14405 do :
14406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14409 cat >>confdefs.h <<_ACEOF
14410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14411 _ACEOF
14412
14413 fi
14414
14415 done
14416
14417 # headers for valgrind-based thread checking tools
14418 # TODO: incorporate ThreadSanitizer as well (include dynamic_annotations.h,
14419 # link with dynamic_annotations.c)
14420 for ac_header in helgrind.h valgrind/helgrind.h
14421 do :
14422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14423 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14425 cat >>confdefs.h <<_ACEOF
14426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14427 _ACEOF
14428
14429 fi
14430
14431 done
14432
14433 for ac_header in drd.h valgrind/drd.h
14434 do :
14435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14436 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14437 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14438 cat >>confdefs.h <<_ACEOF
14439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14440 _ACEOF
14441
14442 fi
14443
14444 done
14445
14446
14447 # ensure that we have a new enough valgrind with all the client macros
14448 # a preproc test would probably be sufficient, but the LINK_IFELSE helps us
14449 # double-check that we aren't accidentally grabbing the headers for some
14450 # other platform
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the valgrind headers are broken or too old" >&5
14452 $as_echo_n "checking whether the valgrind headers are broken or too old... " >&6; }
14453 if ${pac_cv_have_broken_valgrind+:} false; then :
14454 $as_echo_n "(cached) " >&6
14455 else
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458
14459 #if defined(HAVE_VALGRIND_H) && defined(HAVE_MEMCHECK_H)
14460 # include <valgrind.h>
14461 # include <memcheck.h>
14462 #elif defined(HAVE_VALGRIND_VALGRIND_H) && defined(HAVE_VALGRIND_MEMCHECK_H)
14463 # include <valgrind/valgrind.h>
14464 # include <valgrind/memcheck.h>
14465 #else
14466 # error unexpected valgrind header error
14467 #endif
14468 int foo = 10;
14469 char mempool_obj;
14470
14471 int
14472 main ()
14473 {
14474
14475 #if defined(VALGRIND_MAKE_MEM_DEFINED)
14476 VALGRIND_MAKE_MEM_NOACCESS(&foo,sizeof(foo));
14477 VALGRIND_MAKE_MEM_UNDEFINED(&foo,sizeof(foo));
14478 VALGRIND_MAKE_MEM_DEFINED(&foo,sizeof(foo));
14479 VALGRIND_CHECK_MEM_IS_DEFINED(&foo,sizeof(foo));
14480 VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&foo,sizeof(foo));
14481 #elif defined(VALGRIND_MAKE_READABLE)
14482 /* older (pre-3.2.0), but still supported style */
14483 VALGRIND_MAKE_READABLE(&foo,sizeof(foo));
14484 VALGRIND_MAKE_NOACCESS(&foo,sizeof(foo));
14485 VALGRIND_MAKE_UNDEFINED(&foo,sizeof(foo));
14486 VALGRIND_CHECK_READABLE(&foo,sizeof(foo));
14487 VALGRIND_CHECK_WRITEABLE(&foo,sizeof(foo));
14488 #else
14489 #error missing essential valgrind client macros
14490 #endif
14491 VALGRIND_CREATE_BLOCK(&foo,sizeof(foo),"description");
14492 if (RUNNING_ON_VALGRIND) ++foo;
14493 VALGRIND_PRINTF_BACKTRACE("testing: %s","valgrind support");
14494 VALGRIND_CREATE_MEMPOOL(&mempool_obj,0,0);
14495 VALGRIND_MEMPOOL_ALLOC(&mempool_obj,&foo,sizeof(foo));
14496 VALGRIND_MEMPOOL_FREE(&mempool_obj,&foo);
14497 VALGRIND_DESTROY_MEMPOOL(&mempool_obj);
14498
14499 ;
14500 return 0;
14501 }
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 pac_cv_have_broken_valgrind=no
14505 else
14506 pac_cv_have_broken_valgrind=yes
14507 fi
14508 rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_broken_valgrind" >&5
14512 $as_echo "$pac_cv_have_broken_valgrind" >&6; }
14513 if test "$pac_cv_have_broken_valgrind" = "yes" ; then
14514
14515 $as_echo "#define HAVE_BROKEN_VALGRIND 1" >>confdefs.h
14516
14517 CPPFLAGS="$savedCPPFLAGS"
14518 fi
14519 fi
14520
14521
14522 #######################################################################
14523 ## TIMER CODE
14524 #######################################################################
14525
14526 # ----------------------------------------------------------------------------
14527 # Support for timers. The following code processes the
14528 # --enable-timer-type=name argument and selects the timer based on
14529 # both that field and what configure is able to determine is available.
14530 # The file src/include/mpl_timer.h is also created.
14531 # ----------------------------------------------------------------------------
14532
14533 # clock_gettime is the POSIX gettimeofday
14534 # gethrtime is the Solaris high-resolution timer
14535 # Check whether --enable-timer-type was given.
14536 if test "${enable_timer_type+set}" = set; then :
14537 enableval=$enable_timer_type; timer_type=$enable_timer_type
14538 fi
14539
14540
14541 ## The user did not specify a timer type. Try to find a sane option
14542 ## that is supported by the platform.
14543 if test -z "$timer_type" ; then
14544 # Try to pick a timer based on what is available
14545 for ac_func in clock_gettime clock_getres gethrtime mach_absolute_time gettimeofday
14546 do :
14547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14548 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14549 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14550 cat >>confdefs.h <<_ACEOF
14551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14552 _ACEOF
14553
14554 fi
14555 done
14556
14557 if test "$ac_cv_func_gethrtime" = "yes" ; then
14558 # Sigh. The Solaris include files do not define hrtime_t
14559 # Before we accept this choice, make sure that we can
14560 # do arithmetic with hrtime_t .
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that hrtime_t is properly defined for gethrtime" >&5
14562 $as_echo_n "checking that hrtime_t is properly defined for gethrtime... " >&6; }
14563 if ${pac_cv_hrtime_works+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569
14570 #include <sys/time.h>
14571
14572 int
14573 main ()
14574 {
14575
14576 hrtime_t t1, t2; t1 = 1; t2 = 2; t1 = t1 + t2;
14577
14578 ;
14579 return 0;
14580 }
14581 _ACEOF
14582 if ac_fn_c_try_compile "$LINENO"; then :
14583 pac_cv_hrtime_works=yes
14584 else
14585 pac_cv_hrtime_works=no
14586 fi
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 fi
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_hrtime_works" >&5
14590 $as_echo "$pac_cv_hrtime_works" >&6; }
14591 # A more ambitious test would look to see if casting an
14592 # hrtime_t to int64_t works, and even more ambitious
14593 # would check whether long or long long was 64 bits (or even
14594 # better, the sizeof hrtime_t).
14595
14596 # AC_CHECK_FUNCS has false positive when checking whether gethrtime is
14597 # available on Solaris with strict configuration. We must use
14598 # AC_CHECK_DECL to confirm it.
14599 ac_fn_c_check_decl "$LINENO" "gethrtime" "ac_cv_have_decl_gethrtime" "$ac_includes_default"
14600 if test "x$ac_cv_have_decl_gethrtime" = xyes; then :
14601
14602 fi
14603
14604 fi
14605 if test "$ac_cv_func_gethrtime" = "yes" -a \
14606 "$ac_cv_has_decl_gethrtime" = "yes" -a \
14607 "$pac_cv_hrtime_works" = "yes" ; then
14608 timer_type=gethrtime
14609 elif test "$ac_cv_func_clock_gettime" = "yes" -a \
14610 "$ac_cv_func_clock_getres" = "yes" ; then
14611 # Test on both because some systems (e.g., cygwin) provide
14612 # clock_gettime but not clock_getres
14613 timer_type=clock_gettime
14614 elif test "$ac_cv_func_mach_absolute_time" = "yes" ; then
14615 timer_type=mach_absolute_time
14616 elif test "$ac_cv_func_gettimeofday" = "yes" ; then
14617 timer_type=gettimeofday
14618 fi
14619 fi
14620 if test -z "$timer_type" ; then
14621 as_fn_error $? "No timer found" "$LINENO" 5
14622 fi
14623
14624 # Check for valid timer and select datatypes for the time stamp
14625 case "$timer_type" in
14626
14627 gethrtime)
14628 MPL_TIMER_TYPE=hrtime_t
14629 ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
14630 if test "x$ac_cv_func_gethrtime" = xyes; then :
14631
14632 else
14633
14634 as_fn_error $? "Requested timer gethrtime is not available" "$LINENO" 5
14635
14636 fi
14637
14638 ;;
14639
14640 clock_gettime)
14641 missing_function=no
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14643 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14644 if ${ac_cv_search_clock_gettime+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 ac_func_search_save_LIBS=$LIBS
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650
14651 /* Override any GCC internal prototype to avoid an error.
14652 Use char because int might match the return type of a GCC
14653 builtin and then its argument prototype would still apply. */
14654 #ifdef __cplusplus
14655 extern "C"
14656 #endif
14657 char clock_gettime ();
14658 int
14659 main ()
14660 {
14661 return clock_gettime ();
14662 ;
14663 return 0;
14664 }
14665 _ACEOF
14666 for ac_lib in '' rt; do
14667 if test -z "$ac_lib"; then
14668 ac_res="none required"
14669 else
14670 ac_res=-l$ac_lib
14671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14672 fi
14673 if ac_fn_c_try_link "$LINENO"; then :
14674 ac_cv_search_clock_gettime=$ac_res
14675 fi
14676 rm -f core conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext
14678 if ${ac_cv_search_clock_gettime+:} false; then :
14679 break
14680 fi
14681 done
14682 if ${ac_cv_search_clock_gettime+:} false; then :
14683
14684 else
14685 ac_cv_search_clock_gettime=no
14686 fi
14687 rm conftest.$ac_ext
14688 LIBS=$ac_func_search_save_LIBS
14689 fi
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14691 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14692 ac_res=$ac_cv_search_clock_gettime
14693 if test "$ac_res" != no; then :
14694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14695
14696 else
14697 as_fn_error $? "clock_gettime is not available" "$LINENO" 5
14698 fi
14699
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_getres" >&5
14701 $as_echo_n "checking for library containing clock_getres... " >&6; }
14702 if ${ac_cv_search_clock_getres+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 ac_func_search_save_LIBS=$LIBS
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14708
14709 /* Override any GCC internal prototype to avoid an error.
14710 Use char because int might match the return type of a GCC
14711 builtin and then its argument prototype would still apply. */
14712 #ifdef __cplusplus
14713 extern "C"
14714 #endif
14715 char clock_getres ();
14716 int
14717 main ()
14718 {
14719 return clock_getres ();
14720 ;
14721 return 0;
14722 }
14723 _ACEOF
14724 for ac_lib in '' rt; do
14725 if test -z "$ac_lib"; then
14726 ac_res="none required"
14727 else
14728 ac_res=-l$ac_lib
14729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14730 fi
14731 if ac_fn_c_try_link "$LINENO"; then :
14732 ac_cv_search_clock_getres=$ac_res
14733 fi
14734 rm -f core conftest.err conftest.$ac_objext \
14735 conftest$ac_exeext
14736 if ${ac_cv_search_clock_getres+:} false; then :
14737 break
14738 fi
14739 done
14740 if ${ac_cv_search_clock_getres+:} false; then :
14741
14742 else
14743 ac_cv_search_clock_getres=no
14744 fi
14745 rm conftest.$ac_ext
14746 LIBS=$ac_func_search_save_LIBS
14747 fi
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_getres" >&5
14749 $as_echo "$ac_cv_search_clock_getres" >&6; }
14750 ac_res=$ac_cv_search_clock_getres
14751 if test "$ac_res" != no; then :
14752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14753
14754 else
14755 as_fn_error $? "clock_getres is not available" "$LINENO" 5
14756 fi
14757
14758 MPL_TIMER_TYPE="struct timespec"
14759 # AIX does not always define struct timespec (!)
14760 # Make sure that we can use struct timespec
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct timespec is defined in time.h" >&5
14762 $as_echo_n "checking whether struct timespec is defined in time.h... " >&6; }
14763 if ${pac_cv_struct_timespec_defined+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14769
14770 #include <time.h>
14771
14772 int
14773 main ()
14774 {
14775
14776 struct timespec t;
14777
14778 ;
14779 return 0;
14780 }
14781 _ACEOF
14782 if ac_fn_c_try_compile "$LINENO"; then :
14783 pac_cv_struct_timespec_defined=yes
14784 else
14785 pac_cv_struct_timespec_defined=no
14786 fi
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788
14789 fi
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_timespec_defined" >&5
14791 $as_echo "$pac_cv_struct_timespec_defined" >&6; }
14792 if test "$pac_cv_struct_timespec_defined" != "yes" ; then
14793 # Try again, but with -D_XOPEN_SOURCE=500 (works for AIX)
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct timespec is defined in time.h with _XOPEN_SOURCE=500" >&5
14795 $as_echo_n "checking whether struct timespec is defined in time.h with _XOPEN_SOURCE=500... " >&6; }
14796 if ${pac_cv_struct_timespec_defined_with_xopen500+:} false; then :
14797 $as_echo_n "(cached) " >&6
14798 else
14799
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802
14803 #define _XOPEN_SOURCE 500
14804 #include <time.h>
14805
14806 int
14807 main ()
14808 {
14809
14810 struct timespec t;
14811
14812 ;
14813 return 0;
14814 }
14815 _ACEOF
14816 if ac_fn_c_try_compile "$LINENO"; then :
14817 pac_cv_struct_timespec_defined_with_xopen500=yes
14818 else
14819 pac_cv_struct_timespec_defined_with_xopen500=no
14820 fi
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822
14823 fi
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_timespec_defined_with_xopen500" >&5
14825 $as_echo "$pac_cv_struct_timespec_defined_with_xopen500" >&6; }
14826 if test "$pac_cv_struct_timespec_defined_with_xopen500" = "yes" ; then
14827 # We need to define _XOPEN_SOURCE=500, but we need to ensure that
14828 # this is done before any include files are loaded. At
14829 # this point it is really too late to add this definition,
14830 # since it may make other tests incompatible.
14831 as_fn_error $? "The available timer requires _XOPEN_SOURCE=500. Add -D_XOPEN_SOURCE=500 to CFLAGS and rerun configure" "$LINENO" 5
14832 fi
14833 fi
14834 #
14835 # FreeBSD 4.3 incorrectly puts the header into sys/time.h;
14836 # time.h is required (see pages 45 and 46 in the POSIX standard).
14837 # See if we can compile
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_REALTIME defined in time.h" >&5
14839 $as_echo_n "checking for CLOCK_REALTIME defined in time.h... " >&6; }
14840 if ${pac_cv_posix_clock_realtime+:} false; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14846
14847 #include <time.h>
14848
14849 int
14850 main ()
14851 {
14852
14853 clockid_t cid = CLOCK_REALTIME;
14854
14855 ;
14856 return 0;
14857 }
14858 _ACEOF
14859 if ac_fn_c_try_compile "$LINENO"; then :
14860 pac_cv_posix_clock_realtime=yes
14861 else
14862 pac_cv_posix_clock_realtime=no
14863 fi
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865
14866 fi
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_posix_clock_realtime" >&5
14868 $as_echo "$pac_cv_posix_clock_realtime" >&6; }
14869 if test "$pac_cv_posix_clock_realtime" = "no" ; then
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX timer requires definitions in time.h" >&5
14871 $as_echo "$as_me: WARNING: POSIX timer requires definitions in time.h" >&2;}
14872 # Check for the definition in sys/time.h, which is where
14873 # OpenBSD and FreeBSD have put it by mistake
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876
14877 #include <time.h>
14878 #include <sys/time.h>
14879
14880 int
14881 main ()
14882 {
14883
14884 clockid_t cid = CLOCK_REALTIME;
14885
14886 ;
14887 return 0;
14888 }
14889 _ACEOF
14890 if ac_fn_c_try_compile "$LINENO"; then :
14891 pac_cv_posix_clock_realtime=yes
14892 else
14893 pac_cv_posix_clock_realtime=no
14894 fi
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14896 if test "$pac_cv_posix_clock_realtime" = yes ; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys/time.h required for POSIX timer" >&5
14898 $as_echo "$as_me: WARNING: sys/time.h required for POSIX timer" >&2;}
14899
14900 $as_echo "#define NEEDS_SYS_TIME_H 1" >>confdefs.h
14901
14902 else
14903 as_fn_error $? "Cannot find the definition of CLOCK_REALTIME for the POSIX timer" "$LINENO" 5
14904 fi
14905 fi
14906 ;;
14907
14908 gettimeofday)
14909 MPL_TIMER_TYPE="struct timeval"
14910 # We may have already tested for gettimeofday. If we got a "yes",
14911 # we're good to go
14912 if test "$ac_cv_func_gettimeofday" != "yes" ; then
14913 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14914 if test "x$ac_cv_func_gettimeofday" = xyes; then :
14915
14916 else
14917
14918 as_fn_error $? "Requested timer gettimeofday is not available" "$LINENO" 5
14919
14920 fi
14921
14922 fi
14923 ;;
14924
14925 linux86_cycle|linux86_cycle_2)
14926
14927 # The following AC_RUN_IFELSE statements are needed because x86_64 compilers
14928 # usually know about rdtscp but the cpu may or may not actually implement the
14929 # feature. This is not cross-compile safe, unfortunately. In the long run we
14930 # should allow the user to override this with a configure flag.
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that linux86 cycle counter is available" >&5
14932 $as_echo_n "checking that linux86 cycle counter is available... " >&6; }
14933 if ${pac_cv_linux86_cycle+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936
14937 if test "$cross_compiling" = yes; then :
14938
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941
14942 int
14943 main ()
14944 {
14945
14946 long long var, *var_ptr=&var;
14947 __asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
14948
14949 ;
14950 return 0;
14951 }
14952 _ACEOF
14953 if ac_fn_c_try_compile "$LINENO"; then :
14954 pac_cv_linux86_cycle=rdtscp
14955 else
14956
14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14959
14960 int
14961 main ()
14962 {
14963
14964 long long var, *var_ptr=&var;
14965 __asm__ __volatile__("push %%rbx ; cpuid ; rdtsc ; pop %%rbx ; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
14966
14967 ;
14968 return 0;
14969 }
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"; then :
14972 pac_cv_linux86_cycle=cpuid_rdtsc64
14973 else
14974
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977
14978 int
14979 main ()
14980 {
14981
14982 long long var, *var_ptr=&var;
14983 __asm__ __volatile__("push %%ebx ; cpuid ; rdtsc ; pop %%ebx" : "=A" (*var_ptr) : : "ecx");
14984
14985 ;
14986 return 0;
14987 }
14988 _ACEOF
14989 if ac_fn_c_try_compile "$LINENO"; then :
14990 pac_cv_linux86_cycle=cpuid_rdtsc32
14991 else
14992
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995
14996 int
14997 main ()
14998 {
14999
15000 long long var, *var_ptr=&var;
15001 __asm__ __volatile__("rdtsc" : "=A" (*var_ptr));
15002
15003 ;
15004 return 0;
15005 }
15006 _ACEOF
15007 if ac_fn_c_try_compile "$LINENO"; then :
15008 pac_cv_linux86_cycle=rdtsc
15009 else
15010 pac_cv_linux86_cycle=no
15011
15012 fi
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 fi
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020 else
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023
15024 int main()
15025 {
15026 /* rdtscp */
15027 long long var, *var_ptr=&var;
15028 __asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
15029 return 0;
15030 }
15031
15032 _ACEOF
15033 if ac_fn_c_try_run "$LINENO"; then :
15034 pac_cv_linux86_cycle=rdtscp
15035 else
15036
15037 if test "$cross_compiling" = yes; then :
15038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15040 as_fn_error $? "cannot run test program while cross compiling
15041 See \`config.log' for more details" "$LINENO" 5; }
15042 else
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045
15046 int main()
15047 {
15048 /* cpuid 64 */
15049 long long var, *var_ptr=&var;
15050 __asm__ __volatile__("push %%rbx ; cpuid ; rdtsc ; pop %%rbx ; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
15051 return 0;
15052 }
15053
15054 _ACEOF
15055 if ac_fn_c_try_run "$LINENO"; then :
15056 pac_cv_linux86_cycle=cpuid_rdtsc64
15057 else
15058
15059 if test "$cross_compiling" = yes; then :
15060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15062 as_fn_error $? "cannot run test program while cross compiling
15063 See \`config.log' for more details" "$LINENO" 5; }
15064 else
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067
15068 int main()
15069 {
15070 /* cpuid 32 */
15071 long long var, *var_ptr=&var;
15072 __asm__ __volatile__("push %%ebx ; cpuid ; rdtsc ; pop %%ebx" : "=A" (*var_ptr) : : "ecx");
15073 return 0;
15074 }
15075
15076 _ACEOF
15077 if ac_fn_c_try_run "$LINENO"; then :
15078 pac_cv_linux86_cycle=cpuid_rdtsc32
15079 else
15080
15081 if test "$cross_compiling" = yes; then :
15082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15084 as_fn_error $? "cannot run test program while cross compiling
15085 See \`config.log' for more details" "$LINENO" 5; }
15086 else
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089
15090 int main()
15091 {
15092 /* simple */
15093 long long var, *var_ptr=&var;
15094 __asm__ __volatile__("rdtsc" : "=A" (*var_ptr));
15095 return 0;
15096 }
15097
15098 _ACEOF
15099 if ac_fn_c_try_run "$LINENO"; then :
15100 pac_cv_linux86_cycle=rdtsc
15101 else
15102 pac_cv_linux86_cycle=no
15103 fi
15104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15105 conftest.$ac_objext conftest.beam conftest.$ac_ext
15106 fi
15107
15108
15109 fi
15110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15111 conftest.$ac_objext conftest.beam conftest.$ac_ext
15112 fi
15113
15114 fi
15115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15116 conftest.$ac_objext conftest.beam conftest.$ac_ext
15117 fi
15118
15119 fi
15120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15121 conftest.$ac_objext conftest.beam conftest.$ac_ext
15122 fi
15123
15124 fi
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_linux86_cycle" >&5
15126 $as_echo "$pac_cv_linux86_cycle" >&6; }
15127 case "$pac_cv_linux86_cycle" in
15128 "rdtscp")
15129
15130 $as_echo "#define LINUX86_CYCLE_RDTSCP 1" >>confdefs.h
15131
15132 ;;
15133 "cpuid_rdtsc64")
15134
15135 $as_echo "#define LINUX86_CYCLE_CPUID_RDTSC64 1" >>confdefs.h
15136
15137 ;;
15138 "cpuid_rdtsc32")
15139
15140 $as_echo "#define LINUX86_CYCLE_CPUID_RDTSC32 1" >>confdefs.h
15141
15142 ;;
15143 "rdtsc")
15144
15145 $as_echo "#define LINUX86_CYCLE_RDTSC 1" >>confdefs.h
15146
15147 ;;
15148 *)
15149 cpu_gcc_x86_cycle=no
15150 ;;
15151 esac
15152
15153 if test "$cpu_gcc_x86_cycle" = "no" ; then
15154 as_fn_error $? "Linux86 cycle counter is not available on this system and or with the $CC compiler" "$LINENO" 5
15155 fi
15156 MPL_TIMER_TYPE="long long"
15157 ;;
15158
15159 gcc_ia64_cycle)
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that IPF timer is available" >&5
15161 $as_echo_n "checking that IPF timer is available... " >&6; }
15162 if ${pac_cv_ia64_cycle+:} false; then :
15163 $as_echo_n "(cached) " >&6
15164 else
15165
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15168
15169 int
15170 main ()
15171 {
15172
15173 long var, *var_ptr=&var;
15174 #ifdef __INTEL_COMPILER
15175 #include "ia64regs.h"
15176 var=__getReg(_IA64_REG_AR_ITC);
15177 #else
15178 __asm__ __volatile__("mov %0=ar.itc" : "=r" (var_ptr));
15179 #endif
15180
15181 ;
15182 return 0;
15183 }
15184 _ACEOF
15185 if ac_fn_c_try_compile "$LINENO"; then :
15186 pac_cv_gcc_ia64_cycle=yes
15187 else
15188 pac_cv_gcc_ia64_cycle=no
15189 fi
15190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15191 fi
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_ia64_cycle" >&5
15193 $as_echo "$pac_cv_ia64_cycle" >&6; }
15194 if test "$pac_cv_gcc_ia64_cycle" != "yes" ; then
15195 as_fn_error $? "IPF cycle counter is not available on this system and or with the $CC compiler" "$LINENO" 5
15196 fi
15197 MPL_TIMER_TYPE="long"
15198 ;;
15199
15200 mach_absolute_time)
15201 ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
15202 if test "x$ac_cv_func_mach_absolute_time" = xyes; then :
15203
15204 else
15205 as_fn_error $? "mach_absolute_time is not available" "$LINENO" 5
15206 fi
15207
15208 ac_fn_c_check_func "$LINENO" "mach_timebase_info" "ac_cv_func_mach_timebase_info"
15209 if test "x$ac_cv_func_mach_timebase_info" = xyes; then :
15210
15211 else
15212 as_fn_error $? "mach_timebase_info is not available" "$LINENO" 5
15213 fi
15214
15215 MPL_TIMER_TYPE="uint64_t"
15216 ;;
15217
15218 ppc64_cycle)
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that ppc64 timebase cycle counter is available" >&5
15220 $as_echo_n "checking that ppc64 timebase cycle counter is available... " >&6; }
15221 if ${pac_cv_ppc64_cycle+:} false; then :
15222 $as_echo_n "(cached) " >&6
15223 else
15224
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227
15228 int
15229 main ()
15230 {
15231
15232 unsigned temp;
15233 asm volatile ("mfspr %0,%1" : "=r" (temp) : "i" (0x10D));
15234
15235 ;
15236 return 0;
15237 }
15238 _ACEOF
15239 if ac_fn_c_try_compile "$LINENO"; then :
15240 pac_cv_ppc64_cycle=yes
15241 else
15242 pac_cv_ppc64_cycle=no
15243 fi
15244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15245
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_ppc64_cycle" >&5
15248 $as_echo "$pac_cv_ppc64_cycle" >&6; }
15249 if test "$pac_cv_ppc64_cycle" != "yes" ; then
15250 as_fn_error $? "The PPC64 cycle counter is not available on this system and or with the $CC compiler" "$LINENO" 5
15251 fi
15252 MPL_TIMER_TYPE="uint64_t"
15253 ;;
15254 *)
15255 as_fn_error $? "Invalid timer type $timer_type" "$LINENO" 5
15256 ;;
15257 esac
15258 # Convert timer type to upper case
15259 timer_type=`echo $timer_type | \
15260 tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15261 MPL_TIMER_KIND=MPL_TIMER_KIND__$timer_type
15262
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: Timer type selected is $timer_type" >&5
15265 $as_echo "$as_me: Timer type selected is $timer_type" >&6;}
15266
15267 #######################################################################
15268 ## END OF TIMER CODE
15269 #######################################################################
15270
15271
15272 #######################################################################
15273 ## START OF PROCESSOR YIELD CODE
15274 #######################################################################
15275 # If the user specified a method to use, we check if it's available.
15276 # If a method was not specified, we make a guess based on the OS. The
15277 # default is to use sched_yield() or yield() if one is available,
15278 # otherwise, default to nothing. After that we define the appropriate
15279 # macro.
15280
15281 for ac_header in sched.h
15282 do :
15283 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15284 if test "x$ac_cv_header_sched_h" = xyes; then :
15285 cat >>confdefs.h <<_ACEOF
15286 #define HAVE_SCHED_H 1
15287 _ACEOF
15288
15289 fi
15290
15291 done
15292
15293 for ac_header in unistd.h
15294 do :
15295 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15296 if test "x$ac_cv_header_unistd_h" = xyes; then :
15297 cat >>confdefs.h <<_ACEOF
15298 #define HAVE_UNISTD_H 1
15299 _ACEOF
15300
15301 fi
15302
15303 done
15304
15305 for ac_header in sys/select.h
15306 do :
15307 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
15308 if test "x$ac_cv_header_sys_select_h" = xyes; then :
15309 cat >>confdefs.h <<_ACEOF
15310 #define HAVE_SYS_SELECT_H 1
15311 _ACEOF
15312
15313 fi
15314
15315 done
15316
15317 for ac_header in x86intrin.h
15318 do :
15319 ac_fn_c_check_header_mongrel "$LINENO" "x86intrin.h" "ac_cv_header_x86intrin_h" "$ac_includes_default"
15320 if test "x$ac_cv_header_x86intrin_h" = xyes; then :
15321 cat >>confdefs.h <<_ACEOF
15322 #define HAVE_X86INTRIN_H 1
15323 _ACEOF
15324
15325 fi
15326
15327 done
15328
15329 for ac_func in sched_yield yield usleep sleep select
15330 do :
15331 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15332 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15333 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15334 cat >>confdefs.h <<_ACEOF
15335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15336 _ACEOF
15337
15338 fi
15339 done
15340
15341
15342 if test "$ac_cv_func_usleep" = "yes" ; then
15343
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep needs a declaration" >&5
15345 $as_echo_n "checking whether usleep needs a declaration... " >&6; }
15346 if ${pac_cv_func_decl_usleep+:} false; then :
15347 $as_echo_n "(cached) " >&6
15348 else
15349
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15352 #include <unistd.h>
15353 void (*fptr)(void) = (void(*)(void))usleep;
15354 _ACEOF
15355 if ac_fn_c_try_compile "$LINENO"; then :
15356 pac_cv_func_decl_usleep=no
15357 else
15358 pac_cv_func_decl_usleep=yes
15359 fi
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361
15362 fi
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_usleep" >&5
15364 $as_echo "$pac_cv_func_decl_usleep" >&6; }
15365 if test "$pac_cv_func_decl_usleep" = "yes" ; then
15366
15367 cat >>confdefs.h <<_ACEOF
15368 #define NEEDS_USLEEP_DECL 1
15369 _ACEOF
15370
15371
15372 fi
15373
15374 fi
15375
15376 # Check whether --enable-yield was given.
15377 if test "${enable_yield+set}" = set; then :
15378 enableval=$enable_yield; case $enableval in #(
15379 sched_yield) :
15380 if test "x$ac_cv_func_sched_yield" != "xyes"; then :
15381 enable_yield=unavail
15382 fi ;; #(
15383 yield) :
15384 if test "x$ac_cv_func_yield" != "xyes"; then :
15385 enable_yield=unavail
15386 fi ;; #(
15387 select) :
15388 if test "x$ac_cv_func_select" != "xyes"; then :
15389 enable_yield=unavail
15390 fi ;; #(
15391 usleep) :
15392 if test "x$ac_cv_func_usleep" != "xyes"; then :
15393 enable_yield=unavail
15394 fi ;; #(
15395 sleep) :
15396 if test "x$ac_cv_func_sleep" != "xyes"; then :
15397 enable_yield=unavail
15398 fi ;; #(
15399 nothing|no|none) :
15400 ;; #(
15401 *) :
15402 as_fn_error $? "Invalid option $enableval for --enable-yield" "$LINENO" 5 ;;
15403 esac
15404
15405 if test "x$enable_yield" = "xunavail"; then :
15406 as_fn_error $? "Yield method $enableval is not available on this platform." "$LINENO" 5
15407 fi
15408
15409 else
15410 # none specified by user; use sched_yield if available.
15411 if test "x$ac_cv_func_sched_yield" = "xyes"; then :
15412 enable_yield=sched_yield
15413 elif test "x$ac_cv_func_yield" = "xyes"; then :
15414 enable_yield=yield
15415 else
15416 enable_yield=nothing
15417 fi
15418
15419
15420 fi
15421
15422
15423 # set the appropriate macro
15424 case $enable_yield in #(
15425 sched_yield) :
15426
15427 $as_echo "#define USE_SCHED_YIELD_FOR_YIELD 1" >>confdefs.h
15428 ;; #(
15429 yield) :
15430
15431 $as_echo "#define USE_YIELD_FOR_YIELD 1" >>confdefs.h
15432 ;; #(
15433 select) :
15434
15435 $as_echo "#define USE_SELECT_FOR_YIELD 1" >>confdefs.h
15436 ;; #(
15437 usleep) :
15438
15439 $as_echo "#define USE_USLEEP_FOR_YIELD 1" >>confdefs.h
15440 ;; #(
15441 sleep) :
15442
15443 $as_echo "#define USE_SLEEP_FOR_YIELD 1" >>confdefs.h
15444 ;; #(
15445 nothing|no|none) :
15446
15447 $as_echo "#define USE_NOTHING_FOR_YIELD 1" >>confdefs.h
15448 ;; #(
15449 *) :
15450 as_fn_error $? "Invalid value $enable_yield for enable_yield." "$LINENO" 5
15451 ;;
15452 esac
15453
15454 #######################################################################
15455 ## END OF PROCESSOR YIELD CODE
15456 #######################################################################
15457
15458
15459 #######################################################################
15460 ## START OF MISC CODE
15461 #######################################################################
15462
15463 for ac_header in sys/sysinfo.h unistd.h
15464 do :
15465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15468 cat >>confdefs.h <<_ACEOF
15469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15470 _ACEOF
15471
15472 fi
15473
15474 done
15475
15476
15477 for ac_func in get_nprocs
15478 do :
15479 ac_fn_c_check_func "$LINENO" "get_nprocs" "ac_cv_func_get_nprocs"
15480 if test "x$ac_cv_func_get_nprocs" = xyes; then :
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_GET_NPROCS 1
15483 _ACEOF
15484
15485 fi
15486 done
15487
15488 ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include <unistd.h>
15489 "
15490 if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes; then :
15491 ac_have_decl=1
15492 else
15493 ac_have_decl=0
15494 fi
15495
15496 cat >>confdefs.h <<_ACEOF
15497 #define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl
15498 _ACEOF
15499
15500
15501 if test "$ac_cv_func_get_nprocs" = "yes" -o "$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = "yes"; then
15502
15503 $as_echo "#define HAVE_MISC_GETNPROCS 1" >>confdefs.h
15504
15505 fi
15506
15507 #######################################################################
15508 ## END OF MISC CODE
15509 #######################################################################
15510
15511
15512 #######################################################################
15513 ## START OF THREADS CODE
15514 #######################################################################
15515
15516
15517
15518 # Check whether --with-thread-package was given.
15519 if test "${with_thread_package+set}" = set; then :
15520 withval=$with_thread_package;
15521 else
15522 with_thread_package=posix
15523 fi
15524
15525
15526
15527 # Check whether --with-posix-mutex was given.
15528 if test "${with_posix_mutex+set}" = set; then :
15529 withval=$with_posix_mutex;
15530 else
15531 with_posix_mutex=native
15532 fi
15533
15534
15535 THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_INVALID
15536 case $with_thread_package in
15537 yes|posix|pthreads)
15538 with_thread_package=posix
15539 for ac_header in pthread.h
15540 do :
15541 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15542 if test "x$ac_cv_header_pthread_h" = xyes; then :
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_PTHREAD_H 1
15545 _ACEOF
15546
15547 fi
15548
15549 done
15550
15551
15552 # If pthreads library is found, just include it on the link line. We don't try
15553 # to test if the C compiler needs it or not, since the C++ or Fortran
15554 # compilers might need it even if the C compiler doesn't
15555 # (nvcc with gfortran, for example).
15556 #
15557 # OSF1 has __pthread_create but not pthread_create (because of
15558 # inconsistencies in the pthread spec). Thus, we look for pthread_key_create
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_key_create in -lpthread" >&5
15560 $as_echo_n "checking for pthread_key_create in -lpthread... " >&6; }
15561 if ${ac_cv_lib_pthread_pthread_key_create+:} false; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 ac_check_lib_save_LIBS=$LIBS
15565 LIBS="-lpthread $LIBS"
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568
15569 /* Override any GCC internal prototype to avoid an error.
15570 Use char because int might match the return type of a GCC
15571 builtin and then its argument prototype would still apply. */
15572 #ifdef __cplusplus
15573 extern "C"
15574 #endif
15575 char pthread_key_create ();
15576 int
15577 main ()
15578 {
15579 return pthread_key_create ();
15580 ;
15581 return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_link "$LINENO"; then :
15585 ac_cv_lib_pthread_pthread_key_create=yes
15586 else
15587 ac_cv_lib_pthread_pthread_key_create=no
15588 fi
15589 rm -f core conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
15591 LIBS=$ac_check_lib_save_LIBS
15592 fi
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_key_create" >&5
15594 $as_echo "$ac_cv_lib_pthread_pthread_key_create" >&6; }
15595 if test "x$ac_cv_lib_pthread_pthread_key_create" = xyes; then :
15596 have_pthreads=yes
15597 fi
15598
15599 if test "$have_pthreads" = "yes" ; then
15600
15601
15602
15603 if test x$pac_has_fgrep_word = "xyes"; then
15604 if echo "$LIBS" | $FGREP -w -e "-lpthread" >/dev/null 2>&1; then :
15605 echo "LIBS(='$LIBS') contains '-lpthread', not prepending" >&5
15606 else
15607 echo "LIBS(='$LIBS') does not contain '-lpthread', prepending" >&5
15608 LIBS="-lpthread $LIBS"
15609
15610
15611 fi
15612 else
15613 echo "LIBS(='$LIBS') does not contain '-lpthread', prepending" >&5
15614 LIBS="-lpthread $LIBS"
15615
15616 fi
15617
15618
15619 fi
15620
15621 for ac_func in pthread_yield
15622 do :
15623 ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
15624 if test "x$ac_cv_func_pthread_yield" = xyes; then :
15625 cat >>confdefs.h <<_ACEOF
15626 #define HAVE_PTHREAD_YIELD 1
15627 _ACEOF
15628
15629 fi
15630 done
15631
15632
15633 # this check should come after the AC_CHECK_LIB for -lpthread
15634 ac_fn_c_check_func "$LINENO" "pthread_key_create" "ac_cv_func_pthread_key_create"
15635 if test "x$ac_cv_func_pthread_key_create" = xyes; then :
15636
15637 else
15638 as_fn_error $? "unable to find pthreads library" "$LINENO" 5
15639 fi
15640
15641 THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_POSIX
15642 ;;
15643 uti)
15644
15645
15646
15647
15648 # Check whether --with-uti was given.
15649 if test "${with_uti+set}" = set; then :
15650 withval=$with_uti;
15651 fi
15652
15653
15654
15655
15656 # Check whether --with-uti-include was given.
15657 if test "${with_uti_include+set}" = set; then :
15658 withval=$with_uti_include; case "$withval" in #(
15659 yes|no|'') :
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-uti-include=PATH expects a valid PATH" >&5
15661 $as_echo "$as_me: WARNING: --without-uti-include=PATH expects a valid PATH" >&2;}
15662 with_uti_include="" ;; #(
15663 *) :
15664 ;;
15665 esac
15666 fi
15667
15668
15669 # Check whether --with-uti-lib was given.
15670 if test "${with_uti_lib+set}" = set; then :
15671 withval=$with_uti_lib; case "$withval" in #(
15672 yes|no|'') :
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-uti-lib=PATH expects a valid PATH" >&5
15674 $as_echo "$as_me: WARNING: --without-uti-lib=PATH expects a valid PATH" >&2;}
15675 with_uti_lib="" ;; #(
15676 *) :
15677 ;;
15678 esac
15679 fi
15680
15681
15682 # The args have been sanitized into empty/non-empty values above.
15683 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
15684 # taking priority
15685
15686 case "${with_uti}" in
15687 embedded|install)
15688 as_fn_error $? "embedded uti is requested but we do not have the embedded version" "$LINENO" 5
15689 ;;
15690 yes|no)
15691 # skip
15692 ;;
15693 *)
15694 if test -n "${with_uti_include}"; then :
15695
15696
15697
15698 if test x$pac_has_fgrep_word = "xyes"; then
15699 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_uti_include}" >/dev/null 2>&1; then :
15700 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_uti_include}', not appending" >&5
15701 else
15702 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_uti_include}', appending" >&5
15703 CPPFLAGS="$CPPFLAGS -I${with_uti_include}"
15704
15705
15706 fi
15707 else
15708 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_uti_include}', appending" >&5
15709 CPPFLAGS="$CPPFLAGS -I${with_uti_include}"
15710
15711 fi
15712
15713
15714 else
15715 if test -n "${with_uti}"; then :
15716
15717
15718
15719 if test x$pac_has_fgrep_word = "xyes"; then
15720 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_uti}/include" >/dev/null 2>&1; then :
15721 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_uti}/include', not appending" >&5
15722 else
15723 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_uti}/include', appending" >&5
15724 CPPFLAGS="$CPPFLAGS -I${with_uti}/include"
15725
15726
15727 fi
15728 else
15729 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_uti}/include', appending" >&5
15730 CPPFLAGS="$CPPFLAGS -I${with_uti}/include"
15731
15732 fi
15733
15734
15735 fi
15736 fi
15737
15738 if test -n "${with_uti_lib}"; then :
15739
15740
15741
15742 if test x$pac_has_fgrep_word = "xyes"; then
15743 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_uti_lib}" >/dev/null 2>&1; then :
15744 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_uti_lib}', not appending" >&5
15745 else
15746 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti_lib}', appending" >&5
15747 LDFLAGS="$LDFLAGS -L${with_uti_lib}"
15748
15749
15750 fi
15751 else
15752 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti_lib}', appending" >&5
15753 LDFLAGS="$LDFLAGS -L${with_uti_lib}"
15754
15755 fi
15756
15757
15758
15759
15760
15761 if test x$pac_has_fgrep_word = "xyes"; then
15762 if echo "$RPATHS" | $FGREP -w -e "-R${with_uti_lib}" >/dev/null 2>&1; then :
15763 echo "RPATHS(='$RPATHS') contains '-R${with_uti_lib}', not appending" >&5
15764 else
15765 echo "RPATHS(='$RPATHS') does not contain '-R${with_uti_lib}', appending" >&5
15766 RPATHS="$RPATHS -R${with_uti_lib}"
15767
15768
15769 fi
15770 else
15771 echo "RPATHS(='$RPATHS') does not contain '-R${with_uti_lib}', appending" >&5
15772 RPATHS="$RPATHS -R${with_uti_lib}"
15773
15774 fi
15775
15776
15777
15778 else
15779 if test -n "${with_uti}"; then :
15780
15781
15782
15783 if test x$pac_has_fgrep_word = "xyes"; then
15784 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_uti}/lib" >/dev/null 2>&1; then :
15785 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_uti}/lib', not appending" >&5
15786 else
15787 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti}/lib', appending" >&5
15788 LDFLAGS="$LDFLAGS -L${with_uti}/lib"
15789
15790
15791 fi
15792 else
15793 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti}/lib', appending" >&5
15794 LDFLAGS="$LDFLAGS -L${with_uti}/lib"
15795
15796 fi
15797
15798
15799
15800
15801
15802 if test x$pac_has_fgrep_word = "xyes"; then
15803 if echo "$RPATHS" | $FGREP -w -e "-R${with_uti}/lib" >/dev/null 2>&1; then :
15804 echo "RPATHS(='$RPATHS') contains '-R${with_uti}/lib', not appending" >&5
15805 else
15806 echo "RPATHS(='$RPATHS') does not contain '-R${with_uti}/lib', appending" >&5
15807 RPATHS="$RPATHS -R${with_uti}/lib"
15808
15809
15810 fi
15811 else
15812 echo "RPATHS(='$RPATHS') does not contain '-R${with_uti}/lib', appending" >&5
15813 RPATHS="$RPATHS -R${with_uti}/lib"
15814
15815 fi
15816
15817
15818 if test -d "${with_uti}/lib64"; then :
15819
15820
15821
15822 if test x$pac_has_fgrep_word = "xyes"; then
15823 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_uti}/lib64" >/dev/null 2>&1; then :
15824 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_uti}/lib64', not appending" >&5
15825 else
15826 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti}/lib64', appending" >&5
15827 LDFLAGS="$LDFLAGS -L${with_uti}/lib64"
15828
15829
15830 fi
15831 else
15832 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti}/lib64', appending" >&5
15833 LDFLAGS="$LDFLAGS -L${with_uti}/lib64"
15834
15835 fi
15836
15837
15838
15839
15840
15841 if test x$pac_has_fgrep_word = "xyes"; then
15842 if echo "$RPATHS" | $FGREP -w -e "-R${with_uti}/lib64" >/dev/null 2>&1; then :
15843 echo "RPATHS(='$RPATHS') contains '-R${with_uti}/lib64', not appending" >&5
15844 else
15845 echo "RPATHS(='$RPATHS') does not contain '-R${with_uti}/lib64', appending" >&5
15846 RPATHS="$RPATHS -R${with_uti}/lib64"
15847
15848
15849 fi
15850 else
15851 echo "RPATHS(='$RPATHS') does not contain '-R${with_uti}/lib64', appending" >&5
15852 RPATHS="$RPATHS -R${with_uti}/lib64"
15853
15854 fi
15855
15856
15857
15858 fi
15859
15860 fi
15861
15862 fi
15863 ;;
15864 esac
15865
15866
15867 failure=no
15868 ac_fn_c_check_header_mongrel "$LINENO" "uti.h" "ac_cv_header_uti_h" "$ac_includes_default"
15869 if test "x$ac_cv_header_uti_h" = xyes; then :
15870
15871 else
15872 failure=yes
15873 fi
15874
15875
15876 if test "$failure" = "no" ; then
15877
15878 if test -z "${pac_save_LIBS_nesting}" ; then
15879 pac_save_LIBS_nesting=0
15880 fi
15881 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
15882 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
15883
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uti_attr_init in -luti" >&5
15885 $as_echo_n "checking for uti_attr_init in -luti... " >&6; }
15886 if ${ac_cv_lib_uti_uti_attr_init+:} false; then :
15887 $as_echo_n "(cached) " >&6
15888 else
15889 ac_check_lib_save_LIBS=$LIBS
15890 LIBS="-luti $LIBS"
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893
15894 /* Override any GCC internal prototype to avoid an error.
15895 Use char because int might match the return type of a GCC
15896 builtin and then its argument prototype would still apply. */
15897 #ifdef __cplusplus
15898 extern "C"
15899 #endif
15900 char uti_attr_init ();
15901 int
15902 main ()
15903 {
15904 return uti_attr_init ();
15905 ;
15906 return 0;
15907 }
15908 _ACEOF
15909 if ac_fn_c_try_link "$LINENO"; then :
15910 ac_cv_lib_uti_uti_attr_init=yes
15911 else
15912 ac_cv_lib_uti_uti_attr_init=no
15913 fi
15914 rm -f core conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
15916 LIBS=$ac_check_lib_save_LIBS
15917 fi
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uti_uti_attr_init" >&5
15919 $as_echo "$ac_cv_lib_uti_uti_attr_init" >&6; }
15920 if test "x$ac_cv_lib_uti_uti_attr_init" = xyes; then :
15921 cat >>confdefs.h <<_ACEOF
15922 #define HAVE_LIBUTI 1
15923 _ACEOF
15924
15925 LIBS="-luti $LIBS"
15926
15927 else
15928 failure=yes
15929 fi
15930
15931
15932 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
15933 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
15934 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
15935
15936 fi
15937 if test "$failure" = "no" ; then
15938 success=yes
15939 else
15940 success=no
15941 fi
15942
15943 if test "$success" = "no" ; then
15944 as_fn_error $? "uti.h or libuti library not found. Did you specify --with-uti= or --with-uti-include= or --with-uti-lib=?" "$LINENO" 5
15945 fi
15946
15947
15948
15949
15950 if test x$pac_has_fgrep_word = "xyes"; then
15951 if echo "$LIBS" | $FGREP -w -e "-luti" >/dev/null 2>&1; then :
15952 echo "LIBS(='$LIBS') contains '-luti', not appending" >&5
15953 else
15954 echo "LIBS(='$LIBS') does not contain '-luti', appending" >&5
15955 LIBS="$LIBS -luti"
15956
15957
15958 fi
15959 else
15960 echo "LIBS(='$LIBS') does not contain '-luti', appending" >&5
15961 LIBS="$LIBS -luti"
15962
15963 fi
15964
15965
15966
15967
15968 THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_UTI
15969 ;;
15970 solaris)
15971 for ac_header in thread.h
15972 do :
15973 ac_fn_c_check_header_mongrel "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
15974 if test "x$ac_cv_header_thread_h" = xyes; then :
15975 cat >>confdefs.h <<_ACEOF
15976 #define HAVE_THREAD_H 1
15977 _ACEOF
15978
15979 fi
15980
15981 done
15982
15983 for ac_func in thr_yield
15984 do :
15985 ac_fn_c_check_func "$LINENO" "thr_yield" "ac_cv_func_thr_yield"
15986 if test "x$ac_cv_func_thr_yield" = xyes; then :
15987 cat >>confdefs.h <<_ACEOF
15988 #define HAVE_THR_YIELD 1
15989 _ACEOF
15990
15991 fi
15992 done
15993
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15995 $as_echo_n "checking for library containing thr_create... " >&6; }
15996 if ${ac_cv_search_thr_create+:} false; then :
15997 $as_echo_n "(cached) " >&6
15998 else
15999 ac_func_search_save_LIBS=$LIBS
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002
16003 /* Override any GCC internal prototype to avoid an error.
16004 Use char because int might match the return type of a GCC
16005 builtin and then its argument prototype would still apply. */
16006 #ifdef __cplusplus
16007 extern "C"
16008 #endif
16009 char thr_create ();
16010 int
16011 main ()
16012 {
16013 return thr_create ();
16014 ;
16015 return 0;
16016 }
16017 _ACEOF
16018 for ac_lib in '' thread; do
16019 if test -z "$ac_lib"; then
16020 ac_res="none required"
16021 else
16022 ac_res=-l$ac_lib
16023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16024 fi
16025 if ac_fn_c_try_link "$LINENO"; then :
16026 ac_cv_search_thr_create=$ac_res
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext \
16029 conftest$ac_exeext
16030 if ${ac_cv_search_thr_create+:} false; then :
16031 break
16032 fi
16033 done
16034 if ${ac_cv_search_thr_create+:} false; then :
16035
16036 else
16037 ac_cv_search_thr_create=no
16038 fi
16039 rm conftest.$ac_ext
16040 LIBS=$ac_func_search_save_LIBS
16041 fi
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16043 $as_echo "$ac_cv_search_thr_create" >&6; }
16044 ac_res=$ac_cv_search_thr_create
16045 if test "$ac_res" != no; then :
16046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16047 found=yes
16048 else
16049 found=no
16050 fi
16051
16052 if test "$found" != "yes" ; then
16053 as_fn_error $? "unable to find Solaris threads library" "$LINENO" 5
16054 fi
16055 # FIXME: need to add -mt if using solaris compilers
16056 THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_SOLARIS
16057 ;;
16058 win|windows)
16059 with_thread_package=win
16060 THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_WIN
16061 as_fn_error $? "The 'win' thread package is not supported via autoconf builds at this time." "$LINENO" 5
16062 ;;
16063 abt|argobots)
16064 with_thread_package=argobots
16065
16066
16067
16068
16069 # Check whether --with-argobots was given.
16070 if test "${with_argobots+set}" = set; then :
16071 withval=$with_argobots;
16072 fi
16073
16074
16075
16076
16077 # Check whether --with-argobots-include was given.
16078 if test "${with_argobots_include+set}" = set; then :
16079 withval=$with_argobots_include; case "$withval" in #(
16080 yes|no|'') :
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-argobots-include=PATH expects a valid PATH" >&5
16082 $as_echo "$as_me: WARNING: --without-argobots-include=PATH expects a valid PATH" >&2;}
16083 with_argobots_include="" ;; #(
16084 *) :
16085 ;;
16086 esac
16087 fi
16088
16089
16090 # Check whether --with-argobots-lib was given.
16091 if test "${with_argobots_lib+set}" = set; then :
16092 withval=$with_argobots_lib; case "$withval" in #(
16093 yes|no|'') :
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-argobots-lib=PATH expects a valid PATH" >&5
16095 $as_echo "$as_me: WARNING: --without-argobots-lib=PATH expects a valid PATH" >&2;}
16096 with_argobots_lib="" ;; #(
16097 *) :
16098 ;;
16099 esac
16100 fi
16101
16102
16103 # The args have been sanitized into empty/non-empty values above.
16104 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
16105 # taking priority
16106
16107 case "${with_argobots}" in
16108 embedded|install)
16109 as_fn_error $? "embedded argobots is requested but we do not have the embedded version" "$LINENO" 5
16110 ;;
16111 yes|no)
16112 # skip
16113 ;;
16114 *)
16115 if test -n "${with_argobots_include}"; then :
16116
16117
16118
16119 if test x$pac_has_fgrep_word = "xyes"; then
16120 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_argobots_include}" >/dev/null 2>&1; then :
16121 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_argobots_include}', not appending" >&5
16122 else
16123 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_argobots_include}', appending" >&5
16124 CPPFLAGS="$CPPFLAGS -I${with_argobots_include}"
16125
16126
16127 fi
16128 else
16129 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_argobots_include}', appending" >&5
16130 CPPFLAGS="$CPPFLAGS -I${with_argobots_include}"
16131
16132 fi
16133
16134
16135 else
16136 if test -n "${with_argobots}"; then :
16137
16138
16139
16140 if test x$pac_has_fgrep_word = "xyes"; then
16141 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_argobots}/include" >/dev/null 2>&1; then :
16142 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_argobots}/include', not appending" >&5
16143 else
16144 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_argobots}/include', appending" >&5
16145 CPPFLAGS="$CPPFLAGS -I${with_argobots}/include"
16146
16147
16148 fi
16149 else
16150 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_argobots}/include', appending" >&5
16151 CPPFLAGS="$CPPFLAGS -I${with_argobots}/include"
16152
16153 fi
16154
16155
16156 fi
16157 fi
16158
16159 if test -n "${with_argobots_lib}"; then :
16160
16161
16162
16163 if test x$pac_has_fgrep_word = "xyes"; then
16164 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_argobots_lib}" >/dev/null 2>&1; then :
16165 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_argobots_lib}', not appending" >&5
16166 else
16167 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots_lib}', appending" >&5
16168 LDFLAGS="$LDFLAGS -L${with_argobots_lib}"
16169
16170
16171 fi
16172 else
16173 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots_lib}', appending" >&5
16174 LDFLAGS="$LDFLAGS -L${with_argobots_lib}"
16175
16176 fi
16177
16178
16179
16180
16181
16182 if test x$pac_has_fgrep_word = "xyes"; then
16183 if echo "$RPATHS" | $FGREP -w -e "-R${with_argobots_lib}" >/dev/null 2>&1; then :
16184 echo "RPATHS(='$RPATHS') contains '-R${with_argobots_lib}', not appending" >&5
16185 else
16186 echo "RPATHS(='$RPATHS') does not contain '-R${with_argobots_lib}', appending" >&5
16187 RPATHS="$RPATHS -R${with_argobots_lib}"
16188
16189
16190 fi
16191 else
16192 echo "RPATHS(='$RPATHS') does not contain '-R${with_argobots_lib}', appending" >&5
16193 RPATHS="$RPATHS -R${with_argobots_lib}"
16194
16195 fi
16196
16197
16198
16199 else
16200 if test -n "${with_argobots}"; then :
16201
16202
16203
16204 if test x$pac_has_fgrep_word = "xyes"; then
16205 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_argobots}/lib" >/dev/null 2>&1; then :
16206 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_argobots}/lib', not appending" >&5
16207 else
16208 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots}/lib', appending" >&5
16209 LDFLAGS="$LDFLAGS -L${with_argobots}/lib"
16210
16211
16212 fi
16213 else
16214 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots}/lib', appending" >&5
16215 LDFLAGS="$LDFLAGS -L${with_argobots}/lib"
16216
16217 fi
16218
16219
16220
16221
16222
16223 if test x$pac_has_fgrep_word = "xyes"; then
16224 if echo "$RPATHS" | $FGREP -w -e "-R${with_argobots}/lib" >/dev/null 2>&1; then :
16225 echo "RPATHS(='$RPATHS') contains '-R${with_argobots}/lib', not appending" >&5
16226 else
16227 echo "RPATHS(='$RPATHS') does not contain '-R${with_argobots}/lib', appending" >&5
16228 RPATHS="$RPATHS -R${with_argobots}/lib"
16229
16230
16231 fi
16232 else
16233 echo "RPATHS(='$RPATHS') does not contain '-R${with_argobots}/lib', appending" >&5
16234 RPATHS="$RPATHS -R${with_argobots}/lib"
16235
16236 fi
16237
16238
16239 if test -d "${with_argobots}/lib64"; then :
16240
16241
16242
16243 if test x$pac_has_fgrep_word = "xyes"; then
16244 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_argobots}/lib64" >/dev/null 2>&1; then :
16245 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_argobots}/lib64', not appending" >&5
16246 else
16247 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots}/lib64', appending" >&5
16248 LDFLAGS="$LDFLAGS -L${with_argobots}/lib64"
16249
16250
16251 fi
16252 else
16253 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots}/lib64', appending" >&5
16254 LDFLAGS="$LDFLAGS -L${with_argobots}/lib64"
16255
16256 fi
16257
16258
16259
16260
16261
16262 if test x$pac_has_fgrep_word = "xyes"; then
16263 if echo "$RPATHS" | $FGREP -w -e "-R${with_argobots}/lib64" >/dev/null 2>&1; then :
16264 echo "RPATHS(='$RPATHS') contains '-R${with_argobots}/lib64', not appending" >&5
16265 else
16266 echo "RPATHS(='$RPATHS') does not contain '-R${with_argobots}/lib64', appending" >&5
16267 RPATHS="$RPATHS -R${with_argobots}/lib64"
16268
16269
16270 fi
16271 else
16272 echo "RPATHS(='$RPATHS') does not contain '-R${with_argobots}/lib64', appending" >&5
16273 RPATHS="$RPATHS -R${with_argobots}/lib64"
16274
16275 fi
16276
16277
16278
16279 fi
16280
16281 fi
16282
16283 fi
16284 ;;
16285 esac
16286
16287
16288 failure=no
16289 ac_fn_c_check_header_mongrel "$LINENO" "abt.h" "ac_cv_header_abt_h" "$ac_includes_default"
16290 if test "x$ac_cv_header_abt_h" = xyes; then :
16291
16292 else
16293 failure=yes
16294 fi
16295
16296
16297 if test "$failure" = "no" ; then
16298
16299 if test -z "${pac_save_LIBS_nesting}" ; then
16300 pac_save_LIBS_nesting=0
16301 fi
16302 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
16303 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
16304
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABT_key_create in -labt" >&5
16306 $as_echo_n "checking for ABT_key_create in -labt... " >&6; }
16307 if ${ac_cv_lib_abt_ABT_key_create+:} false; then :
16308 $as_echo_n "(cached) " >&6
16309 else
16310 ac_check_lib_save_LIBS=$LIBS
16311 LIBS="-labt $LIBS"
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16314
16315 /* Override any GCC internal prototype to avoid an error.
16316 Use char because int might match the return type of a GCC
16317 builtin and then its argument prototype would still apply. */
16318 #ifdef __cplusplus
16319 extern "C"
16320 #endif
16321 char ABT_key_create ();
16322 int
16323 main ()
16324 {
16325 return ABT_key_create ();
16326 ;
16327 return 0;
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"; then :
16331 ac_cv_lib_abt_ABT_key_create=yes
16332 else
16333 ac_cv_lib_abt_ABT_key_create=no
16334 fi
16335 rm -f core conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 LIBS=$ac_check_lib_save_LIBS
16338 fi
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_abt_ABT_key_create" >&5
16340 $as_echo "$ac_cv_lib_abt_ABT_key_create" >&6; }
16341 if test "x$ac_cv_lib_abt_ABT_key_create" = xyes; then :
16342 cat >>confdefs.h <<_ACEOF
16343 #define HAVE_LIBABT 1
16344 _ACEOF
16345
16346 LIBS="-labt $LIBS"
16347
16348 else
16349 failure=yes
16350 fi
16351
16352
16353 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
16354 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
16355 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
16356
16357 fi
16358 if test "$failure" = "no" ; then
16359 success=yes
16360 else
16361 success=no
16362 fi
16363
16364 if test "$success" = "no" ; then
16365 as_fn_error $? "abt.h or libabt library not found. Did you specify --with-argobots= or --with-argobots-include= or --with-argobots-lib=?" "$LINENO" 5
16366 fi
16367
16368
16369
16370
16371 if test x$pac_has_fgrep_word = "xyes"; then
16372 if echo "$LIBS" | $FGREP -w -e "-labt" >/dev/null 2>&1; then :
16373 echo "LIBS(='$LIBS') contains '-labt', not appending" >&5
16374 else
16375 echo "LIBS(='$LIBS') does not contain '-labt', appending" >&5
16376 LIBS="$LIBS -labt"
16377
16378
16379 fi
16380 else
16381 echo "LIBS(='$LIBS') does not contain '-labt', appending" >&5
16382 LIBS="$LIBS -labt"
16383
16384 fi
16385
16386
16387
16388
16389 THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_ARGOBOTS
16390 ;;
16391 qthreads)
16392 with_thread_package=qthreads
16393
16394
16395
16396
16397 # Check whether --with-qthreads was given.
16398 if test "${with_qthreads+set}" = set; then :
16399 withval=$with_qthreads;
16400 fi
16401
16402
16403
16404
16405 # Check whether --with-qthreads-include was given.
16406 if test "${with_qthreads_include+set}" = set; then :
16407 withval=$with_qthreads_include; case "$withval" in #(
16408 yes|no|'') :
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-qthreads-include=PATH expects a valid PATH" >&5
16410 $as_echo "$as_me: WARNING: --without-qthreads-include=PATH expects a valid PATH" >&2;}
16411 with_qthreads_include="" ;; #(
16412 *) :
16413 ;;
16414 esac
16415 fi
16416
16417
16418 # Check whether --with-qthreads-lib was given.
16419 if test "${with_qthreads_lib+set}" = set; then :
16420 withval=$with_qthreads_lib; case "$withval" in #(
16421 yes|no|'') :
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-qthreads-lib=PATH expects a valid PATH" >&5
16423 $as_echo "$as_me: WARNING: --without-qthreads-lib=PATH expects a valid PATH" >&2;}
16424 with_qthreads_lib="" ;; #(
16425 *) :
16426 ;;
16427 esac
16428 fi
16429
16430
16431 # The args have been sanitized into empty/non-empty values above.
16432 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
16433 # taking priority
16434
16435 case "${with_qthreads}" in
16436 embedded|install)
16437 as_fn_error $? "embedded qthreads is requested but we do not have the embedded version" "$LINENO" 5
16438 ;;
16439 yes|no)
16440 # skip
16441 ;;
16442 *)
16443 if test -n "${with_qthreads_include}"; then :
16444
16445
16446
16447 if test x$pac_has_fgrep_word = "xyes"; then
16448 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_qthreads_include}" >/dev/null 2>&1; then :
16449 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_qthreads_include}', not appending" >&5
16450 else
16451 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_qthreads_include}', appending" >&5
16452 CPPFLAGS="$CPPFLAGS -I${with_qthreads_include}"
16453
16454
16455 fi
16456 else
16457 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_qthreads_include}', appending" >&5
16458 CPPFLAGS="$CPPFLAGS -I${with_qthreads_include}"
16459
16460 fi
16461
16462
16463 else
16464 if test -n "${with_qthreads}"; then :
16465
16466
16467
16468 if test x$pac_has_fgrep_word = "xyes"; then
16469 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_qthreads}/include" >/dev/null 2>&1; then :
16470 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_qthreads}/include', not appending" >&5
16471 else
16472 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_qthreads}/include', appending" >&5
16473 CPPFLAGS="$CPPFLAGS -I${with_qthreads}/include"
16474
16475
16476 fi
16477 else
16478 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_qthreads}/include', appending" >&5
16479 CPPFLAGS="$CPPFLAGS -I${with_qthreads}/include"
16480
16481 fi
16482
16483
16484 fi
16485 fi
16486
16487 if test -n "${with_qthreads_lib}"; then :
16488
16489
16490
16491 if test x$pac_has_fgrep_word = "xyes"; then
16492 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_qthreads_lib}" >/dev/null 2>&1; then :
16493 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_qthreads_lib}', not appending" >&5
16494 else
16495 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_qthreads_lib}', appending" >&5
16496 LDFLAGS="$LDFLAGS -L${with_qthreads_lib}"
16497
16498
16499 fi
16500 else
16501 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_qthreads_lib}', appending" >&5
16502 LDFLAGS="$LDFLAGS -L${with_qthreads_lib}"
16503
16504 fi
16505
16506
16507
16508
16509
16510 if test x$pac_has_fgrep_word = "xyes"; then
16511 if echo "$RPATHS" | $FGREP -w -e "-R${with_qthreads_lib}" >/dev/null 2>&1; then :
16512 echo "RPATHS(='$RPATHS') contains '-R${with_qthreads_lib}', not appending" >&5
16513 else
16514 echo "RPATHS(='$RPATHS') does not contain '-R${with_qthreads_lib}', appending" >&5
16515 RPATHS="$RPATHS -R${with_qthreads_lib}"
16516
16517
16518 fi
16519 else
16520 echo "RPATHS(='$RPATHS') does not contain '-R${with_qthreads_lib}', appending" >&5
16521 RPATHS="$RPATHS -R${with_qthreads_lib}"
16522
16523 fi
16524
16525
16526
16527 else
16528 if test -n "${with_qthreads}"; then :
16529
16530
16531
16532 if test x$pac_has_fgrep_word = "xyes"; then
16533 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_qthreads}/lib" >/dev/null 2>&1; then :
16534 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_qthreads}/lib', not appending" >&5
16535 else
16536 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_qthreads}/lib', appending" >&5
16537 LDFLAGS="$LDFLAGS -L${with_qthreads}/lib"
16538
16539
16540 fi
16541 else
16542 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_qthreads}/lib', appending" >&5
16543 LDFLAGS="$LDFLAGS -L${with_qthreads}/lib"
16544
16545 fi
16546
16547
16548
16549
16550
16551 if test x$pac_has_fgrep_word = "xyes"; then
16552 if echo "$RPATHS" | $FGREP -w -e "-R${with_qthreads}/lib" >/dev/null 2>&1; then :
16553 echo "RPATHS(='$RPATHS') contains '-R${with_qthreads}/lib', not appending" >&5
16554 else
16555 echo "RPATHS(='$RPATHS') does not contain '-R${with_qthreads}/lib', appending" >&5
16556 RPATHS="$RPATHS -R${with_qthreads}/lib"
16557
16558
16559 fi
16560 else
16561 echo "RPATHS(='$RPATHS') does not contain '-R${with_qthreads}/lib', appending" >&5
16562 RPATHS="$RPATHS -R${with_qthreads}/lib"
16563
16564 fi
16565
16566
16567 if test -d "${with_qthreads}/lib64"; then :
16568
16569
16570
16571 if test x$pac_has_fgrep_word = "xyes"; then
16572 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_qthreads}/lib64" >/dev/null 2>&1; then :
16573 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_qthreads}/lib64', not appending" >&5
16574 else
16575 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_qthreads}/lib64', appending" >&5
16576 LDFLAGS="$LDFLAGS -L${with_qthreads}/lib64"
16577
16578
16579 fi
16580 else
16581 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_qthreads}/lib64', appending" >&5
16582 LDFLAGS="$LDFLAGS -L${with_qthreads}/lib64"
16583
16584 fi
16585
16586
16587
16588
16589
16590 if test x$pac_has_fgrep_word = "xyes"; then
16591 if echo "$RPATHS" | $FGREP -w -e "-R${with_qthreads}/lib64" >/dev/null 2>&1; then :
16592 echo "RPATHS(='$RPATHS') contains '-R${with_qthreads}/lib64', not appending" >&5
16593 else
16594 echo "RPATHS(='$RPATHS') does not contain '-R${with_qthreads}/lib64', appending" >&5
16595 RPATHS="$RPATHS -R${with_qthreads}/lib64"
16596
16597
16598 fi
16599 else
16600 echo "RPATHS(='$RPATHS') does not contain '-R${with_qthreads}/lib64', appending" >&5
16601 RPATHS="$RPATHS -R${with_qthreads}/lib64"
16602
16603 fi
16604
16605
16606
16607 fi
16608
16609 fi
16610
16611 fi
16612 ;;
16613 esac
16614
16615
16616 failure=no
16617 ac_fn_c_check_header_mongrel "$LINENO" "qthread/qthread.h" "ac_cv_header_qthread_qthread_h" "$ac_includes_default"
16618 if test "x$ac_cv_header_qthread_qthread_h" = xyes; then :
16619
16620 else
16621 failure=yes
16622 fi
16623
16624
16625 if test "$failure" = "no" ; then
16626
16627 if test -z "${pac_save_LIBS_nesting}" ; then
16628 pac_save_LIBS_nesting=0
16629 fi
16630 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
16631 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
16632
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qthread_fork_syncvar_to in -lqthread" >&5
16634 $as_echo_n "checking for qthread_fork_syncvar_to in -lqthread... " >&6; }
16635 if ${ac_cv_lib_qthread_qthread_fork_syncvar_to+:} false; then :
16636 $as_echo_n "(cached) " >&6
16637 else
16638 ac_check_lib_save_LIBS=$LIBS
16639 LIBS="-lqthread $LIBS"
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16642
16643 /* Override any GCC internal prototype to avoid an error.
16644 Use char because int might match the return type of a GCC
16645 builtin and then its argument prototype would still apply. */
16646 #ifdef __cplusplus
16647 extern "C"
16648 #endif
16649 char qthread_fork_syncvar_to ();
16650 int
16651 main ()
16652 {
16653 return qthread_fork_syncvar_to ();
16654 ;
16655 return 0;
16656 }
16657 _ACEOF
16658 if ac_fn_c_try_link "$LINENO"; then :
16659 ac_cv_lib_qthread_qthread_fork_syncvar_to=yes
16660 else
16661 ac_cv_lib_qthread_qthread_fork_syncvar_to=no
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext \
16664 conftest$ac_exeext conftest.$ac_ext
16665 LIBS=$ac_check_lib_save_LIBS
16666 fi
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qthread_qthread_fork_syncvar_to" >&5
16668 $as_echo "$ac_cv_lib_qthread_qthread_fork_syncvar_to" >&6; }
16669 if test "x$ac_cv_lib_qthread_qthread_fork_syncvar_to" = xyes; then :
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_LIBQTHREAD 1
16672 _ACEOF
16673
16674 LIBS="-lqthread $LIBS"
16675
16676 else
16677 failure=yes
16678 fi
16679
16680
16681 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
16682 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
16683 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
16684
16685 fi
16686 if test "$failure" = "no" ; then
16687 success=yes
16688 else
16689 success=no
16690 fi
16691
16692 if test "$success" = "no" ; then
16693 as_fn_error $? "qthread/qthread.h or libqthread library not found. Did you specify --with-qthreads= or --with-qthreads-include= or --with-qthreads-lib=?" "$LINENO" 5
16694 fi
16695
16696
16697
16698
16699 if test x$pac_has_fgrep_word = "xyes"; then
16700 if echo "$LIBS" | $FGREP -w -e "-lqthread" >/dev/null 2>&1; then :
16701 echo "LIBS(='$LIBS') contains '-lqthread', not appending" >&5
16702 else
16703 echo "LIBS(='$LIBS') does not contain '-lqthread', appending" >&5
16704 LIBS="$LIBS -lqthread"
16705
16706
16707 fi
16708 else
16709 echo "LIBS(='$LIBS') does not contain '-lqthread', appending" >&5
16710 LIBS="$LIBS -lqthread"
16711
16712 fi
16713
16714
16715
16716
16717 threadlib="-lqthread"
16718 THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_QTHREADS
16719 ;;
16720 no|none)
16721 with_thread_package=none
16722 THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_NONE
16723 ;;
16724 *)
16725 as_fn_error $? "The specified thread package, $with_thread_package, is not supported." "$LINENO" 5
16726 ;;
16727 esac
16728
16729 case $with_posix_mutex in
16730 ticketlock)
16731 POSIX_MUTEX_NAME=MPL_POSIX_MUTEX_TICKETLOCK
16732 ;;
16733 *)
16734 POSIX_MUTEX_NAME=MPL_POSIX_MUTEX_NATIVE
16735 ;;
16736 esac
16737
16738
16739 cat >>confdefs.h <<_ACEOF
16740 #define THREAD_PACKAGE_NAME $THREAD_PACKAGE_NAME
16741 _ACEOF
16742
16743
16744 cat >>confdefs.h <<_ACEOF
16745 #define POSIX_MUTEX_NAME $POSIX_MUTEX_NAME
16746 _ACEOF
16747
16748
16749 # check for compiler-support for thread-local storage (MPL_TLS)
16750
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage" >&5
16752 $as_echo_n "checking for thread local storage... " >&6; }
16753 if ${pac_cv_tls+:} false; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756
16757 if test -z $pac_cv_tls ; then
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16760 _Thread_local int foo=0;
16761 int
16762 main ()
16763 {
16764 foo=1
16765 ;
16766 return 0;
16767 }
16768 _ACEOF
16769 if ac_fn_c_try_link "$LINENO"; then :
16770 pac_cv_tls=_Thread_local
16771 fi
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16774 fi
16775 if test -z $pac_cv_tls ; then
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16778 __thread int foo=0;
16779 int
16780 main ()
16781 {
16782 foo=1
16783 ;
16784 return 0;
16785 }
16786 _ACEOF
16787 if ac_fn_c_try_link "$LINENO"; then :
16788 pac_cv_tls=__thread
16789 fi
16790 rm -f core conftest.err conftest.$ac_objext \
16791 conftest$ac_exeext conftest.$ac_ext
16792 fi
16793 if test -z $pac_cv_tls ; then
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16796 __declspec(thread) int foo=0;
16797 int
16798 main ()
16799 {
16800 foo=1
16801 ;
16802 return 0;
16803 }
16804 _ACEOF
16805 if ac_fn_c_try_link "$LINENO"; then :
16806 pac_cv_tls="__declspec(thread)"
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext \
16809 conftest$ac_exeext conftest.$ac_ext
16810 fi
16811
16812 fi
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_tls" >&5
16814 $as_echo "$pac_cv_tls" >&6; }
16815 if test -z $pac_cv_tls ; then
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support thread local storage" >&5
16817 $as_echo "$as_me: WARNING: Compiler does not support thread local storage" >&2;}
16818 else
16819
16820 cat >>confdefs.h <<_ACEOF
16821 #define COMPILER_TLS $pac_cv_tls
16822 _ACEOF
16823
16824 fi
16825
16826
16827 COMPILER_TLS="$pac_cv_tls"
16828
16829 #######################################################################
16830 ## END OF THREADS CODE
16831 #######################################################################
16832
16833 #######################################################################
16834 ## START OF PROCESS MUTEX CODE
16835 #######################################################################
16836
16837
16838 # Check whether --with-proc-mutex-package was given.
16839 if test "${with_proc_mutex_package+set}" = set; then :
16840 withval=$with_proc_mutex_package;
16841 else
16842 with_proc_mutex_package=posix
16843 fi
16844
16845
16846 if test "${with_proc_mutex_package}" = "no" ; then
16847 with_proc_mutex_package=none
16848 fi
16849 if test "${with_proc_mutex_package}" = "yes" ; then
16850 with_proc_mutex_package=posix
16851 fi
16852
16853 PROC_MUTEX_PACKAGE_NAME=MPL_PROC_MUTEX_PACKAGE_INVALID
16854 case $with_proc_mutex_package in
16855 posix|pthreads)
16856 if test "${with_proc_mutex_package}" = "pthreads" ; then
16857 with_proc_mutex_package=posix
16858 fi
16859
16860 # Do not prepend -lpthread again if already checked by thread package
16861 if test "${with_thread_package}" != "posix" ; then
16862 for ac_header in pthread.h
16863 do :
16864 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16865 if test "x$ac_cv_header_pthread_h" = xyes; then :
16866 cat >>confdefs.h <<_ACEOF
16867 #define HAVE_PTHREAD_H 1
16868 _ACEOF
16869
16870 fi
16871
16872 done
16873
16874
16875 # If pthreads library is found, just include it on the link line. We don't try
16876 # to test if the C compiler needs it or not, since the C++ or Fortran
16877 # compilers might need it even if the C compiler doesn't
16878 # (nvcc with gfortran, for example).
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
16880 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
16881 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
16882 $as_echo_n "(cached) " >&6
16883 else
16884 ac_check_lib_save_LIBS=$LIBS
16885 LIBS="-lpthread $LIBS"
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888
16889 /* Override any GCC internal prototype to avoid an error.
16890 Use char because int might match the return type of a GCC
16891 builtin and then its argument prototype would still apply. */
16892 #ifdef __cplusplus
16893 extern "C"
16894 #endif
16895 char pthread_mutex_init ();
16896 int
16897 main ()
16898 {
16899 return pthread_mutex_init ();
16900 ;
16901 return 0;
16902 }
16903 _ACEOF
16904 if ac_fn_c_try_link "$LINENO"; then :
16905 ac_cv_lib_pthread_pthread_mutex_init=yes
16906 else
16907 ac_cv_lib_pthread_pthread_mutex_init=no
16908 fi
16909 rm -f core conftest.err conftest.$ac_objext \
16910 conftest$ac_exeext conftest.$ac_ext
16911 LIBS=$ac_check_lib_save_LIBS
16912 fi
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
16914 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
16915 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
16916 have_pthreads=yes
16917 fi
16918
16919 if test "$have_pthreads" = "yes" ; then
16920
16921
16922
16923 if test x$pac_has_fgrep_word = "xyes"; then
16924 if echo "$LIBS" | $FGREP -w -e "-lpthread" >/dev/null 2>&1; then :
16925 echo "LIBS(='$LIBS') contains '-lpthread', not prepending" >&5
16926 else
16927 echo "LIBS(='$LIBS') does not contain '-lpthread', prepending" >&5
16928 LIBS="-lpthread $LIBS"
16929
16930
16931 fi
16932 else
16933 echo "LIBS(='$LIBS') does not contain '-lpthread', prepending" >&5
16934 LIBS="-lpthread $LIBS"
16935
16936 fi
16937
16938
16939 fi
16940 fi
16941
16942 # this check should come after the AC_CHECK_LIB for -lpthread
16943 ac_fn_c_check_func "$LINENO" "pthread_mutex_init" "ac_cv_func_pthread_mutex_init"
16944 if test "x$ac_cv_func_pthread_mutex_init" = xyes; then :
16945
16946 else
16947 as_fn_error $? "unable to find pthreads library" "$LINENO" 5
16948 fi
16949
16950 # pthread_mutexattr_setpshared is first released in Issue 5
16951 for ac_func in pthread_mutexattr_setpshared
16952 do :
16953 ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
16954 if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
16955 cat >>confdefs.h <<_ACEOF
16956 #define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
16957 _ACEOF
16958
16959 fi
16960 done
16961
16962
16963 for ac_func in pthread_setaffinity_np
16964 do :
16965 ac_fn_c_check_func "$LINENO" "pthread_setaffinity_np" "ac_cv_func_pthread_setaffinity_np"
16966 if test "x$ac_cv_func_pthread_setaffinity_np" = xyes; then :
16967 cat >>confdefs.h <<_ACEOF
16968 #define HAVE_PTHREAD_SETAFFINITY_NP 1
16969 _ACEOF
16970
16971 fi
16972 done
16973
16974 if test "$ac_cv_func_pthread_setaffinity_np" = "yes" ; then
16975 # Test for the cpu process set type
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpu_set_t available" >&5
16977 $as_echo_n "checking whether cpu_set_t available... " >&6; }
16978 if ${pac_cv_have_cpu_set_t+:} false; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981
16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 #include <sched.h>
16985 int
16986 main ()
16987 {
16988 cpu_set_t t;
16989 ;
16990 return 0;
16991 }
16992 _ACEOF
16993 if ac_fn_c_try_compile "$LINENO"; then :
16994 pac_cv_have_cpu_set_t=yes
16995 else
16996 pac_cv_have_cpu_set_t=no
16997 fi
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999
17000 fi
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_cpu_set_t" >&5
17002 $as_echo "$pac_cv_have_cpu_set_t" >&6; }
17003 if test "$pac_cv_have_cpu_set_t" = yes ; then
17004
17005 $as_echo "#define HAVE_CPU_SET_T 1" >>confdefs.h
17006
17007
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the CPU_SET and CPU_ZERO macros are defined" >&5
17009 $as_echo_n "checking whether the CPU_SET and CPU_ZERO macros are defined... " >&6; }
17010 if ${pac_cv_cpu_set_defined+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016
17017 #include <sched.h>
17018
17019 int
17020 main ()
17021 {
17022
17023 cpu_set_t t;
17024 CPU_ZERO(&t);
17025 CPU_SET(1,&t);
17026
17027 ;
17028 return 0;
17029 }
17030 _ACEOF
17031 if ac_fn_c_try_link "$LINENO"; then :
17032 pac_cv_cpu_set_defined=yes
17033 else
17034 pac_cv_cpu_set_defined=no
17035 fi
17036 rm -f core conftest.err conftest.$ac_objext \
17037 conftest$ac_exeext conftest.$ac_ext
17038
17039 fi
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cpu_set_defined" >&5
17041 $as_echo "$pac_cv_cpu_set_defined" >&6; }
17042 if test "$pac_cv_cpu_set_defined" = "yes" ; then
17043
17044 $as_echo "#define HAVE_CPU_SET_MACROS 1" >>confdefs.h
17045
17046 fi
17047 fi
17048 fi
17049
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: POSIX will be used for interprocess mutex package." >&5
17051 $as_echo "$as_me: POSIX will be used for interprocess mutex package." >&6;}
17052 PROC_MUTEX_PACKAGE_NAME=MPL_PROC_MUTEX_PACKAGE_POSIX
17053 ;;
17054 no|none)
17055 with_proc_mutex_package=none
17056 PROC_MUTEX_PACKAGE_NAME=MPL_PROC_MUTEX_PACKAGE_NONE
17057 ;;
17058 *)
17059 as_fn_error $? "The specified interprocess mutex package, $with_proc_mutex_package, is not supported." "$LINENO" 5
17060 ;;
17061 esac
17062
17063 # Define and export the selected interprocess mutex package so that other packages
17064 # know what's used in MPL
17065
17066 cat >>confdefs.h <<_ACEOF
17067 #define PROC_MUTEX_PACKAGE_NAME $PROC_MUTEX_PACKAGE_NAME
17068 _ACEOF
17069
17070 #######################################################################
17071 ## END OF PROCESS MUTEX CODE
17072 #######################################################################
17073
17074 #######################################################################
17075 ## START OF PTHREAD MUTEX COMMON CHECK
17076 #######################################################################
17077 if test "${with_thread_package}" = "posix" -o "${with_proc_mutex_package}" = "posix"; then
17078 # Check for PTHREAD_MUTEX_ERRORCHECK_NP and PTHREAD_MUTEX_ERRORCHECK
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK_NP" >&5
17080 $as_echo_n "checking whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
17081 if ${pac_cv_has_pthread_mutex_errorcheck_np+:} false; then :
17082 $as_echo_n "(cached) " >&6
17083 else
17084
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17087 #include <pthread.h>
17088 int
17089 main ()
17090 {
17091 int a=PTHREAD_MUTEX_ERRORCHECK_NP;
17092 ;
17093 return 0;
17094 }
17095 _ACEOF
17096 if ac_fn_c_try_compile "$LINENO"; then :
17097 pac_cv_has_pthread_mutex_errorcheck_np=yes
17098 else
17099 pac_cv_has_pthread_mutex_errorcheck_np=no
17100 fi
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 fi
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_pthread_mutex_errorcheck_np" >&5
17104 $as_echo "$pac_cv_has_pthread_mutex_errorcheck_np" >&6; }
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK" >&5
17106 $as_echo_n "checking whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK... " >&6; }
17107 if ${pac_cv_has_pthread_mutex_errorcheck+:} false; then :
17108 $as_echo_n "(cached) " >&6
17109 else
17110
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17113 #include <pthread.h>
17114 int
17115 main ()
17116 {
17117 int a=PTHREAD_MUTEX_ERRORCHECK;
17118 ;
17119 return 0;
17120 }
17121 _ACEOF
17122 if ac_fn_c_try_compile "$LINENO"; then :
17123 pac_cv_has_pthread_mutex_errorcheck=yes
17124 else
17125 pac_cv_has_pthread_mutex_errorcheck=no
17126 fi
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128
17129 fi
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_pthread_mutex_errorcheck" >&5
17131 $as_echo "$pac_cv_has_pthread_mutex_errorcheck" >&6; }
17132
17133 if test "$pac_cv_has_pthread_mutex_errorcheck" = yes ; then
17134
17135 $as_echo "#define PTHREAD_MUTEX_ERRORCHECK_VALUE PTHREAD_MUTEX_ERRORCHECK" >>confdefs.h
17136
17137 elif test "$pac_cv_has_pthread_mutex_errorcheck_np" = yes ; then
17138
17139 $as_echo "#define PTHREAD_MUTEX_ERRORCHECK_VALUE PTHREAD_MUTEX_ERRORCHECK_NP" >>confdefs.h
17140
17141 fi
17142
17143
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_mutexattr_settype needs a declaration" >&5
17145 $as_echo_n "checking whether pthread_mutexattr_settype needs a declaration... " >&6; }
17146 if ${pac_cv_func_decl_pthread_mutexattr_settype+:} false; then :
17147 $as_echo_n "(cached) " >&6
17148 else
17149
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17152 #include <pthread.h>
17153 void (*fptr)(void) = (void(*)(void))pthread_mutexattr_settype;
17154 _ACEOF
17155 if ac_fn_c_try_compile "$LINENO"; then :
17156 pac_cv_func_decl_pthread_mutexattr_settype=no
17157 else
17158 pac_cv_func_decl_pthread_mutexattr_settype=yes
17159 fi
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161
17162 fi
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_pthread_mutexattr_settype" >&5
17164 $as_echo "$pac_cv_func_decl_pthread_mutexattr_settype" >&6; }
17165 if test "$pac_cv_func_decl_pthread_mutexattr_settype" = "yes" ; then
17166
17167 cat >>confdefs.h <<_ACEOF
17168 #define NEEDS_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
17169 _ACEOF
17170
17171
17172 fi
17173
17174 fi
17175 #######################################################################
17176 ## END OF PTHREAD MUTEX COMMON CHECK
17177 #######################################################################
17178
17179 #######################################################################
17180 ## START OF ATOMIC CODE
17181 #######################################################################
17182
17183
17184
17185 # Check whether --with-mpl-atomic-primitives was given.
17186 if test "${with_mpl_atomic_primitives+set}" = set; then :
17187 withval=$with_mpl_atomic_primitives;
17188 else
17189 with_mpl_atomic_primitives=auto
17190 fi
17191
17192
17193
17194
17195
17196
17197 # The cast to long int works around a bug in the HP C Compiler
17198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17200 # This bug is HP SR number 8606223364.
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17202 $as_echo_n "checking size of void *... " >&6; }
17203 if ${ac_cv_sizeof_void_p+:} false; then :
17204 $as_echo_n "(cached) " >&6
17205 else
17206 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17207
17208 else
17209 if test "$ac_cv_type_void_p" = yes; then
17210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17212 as_fn_error 77 "cannot compute sizeof (void *)
17213 See \`config.log' for more details" "$LINENO" 5; }
17214 else
17215 ac_cv_sizeof_void_p=0
17216 fi
17217 fi
17218
17219 fi
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17221 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17222
17223
17224
17225 cat >>confdefs.h <<_ACEOF
17226 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17227 _ACEOF
17228
17229
17230
17231
17232 if test -z "${pac_save_CFLAGS_nesting}" ; then
17233 pac_save_CFLAGS_nesting=0
17234 fi
17235 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
17236 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
17237
17238 CFLAGS="$CFLAGS -I${srcdir}/include"
17239 # Add -Werror to favor the option that does not result in warnings.
17240 # Do not add the flag if the compiler doesn't accept -Werror
17241
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option -Werror" >&5
17243 $as_echo_n "checking whether C compiler accepts option -Werror... " >&6; }
17244 pac_opt="-Werror"
17245 ac_ext=c
17246 ac_cpp='$CPP $CPPFLAGS'
17247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17250
17251 CFLAGS_orig="$CFLAGS"
17252 CFLAGS_opt="$pac_opt $CFLAGS"
17253 pac_result="unknown"
17254
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257
17258 #include <stdio.h>
17259 const char hw[] = "Hello, World\n";
17260 int main(void){
17261 fputs (hw, stdout);
17262 return 0;
17263 }
17264
17265 _ACEOF
17266 CFLAGS="$CFLAGS_orig"
17267 rm -f pac_test1.log
17268
17269
17270 # START of PUSHVAL
17271
17272 if ${pac_stk_ac_link_level+:} false; then :
17273
17274 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
17275
17276 else
17277
17278 pac_stk_ac_link_level=0
17279
17280 fi
17281 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
17282 if test "x$pac_stk_ac_link_level" = x0; then :
17283
17284 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17285
17286 fi
17287
17288 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17289
17290
17291 # END of PUSHVAL
17292
17293 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
17294 if ac_fn_c_try_link "$LINENO"; then :
17295
17296
17297 CFLAGS="$CFLAGS_opt"
17298 rm -f pac_test2.log
17299
17300
17301 # START of PUSHVAL
17302
17303 if ${pac_stk_ac_link_level+:} false; then :
17304
17305 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
17306
17307 else
17308
17309 pac_stk_ac_link_level=0
17310
17311 fi
17312 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
17313 if test "x$pac_stk_ac_link_level" = x0; then :
17314
17315 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17316
17317 fi
17318
17319 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17320
17321
17322 # END of PUSHVAL
17323
17324 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
17325 if ac_fn_c_try_link "$LINENO"; then :
17326
17327
17328
17329 pac_TESTLOG="pac_test.log"
17330 rm -f $pac_TESTLOG
17331
17332 if
17333 { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
17334 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
17335 ac_status=$?
17336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 test $ac_status = 0; }; then :
17338
17339
17340 pac_result=yes
17341
17342
17343 else
17344
17345 $as_echo "$as_me: program exited with status $ac_status" >&5
17346
17347 (exit $ac_status)
17348
17349 $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
17350 cat $pac_TESTLOG >&5
17351 pac_result=no
17352
17353
17354
17355
17356 fi
17357
17358 rm -f $pac_TESTLOG
17359
17360
17361
17362 else
17363
17364
17365 pac_result=no
17366
17367
17368 fi
17369 rm -f core conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext
17371
17372 # START of POPVAL
17373
17374 if ${pac_stk_ac_link_level+:} false; then :
17375
17376 if test "x$pac_stk_ac_link_level" = x-1; then :
17377
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
17379 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
17380
17381 else
17382
17383 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17384 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
17385
17386 fi
17387
17388 else
17389
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
17391 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
17392
17393 fi
17394
17395 # END of POPVAL
17396
17397
17398
17399
17400 else
17401
17402
17403 pac_result=no
17404
17405
17406 fi
17407 rm -f core conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext
17409
17410 # START of POPVAL
17411
17412 if ${pac_stk_ac_link_level+:} false; then :
17413
17414 if test "x$pac_stk_ac_link_level" = x-1; then :
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
17417 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
17418
17419 else
17420
17421 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17422 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
17423
17424 fi
17425
17426 else
17427
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
17429 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
17430
17431 fi
17432
17433 # END of POPVAL
17434
17435
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
17437 $as_echo "$pac_result" >&6; }
17438 rm -f conftest.$ac_ext
17439
17440 if test "$pac_result" = "yes" ; then
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
17442 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
17443 pac_result=unknown
17444 CFLAGS="$CFLAGS_orig"
17445 rm -f pac_test3.log
17446
17447
17448 # START of PUSHVAL
17449
17450 if ${pac_stk_ac_compile_level+:} false; then :
17451
17452 as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
17453
17454 else
17455
17456 pac_stk_ac_compile_level=0
17457
17458 fi
17459 eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
17460 if test "x$pac_stk_ac_compile_level" = x0; then :
17461
17462 eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
17463
17464 fi
17465
17466 eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
17467
17468
17469 # END of PUSHVAL
17470
17471 ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17474
17475
17476 int foo(void);
17477 int foo(void){return 0;}
17478
17479
17480 _ACEOF
17481 if ac_fn_c_try_compile "$LINENO"; then :
17482
17483
17484
17485 { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
17486 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
17487 ac_status=$?
17488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 test $ac_status = 0; }
17490 saved_LIBS="$LIBS"
17491 LIBS="pac_conftest.$OBJEXT $LIBS"
17492
17493 rm -f pac_test4.log
17494
17495
17496 # START of PUSHVAL
17497
17498 if ${pac_stk_ac_link_level+:} false; then :
17499
17500 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
17501
17502 else
17503
17504 pac_stk_ac_link_level=0
17505
17506 fi
17507 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
17508 if test "x$pac_stk_ac_link_level" = x0; then :
17509
17510 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17511
17512 fi
17513
17514 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17515
17516
17517 # END of PUSHVAL
17518
17519 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 int main(void){return 0;}
17523 _ACEOF
17524 if ac_fn_c_try_link "$LINENO"; then :
17525
17526
17527 CFLAGS="$CFLAGS_opt"
17528 rm -f pac_test5.log
17529
17530
17531 # START of PUSHVAL
17532
17533 if ${pac_stk_ac_link_level+:} false; then :
17534
17535 as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
17536
17537 else
17538
17539 pac_stk_ac_link_level=0
17540
17541 fi
17542 eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
17543 if test "x$pac_stk_ac_link_level" = x0; then :
17544
17545 eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17546
17547 fi
17548
17549 eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17550
17551
17552 # END of PUSHVAL
17553
17554 ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17557 int main(void){return 0;}
17558 _ACEOF
17559 if ac_fn_c_try_link "$LINENO"; then :
17560
17561
17562
17563 pac_TESTLOG="pac_test.log"
17564 rm -f $pac_TESTLOG
17565
17566 if
17567 { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
17568 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
17569 ac_status=$?
17570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 test $ac_status = 0; }; then :
17572
17573
17574 pac_result=yes
17575
17576
17577 else
17578
17579 $as_echo "$as_me: program exited with status $ac_status" >&5
17580
17581 (exit $ac_status)
17582
17583 $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
17584 cat $pac_TESTLOG >&5
17585 pac_result=no
17586
17587
17588
17589
17590 fi
17591
17592 rm -f $pac_TESTLOG
17593
17594
17595
17596 else
17597
17598
17599 pac_result=no
17600
17601
17602 fi
17603 rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605
17606 # START of POPVAL
17607
17608 if ${pac_stk_ac_link_level+:} false; then :
17609
17610 if test "x$pac_stk_ac_link_level" = x-1; then :
17611
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
17613 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
17614
17615 else
17616
17617 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17618 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
17619
17620 fi
17621
17622 else
17623
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
17625 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
17626
17627 fi
17628
17629 # END of POPVAL
17630
17631
17632
17633
17634 else
17635
17636
17637 pac_result=no
17638
17639
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643
17644 # START of POPVAL
17645
17646 if ${pac_stk_ac_link_level+:} false; then :
17647
17648 if test "x$pac_stk_ac_link_level" = x-1; then :
17649
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
17651 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
17652
17653 else
17654
17655 eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
17656 as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val
17657
17658 fi
17659
17660 else
17661
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
17663 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
17664
17665 fi
17666
17667 # END of POPVAL
17668
17669
17670 LIBS="$saved_LIBS"
17671 rm -f pac_conftest.$OBJEXT
17672
17673
17674 else
17675
17676
17677 pac_result=no
17678
17679
17680 fi
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682
17683 # START of POPVAL
17684
17685 if ${pac_stk_ac_compile_level+:} false; then :
17686
17687 if test "x$pac_stk_ac_compile_level" = x-1; then :
17688
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
17690 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
17691
17692 else
17693
17694 eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
17695 as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val
17696
17697 fi
17698
17699 else
17700
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
17702 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
17703
17704 fi
17705
17706 # END of POPVAL
17707
17708
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
17710 $as_echo "$pac_result" >&6; }
17711 rm -f pac_test3.log pac_test4.log pac_test5.log
17712 fi
17713 rm -f pac_test1.log pac_test2.log
17714
17715 CFLAGS="$CFLAGS_orig"
17716 if test "$pac_result" = "yes" ; then
17717 CFLAGS="$CFLAGS -Werror"
17718 else
17719 :
17720 fi
17721 ac_ext=c
17722 ac_cpp='$CPP $CPPFLAGS'
17723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17726
17727
17728 mpl_atomic_primitives_set=false
17729 if test "$with_mpl_atomic_primitives" = "auto" \
17730 -o "$with_mpl_atomic_primitives" = "gcc_sync"; then
17731
17732 checked_specified_primitive=yes
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for gcc __sync intrinsics" >&5
17734 $as_echo_n "checking for support for gcc __sync intrinsics... " >&6; }
17735
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17738
17739 #include "mpl_atomic_gcc_sync.h"
17740 int main(void)
17741 {
17742 struct MPL_atomic_int_t a, b;
17743 int c;
17744
17745 MPL_atomic_relaxed_store_int(&a, 0);
17746 MPL_atomic_relaxed_store_int(&b, 1);
17747 c = MPL_atomic_relaxed_load_int(&a);
17748
17749 MPL_atomic_release_store_int(&a, 0);
17750 MPL_atomic_release_store_int(&b, 1);
17751 c = MPL_atomic_acquire_load_int(&a);
17752
17753 MPL_atomic_fetch_add_int(&a, 10);
17754 MPL_atomic_fetch_sub_int(&a, 10);
17755
17756 c = MPL_atomic_cas_int(&a, 10, 11);
17757 c = MPL_atomic_swap_int(&a, 10);
17758
17759 MPL_atomic_write_barrier();
17760 MPL_atomic_read_barrier();
17761 MPL_atomic_read_write_barrier();
17762
17763 return c;
17764 }
17765
17766
17767 _ACEOF
17768 if ac_fn_c_try_link "$LINENO"; then :
17769
17770 $as_echo "#define HAVE_GCC_INTRINSIC_SYNC 1" >>confdefs.h
17771
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17773 $as_echo "yes" >&6; }
17774 mpl_atomic_primitives_set=true
17775
17776 else
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17778 $as_echo "no" >&6; }
17779
17780 fi
17781 rm -f core conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext conftest.$ac_ext
17783
17784 fi
17785 if test "$with_mpl_atomic_primitives" = "auto" \
17786 -o "$with_mpl_atomic_primitives" = "gcc_atomic"; then
17787
17788 checked_specified_primitive=yes
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for gcc __atomic intrinsics" >&5
17790 $as_echo_n "checking for support for gcc __atomic intrinsics... " >&6; }
17791
17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17794
17795 #include "mpl_atomic_gcc_atomic.h"
17796 int main(void)
17797 {
17798 struct MPL_atomic_int_t a, b;
17799 int c;
17800
17801 MPL_atomic_relaxed_store_int(&a, 0);
17802 MPL_atomic_relaxed_store_int(&b, 1);
17803 c = MPL_atomic_relaxed_load_int(&a);
17804
17805 MPL_atomic_release_store_int(&a, 0);
17806 MPL_atomic_release_store_int(&b, 1);
17807 c = MPL_atomic_acquire_load_int(&a);
17808
17809 MPL_atomic_fetch_add_int(&a, 10);
17810 MPL_atomic_fetch_sub_int(&a, 10);
17811
17812 c = MPL_atomic_cas_int(&a, 10, 11);
17813 c = MPL_atomic_swap_int(&a, 10);
17814
17815 MPL_atomic_write_barrier();
17816 MPL_atomic_read_barrier();
17817 MPL_atomic_read_write_barrier();
17818
17819 return c;
17820 }
17821
17822
17823 _ACEOF
17824 if ac_fn_c_try_link "$LINENO"; then :
17825
17826 $as_echo "#define HAVE_GCC_INTRINSIC_ATOMIC 1" >>confdefs.h
17827
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17829 $as_echo "yes" >&6; }
17830 mpl_atomic_primitives_set=true
17831
17832 else
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834 $as_echo "no" >&6; }
17835
17836 fi
17837 rm -f core conftest.err conftest.$ac_objext \
17838 conftest$ac_exeext conftest.$ac_ext
17839
17840 fi
17841 if test "$with_mpl_atomic_primitives" = "auto" \
17842 -o "$with_mpl_atomic_primitives" = "c11"; then
17843
17844 checked_specified_primitive=yes
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for C11 atomic intrinsics" >&5
17846 $as_echo_n "checking for support for C11 atomic intrinsics... " >&6; }
17847
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h. */
17850
17851 #include "mpl_atomic_c11.h"
17852 int main(void)
17853 {
17854 struct MPL_atomic_int_t a, b;
17855 int c;
17856
17857 MPL_atomic_relaxed_store_int(&a, 0);
17858 MPL_atomic_relaxed_store_int(&b, 1);
17859 c = MPL_atomic_relaxed_load_int(&a);
17860
17861 MPL_atomic_release_store_int(&a, 0);
17862 MPL_atomic_release_store_int(&b, 1);
17863 c = MPL_atomic_acquire_load_int(&a);
17864
17865 MPL_atomic_fetch_add_int(&a, 10);
17866 MPL_atomic_fetch_sub_int(&a, 10);
17867
17868 c = MPL_atomic_cas_int(&a, 10, 11);
17869 c = MPL_atomic_swap_int(&a, 10);
17870
17871 MPL_atomic_write_barrier();
17872 MPL_atomic_read_barrier();
17873 MPL_atomic_read_write_barrier();
17874
17875 return c;
17876 }
17877
17878
17879 _ACEOF
17880 if ac_fn_c_try_link "$LINENO"; then :
17881
17882 $as_echo "#define HAVE_C11_ATOMICS 1" >>confdefs.h
17883
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17885 $as_echo "yes" >&6; }
17886 mpl_atomic_primitives_set=true
17887
17888 else
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17890 $as_echo "no" >&6; }
17891
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
17895
17896 fi
17897 if test "$with_mpl_atomic_primitives" = "auto" \
17898 -o "$with_mpl_atomic_primitives" = "windows"; then
17899
17900 checked_specified_primitive=yes
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for Windows NT atomic intrinsics" >&5
17902 $as_echo_n "checking for support for Windows NT atomic intrinsics... " >&6; }
17903
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17906
17907 #include "mpl_atomic_nt_intrinsics.h"
17908 int main(void)
17909 {
17910 struct MPL_atomic_int_t a, b;
17911 int c;
17912
17913 MPL_atomic_relaxed_store_int(&a, 0);
17914 MPL_atomic_relaxed_store_int(&b, 1);
17915 c = MPL_atomic_relaxed_load_int(&a);
17916
17917 MPL_atomic_release_store_int(&a, 0);
17918 MPL_atomic_release_store_int(&b, 1);
17919 c = MPL_atomic_acquire_load_int(&a);
17920
17921 MPL_atomic_fetch_add_int(&a, 10);
17922 MPL_atomic_fetch_sub_int(&a, 10);
17923
17924 c = MPL_atomic_cas_int(&a, 10, 11);
17925 c = MPL_atomic_swap_int(&a, 10);
17926
17927 MPL_atomic_write_barrier();
17928 MPL_atomic_read_barrier();
17929 MPL_atomic_read_write_barrier();
17930
17931 return c;
17932 }
17933
17934
17935 _ACEOF
17936 if ac_fn_c_try_link "$LINENO"; then :
17937
17938 $as_echo "#define HAVE_NT_INTRINSICS 1" >>confdefs.h
17939
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17941 $as_echo "yes" >&6; }
17942 mpl_atomic_primitives_set=true
17943
17944 else
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17946 $as_echo "no" >&6; }
17947
17948 fi
17949 rm -f core conftest.err conftest.$ac_objext \
17950 conftest$ac_exeext conftest.$ac_ext
17951
17952 fi
17953
17954 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
17955 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
17956 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
17957
17958
17959 if test "$mpl_atomic_primitives_set" = "true" ; then
17960 : # got native atomic support already
17961 elif test "$with_mpl_atomic_primitives" = "auto" \
17962 -o "$with_mpl_atomic_primitives" = "lock" ; then
17963
17964 $as_echo "#define USE_LOCK_BASED_PRIMITIVES 1" >>confdefs.h
17965
17966 mpl_atomic_primitives_set=true
17967 elif test "$with_mpl_atomic_primitives" = "no" \
17968 -o "$with_mpl_atomic_primitives" = "none" ; then
17969
17970 $as_echo "#define USE_NO_ATOMIC_PRIMITIVES 1" >>confdefs.h
17971
17972 mpl_atomic_primitives_set=true
17973 fi
17974
17975 if test "$mpl_atomic_primitives_set" = "false"; then
17976 as_fn_error $? "cannot support atomic primitives (argument: \
17977 \`--with-mpl-atomic-primitives=$with_mpl_atomic_primitives\`)" "$LINENO" 5
17978 fi
17979
17980 #######################################################################
17981 ## END OF ATOMIC CODE
17982 #######################################################################
17983
17984 #######################################################################
17985 ## START OF DBG CODE
17986 #######################################################################
17987
17988 # mkstemp() is a better replacement for mktemp()
17989 for ac_func in mkstemp
17990 do :
17991 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
17992 if test "x$ac_cv_func_mkstemp" = xyes; then :
17993 cat >>confdefs.h <<_ACEOF
17994 #define HAVE_MKSTEMP 1
17995 _ACEOF
17996
17997 fi
17998 done
17999
18000 if test "$ac_cv_func_mkstemp" = "yes" ; then
18001
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkstemp needs a declaration" >&5
18003 $as_echo_n "checking whether mkstemp needs a declaration... " >&6; }
18004 if ${pac_cv_func_decl_mkstemp+:} false; then :
18005 $as_echo_n "(cached) " >&6
18006 else
18007
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010 #include <stdlib.h>
18011 void (*fptr)(void) = (void(*)(void))mkstemp;
18012 _ACEOF
18013 if ac_fn_c_try_compile "$LINENO"; then :
18014 pac_cv_func_decl_mkstemp=no
18015 else
18016 pac_cv_func_decl_mkstemp=yes
18017 fi
18018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18019
18020 fi
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_mkstemp" >&5
18022 $as_echo "$pac_cv_func_decl_mkstemp" >&6; }
18023 if test "$pac_cv_func_decl_mkstemp" = "yes" ; then
18024
18025 cat >>confdefs.h <<_ACEOF
18026 #define NEEDS_MKSTEMP_DECL 1
18027 _ACEOF
18028
18029
18030 fi
18031
18032 else
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The mkstemp function is not provided in the standard library. Using a possibly insecure replacement function." >&5
18034 $as_echo "$as_me: WARNING: The mkstemp function is not provided in the standard library. Using a possibly insecure replacement function." >&2;}
18035 fi
18036 # fdopen() converts from an fd to a FILE*
18037 for ac_func in fdopen
18038 do :
18039 ac_fn_c_check_func "$LINENO" "fdopen" "ac_cv_func_fdopen"
18040 if test "x$ac_cv_func_fdopen" = xyes; then :
18041 cat >>confdefs.h <<_ACEOF
18042 #define HAVE_FDOPEN 1
18043 _ACEOF
18044
18045 fi
18046 done
18047
18048 if test "$ac_cv_func_fdopen" = "yes" ; then
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen needs a declaration" >&5
18051 $as_echo_n "checking whether fdopen needs a declaration... " >&6; }
18052 if ${pac_cv_func_decl_fdopen+:} false; then :
18053 $as_echo_n "(cached) " >&6
18054 else
18055
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058 #include <stdio.h>
18059 void (*fptr)(void) = (void(*)(void))fdopen;
18060 _ACEOF
18061 if ac_fn_c_try_compile "$LINENO"; then :
18062 pac_cv_func_decl_fdopen=no
18063 else
18064 pac_cv_func_decl_fdopen=yes
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067
18068 fi
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_fdopen" >&5
18070 $as_echo "$pac_cv_func_decl_fdopen" >&6; }
18071 if test "$pac_cv_func_decl_fdopen" = "yes" ; then
18072
18073 cat >>confdefs.h <<_ACEOF
18074 #define NEEDS_FDOPEN_DECL 1
18075 _ACEOF
18076
18077
18078 fi
18079
18080 fi
18081
18082 for ac_func in getpid
18083 do :
18084 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
18085 if test "x$ac_cv_func_getpid" = xyes; then :
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_GETPID 1
18088 _ACEOF
18089
18090 fi
18091 done
18092
18093
18094 #######################################################################
18095 ## END OF DBG CODE
18096 #######################################################################
18097
18098 #######################################################################
18099 ## START OF SHM CODE
18100 #######################################################################
18101
18102
18103
18104 # check how to allocate shared memory
18105
18106 # Check whether --with-shared-memory was given.
18107 if test "${with_shared_memory+set}" = set; then :
18108 withval=$with_shared_memory;
18109 else
18110 with_shared_memory=auto
18111 fi
18112
18113
18114 if test "$with_shared_memory" = auto -o "$with_shared_memory" = mmap; then
18115 found_mmap_funcs=yes
18116 for ac_func in mmap munmap
18117 do :
18118 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18121 cat >>confdefs.h <<_ACEOF
18122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18123 _ACEOF
18124
18125 else
18126 found_mmap_funcs=no
18127 fi
18128 done
18129
18130 if test "$found_mmap_funcs" = yes ; then
18131 with_shared_memory=mmap
18132
18133 $as_echo "#define USE_MMAP_SHM 1" >>confdefs.h
18134
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: Using a memory-mapped file for shared memory" >&5
18136 $as_echo "$as_me: Using a memory-mapped file for shared memory" >&6;}
18137 elif test "$with_shared_memory" = mmap ; then
18138 as_fn_error $? "cannot support shared memory: mmap() or munmap() not found" "$LINENO" 5
18139 fi
18140 fi
18141 if test "$with_shared_memory" = auto -o "$with_shared_memory" = sysv; then
18142 found_sysv_shm_funcs=yes
18143 for ac_func in shmget shmat shmctl shmdt
18144 do :
18145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18148 cat >>confdefs.h <<_ACEOF
18149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18150 _ACEOF
18151
18152 else
18153 found_sysv_shm_funcs=no
18154 fi
18155 done
18156
18157 if test "$found_sysv_shm_funcs" = yes ; then
18158 with_shared_memory=sysv
18159
18160 $as_echo "#define USE_SYSV_SHM 1" >>confdefs.h
18161
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: Using SYSV shared memory" >&5
18163 $as_echo "$as_me: Using SYSV shared memory" >&6;}
18164 elif test "$with_shared_memory" = sysv ; then
18165 as_fn_error $? "cannot support shared memory: sysv shared memory functions functions not found" "$LINENO" 5
18166 fi
18167 fi
18168 if test "$with_shared_memory" = nt ; then
18169
18170 $as_echo "#define USE_NT_SHM 1" >>confdefs.h
18171
18172 fi
18173
18174 if test "$with_shared_memory" = "auto" ; then
18175 as_fn_error $? "cannot support shared memory: need either sysv shared memory functions or mmap in order to support shared memory" "$LINENO" 5
18176 fi
18177
18178
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
18180 $as_echo_n "checking for library containing shm_open... " >&6; }
18181 if ${ac_cv_search_shm_open+:} false; then :
18182 $as_echo_n "(cached) " >&6
18183 else
18184 ac_func_search_save_LIBS=$LIBS
18185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18186 /* end confdefs.h. */
18187
18188 /* Override any GCC internal prototype to avoid an error.
18189 Use char because int might match the return type of a GCC
18190 builtin and then its argument prototype would still apply. */
18191 #ifdef __cplusplus
18192 extern "C"
18193 #endif
18194 char shm_open ();
18195 int
18196 main ()
18197 {
18198 return shm_open ();
18199 ;
18200 return 0;
18201 }
18202 _ACEOF
18203 for ac_lib in '' rt; do
18204 if test -z "$ac_lib"; then
18205 ac_res="none required"
18206 else
18207 ac_res=-l$ac_lib
18208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18209 fi
18210 if ac_fn_c_try_link "$LINENO"; then :
18211 ac_cv_search_shm_open=$ac_res
18212 fi
18213 rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext
18215 if ${ac_cv_search_shm_open+:} false; then :
18216 break
18217 fi
18218 done
18219 if ${ac_cv_search_shm_open+:} false; then :
18220
18221 else
18222 ac_cv_search_shm_open=no
18223 fi
18224 rm conftest.$ac_ext
18225 LIBS=$ac_func_search_save_LIBS
18226 fi
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
18228 $as_echo "$ac_cv_search_shm_open" >&6; }
18229 ac_res=$ac_cv_search_shm_open
18230 if test "$ac_res" != no; then :
18231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18232 have_shm_open=yes
18233 fi
18234
18235 if test "$have_shm_open" = yes ; then
18236
18237 $as_echo "#define HAVE_POSIX_SHM 1" >>confdefs.h
18238
18239
18240 $as_echo "#define HAVE_INITSHM 1" >>confdefs.h
18241
18242 fi
18243
18244 #######################################################################
18245 ## END OF SHM CODE
18246 #######################################################################
18247
18248 ## Enable creation of libtool-style versioning or no versioning
18249 # Check whether --enable-versioning was given.
18250 if test "${enable_versioning+set}" = set; then :
18251 enableval=$enable_versioning;
18252 else
18253 enable_versioning=yes
18254 fi
18255
18256
18257 if test "$enable_versioning" = "yes" ; then
18258 libmpl_so_versionflags="-version-info \$(libmpl_so_version)"
18259 else
18260 libmpl_so_versionflags="-avoid-version"
18261 fi
18262 export libmpl_so_versionflags
18263
18264
18265 #######################################################################
18266
18267 #######################################################################
18268 ## START OF GPU CODE
18269 #######################################################################
18270 GPU_SUPPORT=
18271
18272 have_gpu="no"
18273
18274 # Check CUDA availability
18275
18276
18277
18278
18279
18280 # Check whether --with-cuda was given.
18281 if test "${with_cuda+set}" = set; then :
18282 withval=$with_cuda;
18283 fi
18284
18285
18286
18287
18288 # Check whether --with-cuda-include was given.
18289 if test "${with_cuda_include+set}" = set; then :
18290 withval=$with_cuda_include; case "$withval" in #(
18291 yes|no|'') :
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-cuda-include=PATH expects a valid PATH" >&5
18293 $as_echo "$as_me: WARNING: --without-cuda-include=PATH expects a valid PATH" >&2;}
18294 with_cuda_include="" ;; #(
18295 *) :
18296 ;;
18297 esac
18298 fi
18299
18300
18301 # Check whether --with-cuda-lib was given.
18302 if test "${with_cuda_lib+set}" = set; then :
18303 withval=$with_cuda_lib; case "$withval" in #(
18304 yes|no|'') :
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-cuda-lib=PATH expects a valid PATH" >&5
18306 $as_echo "$as_me: WARNING: --without-cuda-lib=PATH expects a valid PATH" >&2;}
18307 with_cuda_lib="" ;; #(
18308 *) :
18309 ;;
18310 esac
18311 fi
18312
18313
18314 # The args have been sanitized into empty/non-empty values above.
18315 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
18316 # taking priority
18317
18318 case "${with_cuda}" in
18319 embedded|install)
18320 as_fn_error $? "embedded cuda is requested but we do not have the embedded version" "$LINENO" 5
18321 ;;
18322 yes|no)
18323 # skip
18324 ;;
18325 *)
18326 if test -n "${with_cuda_include}"; then :
18327
18328
18329
18330 if test x$pac_has_fgrep_word = "xyes"; then
18331 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_cuda_include}" >/dev/null 2>&1; then :
18332 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_cuda_include}', not appending" >&5
18333 else
18334 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_cuda_include}', appending" >&5
18335 CPPFLAGS="$CPPFLAGS -I${with_cuda_include}"
18336
18337
18338 fi
18339 else
18340 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_cuda_include}', appending" >&5
18341 CPPFLAGS="$CPPFLAGS -I${with_cuda_include}"
18342
18343 fi
18344
18345
18346 else
18347 if test -n "${with_cuda}"; then :
18348
18349
18350
18351 if test x$pac_has_fgrep_word = "xyes"; then
18352 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_cuda}/include" >/dev/null 2>&1; then :
18353 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_cuda}/include', not appending" >&5
18354 else
18355 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_cuda}/include', appending" >&5
18356 CPPFLAGS="$CPPFLAGS -I${with_cuda}/include"
18357
18358
18359 fi
18360 else
18361 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_cuda}/include', appending" >&5
18362 CPPFLAGS="$CPPFLAGS -I${with_cuda}/include"
18363
18364 fi
18365
18366
18367 fi
18368 fi
18369
18370 if test -n "${with_cuda_lib}"; then :
18371
18372
18373
18374 if test x$pac_has_fgrep_word = "xyes"; then
18375 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_cuda_lib}" >/dev/null 2>&1; then :
18376 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda_lib}', not appending" >&5
18377 else
18378 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda_lib}', appending" >&5
18379 LDFLAGS="$LDFLAGS -L${with_cuda_lib}"
18380
18381
18382 fi
18383 else
18384 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda_lib}', appending" >&5
18385 LDFLAGS="$LDFLAGS -L${with_cuda_lib}"
18386
18387 fi
18388
18389
18390
18391
18392
18393 if test x$pac_has_fgrep_word = "xyes"; then
18394 if echo "$RPATHS" | $FGREP -w -e "-R${with_cuda_lib}" >/dev/null 2>&1; then :
18395 echo "RPATHS(='$RPATHS') contains '-R${with_cuda_lib}', not appending" >&5
18396 else
18397 echo "RPATHS(='$RPATHS') does not contain '-R${with_cuda_lib}', appending" >&5
18398 RPATHS="$RPATHS -R${with_cuda_lib}"
18399
18400
18401 fi
18402 else
18403 echo "RPATHS(='$RPATHS') does not contain '-R${with_cuda_lib}', appending" >&5
18404 RPATHS="$RPATHS -R${with_cuda_lib}"
18405
18406 fi
18407
18408
18409
18410 else
18411 if test -n "${with_cuda}"; then :
18412
18413
18414
18415 if test x$pac_has_fgrep_word = "xyes"; then
18416 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_cuda}/lib" >/dev/null 2>&1; then :
18417 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda}/lib', not appending" >&5
18418 else
18419 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda}/lib', appending" >&5
18420 LDFLAGS="$LDFLAGS -L${with_cuda}/lib"
18421
18422
18423 fi
18424 else
18425 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda}/lib', appending" >&5
18426 LDFLAGS="$LDFLAGS -L${with_cuda}/lib"
18427
18428 fi
18429
18430
18431
18432
18433
18434 if test x$pac_has_fgrep_word = "xyes"; then
18435 if echo "$RPATHS" | $FGREP -w -e "-R${with_cuda}/lib" >/dev/null 2>&1; then :
18436 echo "RPATHS(='$RPATHS') contains '-R${with_cuda}/lib', not appending" >&5
18437 else
18438 echo "RPATHS(='$RPATHS') does not contain '-R${with_cuda}/lib', appending" >&5
18439 RPATHS="$RPATHS -R${with_cuda}/lib"
18440
18441
18442 fi
18443 else
18444 echo "RPATHS(='$RPATHS') does not contain '-R${with_cuda}/lib', appending" >&5
18445 RPATHS="$RPATHS -R${with_cuda}/lib"
18446
18447 fi
18448
18449
18450 if test -d "${with_cuda}/lib64"; then :
18451
18452
18453
18454 if test x$pac_has_fgrep_word = "xyes"; then
18455 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_cuda}/lib64" >/dev/null 2>&1; then :
18456 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda}/lib64', not appending" >&5
18457 else
18458 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda}/lib64', appending" >&5
18459 LDFLAGS="$LDFLAGS -L${with_cuda}/lib64"
18460
18461
18462 fi
18463 else
18464 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda}/lib64', appending" >&5
18465 LDFLAGS="$LDFLAGS -L${with_cuda}/lib64"
18466
18467 fi
18468
18469
18470
18471
18472
18473 if test x$pac_has_fgrep_word = "xyes"; then
18474 if echo "$RPATHS" | $FGREP -w -e "-R${with_cuda}/lib64" >/dev/null 2>&1; then :
18475 echo "RPATHS(='$RPATHS') contains '-R${with_cuda}/lib64', not appending" >&5
18476 else
18477 echo "RPATHS(='$RPATHS') does not contain '-R${with_cuda}/lib64', appending" >&5
18478 RPATHS="$RPATHS -R${with_cuda}/lib64"
18479
18480
18481 fi
18482 else
18483 echo "RPATHS(='$RPATHS') does not contain '-R${with_cuda}/lib64', appending" >&5
18484 RPATHS="$RPATHS -R${with_cuda}/lib64"
18485
18486 fi
18487
18488
18489
18490 fi
18491
18492 fi
18493
18494 fi
18495 ;;
18496 esac
18497
18498 if test "${with_cuda}" = "embedded" || test "${with_cuda}" = "install"; then
18499 pac_have_cuda=yes
18500 elif test "${with_cuda}" = "no" ; then
18501 pac_have_cuda=no
18502 else
18503
18504 for a in cudart ; do
18505
18506 failure=no
18507 ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
18508 if test "x$ac_cv_header_cuda_runtime_api_h" = xyes; then :
18509
18510 else
18511 failure=yes
18512 fi
18513
18514
18515 if test "$failure" = "no" ; then
18516
18517 if test -z "${pac_save_LIBS_nesting}" ; then
18518 pac_save_LIBS_nesting=0
18519 fi
18520 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
18521 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
18522
18523 as_ac_Lib=`$as_echo "ac_cv_lib_$a''_cudaStreamSynchronize" | $as_tr_sh`
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaStreamSynchronize in -l$a" >&5
18525 $as_echo_n "checking for cudaStreamSynchronize in -l$a... " >&6; }
18526 if eval \${$as_ac_Lib+:} false; then :
18527 $as_echo_n "(cached) " >&6
18528 else
18529 ac_check_lib_save_LIBS=$LIBS
18530 LIBS="-l$a $LIBS"
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18533
18534 /* Override any GCC internal prototype to avoid an error.
18535 Use char because int might match the return type of a GCC
18536 builtin and then its argument prototype would still apply. */
18537 #ifdef __cplusplus
18538 extern "C"
18539 #endif
18540 char cudaStreamSynchronize ();
18541 int
18542 main ()
18543 {
18544 return cudaStreamSynchronize ();
18545 ;
18546 return 0;
18547 }
18548 _ACEOF
18549 if ac_fn_c_try_link "$LINENO"; then :
18550 eval "$as_ac_Lib=yes"
18551 else
18552 eval "$as_ac_Lib=no"
18553 fi
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18557 fi
18558 eval ac_res=\$$as_ac_Lib
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18560 $as_echo "$ac_res" >&6; }
18561 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18562 cat >>confdefs.h <<_ACEOF
18563 #define `$as_echo "HAVE_LIB$a" | $as_tr_cpp` 1
18564 _ACEOF
18565
18566 LIBS="-l$a $LIBS"
18567
18568 else
18569 failure=yes
18570 fi
18571
18572
18573 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
18574 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
18575 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
18576
18577 fi
18578 if test "$failure" = "no" ; then
18579 pac_have_cuda=yes
18580 else
18581 pac_have_cuda=no
18582 fi
18583
18584 if test "$pac_have_cuda" = "yes"; then
18585
18586
18587
18588
18589 if test x$pac_has_fgrep_word = "xyes"; then
18590 if echo "$LIBS" | $FGREP -w -e "-l$a" >/dev/null 2>&1; then :
18591 echo "LIBS(='$LIBS') contains '-l$a', not appending" >&5
18592 else
18593 echo "LIBS(='$LIBS') does not contain '-l$a', appending" >&5
18594 LIBS="$LIBS -l$a"
18595
18596
18597 fi
18598 else
18599 echo "LIBS(='$LIBS') does not contain '-l$a', appending" >&5
18600 LIBS="$LIBS -l$a"
18601
18602 fi
18603
18604
18605
18606 break
18607 fi
18608 done
18609
18610 if test "${pac_have_cuda}" = "no" -a -n "${with_cuda}" ; then
18611 as_fn_error $? "--with-cuda is given but not found" "$LINENO" 5
18612 fi
18613 fi
18614
18615 if test "$pac_have_cuda" = "yes" ; then
18616 # also require -lcuda (in addition to -lcudart)
18617
18618 failure=no
18619 ac_fn_c_check_header_mongrel "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default"
18620 if test "x$ac_cv_header_cuda_h" = xyes; then :
18621
18622 else
18623 failure=yes
18624 fi
18625
18626
18627 if test "$failure" = "no" ; then
18628
18629 if test -z "${pac_save_LIBS_nesting}" ; then
18630 pac_save_LIBS_nesting=0
18631 fi
18632 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
18633 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
18634
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuMemGetAddressRange in -lcuda" >&5
18636 $as_echo_n "checking for cuMemGetAddressRange in -lcuda... " >&6; }
18637 if ${ac_cv_lib_cuda_cuMemGetAddressRange+:} false; then :
18638 $as_echo_n "(cached) " >&6
18639 else
18640 ac_check_lib_save_LIBS=$LIBS
18641 LIBS="-lcuda $LIBS"
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18644
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 char cuMemGetAddressRange ();
18652 int
18653 main ()
18654 {
18655 return cuMemGetAddressRange ();
18656 ;
18657 return 0;
18658 }
18659 _ACEOF
18660 if ac_fn_c_try_link "$LINENO"; then :
18661 ac_cv_lib_cuda_cuMemGetAddressRange=yes
18662 else
18663 ac_cv_lib_cuda_cuMemGetAddressRange=no
18664 fi
18665 rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18667 LIBS=$ac_check_lib_save_LIBS
18668 fi
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuMemGetAddressRange" >&5
18670 $as_echo "$ac_cv_lib_cuda_cuMemGetAddressRange" >&6; }
18671 if test "x$ac_cv_lib_cuda_cuMemGetAddressRange" = xyes; then :
18672 cat >>confdefs.h <<_ACEOF
18673 #define HAVE_LIBCUDA 1
18674 _ACEOF
18675
18676 LIBS="-lcuda $LIBS"
18677
18678 else
18679 failure=yes
18680 fi
18681
18682
18683 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
18684 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
18685 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
18686
18687 fi
18688 if test "$failure" = "no" ; then
18689 pac_have_cuda=yes
18690 else
18691 pac_have_cuda=no
18692 fi
18693
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18695 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18696 if ${ac_cv_lib_dl_dlopen+:} false; then :
18697 $as_echo_n "(cached) " >&6
18698 else
18699 ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-ldl $LIBS"
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18703
18704 /* Override any GCC internal prototype to avoid an error.
18705 Use char because int might match the return type of a GCC
18706 builtin and then its argument prototype would still apply. */
18707 #ifdef __cplusplus
18708 extern "C"
18709 #endif
18710 char dlopen ();
18711 int
18712 main ()
18713 {
18714 return dlopen ();
18715 ;
18716 return 0;
18717 }
18718 _ACEOF
18719 if ac_fn_c_try_link "$LINENO"; then :
18720 ac_cv_lib_dl_dlopen=yes
18721 else
18722 ac_cv_lib_dl_dlopen=no
18723 fi
18724 rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18727 fi
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18729 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18730 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18731 cat >>confdefs.h <<_ACEOF
18732 #define HAVE_LIBDL 1
18733 _ACEOF
18734
18735 LIBS="-ldl $LIBS"
18736
18737 else
18738 as_fn_error $? "dlopen not found. MPL CUDA support requires libdl." "$LINENO" 5
18739 fi
18740
18741 fi
18742 if test "$pac_have_cuda" = "yes" ; then
18743 if test -z "$NVCC"; then
18744 if test -n "$with_cuda" ; then
18745 # Extract the first word of "nvcc", so it can be a program name with args.
18746 set dummy nvcc; ac_word=$2
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18748 $as_echo_n "checking for $ac_word... " >&6; }
18749 if ${ac_cv_path_NVCC+:} false; then :
18750 $as_echo_n "(cached) " >&6
18751 else
18752 case $NVCC in
18753 [\\/]* | ?:[\\/]*)
18754 ac_cv_path_NVCC="$NVCC" # Let the user override the test with a path.
18755 ;;
18756 *)
18757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18758 as_dummy="$with_cuda/bin:$PATH"
18759 for as_dir in $as_dummy
18760 do
18761 IFS=$as_save_IFS
18762 test -z "$as_dir" && as_dir=.
18763 for ac_exec_ext in '' $ac_executable_extensions; do
18764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18765 ac_cv_path_NVCC="$as_dir/$ac_word$ac_exec_ext"
18766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18767 break 2
18768 fi
18769 done
18770 done
18771 IFS=$as_save_IFS
18772
18773 test -z "$ac_cv_path_NVCC" && ac_cv_path_NVCC="nvcc_not_found"
18774 ;;
18775 esac
18776 fi
18777 NVCC=$ac_cv_path_NVCC
18778 if test -n "$NVCC"; then
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NVCC" >&5
18780 $as_echo "$NVCC" >&6; }
18781 else
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18783 $as_echo "no" >&6; }
18784 fi
18785
18786
18787 else
18788 # Extract the first word of "nvcc", so it can be a program name with args.
18789 set dummy nvcc; ac_word=$2
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18791 $as_echo_n "checking for $ac_word... " >&6; }
18792 if ${ac_cv_path_NVCC+:} false; then :
18793 $as_echo_n "(cached) " >&6
18794 else
18795 case $NVCC in
18796 [\\/]* | ?:[\\/]*)
18797 ac_cv_path_NVCC="$NVCC" # Let the user override the test with a path.
18798 ;;
18799 *)
18800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18801 for as_dir in $PATH
18802 do
18803 IFS=$as_save_IFS
18804 test -z "$as_dir" && as_dir=.
18805 for ac_exec_ext in '' $ac_executable_extensions; do
18806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18807 ac_cv_path_NVCC="$as_dir/$ac_word$ac_exec_ext"
18808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18809 break 2
18810 fi
18811 done
18812 done
18813 IFS=$as_save_IFS
18814
18815 test -z "$ac_cv_path_NVCC" && ac_cv_path_NVCC="nvcc_not_found"
18816 ;;
18817 esac
18818 fi
18819 NVCC=$ac_cv_path_NVCC
18820 if test -n "$NVCC"; then
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NVCC" >&5
18822 $as_echo "$NVCC" >&6; }
18823 else
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18825 $as_echo "no" >&6; }
18826 fi
18827
18828
18829 fi
18830 if test -n "$CC" ; then
18831 # - pgcc/nvc doesn't work, use pgc++/nvc++ instead
18832 # - Extra options such as `gcc -std=gnu99` doesn't work, strip the option
18833 NVCC_CCBIN=$(echo "$CC" | sed -e 's/nvc/nvc++/g' -e 's/pgcc/pgc++/g' -e's/ -std=.*//g')
18834 NVCC="$NVCC -ccbin $NVCC_CCBIN"
18835 fi
18836 fi
18837
18838 # save language settings, customize ac_ext and ac_compile to support CUDA
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nvcc works" >&5
18840 $as_echo_n "checking whether nvcc works... " >&6; }
18841 ac_ext=c
18842 ac_cpp='$CPP $CPPFLAGS'
18843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18846
18847 ac_ext=cu
18848 ac_compile='$NVCC -c conftest.$ac_ext >&5'
18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18850 /* end confdefs.h. */
18851 __global__ void foo(int x) {}
18852 int
18853 main ()
18854 {
18855
18856 ;
18857 return 0;
18858 }
18859 _ACEOF
18860 if ac_fn_c_try_compile "$LINENO"; then :
18861
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18863 $as_echo "yes" >&6; }
18864
18865 else
18866
18867 pac_have_cuda=no
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18869 $as_echo "no" >&6; }
18870
18871 fi
18872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873 # done with CUDA, back to C
18874 ac_ext=c
18875 ac_cpp='$CPP $CPPFLAGS'
18876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18879
18880 fi
18881
18882 if test "$pac_have_cuda" = "yes" ; then
18883 # nvcc compiled applications need libstdc++ to be able to link
18884 # with a C compiler
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can link libstdc++" >&5
18886 $as_echo_n "checking if $CC can link libstdc++... " >&6; }
18887
18888 if test -z "${pac_save_LIBS_nesting}" ; then
18889 pac_save_LIBS_nesting=0
18890 fi
18891 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
18892 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
18893
18894
18895
18896
18897 if test x$pac_has_fgrep_word = "xyes"; then
18898 if echo "$LIBS" | $FGREP -w -e "-lstdc++" >/dev/null 2>&1; then :
18899 echo "LIBS(='$LIBS') contains '-lstdc++', not appending" >&5
18900 else
18901 echo "LIBS(='$LIBS') does not contain '-lstdc++', appending" >&5
18902 LIBS="$LIBS -lstdc++"
18903
18904
18905 fi
18906 else
18907 echo "LIBS(='$LIBS') does not contain '-lstdc++', appending" >&5
18908 LIBS="$LIBS -lstdc++"
18909
18910 fi
18911
18912
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18915 int x = 5;
18916 int
18917 main ()
18918 {
18919 x++;
18920 ;
18921 return 0;
18922 }
18923 _ACEOF
18924 if ac_fn_c_try_link "$LINENO"; then :
18925 libstdcpp_works=yes
18926 else
18927 libstdcpp_works=no
18928 fi
18929 rm -f core conftest.err conftest.$ac_objext \
18930 conftest$ac_exeext conftest.$ac_ext
18931
18932 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
18933 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
18934 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
18935
18936 if test "${libstdcpp_works}" = "yes" ; then
18937
18938
18939
18940 if test x$pac_has_fgrep_word = "xyes"; then
18941 if echo "$LIBS" | $FGREP -w -e "-lstdc++" >/dev/null 2>&1; then :
18942 echo "LIBS(='$LIBS') contains '-lstdc++', not appending" >&5
18943 else
18944 echo "LIBS(='$LIBS') does not contain '-lstdc++', appending" >&5
18945 LIBS="$LIBS -lstdc++"
18946
18947
18948 fi
18949 else
18950 echo "LIBS(='$LIBS') does not contain '-lstdc++', appending" >&5
18951 LIBS="$LIBS -lstdc++"
18952
18953 fi
18954
18955
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18957 $as_echo "yes" >&6; }
18958 else
18959 pac_have_cuda=no
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18961 $as_echo "no" >&6; }
18962 fi
18963 fi
18964 if test "X${pac_have_cuda}" = "Xyes" ; then
18965
18966
18967
18968
18969 if test x$pac_has_fgrep_word = "xyes"; then
18970 if echo "$LIBS" | $FGREP -w -e "-lcuda" >/dev/null 2>&1; then :
18971 echo "LIBS(='$LIBS') contains '-lcuda', not appending" >&5
18972 else
18973 echo "LIBS(='$LIBS') does not contain '-lcuda', appending" >&5
18974 LIBS="$LIBS -lcuda"
18975
18976
18977 fi
18978 else
18979 echo "LIBS(='$LIBS') does not contain '-lcuda', appending" >&5
18980 LIBS="$LIBS -lcuda"
18981
18982 fi
18983
18984
18985
18986
18987 $as_echo "#define HAVE_CUDA 1" >>confdefs.h
18988
18989 have_gpu="yes"
18990 GPU_SUPPORT="CUDA"
18991 fi
18992 if test "X${pac_have_cuda}" = "Xyes"; then
18993 MPL_HAVE_CUDA_TRUE=
18994 MPL_HAVE_CUDA_FALSE='#'
18995 else
18996 MPL_HAVE_CUDA_TRUE='#'
18997 MPL_HAVE_CUDA_FALSE=
18998 fi
18999
19000
19001 # Check Level-Zero availability
19002 if test "$have_gpu" = "no" ; then
19003
19004
19005
19006
19007 # Check whether --with-ze was given.
19008 if test "${with_ze+set}" = set; then :
19009 withval=$with_ze;
19010 fi
19011
19012
19013
19014
19015 # Check whether --with-ze-include was given.
19016 if test "${with_ze_include+set}" = set; then :
19017 withval=$with_ze_include; case "$withval" in #(
19018 yes|no|'') :
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ze-include=PATH expects a valid PATH" >&5
19020 $as_echo "$as_me: WARNING: --without-ze-include=PATH expects a valid PATH" >&2;}
19021 with_ze_include="" ;; #(
19022 *) :
19023 ;;
19024 esac
19025 fi
19026
19027
19028 # Check whether --with-ze-lib was given.
19029 if test "${with_ze_lib+set}" = set; then :
19030 withval=$with_ze_lib; case "$withval" in #(
19031 yes|no|'') :
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ze-lib=PATH expects a valid PATH" >&5
19033 $as_echo "$as_me: WARNING: --without-ze-lib=PATH expects a valid PATH" >&2;}
19034 with_ze_lib="" ;; #(
19035 *) :
19036 ;;
19037 esac
19038 fi
19039
19040
19041 # The args have been sanitized into empty/non-empty values above.
19042 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
19043 # taking priority
19044
19045 case "${with_ze}" in
19046 embedded|install)
19047 as_fn_error $? "embedded ze is requested but we do not have the embedded version" "$LINENO" 5
19048 ;;
19049 yes|no)
19050 # skip
19051 ;;
19052 *)
19053 if test -n "${with_ze_include}"; then :
19054
19055
19056
19057 if test x$pac_has_fgrep_word = "xyes"; then
19058 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_ze_include}" >/dev/null 2>&1; then :
19059 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ze_include}', not appending" >&5
19060 else
19061 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ze_include}', appending" >&5
19062 CPPFLAGS="$CPPFLAGS -I${with_ze_include}"
19063
19064
19065 fi
19066 else
19067 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ze_include}', appending" >&5
19068 CPPFLAGS="$CPPFLAGS -I${with_ze_include}"
19069
19070 fi
19071
19072
19073 else
19074 if test -n "${with_ze}"; then :
19075
19076
19077
19078 if test x$pac_has_fgrep_word = "xyes"; then
19079 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_ze}/include" >/dev/null 2>&1; then :
19080 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ze}/include', not appending" >&5
19081 else
19082 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ze}/include', appending" >&5
19083 CPPFLAGS="$CPPFLAGS -I${with_ze}/include"
19084
19085
19086 fi
19087 else
19088 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ze}/include', appending" >&5
19089 CPPFLAGS="$CPPFLAGS -I${with_ze}/include"
19090
19091 fi
19092
19093
19094 fi
19095 fi
19096
19097 if test -n "${with_ze_lib}"; then :
19098
19099
19100
19101 if test x$pac_has_fgrep_word = "xyes"; then
19102 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_ze_lib}" >/dev/null 2>&1; then :
19103 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze_lib}', not appending" >&5
19104 else
19105 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze_lib}', appending" >&5
19106 LDFLAGS="$LDFLAGS -L${with_ze_lib}"
19107
19108
19109 fi
19110 else
19111 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze_lib}', appending" >&5
19112 LDFLAGS="$LDFLAGS -L${with_ze_lib}"
19113
19114 fi
19115
19116
19117
19118
19119
19120 if test x$pac_has_fgrep_word = "xyes"; then
19121 if echo "$RPATHS" | $FGREP -w -e "-R${with_ze_lib}" >/dev/null 2>&1; then :
19122 echo "RPATHS(='$RPATHS') contains '-R${with_ze_lib}', not appending" >&5
19123 else
19124 echo "RPATHS(='$RPATHS') does not contain '-R${with_ze_lib}', appending" >&5
19125 RPATHS="$RPATHS -R${with_ze_lib}"
19126
19127
19128 fi
19129 else
19130 echo "RPATHS(='$RPATHS') does not contain '-R${with_ze_lib}', appending" >&5
19131 RPATHS="$RPATHS -R${with_ze_lib}"
19132
19133 fi
19134
19135
19136
19137 else
19138 if test -n "${with_ze}"; then :
19139
19140
19141
19142 if test x$pac_has_fgrep_word = "xyes"; then
19143 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_ze}/lib" >/dev/null 2>&1; then :
19144 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze}/lib', not appending" >&5
19145 else
19146 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze}/lib', appending" >&5
19147 LDFLAGS="$LDFLAGS -L${with_ze}/lib"
19148
19149
19150 fi
19151 else
19152 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze}/lib', appending" >&5
19153 LDFLAGS="$LDFLAGS -L${with_ze}/lib"
19154
19155 fi
19156
19157
19158
19159
19160
19161 if test x$pac_has_fgrep_word = "xyes"; then
19162 if echo "$RPATHS" | $FGREP -w -e "-R${with_ze}/lib" >/dev/null 2>&1; then :
19163 echo "RPATHS(='$RPATHS') contains '-R${with_ze}/lib', not appending" >&5
19164 else
19165 echo "RPATHS(='$RPATHS') does not contain '-R${with_ze}/lib', appending" >&5
19166 RPATHS="$RPATHS -R${with_ze}/lib"
19167
19168
19169 fi
19170 else
19171 echo "RPATHS(='$RPATHS') does not contain '-R${with_ze}/lib', appending" >&5
19172 RPATHS="$RPATHS -R${with_ze}/lib"
19173
19174 fi
19175
19176
19177 if test -d "${with_ze}/lib64"; then :
19178
19179
19180
19181 if test x$pac_has_fgrep_word = "xyes"; then
19182 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_ze}/lib64" >/dev/null 2>&1; then :
19183 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze}/lib64', not appending" >&5
19184 else
19185 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze}/lib64', appending" >&5
19186 LDFLAGS="$LDFLAGS -L${with_ze}/lib64"
19187
19188
19189 fi
19190 else
19191 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze}/lib64', appending" >&5
19192 LDFLAGS="$LDFLAGS -L${with_ze}/lib64"
19193
19194 fi
19195
19196
19197
19198
19199
19200 if test x$pac_has_fgrep_word = "xyes"; then
19201 if echo "$RPATHS" | $FGREP -w -e "-R${with_ze}/lib64" >/dev/null 2>&1; then :
19202 echo "RPATHS(='$RPATHS') contains '-R${with_ze}/lib64', not appending" >&5
19203 else
19204 echo "RPATHS(='$RPATHS') does not contain '-R${with_ze}/lib64', appending" >&5
19205 RPATHS="$RPATHS -R${with_ze}/lib64"
19206
19207
19208 fi
19209 else
19210 echo "RPATHS(='$RPATHS') does not contain '-R${with_ze}/lib64', appending" >&5
19211 RPATHS="$RPATHS -R${with_ze}/lib64"
19212
19213 fi
19214
19215
19216
19217 fi
19218
19219 fi
19220
19221 fi
19222 ;;
19223 esac
19224
19225 if test "${with_ze}" = "embedded" || test "${with_ze}" = "install"; then
19226 pac_have_ze=yes
19227 elif test "${with_ze}" = "no" ; then
19228 pac_have_ze=no
19229 else
19230
19231 for a in ze_loader ; do
19232
19233 failure=no
19234 ac_fn_c_check_header_mongrel "$LINENO" "level_zero/ze_api.h" "ac_cv_header_level_zero_ze_api_h" "$ac_includes_default"
19235 if test "x$ac_cv_header_level_zero_ze_api_h" = xyes; then :
19236
19237 else
19238 failure=yes
19239 fi
19240
19241
19242 if test "$failure" = "no" ; then
19243
19244 if test -z "${pac_save_LIBS_nesting}" ; then
19245 pac_save_LIBS_nesting=0
19246 fi
19247 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
19248 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
19249
19250 as_ac_Lib=`$as_echo "ac_cv_lib_$a''_zeInit" | $as_tr_sh`
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zeInit in -l$a" >&5
19252 $as_echo_n "checking for zeInit in -l$a... " >&6; }
19253 if eval \${$as_ac_Lib+:} false; then :
19254 $as_echo_n "(cached) " >&6
19255 else
19256 ac_check_lib_save_LIBS=$LIBS
19257 LIBS="-l$a $LIBS"
19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19259 /* end confdefs.h. */
19260
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19264 #ifdef __cplusplus
19265 extern "C"
19266 #endif
19267 char zeInit ();
19268 int
19269 main ()
19270 {
19271 return zeInit ();
19272 ;
19273 return 0;
19274 }
19275 _ACEOF
19276 if ac_fn_c_try_link "$LINENO"; then :
19277 eval "$as_ac_Lib=yes"
19278 else
19279 eval "$as_ac_Lib=no"
19280 fi
19281 rm -f core conftest.err conftest.$ac_objext \
19282 conftest$ac_exeext conftest.$ac_ext
19283 LIBS=$ac_check_lib_save_LIBS
19284 fi
19285 eval ac_res=\$$as_ac_Lib
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19287 $as_echo "$ac_res" >&6; }
19288 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19289 cat >>confdefs.h <<_ACEOF
19290 #define `$as_echo "HAVE_LIB$a" | $as_tr_cpp` 1
19291 _ACEOF
19292
19293 LIBS="-l$a $LIBS"
19294
19295 else
19296 failure=yes
19297 fi
19298
19299
19300 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
19301 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
19302 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
19303
19304 fi
19305 if test "$failure" = "no" ; then
19306 pac_have_ze=yes
19307 else
19308 pac_have_ze=no
19309 fi
19310
19311 if test "$pac_have_ze" = "yes"; then
19312
19313
19314
19315
19316 if test x$pac_has_fgrep_word = "xyes"; then
19317 if echo "$LIBS" | $FGREP -w -e "-l$a" >/dev/null 2>&1; then :
19318 echo "LIBS(='$LIBS') contains '-l$a', not appending" >&5
19319 else
19320 echo "LIBS(='$LIBS') does not contain '-l$a', appending" >&5
19321 LIBS="$LIBS -l$a"
19322
19323
19324 fi
19325 else
19326 echo "LIBS(='$LIBS') does not contain '-l$a', appending" >&5
19327 LIBS="$LIBS -l$a"
19328
19329 fi
19330
19331
19332
19333 break
19334 fi
19335 done
19336
19337 if test "${pac_have_ze}" = "no" -a -n "${with_ze}" ; then
19338 as_fn_error $? "--with-ze is given but not found" "$LINENO" 5
19339 fi
19340 fi
19341
19342 fi
19343 if test "X${pac_have_ze}" = "Xyes" ; then
19344
19345
19346
19347
19348 if test x$pac_has_fgrep_word = "xyes"; then
19349 if echo "$LIBS" | $FGREP -w -e "-lze_loader" >/dev/null 2>&1; then :
19350 echo "LIBS(='$LIBS') contains '-lze_loader', not appending" >&5
19351 else
19352 echo "LIBS(='$LIBS') does not contain '-lze_loader', appending" >&5
19353 LIBS="$LIBS -lze_loader"
19354
19355
19356 fi
19357 else
19358 echo "LIBS(='$LIBS') does not contain '-lze_loader', appending" >&5
19359 LIBS="$LIBS -lze_loader"
19360
19361 fi
19362
19363
19364
19365
19366 $as_echo "#define HAVE_ZE 1" >>confdefs.h
19367
19368 have_gpu="yes"
19369 GPU_SUPPORT="ZE"
19370 for ac_header in drm/i915_drm.h
19371 do :
19372 ac_fn_c_check_header_mongrel "$LINENO" "drm/i915_drm.h" "ac_cv_header_drm_i915_drm_h" "$ac_includes_default"
19373 if test "x$ac_cv_header_drm_i915_drm_h" = xyes; then :
19374 cat >>confdefs.h <<_ACEOF
19375 #define HAVE_DRM_I915_DRM_H 1
19376 _ACEOF
19377
19378 fi
19379
19380 done
19381
19382 for ac_header in libdrm/i915_drm.h
19383 do :
19384 ac_fn_c_check_header_mongrel "$LINENO" "libdrm/i915_drm.h" "ac_cv_header_libdrm_i915_drm_h" "$ac_includes_default"
19385 if test "x$ac_cv_header_libdrm_i915_drm_h" = xyes; then :
19386 cat >>confdefs.h <<_ACEOF
19387 #define HAVE_LIBDRM_I915_DRM_H 1
19388 _ACEOF
19389
19390 fi
19391
19392 done
19393
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19396 if ${ac_cv_lib_dl_dlopen+:} false; then :
19397 $as_echo_n "(cached) " >&6
19398 else
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-ldl $LIBS"
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403
19404 /* Override any GCC internal prototype to avoid an error.
19405 Use char because int might match the return type of a GCC
19406 builtin and then its argument prototype would still apply. */
19407 #ifdef __cplusplus
19408 extern "C"
19409 #endif
19410 char dlopen ();
19411 int
19412 main ()
19413 {
19414 return dlopen ();
19415 ;
19416 return 0;
19417 }
19418 _ACEOF
19419 if ac_fn_c_try_link "$LINENO"; then :
19420 ac_cv_lib_dl_dlopen=yes
19421 else
19422 ac_cv_lib_dl_dlopen=no
19423 fi
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19427 fi
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19429 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19430 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_LIBDL 1
19433 _ACEOF
19434
19435 LIBS="-ldl $LIBS"
19436
19437 else
19438 as_fn_error $? "dlopen not found. MPL ZE support requires libdl." "$LINENO" 5
19439 fi
19440
19441 fi
19442 if test "X${pac_have_ze}" = "Xyes"; then
19443 MPL_HAVE_ZE_TRUE=
19444 MPL_HAVE_ZE_FALSE='#'
19445 else
19446 MPL_HAVE_ZE_TRUE='#'
19447 MPL_HAVE_ZE_FALSE=
19448 fi
19449
19450
19451 # Check HIP availability
19452 if test "$have_gpu" = "no" ; then
19453
19454
19455
19456
19457 # Check whether --with-hip was given.
19458 if test "${with_hip+set}" = set; then :
19459 withval=$with_hip;
19460 fi
19461
19462
19463
19464
19465 # Check whether --with-hip-include was given.
19466 if test "${with_hip_include+set}" = set; then :
19467 withval=$with_hip_include; case "$withval" in #(
19468 yes|no|'') :
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-hip-include=PATH expects a valid PATH" >&5
19470 $as_echo "$as_me: WARNING: --without-hip-include=PATH expects a valid PATH" >&2;}
19471 with_hip_include="" ;; #(
19472 *) :
19473 ;;
19474 esac
19475 fi
19476
19477
19478 # Check whether --with-hip-lib was given.
19479 if test "${with_hip_lib+set}" = set; then :
19480 withval=$with_hip_lib; case "$withval" in #(
19481 yes|no|'') :
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-hip-lib=PATH expects a valid PATH" >&5
19483 $as_echo "$as_me: WARNING: --without-hip-lib=PATH expects a valid PATH" >&2;}
19484 with_hip_lib="" ;; #(
19485 *) :
19486 ;;
19487 esac
19488 fi
19489
19490
19491 # The args have been sanitized into empty/non-empty values above.
19492 # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
19493 # taking priority
19494
19495 case "${with_hip}" in
19496 embedded|install)
19497 as_fn_error $? "embedded hip is requested but we do not have the embedded version" "$LINENO" 5
19498 ;;
19499 yes|no)
19500 # skip
19501 ;;
19502 *)
19503 if test -n "${with_hip_include}"; then :
19504
19505
19506
19507 if test x$pac_has_fgrep_word = "xyes"; then
19508 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_hip_include}" >/dev/null 2>&1; then :
19509 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hip_include}', not appending" >&5
19510 else
19511 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hip_include}', appending" >&5
19512 CPPFLAGS="$CPPFLAGS -I${with_hip_include}"
19513
19514
19515 fi
19516 else
19517 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hip_include}', appending" >&5
19518 CPPFLAGS="$CPPFLAGS -I${with_hip_include}"
19519
19520 fi
19521
19522
19523 else
19524 if test -n "${with_hip}"; then :
19525
19526
19527
19528 if test x$pac_has_fgrep_word = "xyes"; then
19529 if echo "$CPPFLAGS" | $FGREP -w -e "-I${with_hip}/include" >/dev/null 2>&1; then :
19530 echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hip}/include', not appending" >&5
19531 else
19532 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hip}/include', appending" >&5
19533 CPPFLAGS="$CPPFLAGS -I${with_hip}/include"
19534
19535
19536 fi
19537 else
19538 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hip}/include', appending" >&5
19539 CPPFLAGS="$CPPFLAGS -I${with_hip}/include"
19540
19541 fi
19542
19543
19544 fi
19545 fi
19546
19547 if test -n "${with_hip_lib}"; then :
19548
19549
19550
19551 if test x$pac_has_fgrep_word = "xyes"; then
19552 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_hip_lib}" >/dev/null 2>&1; then :
19553 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hip_lib}', not appending" >&5
19554 else
19555 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip_lib}', appending" >&5
19556 LDFLAGS="$LDFLAGS -L${with_hip_lib}"
19557
19558
19559 fi
19560 else
19561 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip_lib}', appending" >&5
19562 LDFLAGS="$LDFLAGS -L${with_hip_lib}"
19563
19564 fi
19565
19566
19567
19568
19569
19570 if test x$pac_has_fgrep_word = "xyes"; then
19571 if echo "$RPATHS" | $FGREP -w -e "-R${with_hip_lib}" >/dev/null 2>&1; then :
19572 echo "RPATHS(='$RPATHS') contains '-R${with_hip_lib}', not appending" >&5
19573 else
19574 echo "RPATHS(='$RPATHS') does not contain '-R${with_hip_lib}', appending" >&5
19575 RPATHS="$RPATHS -R${with_hip_lib}"
19576
19577
19578 fi
19579 else
19580 echo "RPATHS(='$RPATHS') does not contain '-R${with_hip_lib}', appending" >&5
19581 RPATHS="$RPATHS -R${with_hip_lib}"
19582
19583 fi
19584
19585
19586
19587 else
19588 if test -n "${with_hip}"; then :
19589
19590
19591
19592 if test x$pac_has_fgrep_word = "xyes"; then
19593 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_hip}/lib" >/dev/null 2>&1; then :
19594 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hip}/lib', not appending" >&5
19595 else
19596 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip}/lib', appending" >&5
19597 LDFLAGS="$LDFLAGS -L${with_hip}/lib"
19598
19599
19600 fi
19601 else
19602 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip}/lib', appending" >&5
19603 LDFLAGS="$LDFLAGS -L${with_hip}/lib"
19604
19605 fi
19606
19607
19608
19609
19610
19611 if test x$pac_has_fgrep_word = "xyes"; then
19612 if echo "$RPATHS" | $FGREP -w -e "-R${with_hip}/lib" >/dev/null 2>&1; then :
19613 echo "RPATHS(='$RPATHS') contains '-R${with_hip}/lib', not appending" >&5
19614 else
19615 echo "RPATHS(='$RPATHS') does not contain '-R${with_hip}/lib', appending" >&5
19616 RPATHS="$RPATHS -R${with_hip}/lib"
19617
19618
19619 fi
19620 else
19621 echo "RPATHS(='$RPATHS') does not contain '-R${with_hip}/lib', appending" >&5
19622 RPATHS="$RPATHS -R${with_hip}/lib"
19623
19624 fi
19625
19626
19627 if test -d "${with_hip}/lib64"; then :
19628
19629
19630
19631 if test x$pac_has_fgrep_word = "xyes"; then
19632 if echo "$LDFLAGS" | $FGREP -w -e "-L${with_hip}/lib64" >/dev/null 2>&1; then :
19633 echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hip}/lib64', not appending" >&5
19634 else
19635 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip}/lib64', appending" >&5
19636 LDFLAGS="$LDFLAGS -L${with_hip}/lib64"
19637
19638
19639 fi
19640 else
19641 echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hip}/lib64', appending" >&5
19642 LDFLAGS="$LDFLAGS -L${with_hip}/lib64"
19643
19644 fi
19645
19646
19647
19648
19649
19650 if test x$pac_has_fgrep_word = "xyes"; then
19651 if echo "$RPATHS" | $FGREP -w -e "-R${with_hip}/lib64" >/dev/null 2>&1; then :
19652 echo "RPATHS(='$RPATHS') contains '-R${with_hip}/lib64', not appending" >&5
19653 else
19654 echo "RPATHS(='$RPATHS') does not contain '-R${with_hip}/lib64', appending" >&5
19655 RPATHS="$RPATHS -R${with_hip}/lib64"
19656
19657
19658 fi
19659 else
19660 echo "RPATHS(='$RPATHS') does not contain '-R${with_hip}/lib64', appending" >&5
19661 RPATHS="$RPATHS -R${with_hip}/lib64"
19662
19663 fi
19664
19665
19666
19667 fi
19668
19669 fi
19670
19671 fi
19672 ;;
19673 esac
19674
19675 if test "${with_hip}" = "embedded" || test "${with_hip}" = "install"; then
19676 pac_have_hip=yes
19677 elif test "${with_hip}" = "no" ; then
19678 pac_have_hip=no
19679 else
19680
19681
19682 if test -z "${pac_save_CPPFLAGS_nesting}" ; then
19683 pac_save_CPPFLAGS_nesting=0
19684 fi
19685 eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"'
19686 pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1`
19687
19688
19689
19690
19691 if test x$pac_has_fgrep_word = "xyes"; then
19692 if echo "$CPPFLAGS" | $FGREP -w -e "-D__HIP_PLATFORM_AMD__" >/dev/null 2>&1; then :
19693 echo "CPPFLAGS(='$CPPFLAGS') contains '-D__HIP_PLATFORM_AMD__', not appending" >&5
19694 else
19695 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-D__HIP_PLATFORM_AMD__', appending" >&5
19696 CPPFLAGS="$CPPFLAGS -D__HIP_PLATFORM_AMD__"
19697
19698
19699 fi
19700 else
19701 echo "CPPFLAGS(='$CPPFLAGS') does not contain '-D__HIP_PLATFORM_AMD__', appending" >&5
19702 CPPFLAGS="$CPPFLAGS -D__HIP_PLATFORM_AMD__"
19703
19704 fi
19705
19706
19707
19708 for a in amdhip64 ; do
19709
19710 failure=no
19711 ac_fn_c_check_header_mongrel "$LINENO" "hip/hip_runtime_api.h" "ac_cv_header_hip_hip_runtime_api_h" "$ac_includes_default"
19712 if test "x$ac_cv_header_hip_hip_runtime_api_h" = xyes; then :
19713
19714 else
19715 failure=yes
19716 fi
19717
19718
19719 if test "$failure" = "no" ; then
19720
19721 if test -z "${pac_save_LIBS_nesting}" ; then
19722 pac_save_LIBS_nesting=0
19723 fi
19724 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
19725 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
19726
19727 as_ac_Lib=`$as_echo "ac_cv_lib_$a''_hipStreamSynchronize" | $as_tr_sh`
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hipStreamSynchronize in -l$a" >&5
19729 $as_echo_n "checking for hipStreamSynchronize in -l$a... " >&6; }
19730 if eval \${$as_ac_Lib+:} false; then :
19731 $as_echo_n "(cached) " >&6
19732 else
19733 ac_check_lib_save_LIBS=$LIBS
19734 LIBS="-l$a $LIBS"
19735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19736 /* end confdefs.h. */
19737
19738 /* Override any GCC internal prototype to avoid an error.
19739 Use char because int might match the return type of a GCC
19740 builtin and then its argument prototype would still apply. */
19741 #ifdef __cplusplus
19742 extern "C"
19743 #endif
19744 char hipStreamSynchronize ();
19745 int
19746 main ()
19747 {
19748 return hipStreamSynchronize ();
19749 ;
19750 return 0;
19751 }
19752 _ACEOF
19753 if ac_fn_c_try_link "$LINENO"; then :
19754 eval "$as_ac_Lib=yes"
19755 else
19756 eval "$as_ac_Lib=no"
19757 fi
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19761 fi
19762 eval ac_res=\$$as_ac_Lib
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19764 $as_echo "$ac_res" >&6; }
19765 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19766 cat >>confdefs.h <<_ACEOF
19767 #define `$as_echo "HAVE_LIB$a" | $as_tr_cpp` 1
19768 _ACEOF
19769
19770 LIBS="-l$a $LIBS"
19771
19772 else
19773 failure=yes
19774 fi
19775
19776
19777 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
19778 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
19779 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
19780
19781 fi
19782 if test "$failure" = "no" ; then
19783 pac_have_hip=yes
19784 else
19785 pac_have_hip=no
19786 fi
19787
19788 if test "$pac_have_hip" = "yes"; then
19789
19790
19791
19792
19793 if test x$pac_has_fgrep_word = "xyes"; then
19794 if echo "$LIBS" | $FGREP -w -e "-l$a" >/dev/null 2>&1; then :
19795 echo "LIBS(='$LIBS') contains '-l$a', not appending" >&5
19796 else
19797 echo "LIBS(='$LIBS') does not contain '-l$a', appending" >&5
19798 LIBS="$LIBS -l$a"
19799
19800
19801 fi
19802 else
19803 echo "LIBS(='$LIBS') does not contain '-l$a', appending" >&5
19804 LIBS="$LIBS -l$a"
19805
19806 fi
19807
19808
19809
19810 break
19811 fi
19812 done
19813
19814
19815 pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1`
19816 eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}"
19817 eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}=""
19818
19819
19820 if test "${pac_have_hip}" = "no" -a -n "${with_hip}" ; then
19821 as_fn_error $? "--with-hip is given but not found" "$LINENO" 5
19822 fi
19823 fi
19824
19825 fi
19826
19827 if test "X${pac_have_hip}" = "Xyes" ; then
19828
19829 $as_echo "#define HAVE_HIP 1" >>confdefs.h
19830
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19832 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19833 if ${ac_cv_lib_dl_dlopen+:} false; then :
19834 $as_echo_n "(cached) " >&6
19835 else
19836 ac_check_lib_save_LIBS=$LIBS
19837 LIBS="-ldl $LIBS"
19838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19840
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 char dlopen ();
19848 int
19849 main ()
19850 {
19851 return dlopen ();
19852 ;
19853 return 0;
19854 }
19855 _ACEOF
19856 if ac_fn_c_try_link "$LINENO"; then :
19857 ac_cv_lib_dl_dlopen=yes
19858 else
19859 ac_cv_lib_dl_dlopen=no
19860 fi
19861 rm -f core conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
19863 LIBS=$ac_check_lib_save_LIBS
19864 fi
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19866 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19867 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19868 cat >>confdefs.h <<_ACEOF
19869 #define HAVE_LIBDL 1
19870 _ACEOF
19871
19872 LIBS="-ldl $LIBS"
19873
19874 else
19875 as_fn_error $? "dlopen not found. MPL HIP support requires libdl." "$LINENO" 5
19876 fi
19877
19878 ac_fn_c_check_member "$LINENO" "struct hipPointerAttribute_t" "memoryType" "ac_cv_member_struct_hipPointerAttribute_t_memoryType" "
19879 #define __HIP_PLATFORM_AMD__
19880 #include <hip/hip_runtime_api.h>
19881
19882 "
19883 if test "x$ac_cv_member_struct_hipPointerAttribute_t_memoryType" = xyes; then :
19884
19885 $as_echo "#define HIP_USE_MEMORYTYPE 1" >>confdefs.h
19886
19887 fi
19888
19889 have_gpu="yes"
19890 GPU_SUPPORT="HIP"
19891 fi
19892 if test "X${pac_have_hip}" = "Xyes"; then
19893 MPL_HAVE_HIP_TRUE=
19894 MPL_HAVE_HIP_FALSE='#'
19895 else
19896 MPL_HAVE_HIP_TRUE='#'
19897 MPL_HAVE_HIP_FALSE=
19898 fi
19899
19900
19901 #######################################################################
19902 ## END OF GPU CODE
19903 #######################################################################
19904
19905 # Check for strdup
19906 for ac_func in strdup
19907 do :
19908 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
19909 if test "x$ac_cv_func_strdup" = xyes; then :
19910 cat >>confdefs.h <<_ACEOF
19911 #define HAVE_STRDUP 1
19912 _ACEOF
19913
19914 fi
19915 done
19916
19917 if test "$ac_cv_func_strdup" = "yes" ; then
19918
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strdup needs a declaration" >&5
19920 $as_echo_n "checking whether strdup needs a declaration... " >&6; }
19921 if ${pac_cv_func_decl_strdup+:} false; then :
19922 $as_echo_n "(cached) " >&6
19923 else
19924
19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19926 /* end confdefs.h. */
19927 #include <string.h>
19928 void (*fptr)(void) = (void(*)(void))strdup;
19929 _ACEOF
19930 if ac_fn_c_try_compile "$LINENO"; then :
19931 pac_cv_func_decl_strdup=no
19932 else
19933 pac_cv_func_decl_strdup=yes
19934 fi
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936
19937 fi
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strdup" >&5
19939 $as_echo "$pac_cv_func_decl_strdup" >&6; }
19940 if test "$pac_cv_func_decl_strdup" = "yes" ; then
19941
19942 cat >>confdefs.h <<_ACEOF
19943 #define NEEDS_STRDUP_DECL 1
19944 _ACEOF
19945
19946
19947 fi
19948
19949 fi
19950
19951 # Check for putenv
19952 for ac_func in putenv
19953 do :
19954 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
19955 if test "x$ac_cv_func_putenv" = xyes; then :
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_PUTENV 1
19958 _ACEOF
19959
19960 fi
19961 done
19962
19963 if test "$ac_cv_func_putenv" = "yes" ; then
19964
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv needs a declaration" >&5
19966 $as_echo_n "checking whether putenv needs a declaration... " >&6; }
19967 if ${pac_cv_func_decl_putenv+:} false; then :
19968 $as_echo_n "(cached) " >&6
19969 else
19970
19971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19972 /* end confdefs.h. */
19973 #include <stdlib.h>
19974 void (*fptr)(void) = (void(*)(void))putenv;
19975 _ACEOF
19976 if ac_fn_c_try_compile "$LINENO"; then :
19977 pac_cv_func_decl_putenv=no
19978 else
19979 pac_cv_func_decl_putenv=yes
19980 fi
19981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19982
19983 fi
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_putenv" >&5
19985 $as_echo "$pac_cv_func_decl_putenv" >&6; }
19986 if test "$pac_cv_func_decl_putenv" = "yes" ; then
19987
19988 cat >>confdefs.h <<_ACEOF
19989 #define NEEDS_PUTENV_DECL 1
19990 _ACEOF
19991
19992
19993 fi
19994
19995 fi
19996
19997 # Check for strerror
19998 for ac_func in strerror
19999 do :
20000 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
20001 if test "x$ac_cv_func_strerror" = xyes; then :
20002 cat >>confdefs.h <<_ACEOF
20003 #define HAVE_STRERROR 1
20004 _ACEOF
20005
20006 fi
20007 done
20008
20009 if test "$ac_cv_func_strerror" = "yes" ; then
20010
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror needs a declaration" >&5
20012 $as_echo_n "checking whether strerror needs a declaration... " >&6; }
20013 if ${pac_cv_func_decl_strerror+:} false; then :
20014 $as_echo_n "(cached) " >&6
20015 else
20016
20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018 /* end confdefs.h. */
20019 #include <string.h>
20020 void (*fptr)(void) = (void(*)(void))strerror;
20021 _ACEOF
20022 if ac_fn_c_try_compile "$LINENO"; then :
20023 pac_cv_func_decl_strerror=no
20024 else
20025 pac_cv_func_decl_strerror=yes
20026 fi
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028
20029 fi
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strerror" >&5
20031 $as_echo "$pac_cv_func_decl_strerror" >&6; }
20032 if test "$pac_cv_func_decl_strerror" = "yes" ; then
20033
20034 cat >>confdefs.h <<_ACEOF
20035 #define NEEDS_STRERROR_DECL 1
20036 _ACEOF
20037
20038
20039 fi
20040
20041 fi
20042
20043 # Check for usleep
20044 for ac_func in usleep
20045 do :
20046 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
20047 if test "x$ac_cv_func_usleep" = xyes; then :
20048 cat >>confdefs.h <<_ACEOF
20049 #define HAVE_USLEEP 1
20050 _ACEOF
20051
20052 fi
20053 done
20054
20055 if test "$ac_cv_func_usleep" = "yes" ; then
20056
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep needs a declaration" >&5
20058 $as_echo_n "checking whether usleep needs a declaration... " >&6; }
20059 if ${pac_cv_func_decl_usleep+:} false; then :
20060 $as_echo_n "(cached) " >&6
20061 else
20062
20063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20065 #include <unistd.h>
20066 void (*fptr)(void) = (void(*)(void))usleep;
20067 _ACEOF
20068 if ac_fn_c_try_compile "$LINENO"; then :
20069 pac_cv_func_decl_usleep=no
20070 else
20071 pac_cv_func_decl_usleep=yes
20072 fi
20073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20074
20075 fi
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_usleep" >&5
20077 $as_echo "$pac_cv_func_decl_usleep" >&6; }
20078 if test "$pac_cv_func_decl_usleep" = "yes" ; then
20079
20080 cat >>confdefs.h <<_ACEOF
20081 #define NEEDS_USLEEP_DECL 1
20082 _ACEOF
20083
20084
20085 fi
20086
20087 fi
20088
20089 # Check if we can implement MPL_aligned_alloc
20090 for ac_func in posix_memalign
20091 do :
20092 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
20093 if test "x$ac_cv_func_posix_memalign" = xyes; then :
20094 cat >>confdefs.h <<_ACEOF
20095 #define HAVE_POSIX_MEMALIGN 1
20096 _ACEOF
20097
20098 fi
20099 done
20100
20101 for ac_func in aligned_alloc
20102 do :
20103 ac_fn_c_check_func "$LINENO" "aligned_alloc" "ac_cv_func_aligned_alloc"
20104 if test "x$ac_cv_func_aligned_alloc" = xyes; then :
20105 cat >>confdefs.h <<_ACEOF
20106 #define HAVE_ALIGNED_ALLOC 1
20107 _ACEOF
20108
20109 fi
20110 done
20111
20112 if test "$ac_cv_func_aligned_alloc" = "yes" ; then
20113
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether aligned_alloc needs a declaration" >&5
20115 $as_echo_n "checking whether aligned_alloc needs a declaration... " >&6; }
20116 if ${pac_cv_func_decl_aligned_alloc+:} false; then :
20117 $as_echo_n "(cached) " >&6
20118 else
20119
20120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20121 /* end confdefs.h. */
20122 #include <stdlib.h>
20123 void (*fptr)(void) = (void(*)(void))aligned_alloc;
20124 _ACEOF
20125 if ac_fn_c_try_compile "$LINENO"; then :
20126 pac_cv_func_decl_aligned_alloc=no
20127 else
20128 pac_cv_func_decl_aligned_alloc=yes
20129 fi
20130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131
20132 fi
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_aligned_alloc" >&5
20134 $as_echo "$pac_cv_func_decl_aligned_alloc" >&6; }
20135 if test "$pac_cv_func_decl_aligned_alloc" = "yes" ; then
20136
20137 cat >>confdefs.h <<_ACEOF
20138 #define NEEDS_ALIGNED_ALLOC_DECL 1
20139 _ACEOF
20140
20141
20142 fi
20143
20144 fi
20145 if test "$ac_cv_func_posix_memalign" = "yes" -o "$ac_cv_func_aligned_alloc" = "yes"; then
20146
20147 $as_echo "#define DEFINE_ALIGNED_ALLOC 1" >>confdefs.h
20148
20149 fi
20150
20151 # Define some configurable constants
20152
20153 # Check whether --with-cacheline was given.
20154 if test "${with_cacheline+set}" = set; then :
20155 withval=$with_cacheline;
20156 else
20157 with_cacheline=64
20158 fi
20159
20160 if test $with_cacheline -le 0 ; then
20161 as_fn_error $? "Cache line size must be greater than 0" "$LINENO" 5
20162 fi
20163
20164 cat >>confdefs.h <<_ACEOF
20165 #define CACHELINE_SIZE $with_cacheline
20166 _ACEOF
20167
20168
20169 # Check for execinfo backtrace support
20170 for ac_header in execinfo.h
20171 do :
20172 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
20173 if test "x$ac_cv_header_execinfo_h" = xyes; then :
20174 cat >>confdefs.h <<_ACEOF
20175 #define HAVE_EXECINFO_H 1
20176 _ACEOF
20177
20178 fi
20179
20180 done
20181
20182 if test x"$ac_cv_header_execinfo_h" = xyes; then :
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size parameter type for backtrace()" >&5
20184 $as_echo_n "checking size parameter type for backtrace()... " >&6; }
20185 if ${ax_cv_proto_backtrace_type+:} false; then :
20186 $as_echo_n "(cached) " >&6
20187 else
20188 ac_ext=c
20189 ac_cpp='$CPP $CPPFLAGS'
20190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20193
20194 for ax_cv_proto_backtrace_type in size_t int none; do
20195 if test "${ax_cv_proto_backtrace_type}" = none; then :
20196 ax_cv_proto_backtrace_type= ; break
20197 fi
20198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20199 /* end confdefs.h. */
20200
20201 #include <execinfo.h>
20202 extern
20203 ${ax_cv_proto_backtrace_type} backtrace(void **addrlist, ${ax_cv_proto_backtrace_type} len);
20204 char **backtrace_symbols(void *const *buffer, ${ax_cv_proto_backtrace_type} size);
20205
20206 int
20207 main ()
20208 {
20209
20210 ;
20211 return 0;
20212 }
20213 _ACEOF
20214 if ac_fn_c_try_compile "$LINENO"; then :
20215 break
20216 fi
20217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20218 done
20219 ac_ext=c
20220 ac_cpp='$CPP $CPPFLAGS'
20221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20224
20225 fi
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_proto_backtrace_type" >&5
20227 $as_echo "$ax_cv_proto_backtrace_type" >&6; }
20228 fi
20229 if test x${ax_cv_proto_backtrace_type} != x; then :
20230
20231 cat >>confdefs.h <<_ACEOF
20232 #define backtrace_size_t $ax_cv_proto_backtrace_type
20233 _ACEOF
20234
20235 fi
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
20237 $as_echo_n "checking for library containing backtrace... " >&6; }
20238 if ${ac_cv_search_backtrace+:} false; then :
20239 $as_echo_n "(cached) " >&6
20240 else
20241 ac_func_search_save_LIBS=$LIBS
20242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20243 /* end confdefs.h. */
20244
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char backtrace ();
20252 int
20253 main ()
20254 {
20255 return backtrace ();
20256 ;
20257 return 0;
20258 }
20259 _ACEOF
20260 for ac_lib in '' execinfo; do
20261 if test -z "$ac_lib"; then
20262 ac_res="none required"
20263 else
20264 ac_res=-l$ac_lib
20265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20266 fi
20267 if ac_fn_c_try_link "$LINENO"; then :
20268 ac_cv_search_backtrace=$ac_res
20269 fi
20270 rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext
20272 if ${ac_cv_search_backtrace+:} false; then :
20273 break
20274 fi
20275 done
20276 if ${ac_cv_search_backtrace+:} false; then :
20277
20278 else
20279 ac_cv_search_backtrace=no
20280 fi
20281 rm conftest.$ac_ext
20282 LIBS=$ac_func_search_save_LIBS
20283 fi
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
20285 $as_echo "$ac_cv_search_backtrace" >&6; }
20286 ac_res=$ac_cv_search_backtrace
20287 if test "$ac_res" != no; then :
20288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20289
20290 fi
20291
20292 if test x"${ax_cv_proto_backtrace_type}" != x -a x"$ac_cv_header_execinfo_h" = xyes -a x"$ac_cv_search_backtrace" != xno; then :
20293
20294 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
20295
20296
20297 fi
20298
20299
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20301 $as_echo_n "checking for library containing gethostbyname... " >&6; }
20302 if ${ac_cv_search_gethostbyname+:} false; then :
20303 $as_echo_n "(cached) " >&6
20304 else
20305 ac_func_search_save_LIBS=$LIBS
20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h. */
20308
20309 /* Override any GCC internal prototype to avoid an error.
20310 Use char because int might match the return type of a GCC
20311 builtin and then its argument prototype would still apply. */
20312 #ifdef __cplusplus
20313 extern "C"
20314 #endif
20315 char gethostbyname ();
20316 int
20317 main ()
20318 {
20319 return gethostbyname ();
20320 ;
20321 return 0;
20322 }
20323 _ACEOF
20324 for ac_lib in '' nsl; do
20325 if test -z "$ac_lib"; then
20326 ac_res="none required"
20327 else
20328 ac_res=-l$ac_lib
20329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20330 fi
20331 if ac_fn_c_try_link "$LINENO"; then :
20332 ac_cv_search_gethostbyname=$ac_res
20333 fi
20334 rm -f core conftest.err conftest.$ac_objext \
20335 conftest$ac_exeext
20336 if ${ac_cv_search_gethostbyname+:} false; then :
20337 break
20338 fi
20339 done
20340 if ${ac_cv_search_gethostbyname+:} false; then :
20341
20342 else
20343 ac_cv_search_gethostbyname=no
20344 fi
20345 rm conftest.$ac_ext
20346 LIBS=$ac_func_search_save_LIBS
20347 fi
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20349 $as_echo "$ac_cv_search_gethostbyname" >&6; }
20350 ac_res=$ac_cv_search_gethostbyname
20351 if test "$ac_res" != no; then :
20352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20353
20354 fi
20355
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20357 $as_echo_n "checking for library containing socket... " >&6; }
20358 if ${ac_cv_search_socket+:} false; then :
20359 $as_echo_n "(cached) " >&6
20360 else
20361 ac_func_search_save_LIBS=$LIBS
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20364
20365 /* Override any GCC internal prototype to avoid an error.
20366 Use char because int might match the return type of a GCC
20367 builtin and then its argument prototype would still apply. */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 char socket ();
20372 int
20373 main ()
20374 {
20375 return socket ();
20376 ;
20377 return 0;
20378 }
20379 _ACEOF
20380 for ac_lib in '' socket; do
20381 if test -z "$ac_lib"; then
20382 ac_res="none required"
20383 else
20384 ac_res=-l$ac_lib
20385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20386 fi
20387 if ac_fn_c_try_link "$LINENO"; then :
20388 ac_cv_search_socket=$ac_res
20389 fi
20390 rm -f core conftest.err conftest.$ac_objext \
20391 conftest$ac_exeext
20392 if ${ac_cv_search_socket+:} false; then :
20393 break
20394 fi
20395 done
20396 if ${ac_cv_search_socket+:} false; then :
20397
20398 else
20399 ac_cv_search_socket=no
20400 fi
20401 rm conftest.$ac_ext
20402 LIBS=$ac_func_search_save_LIBS
20403 fi
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20405 $as_echo "$ac_cv_search_socket" >&6; }
20406 ac_res=$ac_cv_search_socket
20407 if test "$ac_res" != no; then :
20408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20409
20410 else
20411
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
20413 $as_echo_n "checking for socket in -lsocket... " >&6; }
20414 if ${ac_cv_lib_socket_socket+:} false; then :
20415 $as_echo_n "(cached) " >&6
20416 else
20417 ac_check_lib_save_LIBS=$LIBS
20418 LIBS="-lsocket -lnsl $LIBS"
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h. */
20421
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20425 #ifdef __cplusplus
20426 extern "C"
20427 #endif
20428 char socket ();
20429 int
20430 main ()
20431 {
20432 return socket ();
20433 ;
20434 return 0;
20435 }
20436 _ACEOF
20437 if ac_fn_c_try_link "$LINENO"; then :
20438 ac_cv_lib_socket_socket=yes
20439 else
20440 ac_cv_lib_socket_socket=no
20441 fi
20442 rm -f core conftest.err conftest.$ac_objext \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20445 fi
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
20447 $as_echo "$ac_cv_lib_socket_socket" >&6; }
20448 if test "x$ac_cv_lib_socket_socket" = xyes; then :
20449 LIBS="-lsocket -lnsl $LIBS"
20450 fi
20451
20452 fi
20453
20454
20455 for ac_header in ifaddrs.h arpa/inet.h
20456 do :
20457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20458 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20460 cat >>confdefs.h <<_ACEOF
20461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20462 _ACEOF
20463
20464 fi
20465
20466 done
20467
20468 for ac_func in inet_ntop getifaddrs
20469 do :
20470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20471 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20472 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20473 cat >>confdefs.h <<_ACEOF
20474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20475 _ACEOF
20476
20477 fi
20478 done
20479
20480
20481
20482
20483
20484 if test "$ac_cv_c_compiler_gnu" = "yes" ; then
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5
20486 $as_echo_n "checking whether __attribute__ allowed... " >&6; }
20487 if ${pac_cv_gnu_attr_pure+:} false; then :
20488 $as_echo_n "(cached) " >&6
20489 else
20490
20491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492 /* end confdefs.h. */
20493 int foo(int) __attribute__ ((pure));
20494 int
20495 main ()
20496 {
20497 int a;
20498 ;
20499 return 0;
20500 }
20501 _ACEOF
20502 if ac_fn_c_try_compile "$LINENO"; then :
20503 pac_cv_gnu_attr_pure=yes
20504 else
20505 pac_cv_gnu_attr_pure=no
20506 fi
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508
20509 fi
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5
20511 $as_echo "$pac_cv_gnu_attr_pure" >&6; }
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5
20513 $as_echo_n "checking whether __attribute__((format)) allowed... " >&6; }
20514 if ${pac_cv_gnu_attr_format+:} false; then :
20515 $as_echo_n "(cached) " >&6
20516 else
20517
20518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20520 int foo(char *,...) __attribute__ ((format(printf,1,2)));
20521 int
20522 main ()
20523 {
20524 int a;
20525 ;
20526 return 0;
20527 }
20528 _ACEOF
20529 if ac_fn_c_try_compile "$LINENO"; then :
20530 pac_cv_gnu_attr_format=yes
20531 else
20532 pac_cv_gnu_attr_format=no
20533 fi
20534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20535
20536 fi
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5
20538 $as_echo "$pac_cv_gnu_attr_format" >&6; }
20539 if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then
20540
20541 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
20542
20543 fi
20544 fi
20545
20546
20547
20548
20549 if test -z "${pac_save_CFLAGS_nesting}" ; then
20550 pac_save_CFLAGS_nesting=0
20551 fi
20552 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
20553 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
20554
20555
20556 if test -z "${pac_save_CPPFLAGS_nesting}" ; then
20557 pac_save_CPPFLAGS_nesting=0
20558 fi
20559 eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"'
20560 pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1`
20561
20562
20563 if test -z "${pac_save_CXXFLAGS_nesting}" ; then
20564 pac_save_CXXFLAGS_nesting=0
20565 fi
20566 eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}='"$CXXFLAGS"'
20567 pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} + 1`
20568
20569
20570 if test -z "${pac_save_FFLAGS_nesting}" ; then
20571 pac_save_FFLAGS_nesting=0
20572 fi
20573 eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}='"$FFLAGS"'
20574 pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} + 1`
20575
20576
20577 if test -z "${pac_save_FCFLAGS_nesting}" ; then
20578 pac_save_FCFLAGS_nesting=0
20579 fi
20580 eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"'
20581 pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1`
20582
20583
20584 if test -z "${pac_save_LDFLAGS_nesting}" ; then
20585 pac_save_LDFLAGS_nesting=0
20586 fi
20587 eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
20588 pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
20589
20590
20591 if test -z "${pac_save_LIBS_nesting}" ; then
20592 pac_save_LIBS_nesting=0
20593 fi
20594 eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
20595 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
20596
20597
20598 CFLAGS=""
20599
20600
20601
20602
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((aligned))" >&5
20604 $as_echo_n "checking for __attribute__((aligned))... " >&6; }
20605 if ${ax_cv_have_var_attribute_aligned+:} false; then :
20606 $as_echo_n "(cached) " >&6
20607 else
20608
20609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20610 /* end confdefs.h. */
20611
20612
20613 int foo __attribute__((aligned(32)));
20614
20615 int
20616 main ()
20617 {
20618
20619
20620
20621 ;
20622 return 0;
20623 }
20624
20625 _ACEOF
20626 if ac_fn_c_try_link "$LINENO"; then :
20627 if test -s conftest.err; then :
20628 ax_cv_have_var_attribute_aligned=no
20629 else
20630 ax_cv_have_var_attribute_aligned=yes
20631 fi
20632 else
20633 ax_cv_have_var_attribute_aligned=no
20634 fi
20635 rm -f core conftest.err conftest.$ac_objext \
20636 conftest$ac_exeext conftest.$ac_ext
20637
20638 fi
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_var_attribute_aligned" >&5
20640 $as_echo "$ax_cv_have_var_attribute_aligned" >&6; }
20641
20642 if test yes = $ax_cv_have_var_attribute_aligned; then :
20643
20644 cat >>confdefs.h <<_ACEOF
20645 #define HAVE_VAR_ATTRIBUTE_ALIGNED 1
20646 _ACEOF
20647
20648 fi
20649
20650
20651
20652
20653
20654
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((used))" >&5
20656 $as_echo_n "checking for __attribute__((used))... " >&6; }
20657 if ${ax_cv_have_var_attribute_used+:} false; then :
20658 $as_echo_n "(cached) " >&6
20659 else
20660
20661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20662 /* end confdefs.h. */
20663
20664
20665 int foo __attribute__((used));
20666
20667 int
20668 main ()
20669 {
20670
20671
20672
20673 ;
20674 return 0;
20675 }
20676
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"; then :
20679 if test -s conftest.err; then :
20680 ax_cv_have_var_attribute_used=no
20681 else
20682 ax_cv_have_var_attribute_used=yes
20683 fi
20684 else
20685 ax_cv_have_var_attribute_used=no
20686 fi
20687 rm -f core conftest.err conftest.$ac_objext \
20688 conftest$ac_exeext conftest.$ac_ext
20689
20690 fi
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_var_attribute_used" >&5
20692 $as_echo "$ax_cv_have_var_attribute_used" >&6; }
20693
20694 if test yes = $ax_cv_have_var_attribute_used; then :
20695
20696 cat >>confdefs.h <<_ACEOF
20697 #define HAVE_VAR_ATTRIBUTE_USED 1
20698 _ACEOF
20699
20700 fi
20701
20702
20703
20704
20705
20706
20707 pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
20708 eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
20709 eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
20710
20711
20712 pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1`
20713 eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}"
20714 eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}=""
20715
20716
20717 pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} - 1`
20718 eval CXXFLAGS="\$pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}"
20719 eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}=""
20720
20721
20722 pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} - 1`
20723 eval FFLAGS="\$pac_save_FFLAGS_${pac_save_FFLAGS_nesting}"
20724 eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}=""
20725
20726
20727 pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1`
20728 eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}"
20729 eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}=""
20730
20731
20732 pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
20733 eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
20734 eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
20735
20736
20737 pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
20738 eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
20739 eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
20740
20741
20742
20743 MPL_CFLAGS="${CFLAGS#${PARENT_CFLAGS}}"
20744
20745
20746 NO_OPT_CFLAGS=""
20747 for word in $CFLAGS; do
20748 case $word in
20749 -O0|-O1|-O2|-O3|-Og)
20750 ;;
20751 *)
20752 NO_OPT_CFLAGS="$NO_OPT_CFLAGS $word"
20753 ;;
20754 esac
20755 done
20756 NO_OPT_CFLAGS="$NO_OPT_CFLAGS -O0"
20757
20758
20759
20760
20761 ac_config_files="$ac_config_files Makefile localdefs include/mpl_timer.h"
20762
20763 cat >confcache <<\_ACEOF
20764 # This file is a shell script that caches the results of configure
20765 # tests run on this system so they can be shared between configure
20766 # scripts and configure runs, see configure's option --config-cache.
20767 # It is not useful on other systems. If it contains results you don't
20768 # want to keep, you may remove or edit it.
20769 #
20770 # config.status only pays attention to the cache file if you give it
20771 # the --recheck option to rerun configure.
20772 #
20773 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20774 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20775 # following values.
20776
20777 _ACEOF
20778
20779 # The following way of writing the cache mishandles newlines in values,
20780 # but we know of no workaround that is simple, portable, and efficient.
20781 # So, we kill variables containing newlines.
20782 # Ultrix sh set writes to stderr and can't be redirected directly,
20783 # and sets the high bit in the cache file unless we assign to the vars.
20784 (
20785 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20786 eval ac_val=\$$ac_var
20787 case $ac_val in #(
20788 *${as_nl}*)
20789 case $ac_var in #(
20790 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20791 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20792 esac
20793 case $ac_var in #(
20794 _ | IFS | as_nl) ;; #(
20795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20796 *) { eval $ac_var=; unset $ac_var;} ;;
20797 esac ;;
20798 esac
20799 done
20800
20801 (set) 2>&1 |
20802 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20803 *${as_nl}ac_space=\ *)
20804 # `set' does not quote correctly, so add quotes: double-quote
20805 # substitution turns \\\\ into \\, and sed turns \\ into \.
20806 sed -n \
20807 "s/'/'\\\\''/g;
20808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20809 ;; #(
20810 *)
20811 # `set' quotes correctly as required by POSIX, so do not add quotes.
20812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20813 ;;
20814 esac |
20815 sort
20816 ) |
20817 sed '
20818 /^ac_cv_env_/b end
20819 t clear
20820 :clear
20821 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20822 t end
20823 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20824 :end' >>confcache
20825 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20826 if test -w "$cache_file"; then
20827 if test "x$cache_file" != "x/dev/null"; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20829 $as_echo "$as_me: updating cache $cache_file" >&6;}
20830 if test ! -f "$cache_file" || test -h "$cache_file"; then
20831 cat confcache >"$cache_file"
20832 else
20833 case $cache_file in #(
20834 */* | ?:*)
20835 mv -f confcache "$cache_file"$$ &&
20836 mv -f "$cache_file"$$ "$cache_file" ;; #(
20837 *)
20838 mv -f confcache "$cache_file" ;;
20839 esac
20840 fi
20841 fi
20842 else
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20844 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20845 fi
20846 fi
20847 rm -f confcache
20848
20849 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20850 # Let make expand exec_prefix.
20851 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20852
20853 DEFS=-DHAVE_CONFIG_H
20854
20855 ac_libobjs=
20856 ac_ltlibobjs=
20857 U=
20858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20859 # 1. Remove the extension, and $U if already installed.
20860 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20861 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20862 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20863 # will be set to the directory where LIBOBJS objects are built.
20864 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20865 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20866 done
20867 LIBOBJS=$ac_libobjs
20868
20869 LTLIBOBJS=$ac_ltlibobjs
20870
20871
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20873 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20874 if test -n "$am_sleep_pid"; then
20875 # Hide warnings about reused PIDs.
20876 wait $am_sleep_pid 2>/dev/null
20877 fi
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20879 $as_echo "done" >&6; }
20880 if test -n "$EXEEXT"; then
20881 am__EXEEXT_TRUE=
20882 am__EXEEXT_FALSE='#'
20883 else
20884 am__EXEEXT_TRUE='#'
20885 am__EXEEXT_FALSE=
20886 fi
20887
20888 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20889 as_fn_error $? "conditional \"AMDEP\" was never defined.
20890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20891 fi
20892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20893 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20895 fi
20896 if test -z "${MPL_EMBEDDED_MODE_TRUE}" && test -z "${MPL_EMBEDDED_MODE_FALSE}"; then
20897 as_fn_error $? "conditional \"MPL_EMBEDDED_MODE\" was never defined.
20898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20899 fi
20900 if test -z "${BUILD_COVERAGE_TRUE}" && test -z "${BUILD_COVERAGE_FALSE}"; then
20901 as_fn_error $? "conditional \"BUILD_COVERAGE\" was never defined.
20902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20903 fi
20904 if test -z "${MPL_BUILD_FOR_X86_TRUE}" && test -z "${MPL_BUILD_FOR_X86_FALSE}"; then
20905 as_fn_error $? "conditional \"MPL_BUILD_FOR_X86\" was never defined.
20906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20907 fi
20908 if test -z "${MPL_BUILD_AVX_TRUE}" && test -z "${MPL_BUILD_AVX_FALSE}"; then
20909 as_fn_error $? "conditional \"MPL_BUILD_AVX\" was never defined.
20910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20911 fi
20912 if test -z "${MPL_BUILD_AVX512F_TRUE}" && test -z "${MPL_BUILD_AVX512F_FALSE}"; then
20913 as_fn_error $? "conditional \"MPL_BUILD_AVX512F\" was never defined.
20914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20915 fi
20916 if test -z "${MPL_HAVE_CUDA_TRUE}" && test -z "${MPL_HAVE_CUDA_FALSE}"; then
20917 as_fn_error $? "conditional \"MPL_HAVE_CUDA\" was never defined.
20918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20919 fi
20920 if test -z "${MPL_HAVE_ZE_TRUE}" && test -z "${MPL_HAVE_ZE_FALSE}"; then
20921 as_fn_error $? "conditional \"MPL_HAVE_ZE\" was never defined.
20922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20923 fi
20924 if test -z "${MPL_HAVE_HIP_TRUE}" && test -z "${MPL_HAVE_HIP_FALSE}"; then
20925 as_fn_error $? "conditional \"MPL_HAVE_HIP\" was never defined.
20926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20927 fi
20928
20929 : "${CONFIG_STATUS=./config.status}"
20930 ac_write_fail=0
20931 ac_clean_files_save=$ac_clean_files
20932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20934 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20935 as_write_fail=0
20936 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20937 #! $SHELL
20938 # Generated by $as_me.
20939 # Run this file to recreate the current configuration.
20940 # Compiler output produced by configure, useful for debugging
20941 # configure, is in config.log if it exists.
20942
20943 debug=false
20944 ac_cs_recheck=false
20945 ac_cs_silent=false
20946
20947 SHELL=\${CONFIG_SHELL-$SHELL}
20948 export SHELL
20949 _ASEOF
20950 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20951 ## -------------------- ##
20952 ## M4sh Initialization. ##
20953 ## -------------------- ##
20954
20955 # Be more Bourne compatible
20956 DUALCASE=1; export DUALCASE # for MKS sh
20957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20958 emulate sh
20959 NULLCMD=:
20960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20961 # is contrary to our usage. Disable this feature.
20962 alias -g '${1+"$@"}'='"$@"'
20963 setopt NO_GLOB_SUBST
20964 else
20965 case `(set -o) 2>/dev/null` in #(
20966 *posix*) :
20967 set -o posix ;; #(
20968 *) :
20969 ;;
20970 esac
20971 fi
20972
20973
20974 as_nl='
20975 '
20976 export as_nl
20977 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20978 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20979 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20981 # Prefer a ksh shell builtin over an external printf program on Solaris,
20982 # but without wasting forks for bash or zsh.
20983 if test -z "$BASH_VERSION$ZSH_VERSION" \
20984 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20985 as_echo='print -r --'
20986 as_echo_n='print -rn --'
20987 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20988 as_echo='printf %s\n'
20989 as_echo_n='printf %s'
20990 else
20991 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20992 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20993 as_echo_n='/usr/ucb/echo -n'
20994 else
20995 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20996 as_echo_n_body='eval
20997 arg=$1;
20998 case $arg in #(
20999 *"$as_nl"*)
21000 expr "X$arg" : "X\\(.*\\)$as_nl";
21001 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21002 esac;
21003 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21004 '
21005 export as_echo_n_body
21006 as_echo_n='sh -c $as_echo_n_body as_echo'
21007 fi
21008 export as_echo_body
21009 as_echo='sh -c $as_echo_body as_echo'
21010 fi
21011
21012 # The user is always right.
21013 if test "${PATH_SEPARATOR+set}" != set; then
21014 PATH_SEPARATOR=:
21015 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21016 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21017 PATH_SEPARATOR=';'
21018 }
21019 fi
21020
21021
21022 # IFS
21023 # We need space, tab and new line, in precisely that order. Quoting is
21024 # there to prevent editors from complaining about space-tab.
21025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21026 # splitting by setting IFS to empty value.)
21027 IFS=" "" $as_nl"
21028
21029 # Find who we are. Look in the path if we contain no directory separator.
21030 as_myself=
21031 case $0 in #((
21032 *[\\/]* ) as_myself=$0 ;;
21033 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21034 for as_dir in $PATH
21035 do
21036 IFS=$as_save_IFS
21037 test -z "$as_dir" && as_dir=.
21038 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21039 done
21040 IFS=$as_save_IFS
21041
21042 ;;
21043 esac
21044 # We did not find ourselves, most probably we were run as `sh COMMAND'
21045 # in which case we are not to be found in the path.
21046 if test "x$as_myself" = x; then
21047 as_myself=$0
21048 fi
21049 if test ! -f "$as_myself"; then
21050 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21051 exit 1
21052 fi
21053
21054 # Unset variables that we do not need and which cause bugs (e.g. in
21055 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21056 # suppresses any "Segmentation fault" message there. '((' could
21057 # trigger a bug in pdksh 5.2.14.
21058 for as_var in BASH_ENV ENV MAIL MAILPATH
21059 do eval test x\${$as_var+set} = xset \
21060 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21061 done
21062 PS1='$ '
21063 PS2='> '
21064 PS4='+ '
21065
21066 # NLS nuisances.
21067 LC_ALL=C
21068 export LC_ALL
21069 LANGUAGE=C
21070 export LANGUAGE
21071
21072 # CDPATH.
21073 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21074
21075
21076 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21077 # ----------------------------------------
21078 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21079 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21080 # script with STATUS, using 1 if that was 0.
21081 as_fn_error ()
21082 {
21083 as_status=$1; test $as_status -eq 0 && as_status=1
21084 if test "$4"; then
21085 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21086 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21087 fi
21088 $as_echo "$as_me: error: $2" >&2
21089 as_fn_exit $as_status
21090 } # as_fn_error
21091
21092
21093 # as_fn_set_status STATUS
21094 # -----------------------
21095 # Set $? to STATUS, without forking.
21096 as_fn_set_status ()
21097 {
21098 return $1
21099 } # as_fn_set_status
21100
21101 # as_fn_exit STATUS
21102 # -----------------
21103 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21104 as_fn_exit ()
21105 {
21106 set +e
21107 as_fn_set_status $1
21108 exit $1
21109 } # as_fn_exit
21110
21111 # as_fn_unset VAR
21112 # ---------------
21113 # Portably unset VAR.
21114 as_fn_unset ()
21115 {
21116 { eval $1=; unset $1;}
21117 }
21118 as_unset=as_fn_unset
21119 # as_fn_append VAR VALUE
21120 # ----------------------
21121 # Append the text in VALUE to the end of the definition contained in VAR. Take
21122 # advantage of any shell optimizations that allow amortized linear growth over
21123 # repeated appends, instead of the typical quadratic growth present in naive
21124 # implementations.
21125 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21126 eval 'as_fn_append ()
21127 {
21128 eval $1+=\$2
21129 }'
21130 else
21131 as_fn_append ()
21132 {
21133 eval $1=\$$1\$2
21134 }
21135 fi # as_fn_append
21136
21137 # as_fn_arith ARG...
21138 # ------------------
21139 # Perform arithmetic evaluation on the ARGs, and store the result in the
21140 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21141 # must be portable across $(()) and expr.
21142 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21143 eval 'as_fn_arith ()
21144 {
21145 as_val=$(( $* ))
21146 }'
21147 else
21148 as_fn_arith ()
21149 {
21150 as_val=`expr "$@" || test $? -eq 1`
21151 }
21152 fi # as_fn_arith
21153
21154
21155 if expr a : '\(a\)' >/dev/null 2>&1 &&
21156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21157 as_expr=expr
21158 else
21159 as_expr=false
21160 fi
21161
21162 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21163 as_basename=basename
21164 else
21165 as_basename=false
21166 fi
21167
21168 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21169 as_dirname=dirname
21170 else
21171 as_dirname=false
21172 fi
21173
21174 as_me=`$as_basename -- "$0" ||
21175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21176 X"$0" : 'X\(//\)$' \| \
21177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21178 $as_echo X/"$0" |
21179 sed '/^.*\/\([^/][^/]*\)\/*$/{
21180 s//\1/
21181 q
21182 }
21183 /^X\/\(\/\/\)$/{
21184 s//\1/
21185 q
21186 }
21187 /^X\/\(\/\).*/{
21188 s//\1/
21189 q
21190 }
21191 s/.*/./; q'`
21192
21193 # Avoid depending upon Character Ranges.
21194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21197 as_cr_digits='0123456789'
21198 as_cr_alnum=$as_cr_Letters$as_cr_digits
21199
21200 ECHO_C= ECHO_N= ECHO_T=
21201 case `echo -n x` in #(((((
21202 -n*)
21203 case `echo 'xy\c'` in
21204 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21205 xy) ECHO_C='\c';;
21206 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21207 ECHO_T=' ';;
21208 esac;;
21209 *)
21210 ECHO_N='-n';;
21211 esac
21212
21213 rm -f conf$$ conf$$.exe conf$$.file
21214 if test -d conf$$.dir; then
21215 rm -f conf$$.dir/conf$$.file
21216 else
21217 rm -f conf$$.dir
21218 mkdir conf$$.dir 2>/dev/null
21219 fi
21220 if (echo >conf$$.file) 2>/dev/null; then
21221 if ln -s conf$$.file conf$$ 2>/dev/null; then
21222 as_ln_s='ln -s'
21223 # ... but there are two gotchas:
21224 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21225 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21226 # In both cases, we have to default to `cp -pR'.
21227 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21228 as_ln_s='cp -pR'
21229 elif ln conf$$.file conf$$ 2>/dev/null; then
21230 as_ln_s=ln
21231 else
21232 as_ln_s='cp -pR'
21233 fi
21234 else
21235 as_ln_s='cp -pR'
21236 fi
21237 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21238 rmdir conf$$.dir 2>/dev/null
21239
21240
21241 # as_fn_mkdir_p
21242 # -------------
21243 # Create "$as_dir" as a directory, including parents if necessary.
21244 as_fn_mkdir_p ()
21245 {
21246
21247 case $as_dir in #(
21248 -*) as_dir=./$as_dir;;
21249 esac
21250 test -d "$as_dir" || eval $as_mkdir_p || {
21251 as_dirs=
21252 while :; do
21253 case $as_dir in #(
21254 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21255 *) as_qdir=$as_dir;;
21256 esac
21257 as_dirs="'$as_qdir' $as_dirs"
21258 as_dir=`$as_dirname -- "$as_dir" ||
21259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21260 X"$as_dir" : 'X\(//\)[^/]' \| \
21261 X"$as_dir" : 'X\(//\)$' \| \
21262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21263 $as_echo X"$as_dir" |
21264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21265 s//\1/
21266 q
21267 }
21268 /^X\(\/\/\)[^/].*/{
21269 s//\1/
21270 q
21271 }
21272 /^X\(\/\/\)$/{
21273 s//\1/
21274 q
21275 }
21276 /^X\(\/\).*/{
21277 s//\1/
21278 q
21279 }
21280 s/.*/./; q'`
21281 test -d "$as_dir" && break
21282 done
21283 test -z "$as_dirs" || eval "mkdir $as_dirs"
21284 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21285
21286
21287 } # as_fn_mkdir_p
21288 if mkdir -p . 2>/dev/null; then
21289 as_mkdir_p='mkdir -p "$as_dir"'
21290 else
21291 test -d ./-p && rmdir ./-p
21292 as_mkdir_p=false
21293 fi
21294
21295
21296 # as_fn_executable_p FILE
21297 # -----------------------
21298 # Test if FILE is an executable regular file.
21299 as_fn_executable_p ()
21300 {
21301 test -f "$1" && test -x "$1"
21302 } # as_fn_executable_p
21303 as_test_x='test -x'
21304 as_executable_p=as_fn_executable_p
21305
21306 # Sed expression to map a string onto a valid CPP name.
21307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21308
21309 # Sed expression to map a string onto a valid variable name.
21310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21311
21312
21313 exec 6>&1
21314 ## ----------------------------------- ##
21315 ## Main body of $CONFIG_STATUS script. ##
21316 ## ----------------------------------- ##
21317 _ASEOF
21318 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21319
21320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21321 # Save the log message, to keep $0 and so on meaningful, and to
21322 # report actual input values of CONFIG_FILES etc. instead of their
21323 # values after options handling.
21324 ac_log="
21325 This file was extended by MPL $as_me 0.1, which was
21326 generated by GNU Autoconf 2.69. Invocation command line was
21327
21328 CONFIG_FILES = $CONFIG_FILES
21329 CONFIG_HEADERS = $CONFIG_HEADERS
21330 CONFIG_LINKS = $CONFIG_LINKS
21331 CONFIG_COMMANDS = $CONFIG_COMMANDS
21332 $ $0 $@
21333
21334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21335 "
21336
21337 _ACEOF
21338
21339 case $ac_config_files in *"
21340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21341 esac
21342
21343 case $ac_config_headers in *"
21344 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21345 esac
21346
21347
21348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21349 # Files that config.status was made for.
21350 config_files="$ac_config_files"
21351 config_headers="$ac_config_headers"
21352 config_commands="$ac_config_commands"
21353
21354 _ACEOF
21355
21356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21357 ac_cs_usage="\
21358 \`$as_me' instantiates files and other configuration actions
21359 from templates according to the current configuration. Unless the files
21360 and actions are specified as TAGs, all are instantiated by default.
21361
21362 Usage: $0 [OPTION]... [TAG]...
21363
21364 -h, --help print this help, then exit
21365 -V, --version print version number and configuration settings, then exit
21366 --config print configuration, then exit
21367 -q, --quiet, --silent
21368 do not print progress messages
21369 -d, --debug don't remove temporary files
21370 --recheck update $as_me by reconfiguring in the same conditions
21371 --file=FILE[:TEMPLATE]
21372 instantiate the configuration file FILE
21373 --header=FILE[:TEMPLATE]
21374 instantiate the configuration header FILE
21375
21376 Configuration files:
21377 $config_files
21378
21379 Configuration headers:
21380 $config_headers
21381
21382 Configuration commands:
21383 $config_commands
21384
21385 Report bugs to the package provider."
21386
21387 _ACEOF
21388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21389 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21390 ac_cs_version="\\
21391 MPL config.status 0.1
21392 configured by $0, generated by GNU Autoconf 2.69,
21393 with options \\"\$ac_cs_config\\"
21394
21395 Copyright (C) 2012 Free Software Foundation, Inc.
21396 This config.status script is free software; the Free Software Foundation
21397 gives unlimited permission to copy, distribute and modify it."
21398
21399 ac_pwd='$ac_pwd'
21400 srcdir='$srcdir'
21401 INSTALL='$INSTALL'
21402 MKDIR_P='$MKDIR_P'
21403 AWK='$AWK'
21404 test -n "\$AWK" || AWK=awk
21405 _ACEOF
21406
21407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21408 # The default lists apply if the user does not specify any file.
21409 ac_need_defaults=:
21410 while test $# != 0
21411 do
21412 case $1 in
21413 --*=?*)
21414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21416 ac_shift=:
21417 ;;
21418 --*=)
21419 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21420 ac_optarg=
21421 ac_shift=:
21422 ;;
21423 *)
21424 ac_option=$1
21425 ac_optarg=$2
21426 ac_shift=shift
21427 ;;
21428 esac
21429
21430 case $ac_option in
21431 # Handling of the options.
21432 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21433 ac_cs_recheck=: ;;
21434 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21435 $as_echo "$ac_cs_version"; exit ;;
21436 --config | --confi | --conf | --con | --co | --c )
21437 $as_echo "$ac_cs_config"; exit ;;
21438 --debug | --debu | --deb | --de | --d | -d )
21439 debug=: ;;
21440 --file | --fil | --fi | --f )
21441 $ac_shift
21442 case $ac_optarg in
21443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21444 '') as_fn_error $? "missing file argument" ;;
21445 esac
21446 as_fn_append CONFIG_FILES " '$ac_optarg'"
21447 ac_need_defaults=false;;
21448 --header | --heade | --head | --hea )
21449 $ac_shift
21450 case $ac_optarg in
21451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21452 esac
21453 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21454 ac_need_defaults=false;;
21455 --he | --h)
21456 # Conflict between --help and --header
21457 as_fn_error $? "ambiguous option: \`$1'
21458 Try \`$0 --help' for more information.";;
21459 --help | --hel | -h )
21460 $as_echo "$ac_cs_usage"; exit ;;
21461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21462 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21463 ac_cs_silent=: ;;
21464
21465 # This is an error.
21466 -*) as_fn_error $? "unrecognized option: \`$1'
21467 Try \`$0 --help' for more information." ;;
21468
21469 *) as_fn_append ac_config_targets " $1"
21470 ac_need_defaults=false ;;
21471
21472 esac
21473 shift
21474 done
21475
21476 ac_configure_extra_args=
21477
21478 if $ac_cs_silent; then
21479 exec 6>/dev/null
21480 ac_configure_extra_args="$ac_configure_extra_args --silent"
21481 fi
21482
21483 _ACEOF
21484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21485 if \$ac_cs_recheck; then
21486 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21487 shift
21488 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21489 CONFIG_SHELL='$SHELL'
21490 export CONFIG_SHELL
21491 exec "\$@"
21492 fi
21493
21494 _ACEOF
21495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21496 exec 5>>config.log
21497 {
21498 echo
21499 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21500 ## Running $as_me. ##
21501 _ASBOX
21502 $as_echo "$ac_log"
21503 } >&5
21504
21505 _ACEOF
21506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21507 #
21508 # INIT-COMMANDS
21509 #
21510 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21511
21512
21513 # The HP-UX ksh and POSIX shell print the target directory to stdout
21514 # if CDPATH is set.
21515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21516
21517 sed_quote_subst='$sed_quote_subst'
21518 double_quote_subst='$double_quote_subst'
21519 delay_variable_subst='$delay_variable_subst'
21520 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21521 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21522 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21523 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21524 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21525 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21526 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21527 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21528 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21529 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21530 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21531 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21532 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21533 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21534 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21535 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21536 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21537 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21538 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21539 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21540 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21541 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21542 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21543 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21544 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21545 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21546 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21547 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21548 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21549 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21550 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21551 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21552 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21553 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21554 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21555 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21556 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21557 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21558 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21559 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21560 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21561 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21562 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21563 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21564 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21565 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21566 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21567 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21568 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21569 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21570 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21571 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21572 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21573 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21574 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21575 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21576 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21577 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21578 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"`'
21579 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21580 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21581 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21582 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21583 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21584 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21585 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21586 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21587 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21588 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21589 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21590 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21591 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21592 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21593 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21594 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21595 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21596 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21597 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21598 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21599 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21600 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21601 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21602 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21603 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21604 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21605 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21606 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21607 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21608 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21609 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21610 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21611 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21612 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21613 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21614 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21615 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21616 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21617 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21618 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21619 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21620 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21621 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21622 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21623 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21624 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21625 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21626 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21627 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21628 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21629 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21630 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21631 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21632 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21633 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21634 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21635 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21636 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21637 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21638 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21639 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21640 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21641 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21642 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21643 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21644 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21645 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21646 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21647 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21648 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21649 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21650 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21651 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21652 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21653 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21654 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21655
21656 LTCC='$LTCC'
21657 LTCFLAGS='$LTCFLAGS'
21658 compiler='$compiler_DEFAULT'
21659
21660 # A function that is used when there is no print builtin or printf.
21661 func_fallback_echo ()
21662 {
21663 eval 'cat <<_LTECHO_EOF
21664 \$1
21665 _LTECHO_EOF'
21666 }
21667
21668 # Quote evaled strings.
21669 for var in SHELL \
21670 ECHO \
21671 PATH_SEPARATOR \
21672 SED \
21673 GREP \
21674 EGREP \
21675 FGREP \
21676 LD \
21677 NM \
21678 LN_S \
21679 lt_SP2NL \
21680 lt_NL2SP \
21681 reload_flag \
21682 OBJDUMP \
21683 deplibs_check_method \
21684 file_magic_cmd \
21685 file_magic_glob \
21686 want_nocaseglob \
21687 DLLTOOL \
21688 sharedlib_from_linklib_cmd \
21689 AR \
21690 AR_FLAGS \
21691 archiver_list_spec \
21692 STRIP \
21693 RANLIB \
21694 CC \
21695 CFLAGS \
21696 compiler \
21697 lt_cv_sys_global_symbol_pipe \
21698 lt_cv_sys_global_symbol_to_cdecl \
21699 lt_cv_sys_global_symbol_to_import \
21700 lt_cv_sys_global_symbol_to_c_name_address \
21701 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21702 lt_cv_nm_interface \
21703 nm_file_list_spec \
21704 lt_cv_truncate_bin \
21705 lt_prog_compiler_no_builtin_flag \
21706 lt_prog_compiler_pic \
21707 lt_prog_compiler_wl \
21708 lt_prog_compiler_static \
21709 lt_cv_prog_compiler_c_o \
21710 need_locks \
21711 MANIFEST_TOOL \
21712 DSYMUTIL \
21713 NMEDIT \
21714 LIPO \
21715 OTOOL \
21716 OTOOL64 \
21717 shrext_cmds \
21718 export_dynamic_flag_spec \
21719 whole_archive_flag_spec \
21720 compiler_needs_object \
21721 with_gnu_ld \
21722 allow_undefined_flag \
21723 no_undefined_flag \
21724 hardcode_libdir_flag_spec \
21725 hardcode_libdir_separator \
21726 exclude_expsyms \
21727 include_expsyms \
21728 file_list_spec \
21729 variables_saved_for_relink \
21730 libname_spec \
21731 library_names_spec \
21732 soname_spec \
21733 install_override_mode \
21734 finish_eval \
21735 old_striplib \
21736 striplib; do
21737 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21738 *[\\\\\\\`\\"\\\$]*)
21739 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21740 ;;
21741 *)
21742 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21743 ;;
21744 esac
21745 done
21746
21747 # Double-quote double-evaled strings.
21748 for var in reload_cmds \
21749 old_postinstall_cmds \
21750 old_postuninstall_cmds \
21751 old_archive_cmds \
21752 extract_expsyms_cmds \
21753 old_archive_from_new_cmds \
21754 old_archive_from_expsyms_cmds \
21755 archive_cmds \
21756 archive_expsym_cmds \
21757 module_cmds \
21758 module_expsym_cmds \
21759 export_symbols_cmds \
21760 prelink_cmds \
21761 postlink_cmds \
21762 postinstall_cmds \
21763 postuninstall_cmds \
21764 finish_cmds \
21765 sys_lib_search_path_spec \
21766 configure_time_dlsearch_path \
21767 configure_time_lt_sys_library_path; do
21768 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21769 *[\\\\\\\`\\"\\\$]*)
21770 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21771 ;;
21772 *)
21773 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21774 ;;
21775 esac
21776 done
21777
21778 ac_aux_dir='$ac_aux_dir'
21779
21780 # See if we are running on zsh, and set the options that allow our
21781 # commands through without removal of \ escapes INIT.
21782 if test -n "\${ZSH_VERSION+set}"; then
21783 setopt NO_GLOB_SUBST
21784 fi
21785
21786
21787 PACKAGE='$PACKAGE'
21788 VERSION='$VERSION'
21789 RM='$RM'
21790 ofile='$ofile'
21791
21792
21793
21794
21795 _ACEOF
21796
21797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21798
21799 # Handling of arguments.
21800 for ac_config_target in $ac_config_targets
21801 do
21802 case $ac_config_target in
21803 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21804 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21805 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21806 "prefix-config") CONFIG_COMMANDS="$CONFIG_COMMANDS prefix-config" ;;
21807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21808 "localdefs") CONFIG_FILES="$CONFIG_FILES localdefs" ;;
21809 "include/mpl_timer.h") CONFIG_FILES="$CONFIG_FILES include/mpl_timer.h" ;;
21810
21811 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21812 esac
21813 done
21814
21815
21816 # If the user did not use the arguments to specify the items to instantiate,
21817 # then the envvar interface is used. Set only those that are not.
21818 # We use the long form for the default assignment because of an extremely
21819 # bizarre bug on SunOS 4.1.3.
21820 if $ac_need_defaults; then
21821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21824 fi
21825
21826 # Have a temporary directory for convenience. Make it in the build tree
21827 # simply because there is no reason against having it here, and in addition,
21828 # creating and moving files from /tmp can sometimes cause problems.
21829 # Hook for its removal unless debugging.
21830 # Note that there is a small window in which the directory will not be cleaned:
21831 # after its creation but before its name has been assigned to `$tmp'.
21832 $debug ||
21833 {
21834 tmp= ac_tmp=
21835 trap 'exit_status=$?
21836 : "${ac_tmp:=$tmp}"
21837 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21838 ' 0
21839 trap 'as_fn_exit 1' 1 2 13 15
21840 }
21841 # Create a (secure) tmp directory for tmp files.
21842
21843 {
21844 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21845 test -d "$tmp"
21846 } ||
21847 {
21848 tmp=./conf$$-$RANDOM
21849 (umask 077 && mkdir "$tmp")
21850 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21851 ac_tmp=$tmp
21852
21853 # Set up the scripts for CONFIG_FILES section.
21854 # No need to generate them if there are no CONFIG_FILES.
21855 # This happens for instance with `./config.status config.h'.
21856 if test -n "$CONFIG_FILES"; then
21857
21858
21859 ac_cr=`echo X | tr X '\015'`
21860 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21861 # But we know of no other shell where ac_cr would be empty at this
21862 # point, so we can use a bashism as a fallback.
21863 if test "x$ac_cr" = x; then
21864 eval ac_cr=\$\'\\r\'
21865 fi
21866 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21867 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21868 ac_cs_awk_cr='\\r'
21869 else
21870 ac_cs_awk_cr=$ac_cr
21871 fi
21872
21873 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21874 _ACEOF
21875
21876
21877 {
21878 echo "cat >conf$$subs.awk <<_ACEOF" &&
21879 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21880 echo "_ACEOF"
21881 } >conf$$subs.sh ||
21882 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21883 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21884 ac_delim='%!_!# '
21885 for ac_last_try in false false false false false :; do
21886 . ./conf$$subs.sh ||
21887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21888
21889 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21890 if test $ac_delim_n = $ac_delim_num; then
21891 break
21892 elif $ac_last_try; then
21893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21894 else
21895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21896 fi
21897 done
21898 rm -f conf$$subs.sh
21899
21900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21901 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21902 _ACEOF
21903 sed -n '
21904 h
21905 s/^/S["/; s/!.*/"]=/
21906 p
21907 g
21908 s/^[^!]*!//
21909 :repl
21910 t repl
21911 s/'"$ac_delim"'$//
21912 t delim
21913 :nl
21914 h
21915 s/\(.\{148\}\)..*/\1/
21916 t more1
21917 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21918 p
21919 n
21920 b repl
21921 :more1
21922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21923 p
21924 g
21925 s/.\{148\}//
21926 t nl
21927 :delim
21928 h
21929 s/\(.\{148\}\)..*/\1/
21930 t more2
21931 s/["\\]/\\&/g; s/^/"/; s/$/"/
21932 p
21933 b
21934 :more2
21935 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21936 p
21937 g
21938 s/.\{148\}//
21939 t delim
21940 ' <conf$$subs.awk | sed '
21941 /^[^""]/{
21942 N
21943 s/\n//
21944 }
21945 ' >>$CONFIG_STATUS || ac_write_fail=1
21946 rm -f conf$$subs.awk
21947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21948 _ACAWK
21949 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21950 for (key in S) S_is_set[key] = 1
21951 FS = ""
21952
21953 }
21954 {
21955 line = $ 0
21956 nfields = split(line, field, "@")
21957 substed = 0
21958 len = length(field[1])
21959 for (i = 2; i < nfields; i++) {
21960 key = field[i]
21961 keylen = length(key)
21962 if (S_is_set[key]) {
21963 value = S[key]
21964 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21965 len += length(value) + length(field[++i])
21966 substed = 1
21967 } else
21968 len += 1 + keylen
21969 }
21970
21971 print line
21972 }
21973
21974 _ACAWK
21975 _ACEOF
21976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21977 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21978 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21979 else
21980 cat
21981 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21982 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21983 _ACEOF
21984
21985 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21986 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21987 # trailing colons and then remove the whole line if VPATH becomes empty
21988 # (actually we leave an empty line to preserve line numbers).
21989 if test "x$srcdir" = x.; then
21990 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21991 h
21992 s///
21993 s/^/:/
21994 s/[ ]*$/:/
21995 s/:\$(srcdir):/:/g
21996 s/:\${srcdir}:/:/g
21997 s/:@srcdir@:/:/g
21998 s/^:*//
21999 s/:*$//
22000 x
22001 s/\(=[ ]*\).*/\1/
22002 G
22003 s/\n//
22004 s/^[^=]*=[ ]*$//
22005 }'
22006 fi
22007
22008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22009 fi # test -n "$CONFIG_FILES"
22010
22011 # Set up the scripts for CONFIG_HEADERS section.
22012 # No need to generate them if there are no CONFIG_HEADERS.
22013 # This happens for instance with `./config.status Makefile'.
22014 if test -n "$CONFIG_HEADERS"; then
22015 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22016 BEGIN {
22017 _ACEOF
22018
22019 # Transform confdefs.h into an awk script `defines.awk', embedded as
22020 # here-document in config.status, that substitutes the proper values into
22021 # config.h.in to produce config.h.
22022
22023 # Create a delimiter string that does not exist in confdefs.h, to ease
22024 # handling of long lines.
22025 ac_delim='%!_!# '
22026 for ac_last_try in false false :; do
22027 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22028 if test -z "$ac_tt"; then
22029 break
22030 elif $ac_last_try; then
22031 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22032 else
22033 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22034 fi
22035 done
22036
22037 # For the awk script, D is an array of macro values keyed by name,
22038 # likewise P contains macro parameters if any. Preserve backslash
22039 # newline sequences.
22040
22041 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22042 sed -n '
22043 s/.\{148\}/&'"$ac_delim"'/g
22044 t rset
22045 :rset
22046 s/^[ ]*#[ ]*define[ ][ ]*/ /
22047 t def
22048 d
22049 :def
22050 s/\\$//
22051 t bsnl
22052 s/["\\]/\\&/g
22053 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22054 D["\1"]=" \3"/p
22055 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22056 d
22057 :bsnl
22058 s/["\\]/\\&/g
22059 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22060 D["\1"]=" \3\\\\\\n"\\/p
22061 t cont
22062 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22063 t cont
22064 d
22065 :cont
22066 n
22067 s/.\{148\}/&'"$ac_delim"'/g
22068 t clear
22069 :clear
22070 s/\\$//
22071 t bsnlc
22072 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22073 d
22074 :bsnlc
22075 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22076 b cont
22077 ' <confdefs.h | sed '
22078 s/'"$ac_delim"'/"\\\
22079 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22080
22081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22082 for (key in D) D_is_set[key] = 1
22083 FS = ""
22084 }
22085 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22086 line = \$ 0
22087 split(line, arg, " ")
22088 if (arg[1] == "#") {
22089 defundef = arg[2]
22090 mac1 = arg[3]
22091 } else {
22092 defundef = substr(arg[1], 2)
22093 mac1 = arg[2]
22094 }
22095 split(mac1, mac2, "(") #)
22096 macro = mac2[1]
22097 prefix = substr(line, 1, index(line, defundef) - 1)
22098 if (D_is_set[macro]) {
22099 # Preserve the white space surrounding the "#".
22100 print prefix "define", macro P[macro] D[macro]
22101 next
22102 } else {
22103 # Replace #undef with comments. This is necessary, for example,
22104 # in the case of _POSIX_SOURCE, which is predefined and required
22105 # on some systems where configure will not decide to define it.
22106 if (defundef == "undef") {
22107 print "/*", prefix defundef, macro, "*/"
22108 next
22109 }
22110 }
22111 }
22112 { print }
22113 _ACAWK
22114 _ACEOF
22115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22116 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22117 fi # test -n "$CONFIG_HEADERS"
22118
22119
22120 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22121 shift
22122 for ac_tag
22123 do
22124 case $ac_tag in
22125 :[FHLC]) ac_mode=$ac_tag; continue;;
22126 esac
22127 case $ac_mode$ac_tag in
22128 :[FHL]*:*);;
22129 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22130 :[FH]-) ac_tag=-:-;;
22131 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22132 esac
22133 ac_save_IFS=$IFS
22134 IFS=:
22135 set x $ac_tag
22136 IFS=$ac_save_IFS
22137 shift
22138 ac_file=$1
22139 shift
22140
22141 case $ac_mode in
22142 :L) ac_source=$1;;
22143 :[FH])
22144 ac_file_inputs=
22145 for ac_f
22146 do
22147 case $ac_f in
22148 -) ac_f="$ac_tmp/stdin";;
22149 *) # Look for the file first in the build tree, then in the source tree
22150 # (if the path is not absolute). The absolute path cannot be DOS-style,
22151 # because $ac_f cannot contain `:'.
22152 test -f "$ac_f" ||
22153 case $ac_f in
22154 [\\/$]*) false;;
22155 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22156 esac ||
22157 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22158 esac
22159 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22160 as_fn_append ac_file_inputs " '$ac_f'"
22161 done
22162
22163 # Let's still pretend it is `configure' which instantiates (i.e., don't
22164 # use $as_me), people would be surprised to read:
22165 # /* config.h. Generated by config.status. */
22166 configure_input='Generated from '`
22167 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22168 `' by configure.'
22169 if test x"$ac_file" != x-; then
22170 configure_input="$ac_file. $configure_input"
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22172 $as_echo "$as_me: creating $ac_file" >&6;}
22173 fi
22174 # Neutralize special characters interpreted by sed in replacement strings.
22175 case $configure_input in #(
22176 *\&* | *\|* | *\\* )
22177 ac_sed_conf_input=`$as_echo "$configure_input" |
22178 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22179 *) ac_sed_conf_input=$configure_input;;
22180 esac
22181
22182 case $ac_tag in
22183 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22185 esac
22186 ;;
22187 esac
22188
22189 ac_dir=`$as_dirname -- "$ac_file" ||
22190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$ac_file" : 'X\(//\)[^/]' \| \
22192 X"$ac_file" : 'X\(//\)$' \| \
22193 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22194 $as_echo X"$ac_file" |
22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196 s//\1/
22197 q
22198 }
22199 /^X\(\/\/\)[^/].*/{
22200 s//\1/
22201 q
22202 }
22203 /^X\(\/\/\)$/{
22204 s//\1/
22205 q
22206 }
22207 /^X\(\/\).*/{
22208 s//\1/
22209 q
22210 }
22211 s/.*/./; q'`
22212 as_dir="$ac_dir"; as_fn_mkdir_p
22213 ac_builddir=.
22214
22215 case "$ac_dir" in
22216 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22217 *)
22218 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22219 # A ".." for each directory in $ac_dir_suffix.
22220 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22221 case $ac_top_builddir_sub in
22222 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22223 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22224 esac ;;
22225 esac
22226 ac_abs_top_builddir=$ac_pwd
22227 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22228 # for backward compatibility:
22229 ac_top_builddir=$ac_top_build_prefix
22230
22231 case $srcdir in
22232 .) # We are building in place.
22233 ac_srcdir=.
22234 ac_top_srcdir=$ac_top_builddir_sub
22235 ac_abs_top_srcdir=$ac_pwd ;;
22236 [\\/]* | ?:[\\/]* ) # Absolute name.
22237 ac_srcdir=$srcdir$ac_dir_suffix;
22238 ac_top_srcdir=$srcdir
22239 ac_abs_top_srcdir=$srcdir ;;
22240 *) # Relative name.
22241 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22242 ac_top_srcdir=$ac_top_build_prefix$srcdir
22243 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22244 esac
22245 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22246
22247
22248 case $ac_mode in
22249 :F)
22250 #
22251 # CONFIG_FILE
22252 #
22253
22254 case $INSTALL in
22255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22256 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22257 esac
22258 ac_MKDIR_P=$MKDIR_P
22259 case $MKDIR_P in
22260 [\\/$]* | ?:[\\/]* ) ;;
22261 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22262 esac
22263 _ACEOF
22264
22265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22266 # If the template does not know about datarootdir, expand it.
22267 # FIXME: This hack should be removed a few years after 2.60.
22268 ac_datarootdir_hack=; ac_datarootdir_seen=
22269 ac_sed_dataroot='
22270 /datarootdir/ {
22271 p
22272 q
22273 }
22274 /@datadir@/p
22275 /@docdir@/p
22276 /@infodir@/p
22277 /@localedir@/p
22278 /@mandir@/p'
22279 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22280 *datarootdir*) ac_datarootdir_seen=yes;;
22281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22283 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22284 _ACEOF
22285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22286 ac_datarootdir_hack='
22287 s&@datadir@&$datadir&g
22288 s&@docdir@&$docdir&g
22289 s&@infodir@&$infodir&g
22290 s&@localedir@&$localedir&g
22291 s&@mandir@&$mandir&g
22292 s&\\\${datarootdir}&$datarootdir&g' ;;
22293 esac
22294 _ACEOF
22295
22296 # Neutralize VPATH when `$srcdir' = `.'.
22297 # Shell code in configure.ac might set extrasub.
22298 # FIXME: do we really want to maintain this feature?
22299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22300 ac_sed_extra="$ac_vpsub
22301 $extrasub
22302 _ACEOF
22303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22304 :t
22305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22306 s|@configure_input@|$ac_sed_conf_input|;t t
22307 s&@top_builddir@&$ac_top_builddir_sub&;t t
22308 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22309 s&@srcdir@&$ac_srcdir&;t t
22310 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22311 s&@top_srcdir@&$ac_top_srcdir&;t t
22312 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22313 s&@builddir@&$ac_builddir&;t t
22314 s&@abs_builddir@&$ac_abs_builddir&;t t
22315 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22316 s&@INSTALL@&$ac_INSTALL&;t t
22317 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22318 $ac_datarootdir_hack
22319 "
22320 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22321 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22322
22323 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22324 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22325 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22326 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22328 which seems to be undefined. Please make sure it is defined" >&5
22329 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22330 which seems to be undefined. Please make sure it is defined" >&2;}
22331
22332 rm -f "$ac_tmp/stdin"
22333 case $ac_file in
22334 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22335 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22336 esac \
22337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22338 ;;
22339 :H)
22340 #
22341 # CONFIG_HEADER
22342 #
22343 if test x"$ac_file" != x-; then
22344 {
22345 $as_echo "/* $configure_input */" \
22346 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22347 } >"$ac_tmp/config.h" \
22348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22349 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22351 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22352 else
22353 rm -f "$ac_file"
22354 mv "$ac_tmp/config.h" "$ac_file" \
22355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22356 fi
22357 else
22358 $as_echo "/* $configure_input */" \
22359 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22360 || as_fn_error $? "could not create -" "$LINENO" 5
22361 fi
22362 # Compute "$ac_file"'s index in $config_headers.
22363 _am_arg="$ac_file"
22364 _am_stamp_count=1
22365 for _am_header in $config_headers :; do
22366 case $_am_header in
22367 $_am_arg | $_am_arg:* )
22368 break ;;
22369 * )
22370 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22371 esac
22372 done
22373 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22374 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22375 X"$_am_arg" : 'X\(//\)[^/]' \| \
22376 X"$_am_arg" : 'X\(//\)$' \| \
22377 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22378 $as_echo X"$_am_arg" |
22379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22380 s//\1/
22381 q
22382 }
22383 /^X\(\/\/\)[^/].*/{
22384 s//\1/
22385 q
22386 }
22387 /^X\(\/\/\)$/{
22388 s//\1/
22389 q
22390 }
22391 /^X\(\/\).*/{
22392 s//\1/
22393 q
22394 }
22395 s/.*/./; q'`/stamp-h$_am_stamp_count
22396 ;;
22397
22398 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22399 $as_echo "$as_me: executing $ac_file commands" >&6;}
22400 ;;
22401 esac
22402
22403
22404 case $ac_file$ac_mode in
22405 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22406 # Older Autoconf quotes --file arguments for eval, but not when files
22407 # are listed without --file. Let's play safe and only enable the eval
22408 # if we detect the quoting.
22409 # TODO: see whether this extra hack can be removed once we start
22410 # requiring Autoconf 2.70 or later.
22411 case $CONFIG_FILES in #(
22412 *\'*) :
22413 eval set x "$CONFIG_FILES" ;; #(
22414 *) :
22415 set x $CONFIG_FILES ;; #(
22416 *) :
22417 ;;
22418 esac
22419 shift
22420 # Used to flag and report bootstrapping failures.
22421 am_rc=0
22422 for am_mf
22423 do
22424 # Strip MF so we end up with the name of the file.
22425 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22426 # Check whether this is an Automake generated Makefile which includes
22427 # dependency-tracking related rules and includes.
22428 # Grep'ing the whole file directly is not great: AIX grep has a line
22429 # limit of 2048, but all sed's we know have understand at least 4000.
22430 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22431 || continue
22432 am_dirpart=`$as_dirname -- "$am_mf" ||
22433 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22434 X"$am_mf" : 'X\(//\)[^/]' \| \
22435 X"$am_mf" : 'X\(//\)$' \| \
22436 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22437 $as_echo X"$am_mf" |
22438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22439 s//\1/
22440 q
22441 }
22442 /^X\(\/\/\)[^/].*/{
22443 s//\1/
22444 q
22445 }
22446 /^X\(\/\/\)$/{
22447 s//\1/
22448 q
22449 }
22450 /^X\(\/\).*/{
22451 s//\1/
22452 q
22453 }
22454 s/.*/./; q'`
22455 am_filepart=`$as_basename -- "$am_mf" ||
22456 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22457 X"$am_mf" : 'X\(//\)$' \| \
22458 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22459 $as_echo X/"$am_mf" |
22460 sed '/^.*\/\([^/][^/]*\)\/*$/{
22461 s//\1/
22462 q
22463 }
22464 /^X\/\(\/\/\)$/{
22465 s//\1/
22466 q
22467 }
22468 /^X\/\(\/\).*/{
22469 s//\1/
22470 q
22471 }
22472 s/.*/./; q'`
22473 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22474 && sed -e '/# am--include-marker/d' "$am_filepart" \
22475 | $MAKE -f - am--depfiles" >&5
22476 (cd "$am_dirpart" \
22477 && sed -e '/# am--include-marker/d' "$am_filepart" \
22478 | $MAKE -f - am--depfiles) >&5 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } || am_rc=$?
22482 done
22483 if test $am_rc -ne 0; then
22484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22486 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22487 for automatic dependency tracking. If GNU make was not used, consider
22488 re-running the configure script with MAKE=\"gmake\" (or whatever is
22489 necessary). You can also try re-running configure with the
22490 '--disable-dependency-tracking' option to at least be able to build
22491 the package (albeit without support for automatic dependency tracking).
22492 See \`config.log' for more details" "$LINENO" 5; }
22493 fi
22494 { am_dirpart=; unset am_dirpart;}
22495 { am_filepart=; unset am_filepart;}
22496 { am_mf=; unset am_mf;}
22497 { am_rc=; unset am_rc;}
22498 rm -f conftest-deps.mk
22499 }
22500 ;;
22501 "libtool":C)
22502
22503 # See if we are running on zsh, and set the options that allow our
22504 # commands through without removal of \ escapes.
22505 if test -n "${ZSH_VERSION+set}"; then
22506 setopt NO_GLOB_SUBST
22507 fi
22508
22509 cfgfile=${ofile}T
22510 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22511 $RM "$cfgfile"
22512
22513 cat <<_LT_EOF >> "$cfgfile"
22514 #! $SHELL
22515 # Generated automatically by $as_me ($PACKAGE) $VERSION
22516 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22517 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22518
22519 # Provide generalized library-building support services.
22520 # Written by Gordon Matzigkeit, 1996
22521
22522 # Copyright (C) 2014 Free Software Foundation, Inc.
22523 # This is free software; see the source for copying conditions. There is NO
22524 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22525
22526 # GNU Libtool is free software; you can redistribute it and/or modify
22527 # it under the terms of the GNU General Public License as published by
22528 # the Free Software Foundation; either version 2 of of the License, or
22529 # (at your option) any later version.
22530 #
22531 # As a special exception to the GNU General Public License, if you
22532 # distribute this file as part of a program or library that is built
22533 # using GNU Libtool, you may include this file under the same
22534 # distribution terms that you use for the rest of that program.
22535 #
22536 # GNU Libtool is distributed in the hope that it will be useful, but
22537 # WITHOUT ANY WARRANTY; without even the implied warranty of
22538 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22539 # GNU General Public License for more details.
22540 #
22541 # You should have received a copy of the GNU General Public License
22542 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22543
22544
22545 # The names of the tagged configurations supported by this script.
22546 available_tags=''
22547
22548 # Configured defaults for sys_lib_dlsearch_path munging.
22549 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22550
22551 # ### BEGIN LIBTOOL CONFIG
22552
22553 # Which release of libtool.m4 was used?
22554 macro_version=$macro_version
22555 macro_revision=$macro_revision
22556
22557 # Whether or not to build shared libraries.
22558 build_libtool_libs=$enable_shared
22559
22560 # Whether or not to build static libraries.
22561 build_old_libs=$enable_static
22562
22563 # What type of objects to build.
22564 pic_mode=$pic_mode
22565
22566 # Whether or not to optimize for fast installation.
22567 fast_install=$enable_fast_install
22568
22569 # Shared archive member basename,for filename based shared library versioning on AIX.
22570 shared_archive_member_spec=$shared_archive_member_spec
22571
22572 # Shell to use when invoking shell scripts.
22573 SHELL=$lt_SHELL
22574
22575 # An echo program that protects backslashes.
22576 ECHO=$lt_ECHO
22577
22578 # The PATH separator for the build system.
22579 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22580
22581 # The host system.
22582 host_alias=$host_alias
22583 host=$host
22584 host_os=$host_os
22585
22586 # The build system.
22587 build_alias=$build_alias
22588 build=$build
22589 build_os=$build_os
22590
22591 # A sed program that does not truncate output.
22592 SED=$lt_SED
22593
22594 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22595 Xsed="\$SED -e 1s/^X//"
22596
22597 # A grep program that handles long lines.
22598 GREP=$lt_GREP
22599
22600 # An ERE matcher.
22601 EGREP=$lt_EGREP
22602
22603 # A literal string matcher.
22604 FGREP=$lt_FGREP
22605
22606 # A BSD- or MS-compatible name lister.
22607 NM=$lt_NM
22608
22609 # Whether we need soft or hard links.
22610 LN_S=$lt_LN_S
22611
22612 # What is the maximum length of a command?
22613 max_cmd_len=$max_cmd_len
22614
22615 # Object file suffix (normally "o").
22616 objext=$ac_objext
22617
22618 # Executable file suffix (normally "").
22619 exeext=$exeext
22620
22621 # whether the shell understands "unset".
22622 lt_unset=$lt_unset
22623
22624 # turn spaces into newlines.
22625 SP2NL=$lt_lt_SP2NL
22626
22627 # turn newlines into spaces.
22628 NL2SP=$lt_lt_NL2SP
22629
22630 # convert \$build file names to \$host format.
22631 to_host_file_cmd=$lt_cv_to_host_file_cmd
22632
22633 # convert \$build files to toolchain format.
22634 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22635
22636 # An object symbol dumper.
22637 OBJDUMP=$lt_OBJDUMP
22638
22639 # Method to check whether dependent libraries are shared objects.
22640 deplibs_check_method=$lt_deplibs_check_method
22641
22642 # Command to use when deplibs_check_method = "file_magic".
22643 file_magic_cmd=$lt_file_magic_cmd
22644
22645 # How to find potential files when deplibs_check_method = "file_magic".
22646 file_magic_glob=$lt_file_magic_glob
22647
22648 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22649 want_nocaseglob=$lt_want_nocaseglob
22650
22651 # DLL creation program.
22652 DLLTOOL=$lt_DLLTOOL
22653
22654 # Command to associate shared and link libraries.
22655 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22656
22657 # The archiver.
22658 AR=$lt_AR
22659
22660 # Flags to create an archive.
22661 AR_FLAGS=$lt_AR_FLAGS
22662
22663 # How to feed a file listing to the archiver.
22664 archiver_list_spec=$lt_archiver_list_spec
22665
22666 # A symbol stripping program.
22667 STRIP=$lt_STRIP
22668
22669 # Commands used to install an old-style archive.
22670 RANLIB=$lt_RANLIB
22671 old_postinstall_cmds=$lt_old_postinstall_cmds
22672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22673
22674 # Whether to use a lock for old archive extraction.
22675 lock_old_archive_extraction=$lock_old_archive_extraction
22676
22677 # A C compiler.
22678 LTCC=$lt_CC
22679
22680 # LTCC compiler flags.
22681 LTCFLAGS=$lt_CFLAGS
22682
22683 # Take the output of nm and produce a listing of raw symbols and C names.
22684 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22685
22686 # Transform the output of nm in a proper C declaration.
22687 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22688
22689 # Transform the output of nm into a list of symbols to manually relocate.
22690 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22691
22692 # Transform the output of nm in a C name address pair.
22693 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22694
22695 # Transform the output of nm in a C name address pair when lib prefix is needed.
22696 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22697
22698 # The name lister interface.
22699 nm_interface=$lt_lt_cv_nm_interface
22700
22701 # Specify filename containing input files for \$NM.
22702 nm_file_list_spec=$lt_nm_file_list_spec
22703
22704 # The root where to search for dependent libraries,and where our libraries should be installed.
22705 lt_sysroot=$lt_sysroot
22706
22707 # Command to truncate a binary pipe.
22708 lt_truncate_bin=$lt_lt_cv_truncate_bin
22709
22710 # The name of the directory that contains temporary libtool files.
22711 objdir=$objdir
22712
22713 # Used to examine libraries when file_magic_cmd begins with "file".
22714 MAGIC_CMD=$MAGIC_CMD
22715
22716 # Must we lock files when doing compilation?
22717 need_locks=$lt_need_locks
22718
22719 # Manifest tool.
22720 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22721
22722 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22723 DSYMUTIL=$lt_DSYMUTIL
22724
22725 # Tool to change global to local symbols on Mac OS X.
22726 NMEDIT=$lt_NMEDIT
22727
22728 # Tool to manipulate fat objects and archives on Mac OS X.
22729 LIPO=$lt_LIPO
22730
22731 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22732 OTOOL=$lt_OTOOL
22733
22734 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22735 OTOOL64=$lt_OTOOL64
22736
22737 # Old archive suffix (normally "a").
22738 libext=$libext
22739
22740 # Shared library suffix (normally ".so").
22741 shrext_cmds=$lt_shrext_cmds
22742
22743 # The commands to extract the exported symbol list from a shared archive.
22744 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22745
22746 # Variables whose values should be saved in libtool wrapper scripts and
22747 # restored at link time.
22748 variables_saved_for_relink=$lt_variables_saved_for_relink
22749
22750 # Do we need the "lib" prefix for modules?
22751 need_lib_prefix=$need_lib_prefix
22752
22753 # Do we need a version for libraries?
22754 need_version=$need_version
22755
22756 # Library versioning type.
22757 version_type=$version_type
22758
22759 # Shared library runtime path variable.
22760 runpath_var=$runpath_var
22761
22762 # Shared library path variable.
22763 shlibpath_var=$shlibpath_var
22764
22765 # Is shlibpath searched before the hard-coded library search path?
22766 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22767
22768 # Format of library name prefix.
22769 libname_spec=$lt_libname_spec
22770
22771 # List of archive names. First name is the real one, the rest are links.
22772 # The last name is the one that the linker finds with -lNAME
22773 library_names_spec=$lt_library_names_spec
22774
22775 # The coded name of the library, if different from the real name.
22776 soname_spec=$lt_soname_spec
22777
22778 # Permission mode override for installation of shared libraries.
22779 install_override_mode=$lt_install_override_mode
22780
22781 # Command to use after installation of a shared archive.
22782 postinstall_cmds=$lt_postinstall_cmds
22783
22784 # Command to use after uninstallation of a shared archive.
22785 postuninstall_cmds=$lt_postuninstall_cmds
22786
22787 # Commands used to finish a libtool library installation in a directory.
22788 finish_cmds=$lt_finish_cmds
22789
22790 # As "finish_cmds", except a single script fragment to be evaled but
22791 # not shown.
22792 finish_eval=$lt_finish_eval
22793
22794 # Whether we should hardcode library paths into libraries.
22795 hardcode_into_libs=$hardcode_into_libs
22796
22797 # Compile-time system search path for libraries.
22798 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22799
22800 # Detected run-time system search path for libraries.
22801 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22802
22803 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22804 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22805
22806 # Whether dlopen is supported.
22807 dlopen_support=$enable_dlopen
22808
22809 # Whether dlopen of programs is supported.
22810 dlopen_self=$enable_dlopen_self
22811
22812 # Whether dlopen of statically linked programs is supported.
22813 dlopen_self_static=$enable_dlopen_self_static
22814
22815 # Commands to strip libraries.
22816 old_striplib=$lt_old_striplib
22817 striplib=$lt_striplib
22818
22819
22820 # The linker used to build libraries.
22821 LD=$lt_LD
22822
22823 # How to create reloadable object files.
22824 reload_flag=$lt_reload_flag
22825 reload_cmds=$lt_reload_cmds
22826
22827 # Commands used to build an old-style archive.
22828 old_archive_cmds=$lt_old_archive_cmds
22829
22830 # A language specific compiler.
22831 CC=$lt_compiler
22832
22833 # Is the compiler the GNU compiler?
22834 with_gcc=$GCC
22835
22836 # Compiler flag to turn off builtin functions.
22837 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22838
22839 # Additional compiler flags for building library objects.
22840 pic_flag=$lt_lt_prog_compiler_pic
22841
22842 # How to pass a linker flag through the compiler.
22843 wl=$lt_lt_prog_compiler_wl
22844
22845 # Compiler flag to prevent dynamic linking.
22846 link_static_flag=$lt_lt_prog_compiler_static
22847
22848 # Does compiler simultaneously support -c and -o options?
22849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22850
22851 # Whether or not to add -lc for building shared libraries.
22852 build_libtool_need_lc=$archive_cmds_need_lc
22853
22854 # Whether or not to disallow shared libs when runtime libs are static.
22855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22856
22857 # Compiler flag to allow reflexive dlopens.
22858 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22859
22860 # Compiler flag to generate shared objects directly from archives.
22861 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22862
22863 # Whether the compiler copes with passing no objects directly.
22864 compiler_needs_object=$lt_compiler_needs_object
22865
22866 # Create an old-style archive from a shared archive.
22867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22868
22869 # Create a temporary old-style archive to link instead of a shared archive.
22870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22871
22872 # Commands used to build a shared archive.
22873 archive_cmds=$lt_archive_cmds
22874 archive_expsym_cmds=$lt_archive_expsym_cmds
22875
22876 # Commands used to build a loadable module if different from building
22877 # a shared archive.
22878 module_cmds=$lt_module_cmds
22879 module_expsym_cmds=$lt_module_expsym_cmds
22880
22881 # Whether we are building with GNU ld or not.
22882 with_gnu_ld=$lt_with_gnu_ld
22883
22884 # Flag that allows shared libraries with undefined symbols to be built.
22885 allow_undefined_flag=$lt_allow_undefined_flag
22886
22887 # Flag that enforces no undefined symbols.
22888 no_undefined_flag=$lt_no_undefined_flag
22889
22890 # Flag to hardcode \$libdir into a binary during linking.
22891 # This must work even if \$libdir does not exist
22892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22893
22894 # Whether we need a single "-rpath" flag with a separated argument.
22895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22896
22897 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22898 # DIR into the resulting binary.
22899 hardcode_direct=$hardcode_direct
22900
22901 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22902 # DIR into the resulting binary and the resulting library dependency is
22903 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22904 # library is relocated.
22905 hardcode_direct_absolute=$hardcode_direct_absolute
22906
22907 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22908 # into the resulting binary.
22909 hardcode_minus_L=$hardcode_minus_L
22910
22911 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22912 # into the resulting binary.
22913 hardcode_shlibpath_var=$hardcode_shlibpath_var
22914
22915 # Set to "yes" if building a shared library automatically hardcodes DIR
22916 # into the library and all subsequent libraries and executables linked
22917 # against it.
22918 hardcode_automatic=$hardcode_automatic
22919
22920 # Set to yes if linker adds runtime paths of dependent libraries
22921 # to runtime path list.
22922 inherit_rpath=$inherit_rpath
22923
22924 # Whether libtool must link a program against all its dependency libraries.
22925 link_all_deplibs=$link_all_deplibs
22926
22927 # Set to "yes" if exported symbols are required.
22928 always_export_symbols=$always_export_symbols
22929
22930 # The commands to list exported symbols.
22931 export_symbols_cmds=$lt_export_symbols_cmds
22932
22933 # Symbols that should not be listed in the preloaded symbols.
22934 exclude_expsyms=$lt_exclude_expsyms
22935
22936 # Symbols that must always be exported.
22937 include_expsyms=$lt_include_expsyms
22938
22939 # Commands necessary for linking programs (against libraries) with templates.
22940 prelink_cmds=$lt_prelink_cmds
22941
22942 # Commands necessary for finishing linking programs.
22943 postlink_cmds=$lt_postlink_cmds
22944
22945 # Specify filename containing input files.
22946 file_list_spec=$lt_file_list_spec
22947
22948 # How to hardcode a shared library path into an executable.
22949 hardcode_action=$hardcode_action
22950
22951 # ### END LIBTOOL CONFIG
22952
22953 _LT_EOF
22954
22955 cat <<'_LT_EOF' >> "$cfgfile"
22956
22957 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22958
22959 # func_munge_path_list VARIABLE PATH
22960 # -----------------------------------
22961 # VARIABLE is name of variable containing _space_ separated list of
22962 # directories to be munged by the contents of PATH, which is string
22963 # having a format:
22964 # "DIR[:DIR]:"
22965 # string "DIR[ DIR]" will be prepended to VARIABLE
22966 # ":DIR[:DIR]"
22967 # string "DIR[ DIR]" will be appended to VARIABLE
22968 # "DIRP[:DIRP]::[DIRA:]DIRA"
22969 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22970 # "DIRA[ DIRA]" will be appended to VARIABLE
22971 # "DIR[:DIR]"
22972 # VARIABLE will be replaced by "DIR[ DIR]"
22973 func_munge_path_list ()
22974 {
22975 case x$2 in
22976 x)
22977 ;;
22978 *:)
22979 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22980 ;;
22981 x:*)
22982 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22983 ;;
22984 *::*)
22985 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22986 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22987 ;;
22988 *)
22989 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22990 ;;
22991 esac
22992 }
22993
22994
22995 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22996 func_cc_basename ()
22997 {
22998 for cc_temp in $*""; do
22999 case $cc_temp in
23000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23002 \-*) ;;
23003 *) break;;
23004 esac
23005 done
23006 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23007 }
23008
23009
23010 # ### END FUNCTIONS SHARED WITH CONFIGURE
23011
23012 _LT_EOF
23013
23014 case $host_os in
23015 aix3*)
23016 cat <<\_LT_EOF >> "$cfgfile"
23017 # AIX sometimes has problems with the GCC collect2 program. For some
23018 # reason, if we set the COLLECT_NAMES environment variable, the problems
23019 # vanish in a puff of smoke.
23020 if test set != "${COLLECT_NAMES+set}"; then
23021 COLLECT_NAMES=
23022 export COLLECT_NAMES
23023 fi
23024 _LT_EOF
23025 ;;
23026 esac
23027
23028
23029 ltmain=$ac_aux_dir/ltmain.sh
23030
23031
23032 # We use sed instead of cat because bash on DJGPP gets confused if
23033 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23034 # text mode, it properly converts lines to CR/LF. This bash problem
23035 # is reportedly fixed, but why not run on old versions too?
23036 sed '$q' "$ltmain" >> "$cfgfile" \
23037 || (rm -f "$cfgfile"; exit 1)
23038
23039 mv -f "$cfgfile" "$ofile" ||
23040 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23041 chmod +x "$ofile"
23042
23043 ;;
23044 "prefix-config":C) perl $srcdir/confdb/cmd_prefix_config_h.pl MPL include/config.h include/mplconfig.h ;;
23045
23046 esac
23047 done # for ac_tag
23048
23049
23050 as_fn_exit 0
23051 _ACEOF
23052 ac_clean_files=$ac_clean_files_save
23053
23054 test $ac_write_fail = 0 ||
23055 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23056
23057
23058 # configure is writing to config.log, and then calls config.status.
23059 # config.status does its own redirection, appending to config.log.
23060 # Unfortunately, on DOS this fails, as config.log is still kept open
23061 # by configure, so config.status won't be able to write to it; its
23062 # output is simply discarded. So we exec the FD to /dev/null,
23063 # effectively closing config.log, so it can be properly (re)opened and
23064 # appended to by config.status. When coming back to configure, we
23065 # need to make the FD available again.
23066 if test "$no_create" != yes; then
23067 ac_cs_success=:
23068 ac_config_status_args=
23069 test "$silent" = yes &&
23070 ac_config_status_args="$ac_config_status_args --quiet"
23071 exec 5>/dev/null
23072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23073 exec 5>>config.log
23074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23075 # would make configure fail if this is the last instruction.
23076 $ac_cs_success || as_fn_exit 1
23077 fi
23078 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23080 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23081 fi
23082